projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66fa414
)
Bug 3351 - Limit Serials Search for Biblio to an item type
author
Frédéric Demians
<f.demians@tamil.fr>
Tue, 23 Jun 2009 12:01:14 +0000
(14:01 +0200)
committer
Galen Charlton
<galen.charlton@liblime.com>
Wed, 24 Jun 2009 13:43:42 +0000
(08:43 -0500)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
serials/subscription-bib-search.pl
patch
|
blob
|
history
diff --git
a/serials/subscription-bib-search.pl
b/serials/subscription-bib-search.pl
index
21341db
..
01c341d
100755
(executable)
--- 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);