From: Bill Erickson Date: Fri, 25 Apr 2014 20:40:20 +0000 (-0400) Subject: browser staff : patron UI migrations.. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7349360e32c5ab6b6d9cc8b8bb781b0be9a4fbdc;p=working%2FEvergreen.git browser staff : patron UI migrations.. porting items out and checkout UI to eg-grid. move items out and checkout to standalone js files streamline items out to use streaming PCRUD request instead of call/response (yay, websockets) Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/circ/patron/index.tt2 b/Open-ILS/src/templates/staff/circ/patron/index.tt2 index c5fab21dc2..0edf08ff96 100644 --- a/Open-ILS/src/templates/staff/circ/patron/index.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/index.tt2 @@ -11,6 +11,8 @@ + + diff --git a/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 index b241ff93c9..9a3794997c 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 @@ -32,12 +32,21 @@ - -
-
- [% INCLUDE 'staff/parts/column_picker.tt2' listname='checkouts' %] -
-
-[% INCLUDE 'staff/circ/patron/t_checkout_table.tt2' %] + + + + + + + + + + + diff --git a/Open-ILS/src/templates/staff/circ/patron/t_checkout_table.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_checkout_table.tt2 deleted file mode 100644 index 7d718c24e9..0000000000 --- a/Open-ILS/src/templates/staff/circ/patron/t_checkout_table.tt2 +++ /dev/null @@ -1,51 +0,0 @@ - -[% -# checkout 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}, -{label => l('Noncat #'), name => 'noncat_count' display => 1}, -] -%] - - -
-
- -
-
- - - - - - - - - - - - - -
# - {{col.label}} -
{{checkouts.count() - $index}} - {{checkouts.fieldValue(checkout, col.name)}} -
-
-
diff --git a/Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2 index 1e3e066215..16d5785520 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2 @@ -1,9 +1,18 @@ -
-
- [% INCLUDE 'staff/circ/patron/t_items_out_actions.tt2' %] -
-
+ + + + + + + + + -[% INCLUDE 'staff/circ/patron/t_items_out_table.tt2' %] diff --git a/Open-ILS/src/templates/staff/circ/patron/t_items_out_actions.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_items_out_actions.tt2 deleted file mode 100644 index c0876d1731..0000000000 --- a/Open-ILS/src/templates/staff/circ/patron/t_items_out_actions.tt2 +++ /dev/null @@ -1,34 +0,0 @@ -
- - - - - -
- - -
- - [% INCLUDE 'staff/parts/column_picker.tt2' listname='items_out' %] -
- diff --git a/Open-ILS/src/templates/staff/circ/patron/t_items_out_table.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_items_out_table.tt2 deleted file mode 100644 index a62d91b54f..0000000000 --- a/Open-ILS/src/templates/staff/circ/patron/t_items_out_table.tt2 +++ /dev/null @@ -1,61 +0,0 @@ -[% -COLUMNS = [ -{label => l('Circ ID'), name => 'id', display => 1}, -{label => l('Barcode'), name => 'target_copy.barcode' display => 1}, -{label => l('Due Date'), name => 'due_date' display => 1}, -{label => l('Checkout/Renewal Library'), - name => 'circ_lib.shortname' display => 1}, -{label => l('Renewals Remaining'), name => 'renewal_remaining' display => 1}, -{label => l('Fines Stopped'), name => 'stop_fines' display => 1}, -{label => l('Title'), - name => 'target_copy.call_number.record.simple_record.title', display => 1}, -] -%] - - -
-
- -
-
-
[% l('No Items To Display') %]
-
-
- -
-
- - - - - - - - - - - - - - -
# - {{col.label}} -
{{$index + 1}} - - {{items_out.fieldValue(circ, col.name)}} -
-
-
diff --git a/Open-ILS/src/templates/staff/circ/patron/t_precat_dialog.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_precat_dialog.tt2 index 793f974f71..8676bf76e5 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_precat_dialog.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_precat_dialog.tt2 @@ -1,6 +1,6 @@
-