[Koha-patches] [PATCH] Bug 3351 - Limit Serials Search for Biblio to an item type
Frédéric Demians
f.demians at tamil.fr
Tue Jun 23 14:01:14 CEST 2009
---
serials/subscription-bib-search.pl | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/serials/subscription-bib-search.pl b/serials/subscription-bib-search.pl
index 21341db..01c341d 100755
--- a/serials/subscription-bib-search.pl
+++ b/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);
--
1.5.6.5
More information about the Koha-patches
mailing list