Bug 24279: Display the tip in the title of the option
[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                                         <option value="[% itemlostloo.authorised_value | html %]" disabled="disabled" title="At least one item is available at this library">[% itemlostloo.lib | html %]</option>
112                                     [% ELSIF itemlostloo.authorised_value == ITEM_DAT.itemlost %]
113                                         <option value="[% itemlostloo.authorised_value | html %]" selected="selected">[% itemlostloo.lib | html %]</option>
114                                     [% ELSE %]
115                                         <option value="[% itemlostloo.authorised_value | html %]">[% itemlostloo.lib | html %]</option>
116                                     [% END %]
117                                 [% END %]
118                             </select>
119                             <input type="hidden" name="withdrawn" value="[% ITEM_DAT.withdrawn | html %]" />
120                             <input type="hidden" name="damaged" value="[% ITEM_DAT.damaged | html %]" />
121
122                             [% IF ClaimReturnedLostValue && ITEM_DAT.itemlost == ClaimReturnedLostValue %]
123                                 <input type="submit" name="submit" class="submit" value="Set status" disabled="disabled"/>
124                                 <p class="help-block">Item has been claimed as returned.</p>
125                             [% ELSE %]
126                                 <input type="hidden" name="op" value="set_lost" />
127                                 <input type="submit" name="submit" class="submit" value="Set status" />
128                             [% END %]
129                         </form>
130                     [% ELSE %]
131                         [% FOREACH itemlostloo IN itemlostloop %]
132                             [% IF ( itemlostloo.selected ) %]
133                                 [% itemlostloo.lib | html %]
134                             [% END %]
135                         [% END %]
136                         &nbsp;
137                     [% END %]
138                 </li>
139                 [% IF ITEM_DAT.itemlost != "" && ITEM_DAT.itemlost_on %]
140                     <li><span class="label">Lost on:</span>[% ITEM_DAT.itemlost_on | $KohaDates %] &nbsp;</li>
141                 [% END %]
142             [% END %]
143             [% IF itemdamagedloop %]
144             <li><span class="label">Damaged status:</span>
145                 [% IF ( CAN_user_circulate ) %]
146                     <form action="updateitem.pl" method="post">
147                     <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
148                     <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
149                     <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
150                     <select name="damaged" >
151                     <option value="">Choose</option>
152             [% FOREACH itemdamagedloo IN itemdamagedloop %]
153                 [% IF itemdamagedloo.authorised_value == ITEM_DAT.damaged %]
154                     <option value="[% itemdamagedloo.authorised_value | html %]" selected="selected">[% itemdamagedloo.lib | html %]</option>
155                 [% ELSE %]
156                     <option value="[% itemdamagedloo.authorised_value | html %]">[% itemdamagedloo.lib | html %]</option>
157                 [% END %]
158             [% END %]
159                     </select>
160                     <input type="hidden" name="op" value="set_damaged" />
161                     <input type="submit" name="submit" class="submit" value="Set status" /></form>
162                 [% ELSE %]
163                     [% FOREACH itemdamagedloo IN itemdamagedloop %]
164                         [% IF ( itemdamagedloo.selected ) %]
165                             [% itemdamagedloo.lib | html %]
166                         [% END %]
167                     [% END %]
168                     &nbsp;
169                 [% END %]
170             </li>
171             [% IF ITEM_DAT.damaged != "" && ITEM_DAT.damaged_on %]
172                 <li><span class="label">Damaged on:</span>[% ITEM_DAT.damaged_on | $KohaDates %] &nbsp;</li>
173             [% END %]
174             [% END %]
175
176             [% IF itemwithdrawnloop %]
177                 <li><span class="label">Withdrawn status:</span>
178                     [% IF ( CAN_user_circulate ) %]
179                         <form action="updateitem.pl" method="post">
180                             <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
181                             <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
182                             <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
183                             <select name="withdrawn" >
184                                 <option value="">Choose</option>
185                                 [% FOREACH itemwithdrawn IN itemwithdrawnloop %]
186                                     [% IF itemwithdrawn.authorised_value == ITEM_DAT.withdrawn %]
187                                         <option value="[% itemwithdrawn.authorised_value | html %]" selected="selected">[% itemwithdrawn.lib | html %]</option>
188                                     [% ELSE %]
189                                         <option value="[% itemwithdrawn.authorised_value | html %]">[% itemwithdrawn.lib | html %]</option>
190                                     [% END %]
191                                 [% END %]
192                             </select>
193                             <input type="hidden" name="op" value="set_withdrawn" />
194                             <input type="submit" name="submit" class="submit" value="Set status" /></form>
195                     [% ELSE %]
196                         [% FOREACH itemwithdrawn IN itemwithdrawnloop %]
197                             [% IF itemwithdrawn.authorised_value == ITEM_DAT.withdrawn %]
198                                 [% itemwithdrawn.lib | html %]
199                             [% END %]
200                         [% END %]
201                         &nbsp;
202                     [% END %]
203                 </li>
204                 [% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %]
205                     <li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] &nbsp;</li>
206                 [% END %]
207             [% END %]
208
209             </ol></div></div>
210             <div class="listgroup"><h4>History</h4>
211             <div class="rows">
212             <ol class="bibliodetails">
213
214             [% IF ITEM_DAT.basketno %]
215                 <li><span class="label">Order date:</span>
216                     [% IF ( CAN_user_acquisition_order_manage ) %]
217                         <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ITEM_DAT.basketno | uri %]">[% ITEM_DAT.orderdate | $KohaDates %]</a>
218                     [% ELSE %]
219                         [% ITEM_DAT.orderdate | $KohaDates %]
220                     [% END %]
221                  </li>
222                 <li><span class="label">Vendor:</span>
223                     [% ITEM_DAT.vendor | html %]
224                 </li>
225             [% END %]
226
227             [% IF ITEM_DAT.dateaccessioned %]
228                 <li><span class="label">Accession date:</span>
229                     [% IF ( CAN_user_acquisition_order_receive && ITEM_DAT.invoiceid ) %]
230                         <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% ITEM_DAT.invoiceid | uri %]">[% ITEM_DAT.dateaccessioned | $KohaDates %]</a>
231                     [% ELSE %]
232                         [% ITEM_DAT.dateaccessioned | $KohaDates %]
233                     [% END %]
234                 </li>
235             [% END %]
236             [% IF ( ITEM_DAT.invoicenumber ) %]
237                 <li><span class="label">Invoice number:</span>
238                     [% ITEM_DAT.invoicenumber | html %]
239                 </li>
240             [% END %]
241
242                 <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>
243
244                 <li><span class="label">Last seen:</span>[% IF ( ITEM_DAT.datelastseen ) %][% ITEM_DAT.datelastseen | $KohaDates %] [%END %]&nbsp;</li>
245                 <li><span class="label">Last borrowed:</span>[% IF (ITEM_DAT.datelastborrowed ) %][% ITEM_DAT.datelastborrowed | $KohaDates %][% END %]&nbsp;</li>
246                 [% IF Koha.Preference('StoreLastBorrower') && ITEM_DAT.object.last_returned_by %]
247                     <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>
248                 [% END %]
249                 [% 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 %]
250                 [% 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 %]
251                 [% 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 %]
252                 [% IF ( ITEM_DAT.paidfor ) %]<li><span class="label">Paid for?:</span> [% ITEM_DAT.paidfor | html %]&nbsp;</li>[% END %]
253
254                 [% IF ( ITEM_DAT.enumchron ) %]<li><span class="label">Serial enumeration:</span> [% ITEM_DAT.enumchron | html %]&nbsp;</li>[% END %]
255
256                 <li>
257                     <span class="label">Public note:</span>
258                     [% IF ( CAN_user_editcatalogue_edit_items ) %]
259                     <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
260                         <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
261                         <input type="hidden" name="op" value="set_public_note" />
262                         <textarea name="itemnotes" rows="2" cols="30">[% ITEM_DAT.itemnotes | html %]</textarea><input type="submit" name="submit" class="submit" value="Update" />
263                     </form>
264                     [% ELSE %]
265                         [% ITEM_DAT.itemnotes | html %]
266                         &nbsp;
267                     [% END %]
268                 </li>
269
270                 <li>
271                     <span class="label">Non-public note:</span>
272                     [% IF ( CAN_user_editcatalogue_edit_items ) %]
273                     <form class="inline" action="updateitem.pl" method="post"><input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
274                         <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /><input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
275                         <input type="hidden" name="op" value="set_non_public_note" />
276                         <textarea name="itemnotes_nonpublic" rows="2" cols="30">[% ITEM_DAT.itemnotes_nonpublic | html %]</textarea><input type="submit" name="submit" class="submit" value="Update" />
277                     </form>
278                     [% ELSE %]
279                         [% ITEM_DAT.itemnotes_nonpublic | html %]
280                         &nbsp;
281                     [% END %]
282                 </li>
283             </ol>
284             </div>
285 </div>
286 [% END %]
287
288 </div>
289
290             </main>
291         </div> <!-- /.col-sm-10.col-sm-push-2 -->
292
293         <div class="col-sm-2 col-sm-pull-10">
294             <aside>
295                 [% INCLUDE 'biblio-view-menu.inc' %]
296             </aside>
297         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
298      </div> <!-- /.row -->
299
300 [% MACRO jsinclude BLOCK %]
301     [% INCLUDE 'catalog-strings.inc' %]
302     [% Asset.js("js/catalog.js") | $raw %]
303     [% INCLUDE 'strings.inc' %]
304     [% Asset.js("js/browser.js") | $raw %]
305     <script>
306         var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
307         browser.show();
308     </script>
309 [% END %]
310 [% INCLUDE 'intranet-bottom.inc' %]