Bug 21716: Escape publisher in item search
[koha-equinox.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     <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 %]
11   [%~ END %]",
12   "[% (biblioitem.publicationyear || biblio.copyrightdate) | html %]",
13   "[% biblioitem.publishercode | html | $To %]",
14   "[% AuthorisedValues.GetByCode( 'CCODE', item.ccode ) | html %]",
15   "[% FILTER escape_quotes ~%]
16     <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>
17   [%~ END %]",
18   "[% item.itemcallnumber | html %]",
19   "[% Branches.GetName(item.homebranch) | html %]",
20   "[% Branches.GetName(item.holdingbranch) | html %]",
21   "[% item.location | html %]",
22   "[% ItemTypes.GetDescription(item.itype) | html %]",
23   "[% item.stocknumber | html %]",
24   "[% item.status | html %]",
25   "[% AuthorisedValues.GetByCode( 'LOST', item.itemlost ) || "" | html %]",
26   "[% (item.issues || 0) | html %]",
27   "[% FILTER escape_quotes ~%]
28     <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>
29   [%~ END %]"
30 ]