[open-ils-commits] [GIT] Evergreen ILS branch rel_3_1 updated. 360173d1874f155bc02ffd2331a39ee5d34fe435

Evergreen Git git at git.evergreen-ils.org
Thu Sep 13 10:28:48 EDT 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_3_1 has been updated
       via  360173d1874f155bc02ffd2331a39ee5d34fe435 (commit)
       via  8d39145b948829aea24563300dddd6a4744cfd54 (commit)
      from  aac44b2b02f791351d7505221d8929a6ee2362eb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 360173d1874f155bc02ffd2331a39ee5d34fe435
Author: a. bellenir <ab at grpl.org>
Date:   Tue Jun 12 14:54:18 2018 -0400

    LP#1773434: show in catalog
    
    open a new staff client tab to the record's opac view, not a new opac tab
    
    Signed-off-by: a. bellenir <ab at grpl.org>
    Signed-off-by: Jeff Davis <jdavis at sitka.bclibraries.ca>
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>

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 d9dc809..569e3b5 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
@@ -949,7 +949,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
 
     service.show_in_catalog = function(copy_list){
         angular.forEach(copy_list, function(copy){
-            window.open('/eg/opac/record/'+copy['call_number.record.id'], '_blank')
+            window.open('/eg/staff/cat/catalog/record/'+copy['call_number.record.id']+'/catalog', '_blank')
         });
     }
 

commit 8d39145b948829aea24563300dddd6a4744cfd54
Author: a. bellenir <ab at grpl.org>
Date:   Mon Jun 4 19:41:55 2018 -0400

    LP#1773434 missing option to "Show in Catalog"
    
    Signed-off-by: a. bellenir <ab at grpl.org>
    Signed-off-by: Garry Collum <gcollum at gmail.com>
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>

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 0bb3db6..c3bbea1 100644
--- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2
+++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2
@@ -10,6 +10,8 @@
 
   <eg-grid-action handler="add_copies_to_bucket"
     label="[% l('Add Items to Bucket') %]"></eg-grid-action>
+  <eg-grid-action handler="show_in_catalog"
+    label="[% l('Show in Catalog') %]"></eg-grid-action>
   <eg-grid-action handler="make_copies_bookable"
     label="[% l('Make Items Bookable') %]"></eg-grid-action>
   <eg-grid-action handler="book_copies_now"
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 cededcd..9290197 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
@@ -535,6 +535,10 @@ function($scope , $q , $routeParams , $location , $timeout , $window , egCore ,
         });
     }
 
+    $scope.show_in_catalog = function(){
+        itemSvc.show_in_catalog(copyGrid.selectedItems());
+    }
+
     if (copyId.length > 0) {
         itemSvc.fetch(null,copyId).then(
             function() {
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 1432246..d9dc809 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
@@ -947,6 +947,12 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
         });
     }
 
+    service.show_in_catalog = function(copy_list){
+        angular.forEach(copy_list, function(copy){
+            window.open('/eg/opac/record/'+copy['call_number.record.id'], '_blank')
+        });
+    }
+
     return service;
 }])
 .filter('string_pick', function() { return function(i){ return arguments[i] || ''; }; })

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/staff/cat/item/t_list.tt2   |    2 ++
 Open-ILS/web/js/ui/default/staff/cat/item/app.js   |    4 ++++
 .../web/js/ui/default/staff/circ/services/item.js  |    6 ++++++
 3 files changed, 12 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list