Bug 22649: Add itemtype to item search results and CSV file
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / catalogue / itemsearch_item.json.inc
1 [%- USE Branches -%]
2 [%- USE Koha -%]
3 [%- USE ItemTypes -%]
4 [% USE AuthorisedValues %]
5 [%- biblio = item.biblio -%]
6 [%- biblioitem = item.biblioitem -%]
7 [
8   "[% FILTER escape_quotes = replace('"', '\"') ~%]
9     <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]" title="Go to record detail page">[% biblio.title | html %]</a>[% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %] by[% END %] [% biblio.author | html %]
10   [%~ END %]",
11   "[% (biblioitem.publicationyear || biblio.copyrightdate) | html %]",
12   "[% biblioitem.publishercode | html %]",
13   "[% AuthorisedValues.GetByCode( 'CCODE', item.ccode ) | html %]",
14   "[% FILTER escape_quotes ~%]
15     <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]#item[% item.itemnumber | uri %]" title="Go to item details">[% item.barcode | html %]</a>
16   [%~ END %]",
17   "[% item.itemcallnumber | html %]",
18   "[% Branches.GetName(item.homebranch) | html %]",
19   "[% Branches.GetName(item.holdingbranch) | html %]",
20   "[% item.location | html %]",
21   "[% ItemTypes.GetDescription(item.itype) | html %]",
22   "[% item.stocknumber | html %]",
23   "[% item.status | html %]",
24   "[% (item.issues || 0) | html %]",
25   "[% FILTER escape_quotes ~%]
26     <div class="btn-group dropup"><button type="button" class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-pencil"></i> Edit <span class="caret"></span> </button> <ul class="dropdown-menu"> <li><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber | uri %]&itemnumber=[% item.itemnumber | uri %]">Edit item</a></li> <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% item.biblionumber | html %]">Edit record</a></li> </ul> </div>
27   [%~ END %]"
28 ]