From e32d01510af485b0b87546781e6ed386af4eb8fc Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Fri, 16 Sep 2011 08:52:44 -0400 Subject: [PATCH] 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 Signed-off-by: Dan Scott --- Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm index 3423932a75..780963b24f 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm @@ -946,10 +946,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}; @@ -1078,7 +1078,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 }; } -- 2.11.0