Lines 281-394
Link Here
|
281 |
</div> |
281 |
</div> |
282 |
[% END %] |
282 |
[% END %] |
283 |
|
283 |
|
284 |
<table id="searchresults" class="dataTable"> |
284 |
<div class="page-section"> |
285 |
<thead> |
285 |
<table id="searchresults" class="dataTable"> |
286 |
<tr> |
286 |
<thead> |
287 |
[% IF ( itemsloop ) %] |
287 |
<tr> |
288 |
<th class="checkall"> </th> |
288 |
[% IF ( itemsloop ) %] |
289 |
[% END %] |
289 |
<th class="checkall"> </th> |
290 |
[% UNLESS ( item_level_itypes ) %] |
290 |
[% END %] |
291 |
<th>Item type</th> |
291 |
[% UNLESS ( item_level_itypes ) %] |
292 |
[% END %] |
292 |
<th>Item type</th> |
293 |
[% IF sortfield == 'title' %] |
293 |
[% END %] |
294 |
<th class="sorting_[% direction | html %]"> |
294 |
[% IF sortfield == 'title' %] |
295 |
[% ELSE %] |
295 |
<th class="sorting_[% direction | html %]"> |
296 |
<th class="sorting"> |
|
|
297 |
[% END %] |
298 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=title&direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a> |
299 |
</th> |
300 |
[% IF sortfield == 'author' %] |
301 |
<th class="sorting_[% direction | html %]"> |
302 |
[% ELSE %] |
303 |
<th class="sorting"> |
304 |
[% END %] |
305 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=author&direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a> |
306 |
</th> |
307 |
[% IF sortfield == 'dateadded' %] |
308 |
<th class="sorting_[% direction | html %]"> |
309 |
[% ELSE %] |
310 |
<th class="sorting"> |
311 |
[% END %] |
312 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=dateadded&direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a> |
313 |
</th> |
314 |
[% IF sortfield == 'itemcallnumber' %] |
315 |
<th class="sorting_[% direction | html %]"> |
316 |
[% ELSE %] |
317 |
<th class="sorting"> |
318 |
[% END %] |
319 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=itemcallnumber&direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a> |
320 |
</th> |
321 |
</tr> |
322 |
</thead> |
323 |
[% FOREACH itemsloo IN itemsloop %] |
324 |
<tr> |
325 |
[% IF itemsloop %] |
326 |
<td> |
327 |
<input type="checkbox" class="selection" value="[% itemsloo.biblionumber | html %]" name="biblionumber" /> |
328 |
</td> |
329 |
[% END %] |
330 |
[% UNLESS ( item_level_itypes ) %] |
331 |
<td> |
332 |
[% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %] |
333 |
<img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" /> |
334 |
[% END %] |
335 |
<span class="itypetext">[% itemsloo.description | html %]</span> |
336 |
</td> |
337 |
[% END %] |
338 |
<td> |
339 |
[% IF ( itemsloo.XSLTBloc ) %] |
340 |
[% itemsloo.XSLTBloc | $raw %] |
341 |
[% ELSE %] |
296 |
[% ELSE %] |
342 |
[% INCLUDE 'biblio-title.inc' biblio=itemsloo link = 1 %] |
297 |
<th class="sorting"> |
343 |
</a> |
|
|
344 |
[% END %] |
298 |
[% END %] |
345 |
<p class="hold"> |
299 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=title&direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a> |
346 |
[% IF ( itemsloo.notforloan ) %] |
300 |
</th> |
347 |
<span class="noholdstext">No holds allowed</span> |
301 |
[% IF sortfield == 'author' %] |
348 |
[% ELSE %] |
302 |
<th class="sorting_[% direction | html %]"> |
349 |
[% IF ( itemsloo.ITEM_RESULTS.count ) %] |
303 |
[% ELSE %] |
350 |
<a id="reserve_[% itemsloo.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | html %]">Holds</a> |
304 |
<th class="sorting"> |
351 |
[% IF ( holdfor ) %] |
305 |
[% END %] |
352 |
<span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | uri %]&findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></span> |
306 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=author&direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a> |
353 |
[% END %] |
307 |
</th> |
354 |
[% ELSE %] |
308 |
[% IF sortfield == 'dateadded' %] |
355 |
<span class="noholdstext">No holds allowed</span> |
309 |
<th class="sorting_[% direction | html %]"> |
|
|
310 |
[% ELSE %] |
311 |
<th class="sorting"> |
312 |
[% END %] |
313 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=dateadded&direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a> |
314 |
</th> |
315 |
[% IF sortfield == 'itemcallnumber' %] |
316 |
<th class="sorting_[% direction | html %]"> |
317 |
[% ELSE %] |
318 |
<th class="sorting"> |
319 |
[% END %] |
320 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=itemcallnumber&direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a> |
321 |
</th> |
322 |
</tr> |
323 |
</thead> |
324 |
[% FOREACH itemsloo IN itemsloop %] |
325 |
<tr> |
326 |
[% IF itemsloop %] |
327 |
<td> |
328 |
<input type="checkbox" class="selection" value="[% itemsloo.biblionumber | html %]" name="biblionumber" /> |
329 |
</td> |
330 |
[% END %] |
331 |
[% UNLESS ( item_level_itypes ) %] |
332 |
<td> |
333 |
[% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %] |
334 |
<img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" /> |
356 |
[% END %] |
335 |
[% END %] |
|
|
336 |
<span class="itypetext">[% itemsloo.description | html %]</span> |
337 |
</td> |
338 |
[% END %] |
339 |
<td> |
340 |
[% IF ( itemsloo.XSLTBloc ) %] |
341 |
[% itemsloo.XSLTBloc | $raw %] |
342 |
[% ELSE %] |
343 |
[% INCLUDE 'biblio-title.inc' biblio=itemsloo link = 1 %] |
344 |
</a> |
357 |
[% END %] |
345 |
[% END %] |
358 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
346 |
<p class="hold"> |
359 |
| <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit record</a> |
347 |
[% IF ( itemsloo.notforloan ) %] |
360 |
[% END %] |
348 |
<span class="noholdstext">No holds allowed</span> |
361 |
[% IF ( CAN_user_editcatalogue_edit_items ) %] |
349 |
[% ELSE %] |
362 |
| <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit items</a> |
350 |
[% IF ( itemsloo.ITEM_RESULTS.count ) %] |
363 |
[% END %] |
351 |
<a id="reserve_[% itemsloo.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | html %]">Holds</a> |
364 |
</p> |
352 |
[% IF ( holdfor ) %] |
365 |
</td> |
353 |
<span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | uri %]&findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></span> |
366 |
<td> |
354 |
[% END %] |
367 |
[% itemsloo.author | html %] |
355 |
[% ELSE %] |
368 |
</td> |
356 |
<span class="noholdstext">No holds allowed</span> |
369 |
<td> |
|
|
370 |
[% itemsloo.dateadded | $KohaDates%] |
371 |
</td> |
372 |
<td> |
373 |
<ul> |
374 |
[% FOREACH item IN itemsloo.ITEM_RESULTS %] |
375 |
<li> |
376 |
[% Branches.GetName(item.holdingbranch) | html %] |
377 |
[% IF ( item.location ) %] |
378 |
<span class="shelvingloc"> |
379 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %] |
380 |
</span> |
381 |
[% END %] |
382 |
[% IF ( item.itemcallnumber ) %] |
383 |
[<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% item.itemcallnumber | uri %]%22">[% item.itemcallnumber | html %]</a>] |
384 |
[% END %] |
357 |
[% END %] |
385 |
</li> |
358 |
[% END %] |
386 |
[% END # /FOREACH item %] |
359 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
387 |
</ul> |
360 |
| <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit record</a> |
388 |
</td> |
361 |
[% END %] |
389 |
</tr> |
362 |
[% IF ( CAN_user_editcatalogue_edit_items ) %] |
390 |
[% END #/FOREACH itemsloo %] |
363 |
| <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit items</a> |
391 |
</table> <!-- /#searchresults --> |
364 |
[% END %] |
|
|
365 |
</p> |
366 |
</td> |
367 |
<td> |
368 |
[% itemsloo.author | html %] |
369 |
</td> |
370 |
<td> |
371 |
[% itemsloo.dateadded | $KohaDates%] |
372 |
</td> |
373 |
<td> |
374 |
<ul> |
375 |
[% FOREACH item IN itemsloo.ITEM_RESULTS %] |
376 |
<li> |
377 |
[% Branches.GetName(item.holdingbranch) | html %] |
378 |
[% IF ( item.location ) %] |
379 |
<span class="shelvingloc"> |
380 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %] |
381 |
</span> |
382 |
[% END %] |
383 |
[% IF ( item.itemcallnumber ) %] |
384 |
[<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% item.itemcallnumber | uri %]%22">[% item.itemcallnumber | html %]</a>] |
385 |
[% END %] |
386 |
</li> |
387 |
[% END # /FOREACH item %] |
388 |
</ul> |
389 |
</td> |
390 |
</tr> |
391 |
[% END #/FOREACH itemsloo %] |
392 |
</table> <!-- /#searchresults --> |
393 |
</div> <!-- /.page-section --> |
394 |
|
392 |
<div class="pages">[% pagination_bar | $raw %]</div> |
395 |
<div class="pages">[% pagination_bar | $raw %]</div> |
393 |
</form> |
396 |
</form> |
394 |
[% END # /IF itemsloop %] |
397 |
[% END # /IF itemsloop %] |
395 |
- |
|
|