Bug 18433: Add missing filter
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / catalogue / itemsearch_item.json.inc
1 [%- USE Branches -%]
2 [%- USE Koha -%]
3 [%- USE To -%]
4 [%- USE ItemTypes -%]
5 [%- USE AuthorisedValues -%]
6 [%- biblio = item.biblio -%]
7 [%- biblioitem = item.biblioitem -%]
8 [
9   "[% FILTER escape_quotes = replace('"', '\"') ~%]
10     <input type="checkbox" name="itemnumber" value="[% item.itemnumber | html %]"/>
11   [%~ END %]",
12   "[% FILTER escape_quotes ~%]
13     <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 %]
14   [%~ END %]",
15   "[% (biblioitem.publicationyear || biblio.copyrightdate) | html %]",
16   "[% biblioitem.publishercode | html | $To %]",
17   "[% AuthorisedValues.GetByCode( 'CCODE', item.ccode ) | html %]",
18   "[% FILTER escape_quotes ~%]
19     <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>
20   [%~ END %]",
21   "[% item.itemcallnumber | html %]",
22   "[% Branches.GetName(item.homebranch) | html %]",
23   "[% Branches.GetName(item.holdingbranch) | html %]",
24   "[% AuthorisedValues.GetDescriptionByKohaField( frameworkcode => biblio.frameworkcode, kohafield => 'items.location', authorised_value => item.location) | html %]",
25   "[% ItemTypes.GetDescription(item.itype) | html %]",
26   "[% item.stocknumber | html %]",
27   "[% AuthorisedValues.GetDescriptionByKohaField( frameworkcode => biblio.frameworkcode, kohafield => 'items.notforloan', authorised_value => item.notforloan) | html %]",
28   "[% AuthorisedValues.GetByCode( 'LOST', item.itemlost ) || "" | html %]",
29   "[% AuthorisedValues.GetByCode( 'WITHDRAWN', item.withdrawn ) || "" | html %]",
30   "[% (item.issues || 0) | html %]",
31   "[% FILTER escape_quotes ~%]
32     <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 pull-right"> <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>
33   [%~ END %]"
34 ]