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