From e613ef5a8c9e8c3f7d60f4cebd8e0bf5fee05796 Mon Sep 17 00:00:00 2001 From: Ryan Higgins Date: Sun, 1 Jun 2008 12:48:54 -0500 Subject: [PATCH] Apply item-level_itypes syspref to MARC export. Signed-off-by: Joshua Ferraro --- tools/export.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/export.pl b/tools/export.pl index 6e44c43c11..09075f9b14 100755 --- 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); -- 2.39.5