Bug 5104: Add control number as search option to acq z39.50 search

Adds control number as search option to z39.50 search in acquisitions.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Katrin Fischer 2010-12-02 12:45:13 +00:00 committed by Chris Cormack
parent 1024eceec7
commit eb2c10eff9
2 changed files with 9 additions and 1 deletions

View File

@ -57,6 +57,7 @@ my $lccn = $input->param('lccn');
my $lccall = $input->param('lccall');
my $subject= $input->param('subject');
my $dewey = $input->param('dewey');
my $controlnumber = $input->param('controlnumber');
my $op = $input->param('op');
my $booksellerid = $input->param('booksellerid');
my $basketno = $input->param('basketno');
@ -118,6 +119,7 @@ if ( $op ne "do_search" ) {
lccall => $lccall,
title => $title,
author => $author,
controlnumber=> $controlnumber,
serverloop => $serverloop,
opsearch => "search",
biblionumber => $biblionumber,
@ -164,6 +166,10 @@ else {
$query .= " \@attr 1=16 \@attr 2=3 \@attr 3=1 \@attr 4=1 \@attr 5=1 \@attr 6=1 \"$lccall\" ";
$nterms++;
}
if ($controlnumber) {
$query .= " \@attr 1=12 \"$controlnumber\" ";
$nterms++;
}
for my $i (1..$nterms-1) {
$query = "\@and " . $query;
}

View File

@ -75,7 +75,9 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
<fieldset class="rows">
<ol><li><label for="searchtitle">Title: </label> <input type="text" id="searchtitle" name="title" value="<!-- TMPL_VAR NAME="title" ESCAPE="html" -->" /></li>
<li><label for="isbn">ISBN/ISSN: </label> <input type="text" id="isbn" name="isbn" value="<!-- TMPL_VAR NAME="isbn" -->" /></li>
<li><label for="lccall">LC Call Number: </label> <input type="text" id="lccall" name="lccall" value="" /></li></ol>
<li><label for="lccall">LC Call Number: </label> <input type="text" id="lccall" name="lccall" value="" /></li>
<li><label for="controlnumber">Control No.: </label> <input type="text" id="controlnumber" name="controlnumber" value="" /></li>
</ol>
</fieldset>
</div>
<div class="yui-u">