1 [% IF ctx.mylist.size %]
2 <div class="bookbag-specific">
4 <label for="anonsort">[% l("Sort list items by: ") %]</label>
5 [% INCLUDE "opac/parts/filtersort.tt2" mode='bookbag'
6 id="anonsort" name="anonsort" value=CGI.param("anonsort") %]
7 <input type="hidden" name="id"
8 value="[% CGI.param('id') | html %]" />
9 [%- INCLUDE "opac/parts/preserve_params.tt2"; %]
10 <input type="submit" value="[% l('Sort') %]" />
14 <form action="[% mkurl(ctx.opac_root _ '/mylist/move') %]" method="get">
16 <p class="big-strong">[% l('Temporary List') %]</p>
17 <table class="table_no_border_space table_no_cell_pad table_no_border">
18 <thead id="acct_list_header_anon">
20 <td width="1%" style="padding-left:10px;">
21 <input type="checkbox" onclick="
22 var inputs=document.getElementsByTagName('input');
23 for (i = 0; i < inputs.length; i++) {
24 if (inputs[i].name == 'record' && !inputs[i].disabled) inputs[i].checked = this.checked;}"/>
26 <td width="40%" class="opac-auto-108"><a href="[% mkurl('', {anonsort=>(CGI.param('anonsort') == 'titlesort' ? 'titlesort.descending' : 'titlesort')}) %]">[% l('Title') %]</a></td>
27 <td width="40%" class="opac-auto-108"><a href="[% mkurl('', {anonsort=>(CGI.param('anonsort') == 'authorsort' ? 'authorsort.descending' : 'authorsort')}) %]">[% l('Author(s)') %]</a></td>
28 <td width='18%'>[% l('Local Call Number') %]</td>
29 <td width="1%" class="nowrap">
30 <select name="action">
31 <option>[% l('-- Actions for these items --') %]</option>
32 <option value="place_hold">[% l('Place hold') %]</option>
33 <option value="delete">[% l('Remove from list') %]</option>
34 [% IF ctx.user AND ctx.bookbags.size %]
35 <optgroup label="[% l('Move selected items to list:') %]">
36 [% FOR bbag IN ctx.bookbags %]]
37 <option value="[% bbag.id %]" class="selector_actions_for_list_inner_option">[% bbag.name | html %]</option>
42 [%- INCLUDE "opac/parts/preserve_params.tt2"; %]
43 <input type="submit" value="[% l('Go') %]" />
48 [% FOR item IN ctx.mylist;
49 attrs = {marc_xml => ctx.mylist_marc_xml.$item};
50 PROCESS get_marc_attrs args=attrs %]
52 <td class="item_list_padding" style="padding-left: 10px;">
53 <input type="checkbox" name="record" value="[% item %]" />
55 <td class="item_list_padding" style="padding-left: 5px;"><a href="[% mkurl(ctx.opac_root _ '/record/' _ item, {}, ['edit_notes', 'id']) %]">[% attrs.title | html %]</a></td>
56 <td class="item_list_padding" style="padding-left: 5px;"><a href="[%-
57 authorquery = attrs.author | replace('[,\.:;]', '');
59 ctx.opac_root _ '/results',
60 {qtype => 'author', query => authorquery},
61 ['page', 'id', 'edit_notes']
63 -%]">[% attrs.author | html %]</a></td>
64 <td class="item_list_padding" style="padding-left: 5px;">
66 copy = attrs.holdings.0;
68 copy_org = ctx.get_aou_by_shortname(copy.owner);
69 FOR ctx_org IN [ctx.pref_ou, ctx.search_ou, ctx.home_ou, ctx.physical_loc];
71 ctx_org = ctx.get_aou(ctx_org);
72 IF ctx.org_within_scope(ctx_org, copy_org, ctx_org.ou_type.depth);
73 l('[_1] ([_2])', copy.label, copy_org.name) | html;