From: Galen Charlton Date: Wed, 16 Nov 2016 10:54:25 +0000 (-0500) Subject: webstaff: add print action and template for item status page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=18ff36e87f0f4e1d75a827739475c8864150dc49;p=working%2FEvergreen.git webstaff: add print action and template for item status page Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- 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 596a24b4d1..087c4e043a 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -65,3 +65,10 @@ +
+
+
+ +
+
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_item_status.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_item_status.tt2 new file mode 100644 index 0000000000..0de9e1ec3a --- /dev/null +++ b/Open-ILS/src/templates/staff/share/print_templates/t_item_status.tt2 @@ -0,0 +1,26 @@ + +
+
[% l('The following items have been examined:') %]
+
+
    +
  1. +
    [% l('Title: [_1]
    Barcode: [_2]', + "{{copy['call_number.record.simple_record.title']}}", + '{{copy.barcode}}') %]
    +
  2. +
+
+
{{current_location.shortname}} {{today | date:'short'}}
+
diff --git a/Open-ILS/web/js/ui/default/staff/cat/item/app.js b/Open-ILS/web/js/ui/default/staff/cat/item/app.js index 7a266357ed..33cc22c6e8 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/item/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/item/app.js @@ -796,6 +796,17 @@ function($scope , $q , $routeParams , $location , $timeout , $window , egCore , } } + $scope.print_list = function() { + var print_data = { copies : copyGrid.allItems() }; + + if (print_data.copies.length == 0) return $q.when(); + + return egCore.print.print({ + template : 'item_status', + scope : print_data + }); + } + if (copyId.length > 0) { itemSvc.fetch(null,copyId).then( function() {