Bug 25867: Label "Current location" as "Current library" and "Permanent location...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / moredetail.tt
1 [% USE raw %]
2 [% USE Price %]
3 [% USE Asset %]
4 [% USE Koha %]
5 [% USE Branches %]
6 [% USE Price %]
7 [% SET footerjs = 1 %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha &rsaquo; Catalog &rsaquo; Item details for [% INCLUDE 'biblio-title-head.inc' %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 <style>h3{padding-top: 1em; border-top: 2px solid #CCCCCC;}#exportLabelexportModal_{border-top: 0px;}</style>
12 </head>
13 <body id="catalog_moredetail" class="catalog">
14 [% USE KohaDates %]
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'cat-search.inc' %]
17
18 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; [% INCLUDE 'biblio-default-view.inc' %]<i>[% INCLUDE 'biblio-title.inc' %]</i></a> &rsaquo; Item details</div>
19
20 <div class="main container-fluid">
21     <div class="row">
22         <div class="col-sm-10 col-sm-push-2">
23             <main>
24
25 [% INCLUDE 'cat-toolbar.inc' %]
26
27 <div id="catalogue_detail_biblio">
28
29     <h2>[% title | html %]</h2>
30     [% IF ( subtitle ) %]<h4>[% FOREACH subtitl IN subtitle %] [% subtitl | html %][% END %]</h4>[% END %]
31     [% IF ( author ) %]<h4>by [% author | html %]</h4>[% END %]
32     <div class="listgroup">
33     <div class="rows">
34     <ol class="bibliodetails">
35         <li><span class="label">Biblionumber:</span> [% biblionumber | html %]&nbsp;</li>
36         [% UNLESS ( item_level_itypes ) %]
37         <li><span class="label">Item type:</span> [% itemtypename | html %]&nbsp;</li>
38         [% END %]
39         [% IF ( rentalcharge ) %]<li><span class="label">Rental charge:</span>[% rentalcharge | $Price %]&nbsp;</li>[% END %]
40         [% IF ( rentalcharge_daily ) %]<li><span class="label">Daily rental charge:</span>[% rentalcharge_daily | $Price %]&nbsp;</li>[% END %]
41         [% IF ( rentalcharge_hourly ) %]<li><span class="label">Hourly rental charge:</span>[% rentalcharge_hourly | $Price %]&nbsp;</li>[% END %]
42         <li><span class="label">ISBN:</span> [% isbn | html %]&nbsp;</li>
43         <li><span class="label">Publisher:</span>[% place | html %] [% publishercode | html %] [% publicationyear | html %]&nbsp;</li>
44         [% IF ( volumeddesc ) %]<li><span class="label">Volume:</span> [% volumeddesc | html %]</li>[% END %]
45         <li><span class="label">Physical details:</span> [% pages | html %] [% illus | html %] [% size | html %]&nbsp;</li>
46         [% IF ( bnotes ) %]<li><span class="label">Notes:</span> [% bnotes | html %]</li>[% END %]
47         <li><span class="label">No. of items:</span> [% count | html %]&nbsp;[% IF ( hiddencount ) %]total ([% showncount | html %] shown / [% hiddencount | html %] hidden) 
48 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblionumber | uri %]&amp;showallitems=1">Show all items</a>[% END %]</li>
49     </ol>
50     </div>
51     </div>
52
53     [% IF ( ONLY_ONE ) %]
54         <hr />
55         <div class="dialog message">You are only viewing one item.  <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblionumber | uri %]&amp;bi=[% biblioitemnumber | uri %]#item[% itemnumber | uri %]">View All</a></div>
56     [% END %]
57
58     [% FOREACH ITEM_DAT IN ITEM_DATA %]
59         <div class="listgroup">
60         <h3 id="item[% ITEM_DAT.itemnumber | html %]">Barcode [% ITEM_DAT.barcode | html %]  [% IF ( ITEM_DAT.notforloantext ) %][% ITEM_DAT.notforloantext | html %] [% END %]</h3>
61
62         <h4>Item information [% IF ( CAN_user_editcatalogue_edit_catalogue ) %][% UNLESS ( ITEM_DAT.nomod ) %]
63          [% IF ( CAN_user_editcatalogue_edit_items ) %]
64             <a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&amp;biblionumber=[% ITEM_DAT.biblionumber | uri %]&amp;itemnumber=[% ITEM_DAT.itemnumber | uri %]"><i class="fa fa-pencil"></i> Edit item</a>
65          [% END %]
66          [% END %][% END %]</h4>
67             <div class="rows">
68             <ol class="bibliodetails">
69             <li><span class="label">Home library:</span> [% Branches.GetName( ITEM_DAT.homebranch ) | html %]&nbsp;</li>
70             [% IF ( item_level_itypes ) %]
71             <li><span class="label">Item type:</span> [% ITEM_DAT.itype | html %]&nbsp;</li>
72             [% END %]
73             [% IF ( ITEM_DAT.collection ) %]<li><span class="label">Collection:</span> [% ITEM_DAT.collection | html %]</li> [% END %]
74             <li><span class="label">Item callnumber:</span> [% ITEM_DAT.itemcallnumber | html %]&nbsp;</li>
75             [% IF ( ITEM_DAT.displaycopy ) %]<li><span class="label">Copy number:</span> [% ITEM_DAT.copyvol | html %]&nbsp;</li> [% END %]
76             [% IF ( ITEM_DAT.replacementprice ) %]<li><span class="label">Replacement price:</span> [% ITEM_DAT.replacementprice | $Price %]&nbsp;</li> [% END %]
77             [% IF ITEM_DAT.materials %]<li><span class="label">Materials specified:</span> [% ITEM_DAT.materials | html %] </li> [% END %]
78             </ol></div></div>
79            <div class="listgroup"><h4>Statuses [% IF ( ITEM_DAT.status_advisory ) %](
80                 [% IF ( ITEM_DAT.notforloantext ) %][% ITEM_DAT.notforloantext | html %] [% END %]
81                 [% IF ( ITEM_DAT.itemlost ) %]Lost[% END %]
82                 [% IF ( ITEM_DAT.damaged ) %]Damaged[% END %]
83                 [% IF ( ITEM_DAT.withdrawn ) %]Withdrawn[% END %]
84             )[% END %]</h4>
85
86             <div class="rows">
87             <ol class="bibliodetails">
88             <li><span class="label">Current library:</span> [% Branches.GetName( ITEM_DAT.holdingbranch ) | html %]&nbsp;</li>
89             <li><span class="label">Checkout status:</span>
90             [% IF ( ITEM_DAT.issue ) %]Checked out to
91                 [% INCLUDE 'patron-title.inc' patron => ITEM_DAT.patron hide_patron_infos_if_needed=1 %]
92                 [% IF ( ITEM_DAT.lastreneweddate ) %]
93                     Last renewed [% ITEM_DAT.lastreneweddate | $KohaDates %],
94                 [% END %]
95                 [% IF ( ITEM_DAT.datedue ) %]
96                     Due back on [% ITEM_DAT.datedue | $KohaDates %]
97                 [% ELSE %]
98                     Not checked out
99                 [% END %]
100             [% END %]
101             &nbsp;</li>
102             <li><span class="label">Current renewals:</span> [% ITEM_DAT.renewals | html %]&nbsp;</li>
103             [% IF itemlostloop %]
104                 <li><span class="label">Lost status:</span>
105                     [% IF ( CAN_user_circulate ) %]
106                         [% SET ClaimReturnedLostValue = Koha.Preference('ClaimReturnedLostValue') %]
107                         <form action="updateitem.pl" method="post">
108                             <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
109                             <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
110                             <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
111
112                         [% IF ClaimReturnedLostValue && ITEM_DAT.itemlost == ClaimReturnedLostValue %]
113                             <select name="itemlost" disabled="disabled">
114                         [% ELSE %]
115                             <select name="itemlost">
116                         [% END %]
117                                 <option value="">Choose</option>
118                                 [% FOREACH itemlostloo IN itemlostloop %]
119                                     [% IF ClaimReturnedLostValue && !ITEM_DAT.itemlost && itemlostloo.authorised_value == ClaimReturnedLostValue #Filter claims returned status from pulldown %]
120                                         <option value="[% itemlostloo.authorised_value | html %]" disabled="disabled" title="At least one item is available at this library">[% itemlostloo.lib | html %]</option>
121                                     [% ELSIF itemlostloo.authorised_value == ITEM_DAT.itemlost %]
122                                         <option value="[% itemlostloo.authorised_value | html %]" selected="selected">[% itemlostloo.lib | html %]</option>
123                                     [% ELSE %]
124                                         <option value="[% itemlostloo.authorised_value | html %]">[% itemlostloo.lib | html %]</option>
125                                     [% END %]
126                                 [% END %]
127                             </select>
128                             <input type="hidden" name="withdrawn" value="[% ITEM_DAT.withdrawn | html %]" />
129                             <input type="hidden" name="damaged" value="[% ITEM_DAT.damaged | html %]" />
130
131                             [% IF ClaimReturnedLostValue && ITEM_DAT.itemlost == ClaimReturnedLostValue %]
132                                 <input type="submit" name="submit" class="submit" value="Set status" disabled="disabled"/>
133                                 <p class="help-block">Item has been claimed as returned.</p>
134                             [% ELSE %]
135                                 <input type="hidden" name="op" value="set_lost" />
136                                 <input type="submit" name="submit" class="submit" value="Set status" />
137                             [% END %]
138                         </form>
139                     [% ELSE %]
140                         [% FOREACH itemlostloo IN itemlostloop %]
141                             [% IF ( itemlostloo.selected ) %]
142                                 [% itemlostloo.lib | html %]
143                             [% END %]
144                         [% END %]
145                         &nbsp;
146                     [% END %]
147                 </li>
148                 [% IF ITEM_DAT.itemlost != "" && ITEM_DAT.itemlost_on %]
149                     <li><span class="label">Lost on:</span>[% ITEM_DAT.itemlost_on | $KohaDates %] &nbsp;</li>
150                 [% END %]
151             [% END %]
152             [% IF itemdamagedloop %]
153             <li><span class="label">Damaged status:</span>
154                 [% IF ( CAN_user_circulate ) %]
155                     <form action="updateitem.pl" method="post">
156                     <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
157                     <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
158                     <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
159                     <select name="damaged" >
160                     <option value="">Choose</option>
161             [% FOREACH itemdamagedloo IN itemdamagedloop %]
162                 [% IF itemdamagedloo.authorised_value == ITEM_DAT.damaged %]
163                     <option value="[% itemdamagedloo.authorised_value | html %]" selected="selected">[% itemdamagedloo.lib | html %]</option>
164                 [% ELSE %]
165                     <option value="[% itemdamagedloo.authorised_value | html %]">[% itemdamagedloo.lib | html %]</option>
166                 [% END %]
167             [% END %]
168                     </select>
169                     <input type="hidden" name="op" value="set_damaged" />
170                     <input type="submit" name="submit" class="submit" value="Set status" /></form>
171                 [% ELSE %]
172                     [% FOREACH itemdamagedloo IN itemdamagedloop %]
173                         [% IF ( itemdamagedloo.selected ) %]
174                             [% itemdamagedloo.lib | html %]
175                         [% END %]
176                     [% END %]
177                     &nbsp;
178                 [% END %]
179             </li>
180             [% IF ITEM_DAT.damaged != "" && ITEM_DAT.damaged_on %]
181                 <li><span class="label">Damaged on:</span>[% ITEM_DAT.damaged_on | $KohaDates %] &nbsp;</li>
182             [% END %]
183             [% END %]
184
185             [% IF itemwithdrawnloop %]
186                 <li><span class="label">Withdrawn status:</span>
187                     [% IF ( CAN_user_circulate ) %]
188                         <form action="updateitem.pl" method="post">
189                             <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
190                             <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
191                             <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
192                             <select name="withdrawn" >
193                                 <option value="">Choose</option>
194                                 [% FOREACH itemwithdrawn IN itemwithdrawnloop %]
195                                     [% IF itemwithdrawn.authorised_value == ITEM_DAT.withdrawn %]
196                                         <option value="[% itemwithdrawn.authorised_value | html %]" selected="selected">[% itemwithdrawn.lib | html %]</option>
197                                     [% ELSE %]
198                                         <option value="[% itemwithdrawn.authorised_value | html %]">[% itemwithdrawn.lib | html %]</option>
199                                     [% END %]
200                                 [% END %]
201                             </select>
202                             <input type="hidden" name="op" value="set_withdrawn" />
203                             <input type="submit" name="submit" class="submit" value="Set status" /></form>
204                     [% ELSE %]
205                         [% FOREACH itemwithdrawn IN itemwithdrawnloop %]
206                             [% IF itemwithdrawn.authorised_value == ITEM_DAT.withdrawn %]
207                                 [% itemwithdrawn.lib | html %]
208                             [% END %]
209                         [% END %]
210                         &nbsp;
211                     [% END %]
212                 </li>
213                 [% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %]
214                     <li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] &nbsp;</li>
215                 [% END %]
216             [% END %]
217
218             </ol></div></div>
219             <div class="listgroup"><h4>History</h4>
220             <div class="rows">
221             <ol class="bibliodetails">
222
223             [% IF ITEM_DAT.basketno %]
224                 <li><span class="label">Order date:</span>
225                     [% IF ( CAN_user_acquisition_order_manage ) %]
226                         <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ITEM_DAT.basketno | uri %]">[% ITEM_DAT.orderdate | $KohaDates %]</a>
227                     [% ELSE %]
228                         [% ITEM_DAT.orderdate | $KohaDates %]
229                     [% END %]
230                  </li>
231                 <li><span class="label">Vendor:</span>
232                     [% ITEM_DAT.vendor | html %]
233                 </li>
234             [% END %]
235
236             [% IF ITEM_DAT.dateaccessioned %]
237                 <li><span class="label">Accession date:</span>
238                     [% IF ( CAN_user_acquisition_order_receive && ITEM_DAT.invoiceid ) %]
239                         <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% ITEM_DAT.invoiceid | uri %]">[% ITEM_DAT.dateaccessioned | $KohaDates %]</a>
240                     [% ELSE %]
241                         [% ITEM_DAT.dateaccessioned | $KohaDates %]
242                     [% END %]
243                 </li>
244             [% END %]
245             [% IF ( ITEM_DAT.invoicenumber ) %]
246                 <li><span class="label">Invoice number:</span>
247                     [% ITEM_DAT.invoicenumber | html %]
248                 </li>
249             [% END %]
250
251                 <li><span class="label">Total checkouts:</span>[% IF ( ITEM_DAT.issues ) %][% ITEM_DAT.issues | html %][% ELSE %]0[% END %]  (<a href="/cgi-bin/koha/circ/bookcount.pl?&amp;biblionumber=[% ITEM_DAT.biblionumber | uri %]&amp;itm=[% ITEM_DAT.itemnumber | uri %]">View item's checkout history</a>)</li>
252
253                 <li><span class="label">Last seen:</span>[% IF ( ITEM_DAT.datelastseen ) %][% ITEM_DAT.datelastseen | $KohaDates %] [%END %]&nbsp;</li>
254                 <li><span class="label">Last borrowed:</span>[% IF (ITEM_DAT.datelastborrowed ) %][% ITEM_DAT.datelastborrowed | $KohaDates %][% END %]&nbsp;</li>
255                 [% IF Koha.Preference('StoreLastBorrower') && ITEM_DAT.object.last_returned_by %]
256                     <li><span class="label">Last returned by:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.object.last_returned_by.borrowernumber | uri %]">[% ITEM_DAT.object.last_returned_by.cardnumber | html %]</a>&nbsp;</li>
257                 [% END %]
258                 [% IF ( ITEM_DAT.card0 ) %]<li><span class="label">Last borrower:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.borrower0 | uri %]">[% ITEM_DAT.card0 | html %]</a>&nbsp;</li>[% END %]
259                 [% IF ( ITEM_DAT.card1 ) %]<li><span class="label">Previous borrower:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.borrower1 | uri %]">[% ITEM_DAT.card1 | html %]</a>&nbsp;</li>[% END %]
260                 [% IF ( ITEM_DAT.card2 ) %]<li><span class="label">Previous borrower:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.borrower2 | uri %]">[% ITEM_DAT.card2 | html %]</a>&nbsp;</li>[% END %]
261                 [% IF ( ITEM_DAT.paidfor ) %]<li><span class="label">Paid for?:</span> [% INCLUDE 'patron-title.inc' patron=ITEM_DAT.paidfor.patron hide_patron_infos_if_needed=1 %] on [% ITEM_DAT.paidfor.created_on | $KohaDates %]</li>[% END %]
262
263                 [% IF ( ITEM_DAT.enumchron ) %]<li><span class="label">Serial enumeration:</span> [% ITEM_DAT.enumchron | html %]&nbsp;</li>[% END %]
264
265                 <li>
266                     <span class="label">Public note:</span>
267                     [% IF ( CAN_user_editcatalogue_edit_items ) %]
268                     <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
269                         <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
270                         <input type="hidden" name="op" value="set_public_note" />
271                         <textarea name="itemnotes" rows="2" cols="30">[% ITEM_DAT.itemnotes | html %]</textarea><input type="submit" name="submit" class="submit" value="Update" />
272                     </form>
273                     [% ELSE %]
274                         [% ITEM_DAT.itemnotes | html %]
275                         &nbsp;
276                     [% END %]
277                 </li>
278
279                 <li>
280                     <span class="label">Non-public note:</span>
281                     [% IF ( CAN_user_editcatalogue_edit_items ) %]
282                     <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
283                         <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
284                         <input type="hidden" name="op" value="set_non_public_note" />
285                         <textarea name="itemnotes_nonpublic" rows="2" cols="30">[% ITEM_DAT.itemnotes_nonpublic | html %]</textarea><input type="submit" name="submit" class="submit" value="Update" />
286                     </form>
287                     [% ELSE %]
288                         [% ITEM_DAT.itemnotes_nonpublic | html %]
289                         &nbsp;
290                     [% END %]
291                 </li>
292             </ol>
293             </div>
294 </div>
295 [% END %]
296
297 </div>
298
299             </main>
300         </div> <!-- /.col-sm-10.col-sm-push-2 -->
301
302         <div class="col-sm-2 col-sm-pull-10">
303             <aside>
304                 [% INCLUDE 'biblio-view-menu.inc' %]
305             </aside>
306         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
307      </div> <!-- /.row -->
308
309 [% MACRO jsinclude BLOCK %]
310     [% INCLUDE 'catalog-strings.inc' %]
311     [% Asset.js("js/catalog.js") | $raw %]
312     [% INCLUDE 'strings.inc' %]
313     [% Asset.js("js/browser.js") | $raw %]
314     <script>
315         var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
316         browser.show();
317     </script>
318 [% END %]
319 [% INCLUDE 'intranet-bottom.inc' %]