Move ISSN hyphen filtering from client side to search method
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Sep 2008 14:20:01 +0000 (14:20 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Sep 2008 14:20:01 +0000 (14:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10633 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
Open-ILS/web/opac/skin/default/js/rresult.js

index 4d17a7d..a0f4491 100644 (file)
@@ -1390,6 +1390,7 @@ sub biblio_search_issn {
        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) };
index 218f8d1..a0aeafe 100644 (file)
@@ -188,7 +188,7 @@ function rresultCollectTCNIds() {
 }
 
 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();