View | Details | Raw Unified | Return to bug 27164
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.csv.inc (-1 / +31 lines)
Lines 1-7 Link Here
1
[%- USE raw -%]
1
[%- USE Branches -%]
2
[%- USE Branches -%]
2
[%- USE Koha -%]
3
[%- USE Koha -%]
3
[%- USE ItemTypes -%]
4
[%- USE ItemTypes -%]
4
[%- USE AuthorisedValues -%]
5
[%- USE AuthorisedValues -%]
5
[%- SET biblio = item.biblio -%]
6
[%- SET biblio = item.biblio -%]
6
[%- SET biblioitem = item.biblioitem -%]
7
[%- SET biblioitem = item.biblioitem -%]
7
"[% biblio.title | html %] [% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %]by [% END %][% biblio.author | html %]", "[% (biblioitem.publicationyear || biblio.copyrightdate) | html %]", "[% biblioitem.publishercode | html %]", "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]", "[% item.barcode | html %]", "[% item.itemcallnumber | html %]", "[% Branches.GetName(item.homebranch) | html %]", "[% Branches.GetName(item.holdingbranch) | html %]", "[% AuthorisedValues.GetDescriptionByKohaField(frameworkcode => biblio.frameworkcode, kohafield => 'items.location', authorised_value => item.location) | html %]", "[% ItemTypes.GetDescription(item.itype) | html %]", "[% item.stocknumber | html %]", "[% AuthorisedValues.GetDescriptionByKohaField(frameworkcode => biblio.frameworkcode, kohafield => 'items.notforloan', authorised_value => item.notforloan) | html %]","[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) || "" | html %]","[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) || "" | html %]", "[% (item.issues || 0) | html %]"
8
[%- SET delimiter = Koha.Preference( 'delimiter' ) || ',' -%]
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 %]"
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/catalogue/itemsearch.tt (-2 / +34 lines)
Line 1 Link Here
1
[%- BLOCK -%]Title, Publication date, Publisher, Collection, Barcode, Call number, Home library, Current library, Shelving location, Item type, Inventory number, Not for loan status, Lost status, Withdrawn status, Checkouts[%- END -%]
1
[%- USE raw -%]
2
[%- USE Koha -%]
3
[%- SET delimiter = Koha.Preference( 'delimiter' ) || ',' -%]
4
[%- BLOCK -%]
5
"Title"
6
[%- delimiter | $raw -%]
7
"Publication date"
8
[%- delimiter | $raw -%]
9
"Publisher"
10
[%- delimiter | $raw -%]
11
"Collection"
12
[%- delimiter | $raw -%]
13
"Barcode"
14
[%- delimiter | $raw -%]
15
"Call number"
16
[%- delimiter | $raw -%]
17
"Home library"
18
[%- delimiter | $raw -%]
19
"Current library"
20
[%- delimiter | $raw -%]
21
"Shelving location"
22
[%- delimiter | $raw -%]
23
"Item type"
24
[%- delimiter | $raw -%]
25
"Inventory number"
26
[%- delimiter | $raw -%]
27
"Not for loan status"
28
[%- delimiter | $raw -%]
29
"Lost status"
30
[%- delimiter | $raw -%]
31
"Withdrawn status"
32
[%- delimiter | $raw -%]
33
"Checkouts"
34
[%- END -%]
2
- 

Return to bug 27164