Bug 8843 - Cannot export bibliographic records by call number
When building the query for exports by call number the script has the logic reversed. It tries to select records with call numbers less than the starting call number and greater than the ending call number. This should be reversed. To test, test an export in an unpatched system. An export by call number will return an empty file. After applying the patch an export by call number should give valid results. Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> Works as expected. Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
parent
63145eb3d2
commit
caec1ddfa4
|
|
@ -538,12 +538,12 @@ sub construct_query {
|
|||
}
|
||||
|
||||
if ($start_callnumber) {
|
||||
$sql_query .= " AND itemcallnumber <= ? ";
|
||||
$sql_query .= " AND itemcallnumber >= ? ";
|
||||
push @sql_params, $start_callnumber;
|
||||
}
|
||||
|
||||
if ($end_callnumber) {
|
||||
$sql_query .= " AND itemcallnumber >= ? ";
|
||||
$sql_query .= " AND itemcallnumber <= ? ";
|
||||
push @sql_params, $end_callnumber;
|
||||
}
|
||||
if ($start_accession) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue