Bug 24279: (QA follow-up) Show values disabled with tooltips
[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="rows">
33     <ol class="bibliodetails">
34         <li><span class="label">Biblionumber:</span> [% biblionumber | html %]&nbsp;</li>
35         [% UNLESS ( item_level_itypes ) %]
36         <li><span class="label">Item type:</span> [% itemtypename | html %]&nbsp;</li>
37         [% END %]
38         [% IF ( rentalcharge ) %]<li><span class="label">Rental charge:</span>[% rentalcharge | $Price %]&nbsp;</li>[% END %]
39         [% IF ( rentalcharge_daily ) %]<li><span class="label">Daily rental charge:</span>[% rentalcharge_daily | $Price %]&nbsp;</li>[% END %]
40         [% IF ( rentalcharge_hourly ) %]<li><span class="label">Hourly rental charge:</span>[% rentalcharge_hourly | $Price %]&nbsp;</li>[% END %]
41         <li><span class="label">ISBN:</span> [% isbn | html %]&nbsp;</li>
42         <li><span class="label">Publisher:</span>[% place | html %] [% publishercode | html %] [% publicationyear | html %]&nbsp;</li>
43         [% IF ( volumeddesc ) %]<li><span class="label">Volume:</span> [% volumeddesc | html %]</li>[% END %]
44         <li><span class="label">Physical details:</span> [% pages | html %] [% illus | html %] [% size | html %]&nbsp;</li>
45         [% IF ( bnotes ) %]<li><span class="label">Notes:</span> [% bnotes | html %]</li>[% END %]
46         <li><span class="label">No. of items:</span> [% count | html %]&nbsp;[% IF ( hiddencount ) %]total ([% showncount | html %] shown / [% hiddencount | html %] hidden) 
47 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblionumber | uri %]&amp;showallitems=1">Show all items</a>[% END %]</li>
48     </ol>
49     </div>
50
51     <br clear="all" />
52     [% IF ( ONLY_ONE ) %]
53         <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>
54     [% END %]
55
56     [% FOREACH ITEM_DAT IN ITEM_DATA %]
57         <h3 id="item[% ITEM_DAT.itemnumber | html %]">Barcode [% ITEM_DAT.barcode | html %]  [% IF ( ITEM_DAT.notforloantext ) %][% ITEM_DAT.notforloantext | html %] [% END %]</h3>
58         <div class="listgroup"><h4>Item information [% IF ( CAN_user_editcatalogue_edit_catalogue ) %][% UNLESS ( ITEM_DAT.nomod ) %]
59          [% IF ( CAN_user_editcatalogue_edit_items ) %]
60             <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>
61          [% END %]
62          [% END %][% END %]</h4>
63             <div class="rows">
64             <ol class="bibliodetails">
65             <li><span class="label">Home library:</span> [% Branches.GetName( ITEM_DAT.homebranch ) | html %]&nbsp;</li>
66             [% IF ( item_level_itypes ) %]
67             <li><span class="label">Item type:</span> [% ITEM_DAT.itype | html %]&nbsp;</li>
68             [% END %]
69             [% IF ( ITEM_DAT.collection ) %]<li><span class="label">Collection:</span> [% ITEM_DAT.collection | html %]</li> [% END %]
70             <li><span class="label">Item callnumber:</span> [% ITEM_DAT.itemcallnumber | html %]&nbsp;</li>
71             [% IF ( ITEM_DAT.displaycopy ) %]<li><span class="label">Copy number:</span> [% ITEM_DAT.copyvol | html %]&nbsp;</li> [% END %]
72             [% IF ( ITEM_DAT.replacementprice ) %]<li><span class="label">Replacement price:</span> [% ITEM_DAT.replacementprice | $Price %]&nbsp;</li> [% END %]
73             [% IF ITEM_DAT.materials %]<li><span class="label">Materials specified:</span> [% ITEM_DAT.materials | html %] </li> [% END %]
74             </ol></div></div>
75            <div class="listgroup"><h4>Statuses [% IF ( ITEM_DAT.status_advisory ) %](
76                 [% IF ( ITEM_DAT.notforloantext ) %][% ITEM_DAT.notforloantext | html %] [% END %]
77                 [% IF ( ITEM_DAT.itemlost ) %]Lost[% END %]
78                 [% IF ( ITEM_DAT.damaged ) %]Damaged[% END %]
79                 [% IF ( ITEM_DAT.withdrawn ) %]Withdrawn[% END %]
80             )[% END %]</h4>
81
82             <span class="rows">
83             <ol class="bibliodetails">
84             <li><span class="label">Current location:</span> [% Branches.GetName( ITEM_DAT.holdingbranch ) | html %]&nbsp;</li>
85             <li><span class="label">Checkout status:</span>
86             [% IF ( ITEM_DAT.issue ) %]Checked out to
87                 [% INCLUDE 'patron-title.inc' patron => ITEM_DAT.patron hide_patron_infos_if_needed=1 %]
88                 [% IF ( ITEM_DAT.lastreneweddate ) %]
89                     Last renewed [% ITEM_DAT.lastreneweddate | $KohaDates %],
90                 [% END %]
91                 [% IF ( ITEM_DAT.datedue ) %]
92                     Due back on [% ITEM_DAT.datedue | $KohaDates %]
93                 [% ELSE %]
94                     Not checked out
95                 [% END %]
96             [% END %]
97             &nbsp;</li>
98             <li><span class="label">Current renewals:</span> [% ITEM_DAT.renewals | html %]&nbsp;</li>
99             [% IF itemlostloop %]
100                 <li><span class="label">Lost status:</span>
101                     [% IF ( CAN_user_circulate ) %]
102                         [% SET ClaimReturnedLostValue = Koha.Preference('ClaimReturnedLostValue') %]
103                         <form action="updateitem.pl" method="post">
104                             <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
105                             <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
106                             <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
107                             <select name="itemlost">
108                                 <option value="">Choose</option>
109                                 [% FOREACH itemlostloo IN itemlostloop %]
110                                     [% IF ClaimReturnedLostValue && !ITEM_DAT.itemlost && itemlostloo.authorised_value == ClaimReturnedLostValue #Filter claims returned status from pulldown %]
111                                         [% SET add_claims_returned_tip = itemlostloo.lib %]
112                                         <option value="[% itemlostloo.authorised_value | html %]" disabled="disabled">[% itemlostloo.lib | html %]</option>
113                                     [% ELSIF itemlostloo.authorised_value == ITEM_DAT.itemlost %]
114                                         <option value="[% itemlostloo.authorised_value | html %]" selected="selected">[% itemlostloo.lib | html %]</option>
115                                     [% ELSE %]
116                                         <option value="[% itemlostloo.authorised_value | html %]">[% itemlostloo.lib | html %]</option>
117                                     [% END %]
118                                 [% END %]
119                             </select>
120                             <input type="hidden" name="withdrawn" value="[% ITEM_DAT.withdrawn | html %]" />
121                             <input type="hidden" name="damaged" value="[% ITEM_DAT.damaged | html %]" />
122
123                             [% IF add_claims_returned_tip %]
124                                 <i class="fa fa-question-circle" data-toggle="tooltip"
125                                    title="The value '[% add_claims_returned_tip | html %]' cannot be selected. Return claims must be processed from the patron details page."
126                                    data-placement="right"></i>
127                             [% END %]
128
129                             [% IF ClaimReturnedLostValue && ITEM_DAT.itemlost == ClaimReturnedLostValue %]
130                                 <input type="submit" name="submit" class="submit" value="Set status" disabled="disabled"/>
131                                 <p class="help-block">Item has been claimed as returned.</p>
132                             [% ELSE %]
133                                 <input type="hidden" name="op" value="set_lost" />
134                                 <input type="submit" name="submit" class="submit" value="Set status" />
135                             [% END %]
136                         </form>
137                     [% ELSE %]
138                         [% FOREACH itemlostloo IN itemlostloop %]
139                             [% IF ( itemlostloo.selected ) %]
140                                 [% itemlostloo.lib | html %]
141                             [% END %]
142                         [% END %]
143                         &nbsp;
144                     [% END %]
145                 </li>
146                 [% IF ITEM_DAT.itemlost != "" && ITEM_DAT.itemlost_on %]
147                     <li><span class="label">Lost on:</span>[% ITEM_DAT.itemlost_on | $KohaDates %] &nbsp;</li>
148                 [% END %]
149             [% END %]
150             [% IF itemdamagedloop %]
151             <li><span class="label">Damaged status:</span>
152                 [% IF ( CAN_user_circulate ) %]
153                     <form action="updateitem.pl" method="post">
154                     <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
155                     <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
156                     <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
157                     <select name="damaged" >
158                     <option value="">Choose</option>
159             [% FOREACH itemdamagedloo IN itemdamagedloop %]
160                 [% IF itemdamagedloo.authorised_value == ITEM_DAT.damaged %]
161                     <option value="[% itemdamagedloo.authorised_value | html %]" selected="selected">[% itemdamagedloo.lib | html %]</option>
162                 [% ELSE %]
163                     <option value="[% itemdamagedloo.authorised_value | html %]">[% itemdamagedloo.lib | html %]</option>
164                 [% END %]
165             [% END %]
166                     </select>
167                     <input type="hidden" name="op" value="set_damaged" />
168                     <input type="submit" name="submit" class="submit" value="Set status" /></form>
169                 [% ELSE %]
170                     [% FOREACH itemdamagedloo IN itemdamagedloop %]
171                         [% IF ( itemdamagedloo.selected ) %]
172                             [% itemdamagedloo.lib | html %]
173                         [% END %]
174                     [% END %]
175                     &nbsp;
176                 [% END %]
177             </li>
178             [% IF ITEM_DAT.damaged != "" && ITEM_DAT.damaged_on %]
179                 <li><span class="label">Damaged on:</span>[% ITEM_DAT.damaged_on | $KohaDates %] &nbsp;</li>
180             [% END %]
181             [% END %]
182
183             [% IF itemwithdrawnloop %]
184                 <li><span class="label">Withdrawn status:</span>
185                     [% IF ( CAN_user_circulate ) %]
186                         <form action="updateitem.pl" method="post">
187                             <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
188                             <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
189                             <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
190                             <select name="withdrawn" >
191                                 <option value="">Choose</option>
192                                 [% FOREACH itemwithdrawn IN itemwithdrawnloop %]
193                                     [% IF itemwithdrawn.authorised_value == ITEM_DAT.withdrawn %]
194                                         <option value="[% itemwithdrawn.authorised_value | html %]" selected="selected">[% itemwithdrawn.lib | html %]</option>
195                                     [% ELSE %]
196                                         <option value="[% itemwithdrawn.authorised_value | html %]">[% itemwithdrawn.lib | html %]</option>
197                                     [% END %]
198                                 [% END %]
199                             </select>
200                             <input type="hidden" name="op" value="set_withdrawn" />
201                             <input type="submit" name="submit" class="submit" value="Set status" /></form>
202                     [% ELSE %]
203                         [% FOREACH itemwithdrawn IN itemwithdrawnloop %]
204                             [% IF itemwithdrawn.authorised_value == ITEM_DAT.withdrawn %]
205                                 [% itemwithdrawn.lib | html %]
206                             [% END %]
207                         [% END %]
208                         &nbsp;
209                     [% END %]
210                 </li>
211                 [% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %]
212                     <li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] &nbsp;</li>
213                 [% END %]
214             [% END %]
215
216             </ol></div></div>
217             <div class="listgroup"><h4>History</h4>
218             <div class="rows">
219             <ol class="bibliodetails">
220
221             [% IF ITEM_DAT.basketno %]
222                 <li><span class="label">Order date:</span>
223                     [% IF ( CAN_user_acquisition_order_manage ) %]
224                         <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ITEM_DAT.basketno | uri %]">[% ITEM_DAT.orderdate | $KohaDates %]</a>
225                     [% ELSE %]
226                         [% ITEM_DAT.orderdate | $KohaDates %]
227                     [% END %]
228                  </li>
229                 <li><span class="label">Vendor:</span>
230                     [% ITEM_DAT.vendor | html %]
231                 </li>
232             [% END %]
233
234             [% IF ITEM_DAT.dateaccessioned %]
235                 <li><span class="label">Accession date:</span>
236                     [% IF ( CAN_user_acquisition_order_receive && ITEM_DAT.invoiceid ) %]
237                         <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% ITEM_DAT.invoiceid | uri %]">[% ITEM_DAT.dateaccessioned | $KohaDates %]</a>
238                     [% ELSE %]
239                         [% ITEM_DAT.dateaccessioned | $KohaDates %]
240                     [% END %]
241                 </li>
242             [% END %]
243             [% IF ( ITEM_DAT.invoicenumber ) %]
244                 <li><span class="label">Invoice number:</span>
245                     [% ITEM_DAT.invoicenumber | html %]
246                 </li>
247             [% END %]
248
249                 <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>
250
251                 <li><span class="label">Last seen:</span>[% IF ( ITEM_DAT.datelastseen ) %][% ITEM_DAT.datelastseen | $KohaDates %] [%END %]&nbsp;</li>
252                 <li><span class="label">Last borrowed:</span>[% IF (ITEM_DAT.datelastborrowed ) %][% ITEM_DAT.datelastborrowed | $KohaDates %][% END %]&nbsp;</li>
253                 [% IF Koha.Preference('StoreLastBorrower') && ITEM_DAT.object.last_returned_by %]
254                     <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>
255                 [% END %]
256                 [% 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 %]
257                 [% 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 %]
258                 [% 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 %]
259                 [% IF ( ITEM_DAT.paidfor ) %]<li><span class="label">Paid for?:</span> [% ITEM_DAT.paidfor | html %]&nbsp;</li>[% END %]
260
261                 [% IF ( ITEM_DAT.enumchron ) %]<li><span class="label">Serial enumeration:</span> [% ITEM_DAT.enumchron | html %]&nbsp;</li>[% END %]
262
263                 <li>
264                     <span class="label">Public note:</span>
265                     [% IF ( CAN_user_editcatalogue_edit_items ) %]
266                     <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
267                         <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
268                         <input type="hidden" name="op" value="set_public_note" />
269                         <textarea name="itemnotes" rows="2" cols="30">[% ITEM_DAT.itemnotes | html %]</textarea><input type="submit" name="submit" class="submit" value="Update" />
270                     </form>
271                     [% ELSE %]
272                         [% ITEM_DAT.itemnotes | html %]
273                         &nbsp;
274                     [% END %]
275                 </li>
276
277                 <li>
278                     <span class="label">Non-public note:</span>
279                     [% IF ( CAN_user_editcatalogue_edit_items ) %]
280                     <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
281                         <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
282                         <input type="hidden" name="op" value="set_non_public_note" />
283                         <textarea name="itemnotes_nonpublic" rows="2" cols="30">[% ITEM_DAT.itemnotes_nonpublic | html %]</textarea><input type="submit" name="submit" class="submit" value="Update" />
284                     </form>
285                     [% ELSE %]
286                         [% ITEM_DAT.itemnotes_nonpublic | html %]
287                         &nbsp;
288                     [% END %]
289                 </li>
290             </ol>
291             </div>
292 </div>
293 [% END %]
294
295 </div>
296
297             </main>
298         </div> <!-- /.col-sm-10.col-sm-push-2 -->
299
300         <div class="col-sm-2 col-sm-pull-10">
301             <aside>
302                 [% INCLUDE 'biblio-view-menu.inc' %]
303             </aside>
304         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
305      </div> <!-- /.row -->
306
307 [% MACRO jsinclude BLOCK %]
308     [% INCLUDE 'catalog-strings.inc' %]
309     [% Asset.js("js/catalog.js") | $raw %]
310     [% INCLUDE 'strings.inc' %]
311     [% Asset.js("js/browser.js") | $raw %]
312     <script>
313         var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
314         browser.show();
315         $( document ).ready(function() {
316             $('[data-toggle="tooltip"]').tooltip();
317         });
318     </script>
319 [% END %]
320 [% INCLUDE 'intranet-bottom.inc' %]