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:
D Ruth Bavousett 2011-02-10 20:22:27 -05:00 committed by Chris Cormack
parent 0dedbfba5a
commit 050466ce2b

View file

@ -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 ) {