[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 1a1e58e7abfef00363f10ce0e0318944169023bc

Evergreen Git git at git.evergreen-ils.org
Mon Mar 11 20:30:44 EDT 2013


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_2_2 has been updated
       via  1a1e58e7abfef00363f10ce0e0318944169023bc (commit)
      from  0f56e42e33f6ccbb3c4d772e1f9d1024d23b5f10 (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 1a1e58e7abfef00363f10ce0e0318944169023bc
Author: Dan Scott <dscott at laurentian.ca>
Date:   Fri Mar 8 22:41:08 2013 -0500

    Show OPAC-invisible copies in TPAC in staff context
    
    We were not calling the staff variation of the copy count method; thus,
    the record details template was skipping the copy table in the event
    that all copies for a given record were marked as OPAC-invisible via
    either copy visibility or shelving location visibility.
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
index cdf7e15..0b428dd 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
@@ -356,10 +356,14 @@ sub prepare_browse_call_numbers {
 
 sub get_hold_copy_summary {
     my ($self, $rec_id, $org) = @_;
-    
+
     my $search = OpenSRF::AppSession->create('open-ils.search');
-    my $req1 = $search->request(
-        'open-ils.search.biblio.record.copy_count', $org, $rec_id); 
+    my $copy_count_meth = 'open-ils.search.biblio.record.copy_count';
+    # We want to include OPAC-invisible copies in a staff context
+    if ($self->ctx->{is_staff}) {
+        $copy_count_meth .= '.staff';
+    }
+    my $req1 = $search->request($copy_count_meth, $org, $rec_id); 
 
     $self->ctx->{record_hold_count} = $U->simplereq(
         'open-ils.circ', 'open-ils.circ.bre.holds.count', $rec_id);

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

Summary of changes:
 .../perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list