Bug 15492: New sysprefs and permissions
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / catalogue / itemsearch_item.json.inc
1 [%- USE Branches -%]
2 [%- USE Koha -%]
3 [% USE AuthorisedValues %]
4 [%- biblio = item.biblio -%]
5 [%- biblioitem = item.biblioitem -%]
6 [
7   "[% FILTER escape_quotes = replace('"', '\"') ~%]
8     <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]" title="Go to record detail page">[% biblio.title |html %]</a>[% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %] by[% END %] [% biblio.author |html %]
9   [%~ END %]",
10   "[% (biblioitem.publicationyear || biblio.copyrightdate) |html %]",
11   "[% biblioitem.publishercode |html %]",
12   "[% AuthorisedValues.GetByCode( 'CCODE', item.ccode ) %]",
13   "[% FILTER escape_quotes ~%]
14     <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber %]#item[% item.itemnumber %]" title="Go to item details">[% item.barcode |html %]</a>
15   [%~ END %]",
16   "[% item.itemcallnumber |html %]",
17   "[% Branches.GetName(item.homebranch) |html %]",
18   "[% Branches.GetName(item.holdingbranch) |html %]",
19   "[% item.location |html %]",
20   "[% item.stocknumber |html %]",
21   "[% item.status |html %]",
22   "[% (item.issues || 0) |html %]",
23   "[% FILTER escape_quotes ~%]
24     <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 %]&itemnumber=[% item.itemnumber %]">Edit item</a></li> <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% item.biblionumber %]">Edit record</a></li> </ul> </div>
25   [%~ END %]"
26 ]