From 243ca959de0f68a0eadee67024d4175aaa7c26e9 Mon Sep 17 00:00:00 2001 From: David Roberts Date: Tue, 1 Oct 2019 00:05:35 +0100 Subject: [PATCH] Bug 23706: Item search CSV export doesn't include collection code --- itemsearch_item.csv.inc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 itemsearch_item.csv.inc diff --git a/itemsearch_item.csv.inc b/itemsearch_item.csv.inc new file mode 100644 index 0000000..b7e9a38 --- /dev/null +++ b/itemsearch_item.csv.inc @@ -0,0 +1,6 @@ +[%- USE Branches -%] +[%- USE Koha -%] +[%- USE AuthorisedValues %] +[%- SET biblio = item.biblio -%] +[%- SET biblioitem = item.biblioitem -%] +"[% biblio.title | html %] [% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %]by [% END %][% biblio.author | html %]", "[% (biblioitem.publicationyear || biblio.copyrightdate) | html %]", "[% biblioitem.publishercode | html %]", "[% AuthorisedValues.GetByCode( 'CCODE', item.ccode) | html %]", "[% item.barcode | html %]", "[% item.itemcallnumber | html %]", "[% Branches.GetName(item.homebranch) | html %]", "[% Branches.GetName(item.holdingbranch) | html %]", "[% item.location | html %]", "[% item.stocknumber | html %]", "[% item.status | html %]", "[% (item.issues || 0) | html %]" -- 2.1.4