From a4283dc888617e1c759d2e73933eccef9e071dec Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 26 Nov 2013 17:13:32 -0500 Subject: [PATCH] web staff: initial checkin; egOrg.settings() Signed-off-by: Bill Erickson --- .../src/templates/staff/circ/checkin/index.tt2 | 44 ++++++++++++ .../staff/circ/checkin/t_checkin_table.tt2 | 50 ++++++++++++++ Open-ILS/src/templates/staff/t_navbar.tt2 | 17 ++++- Open-ILS/src/templates/staff/t_splash.tt2 | 17 ++++- .../web/js/ui/default/staff/circ/checkin/app.js | 79 ++++++++++++++++++++++ .../web/js/ui/default/staff/circ/patron/app.js | 19 ++---- Open-ILS/web/js/ui/default/staff/services/org.js | 28 +++++++- 7 files changed, 231 insertions(+), 23 deletions(-) create mode 100644 Open-ILS/src/templates/staff/circ/checkin/index.tt2 create mode 100644 Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 create mode 100644 Open-ILS/web/js/ui/default/staff/circ/checkin/app.js diff --git a/Open-ILS/src/templates/staff/circ/checkin/index.tt2 b/Open-ILS/src/templates/staff/circ/checkin/index.tt2 new file mode 100644 index 0000000000..135a96eead --- /dev/null +++ b/Open-ILS/src/templates/staff/circ/checkin/index.tt2 @@ -0,0 +1,44 @@ +[% + WRAPPER "staff/t_base.tt2"; + ctx.page_title = l("Check In"); + ctx.page_app = "egCheckinApp"; + ctx.page_ctrl = "CheckinCtrl"; +%] + +[% BLOCK APP_JS %] + + + + +[% END %] + + + + +
+
+
+
+ + + +
+
+
+
+
+ [% INCLUDE 'staff/parts/column_picker.tt2' listname='checkins' %] +
+
+
+ +[% INCLUDE 'staff/circ/checkin/t_checkin_table.tt2' %] + + +[% END %] diff --git a/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 b/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 new file mode 100644 index 0000000000..37c31f7f91 --- /dev/null +++ b/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 @@ -0,0 +1,50 @@ + +[% +# checkin table columns +COLUMNS = [ +{label => l('Barcode'), name => 'copy_barcode' display => 1}, +{label => l('Circ ID'), name => 'payload.circ.id', display => 1}, +{label => l('Due Date'), name => 'payload.circ.due_date' display => 1}, +# once we are handling all response types, we probably don't need to show +# Response. Or, at least, make it more friendly / localizable +{label => l('Response'), name => 'textcode', display => 1}, +{label => l('Title'), name => 'payload.record.title', display => 1}, +{label => l('Author'), name => 'payload.record.author', display => 1}, +{label => l('Call Number'),name => 'payload.copy.call_number.label', display => 1}, +{label => l('Alert Msg'), name => 'payload.copy.alert_message' display => 1}, +] +%] + + +
+
+ +
+
+ + + + + + + + + + + + + +
# + {{col.label}} +
{{checkins.count() - $index}} + {{checkins.fieldValue(checkin, col.name)}} +
+
+
diff --git a/Open-ILS/src/templates/staff/t_navbar.tt2 b/Open-ILS/src/templates/staff/t_navbar.tt2 index c894220866..f00855da91 100644 --- a/Open-ILS/src/templates/staff/t_navbar.tt2 +++ b/Open-ILS/src/templates/staff/t_navbar.tt2 @@ -9,7 +9,7 @@ For icons, see http://getbootstrap.com/components/#glyphicons --> -