Browse Source

Bug 3351 - Limit Serials Search for Biblio to an item type

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
3.2.x
Frédéric Demians 15 years ago
committed by Galen Charlton
parent
commit
d914fb60df
  1. 5
      serials/subscription-bib-search.pl

5
serials/subscription-bib-search.pl

@ -73,7 +73,10 @@ if ($op eq "do_search" && $query) {
# add the itemtype limit if applicable
my $itemtypelimit = $input->param('itemtypelimit');
$query .= " AND itype=$itemtypelimit" if $itemtypelimit;
if ( $itemtypelimit ) {
my $index = C4::Context->preference("item-level_itypes") ? 'itype' : 'itemtype';
$query .= " AND $index=$itemtypelimit";
}
$resultsperpage= $input->param('resultsperpage');
$resultsperpage = 19 if(!defined $resultsperpage);

Loading…
Cancel
Save