[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. de77be3ecb507cb6563310a5a0f4bcb8c2bf2786
Evergreen Git
git at git.evergreen-ils.org
Wed Oct 12 13:55:30 EDT 2011
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_0 has been updated
via de77be3ecb507cb6563310a5a0f4bcb8c2bf2786 (commit)
from 5d294e16145ac9bd5b9492fe38d6447cb6332ac5 (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 de77be3ecb507cb6563310a5a0f4bcb8c2bf2786
Author: Jason Stephenson <jstephenson at mvlc.org>
Date: Fri Sep 16 08:52:44 2011 -0400
Fix z39.50 import isbn and issn searches on local catalog.
Make cat_search_z_style_wrapper do identifier searches for isbn and
issn.
Modify the_quest_for_knowledge to accept identifier searches for isbn
and issn.
Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>
Signed-off-by: Dan Scott <dscott at laurentian.ca>
diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
index 05c5d4d..d83f0f6 100644
--- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
+++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
@@ -842,10 +842,10 @@ sub cat_search_z_style_wrapper {
$$searchhash{searches}{author}{term} = $$args{search}{author} if $$args{search}{author};
$$searchhash{searches}{subject}{term} = $$args{search}{subject} if $$args{search}{subject};
$$searchhash{searches}{keyword}{term} = $$args{search}{keyword} if $$args{search}{keyword};
+ $$searchhash{searches}{'identifier|isbn'}{term} = $$args{search}{isbn} if $$args{search}{isbn};
+ $$searchhash{searches}{'identifier|issn'}{term} = $$args{search}{issn} if $$args{search}{issn};
$$searchhash{searches}{keyword}{term} .= join ' ', $$searchhash{searches}{keyword}{term}, $$args{search}{tcn} if $$args{search}{tcn};
- $$searchhash{searches}{keyword}{term} .= join ' ', $$searchhash{searches}{keyword}{term}, $$args{search}{isbn} if $$args{search}{isbn};
- $$searchhash{searches}{keyword}{term} .= join ' ', $$searchhash{searches}{keyword}{term}, $$args{search}{issn} if $$args{search}{issn};
$$searchhash{searches}{keyword}{term} .= join ' ', $$searchhash{searches}{keyword}{term}, $$args{search}{publisher} if $$args{search}{publisher};
$$searchhash{searches}{keyword}{term} .= join ' ', $$searchhash{searches}{keyword}{term}, $$args{search}{pubdate} if $$args{search}{pubdate};
$$searchhash{searches}{keyword}{term} .= join ' ', $$searchhash{searches}{keyword}{term}, $$args{search}{item_type} if $$args{search}{item_type};
@@ -974,7 +974,7 @@ sub the_quest_for_knowledge {
# do some simple sanity checking
if(!$searchhash->{searches} or
- ( !grep { /^(?:title|author|subject|series|keyword)/ } keys %{$searchhash->{searches}} ) ) {
+ ( !grep { /^(?:title|author|subject|series|keyword|identifier\|is[bs]n)/ } keys %{$searchhash->{searches}} ) ) {
return { count => 0 };
}
-----------------------------------------------------------------------
Summary of changes:
.../perlmods/OpenILS/Application/Search/Biblio.pm | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list