[open-ils-commits] r10635 - in branches/rel_1_2/Open-ILS: src/perlmods/OpenILS/Application/Search web/opac/skin/default/js

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Sep 18 10:26:38 EDT 2008


Author: dbs
Date: 2008-09-18 10:26:36 -0400 (Thu, 18 Sep 2008)
New Revision: 10635

Modified:
   branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
   branches/rel_1_2/Open-ILS/web/opac/skin/default/js/rresult.js
Log:
Merge c10633 from trunk: Move ISSN hyphen filtering from client side to search method

Modified: branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2008-09-18 14:25:54 UTC (rev 10634)
+++ branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2008-09-18 14:26:36 UTC (rev 10635)
@@ -1392,6 +1392,7 @@
 	my( $self, $client, $issn ) = @_;
 	$logger->debug("Searching ISSN $issn");
 	my $e = new_editor();
+	$issn =~ s/-/ /g;
 	my $recs = $U->storagereq(
 		'open-ils.storage.id_list.biblio.record_entry.search.issn.atomic', $issn );
 	return { ids => $recs, count => scalar(@$recs) };

Modified: branches/rel_1_2/Open-ILS/web/opac/skin/default/js/rresult.js
===================================================================
--- branches/rel_1_2/Open-ILS/web/opac/skin/default/js/rresult.js	2008-09-18 14:25:54 UTC (rev 10634)
+++ branches/rel_1_2/Open-ILS/web/opac/skin/default/js/rresult.js	2008-09-18 14:26:36 UTC (rev 10635)
@@ -184,7 +184,7 @@
 }
 
 function rresultCollectISSNIds() {
-    var req = new Request(FETCH_ADV_ISSN_RIDS, (getAdvTerm()+'').replace(/-/g,' '));
+	var req = new Request(FETCH_ADV_ISSN_RIDS, getAdvTerm() );
 	req.callback(
 		function(r) {
 			var blob = r.getResultObject();



More information about the open-ils-commits mailing list