[open-ils-commits] r8225 -
trunk/Open-ILS/src/perlmods/OpenILS/Application/Search
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Dec 16 15:09:29 EST 2007
Author: miker
Date: 2007-12-16 14:48:16 -0500 (Sun, 16 Dec 2007)
New Revision: 8225
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
Log:
fixing search object layout
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2007-12-16 19:36:40 UTC (rev 8224)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2007-12-16 19:48:16 UTC (rev 8225)
@@ -547,16 +547,18 @@
my $result = { service => 'native-evergreen-catalog', records => [] };
my $searchhash = { limit => $$args{limit}, offset => $$args{offset}, org_unit => $ou->id };
- $$searchhash{searches}{title} = $$args{search}{title};
- $$searchhash{searches}{author} = $$args{search}{author};
- $$searchhash{searches}{subject} = $$args{search}{subject};
- $$searchhash{searches}{keyword} = $$args{search}{keyword};
- $$searchhash{searches}{keyword} .= ' '.$$args{search}{tcn};
- $$searchhash{searches}{keyword} .= ' '.$$args{search}{isbn};
- $$searchhash{searches}{keyword} .= ' '.$$args{search}{publisher};
- $$searchhash{searches}{keyword} .= ' '.$$args{search}{pubdate};
- $$searchhash{searches}{keyword} .= ' '.$$args{search}{item_type};
+ $$searchhash{searches}{title}{term} = $$args{search}{title} if $$args{search}{title};
+ $$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}{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};
+
my $list = $self->the_quest_for_knowledge( $client, $searchhash );
if ($list->{count} > 0) {
More information about the open-ils-commits
mailing list