Bug 5230: Call number ranges in export don't give expected results.
If you entered low number and high number, you got only items that *exactly* matched either entry (if any). If you enter only a low number, you got everying *lower* than that. If you enter only a high number, you get everything *higher* than that. This was a greater-than-less-than problem. Signed-off-by: Nicole Engard <nengard@bywatersolutions.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
0dedbfba5a
commit
050466ce2b
1 changed files with 2 additions and 2 deletions
|
@ -101,12 +101,12 @@ if ($op eq "export") {
|
|||
}
|
||||
|
||||
if ( $start_callnumber ) {
|
||||
$query .= " AND biblioitems.biblionumber = items.biblionumber AND itemcallnumber <= ? ";
|
||||
$query .= " AND biblioitems.biblionumber = items.biblionumber AND itemcallnumber >= ? ";
|
||||
push @sql_params, $start_callnumber;
|
||||
}
|
||||
|
||||
if ( $end_callnumber ) {
|
||||
$query .= " AND biblioitems.biblionumber = items.biblionumber AND itemcallnumber >= ? ";
|
||||
$query .= " AND biblioitems.biblionumber = items.biblionumber AND itemcallnumber <= ? ";
|
||||
push @sql_params, $end_callnumber;
|
||||
}
|
||||
if ( $start_accession ) {
|
||||
|
|
Loading…
Reference in a new issue