From 2834280ba56c07d3a5c074dba5bcada0c45c3992 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Mon, 9 Jul 2018 18:11:05 +0000 Subject: [PATCH] lp1777675 inventory date support - Add inventory date and inventory workstation report to the item status, checkin, and copy bucket interfaces - Add toggle for updating inventory date and workstation on checkin Signed-off-by: Kyle Huckins Changes to be committed: modified: Open-ILS/examples/fm_IDL.xml modified: Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm modified: Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 modified: Open-ILS/src/templates/staff/cat/item/t_list.tt2 modified: Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 modified: Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2 modified: Open-ILS/web/js/ui/default/staff/circ/services/circ.js modified: Open-ILS/web/js/ui/default/staff/circ/services/item.js Signed-off-by: Kathy Lussier Conflicts: Open-ILS/web/js/ui/default/staff/circ/services/item.js --- Open-ILS/examples/fm_IDL.xml | 3 +++ .../src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm | 6 ++++++ Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 | 2 ++ Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 2 ++ Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 | 13 +++++++++++++ Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2 | 11 +++++++++-- Open-ILS/web/js/ui/default/staff/circ/services/item.js | 2 +- 7 files changed, 36 insertions(+), 3 deletions(-) diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 66d146e0d0..258bc527db 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -7387,6 +7387,8 @@ SELECT usr, + + @@ -7414,6 +7416,7 @@ SELECT usr, + diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm index c2d55186cf..03cb3813af 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -412,6 +412,7 @@ my @AUTOLOAD_FIELDS = qw/ remote_hold backdate reservation + inv_update copy copy_id copy_barcode @@ -2659,6 +2660,11 @@ sub do_checkin { $self->dont_change_lost_zero($dont_change_lost_zero); } + if ($self->inv_update) { + $self->copy->inventory_date('now'); + $self->copy->inventory_workstation($self->editor->requestor->wsid); + } + if( $self->checkin_check_holds_shelf() ) { $self->bail_on_events(OpenILS::Event->new('NO_CHANGE')); $self->hold($U->fetch_open_hold_by_copy($self->copy->id)); diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 index f188a1a737..73cfd06f74 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 @@ -123,6 +123,8 @@ {{item['copy_alert_count']}} + + diff --git a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 index e1dd08205f..62788d7f39 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -135,6 +135,8 @@ {{item['copy_alert_count']}} + + diff --git a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 index e4130a2a2c..85cb8aaabc 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 @@ -177,6 +177,19 @@
+
[% l('Inventory Date') %]
+
{{copy.inventory_date() | date:egDateAndTimeFormat}}
+ +
[% l('Inventory Workstation') %]
+
{{copy.inventory_workstation().name()}}
+ +
+
+
+
+
+ +
[% l('Copy Alerts') %]
diff --git a/Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2 b/Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2 index 42d6e67d60..ec7b1a73a2 100644 --- a/Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2 +++ b/Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2 @@ -46,7 +46,7 @@
-
+
@@ -75,7 +75,14 @@
-
+
+ + +
+ +
[% l('Effective Date') %]
diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/item.js b/Open-ILS/web/js/ui/default/staff/circ/services/item.js index 46a977d6a1..11e2fcb5ba 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/item.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/item.js @@ -16,7 +16,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog flesh : 3, flesh_fields : { acp : ['call_number','location','status','location','floating','circ_modifier', - 'age_protect','circ_lib','copy_alerts', 'editor'], + 'age_protect','circ_lib','copy_alerts', 'editor', 'inventory_workstation'], acn : ['record','prefix','suffix','label_class'], bre : ['simple_record','creator','editor'] }, -- 2.11.0