Searching for stdid: Standard ID, srchany: RAW (any) somehow did not work
anymore.
Probably my fault :) Note that these two fields are in Cataloging Z3950 search
and not in Acquisition.
Fixing encoding problems: When adding -utf flag for CGI in acqui/z3950 and
cataloging/z3950, the decoding statements in C4/Breeding, Z3950Search should be
removed.
Test plan:
Search in Cataloging with:
Standard ID:
9782358670043 on LOC
RAW (any): musee [add an accent aigu on first e] on LOC -- Add diacritic!!!
Search in Acquisition
Somewhere, does not matter, but use a diacritic.
A note: My git version still has a hard time with utf8. Need to upgrade to version 1.7.10 to resolve this..
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Work as described. No errors
Without patch z39.50 search for example Std ID OR musee gives no results,
with patch there are.
No problems in acq search.
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Good catch, passes all tests and QA script.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
my $lccn= $pars->{lccn};
my $lccall= $pars->{lccall};
my $controlnumber= $pars->{controlnumber};
+ my $srchany= $pars->{srchany};
+ my $stdid= $pars->{stdid};
my $show_next = 0;
my $total_pages = 0;
$nterms++;
}
if ($title) {
- utf8::decode($title);
$query .= " \@attr 1=4 \"$title\" ";
$nterms++;
}
if ($author) {
- utf8::decode($author);
$query .= " \@attr 1=1003 \"$author\" ";
$nterms++;
}
$nterms++;
}
if ($subject) {
- utf8::decode($subject);
$query .= " \@attr 1=21 \"$subject\" ";
$nterms++;
}
$query .= " \@attr 1=12 \"$controlnumber\" ";
$nterms++;
}
+ if($srchany) {
+ $query .= " \@attr 1=1016 \"$srchany\" ";
+ $nterms++;
+ }
+ if($stdid) {
+ $query .= " \@attr 1=1007 \"$stdid\" ";
+ $nterms++;
+ }
for my $i (1..$nterms-1) {
$query = "\@and " . $query;
}
use warnings;
use strict;
-use CGI;
+use CGI qw/-utf8/;
use C4::Auth;
use C4::Output;
subject => $subject,
lccall => $lccall,
controlnumber => $controlnumber,
- stdid => 0,
- srchany => 0,
+ stdid => $stdid,
+ srchany => $srchany,
};
Z3950Search($pars, $template);
output_html_with_http_headers $input, $cookie, $template->output;