Bug 29271: Fix cash register report results
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / catalogue / itemsearch_item.csv.inc
1 [%- USE raw -%]
2 [%- USE Branches -%]
3 [%- USE Koha -%]
4 [%- USE ItemTypes -%]
5 [%- USE AuthorisedValues -%]
6 [%- SET biblio = item.biblio -%]
7 [%- SET biblioitem = item.biblioitem -%]
8 [%- SET delimiter = Koha.Preference( 'CSVDelimiter' ) || ',' -%]
9 "[% biblio.title | replace('"', '""') | $raw %] [% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %]by [% END %][% biblio.author | replace('"', '""') | $raw %]"
10 [%- delimiter | $raw -%]
11 "[% (biblioitem.publicationyear || biblio.copyrightdate) | replace('"', '""') | $raw %]"
12 [%- delimiter | $raw -%]
13 "[% biblioitem.publishercode | replace('"', '""') | $raw %]"
14 [%- delimiter | $raw -%]
15 "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | replace('"', '""') | $raw %]"
16 [%- delimiter | $raw -%]
17 "[% item.barcode | replace('"', '""') | $raw %]"
18 [%- delimiter | $raw -%]
19 "[% item.itemcallnumber | replace('"', '""') | $raw %]"
20 [%- delimiter | $raw -%]
21 "[% Branches.GetName(item.homebranch) | replace('"', '""') | $raw %]"
22 [%- delimiter | $raw -%]
23 "[% Branches.GetName(item.holdingbranch) | replace('"', '""') | $raw %]"
24 [%- delimiter | $raw -%]
25 "[% AuthorisedValues.GetDescriptionByKohaField(frameworkcode => biblio.frameworkcode, kohafield => 'items.location', authorised_value => item.location) | replace('"', '""') | $raw %]"
26 [%- delimiter | $raw -%]
27 "[% ItemTypes.GetDescription(item.itype) | replace('"', '""') | $raw %]"
28 [%- delimiter | $raw -%]
29 "[% item.stocknumber | replace('"', '""') | $raw %]"
30 [%- delimiter | $raw -%]
31 "[% AuthorisedValues.GetDescriptionByKohaField(frameworkcode => biblio.frameworkcode, kohafield => 'items.notforloan', authorised_value => item.notforloan) | replace('"', '""') | $raw %]"
32 [%- delimiter | $raw -%]
33 "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) || "" | replace('"', '""') | $raw %]"
34 [%- delimiter | $raw -%]
35 "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) || "" | replace('"', '""') | $raw %]"
36 [%- delimiter | $raw -%]
37 "[% (item.issues || 0) | $raw %]"