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