[open-ils-commits] [GIT] Evergreen ILS branch master updated. 8a1598e34dfea1c61c8ffa1c8f676b0e8099339a

Evergreen Git git at git.evergreen-ils.org
Tue Jul 9 20:39:48 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, master has been updated
       via  8a1598e34dfea1c61c8ffa1c8f676b0e8099339a (commit)
      from  d2a8ca3104453778b80c40395b991e0c8b348b5c (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 8a1598e34dfea1c61c8ffa1c8f676b0e8099339a
Author: Pasi Kallinen <pasi.kallinen at pttk.fi>
Date:   Fri Jun 28 10:22:59 2013 +0300

    Don't let pref_ou repeat in staff recent searches list
    
    Signed-off-by: Pasi Kallinen <pasi.kallinen at pttk.fi>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
index 8d81cf5..5e36541 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
@@ -137,7 +137,7 @@ sub _prepare_biblio_search {
     }
 
     my $pref_ou = $ctx->{pref_ou};
-    if (defined($pref_ou) and $pref_ou ne '' and $pref_ou != $org and ($pref_ou ne $ctx->{aou_tree}->()->id)) {
+    if (defined($pref_ou) and $pref_ou ne '' and $pref_ou != $org and ($pref_ou ne $ctx->{aou_tree}->()->id) and not $query =~ / pref_ou\(\S+\)/) {
         my $plib = $ctx->{get_aou}->($pref_ou)->shortname;
         $query .= " pref_ou($plib)";
     }

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

Summary of changes:
 .../perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list