projects
/
koha_fer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Apply item-level_itypes syspref to MARC export.
[koha_fer]
/
tools
/
export.pl
diff --git
a/tools/export.pl
b/tools/export.pl
index
6e44c43
..
09075f9
100755
(executable)
--- a/
tools/export.pl
+++ b/
tools/export.pl
@@
-112,7
+112,7
@@
if ($op eq "export") {
}
if ( $itemtype ) {
- $query .= " AND biblioitems.itemtype = ?";
+ $query .=
(C4::Context->preference('item-level_itypes')) ? " AND items.itype = ? " :
" AND biblioitems.itemtype = ?";
push @sql_params, $itemtype;
}
my $sth = $dbh->prepare($query);