From: Matthias Meusburger <[email protected]>
Signed-off-by: Henri-Damien LAURENT <[email protected]>
---
C4/Reports/Guided.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm
index a7d6f48..0c969e3 100644
--- a/C4/Reports/Guided.pm
+++ b/C4/Reports/Guided.pm
@@ -82,11 +82,12 @@ $criteria{'1'} = [
'items.dateaccessioned|date'
];
$criteria{'2'} =
- [ 'items.itemnumber|textrange', 'items.biblionumber|textrange',
'items.barcode|textrange', 'biblio.frameworkcode', 'items.holdingbranch',
'items.homebranch', 'biblio.datecreated|daterange',
'biblio.timestamp|daterange', 'items.onloan|daterange', 'items.ccode',
'items.itemcallnumber|textrange', 'items.itype', 'items.itemlost',
'items.location' ];
+ [ 'items.itemnumber|textrange', 'items.biblionumber|textrange',
'items.barcode|textrange', 'biblio.frameworkcode', 'items.holdingbranch',
'items.homebranch', 'biblio.datecreated|daterange',
'biblio.timestamp|daterange', 'items.onloan|daterange', 'items.ccode',
'items.itemcallnumber|textrange', 'items.itemlost', 'items.location' ];
$criteria{'3'} = ['borrowers.branchcode'];
$criteria{'4'} = ['aqorders.datereceived|date'];
$criteria{'5'} = ['borrowers.branchcode'];
+# Adds itemtypes to criteria, according to the syspref
if (C4::Context->preference('item-level_itypes')) {
unshift @{ $criteria{'1'} }, 'items.itype';
unshift @{ $criteria{'2'} }, 'items.itype';
--
1.6.3.3
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches