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 <!-- just preserve this --><input type="hidden" name="sort"
10 value="[% CGI.param('sort') | html %]" />
11 <input type="submit" value="[% l('Sort') %]" />
15 <form action="[% ctx.opac_root %]/mylist/move" method="POST">
17 <p class="big-strong">[% l('Temporary List') %]</p>
18 <table cellpadding='0' cellspacing='0' border='0'>
19 <thead id="acct_list_header_anon">
21 <td width="1%" style="padding-left:10px;">
22 <input type="checkbox" onclick="
23 var inputs=document.getElementsByTagName('input');
24 for (i = 0; i < inputs.length; i++) {
25 if (inputs[i].name == 'record' && !inputs[i].disabled) inputs[i].checked = this.checked;}"/>
27 <td width="49%" class="opac-auto-108"><a href="[% mkurl('', {anonsort=>(CGI.param('anonsort') == 'titlesort' ? 'titlesort.descending' : 'titlesort')}) %]">[% l('Title') %]</a></td>
28 <td width="49%" class="opac-auto-108"><a href="[% mkurl('', {anonsort=>(CGI.param('anonsort') == 'authorsort' ? 'authorsort.descending' : 'authorsort')}) %]">[% l('Author(s)') %]</a% l('Author(s)') %]</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 bookbag:') %]">
36 [% FOR bbag IN ctx.bookbags %]]
37 <option value="[% bbag.id %]" class="selector_actions_for_list_inner_option">[% bbag.name | html %]</option>
42 <input type="submit" value="[% l('Go') %]" />
47 [% FOR item IN ctx.mylist;
48 attrs = {marc_xml => ctx.mylist_marc_xml.$item};
49 PROCESS get_marc_attrs args=attrs %]
51 <td class="item_list_padding" style="padding-left: 10px;">
52 <input type="checkbox" name="record" value="[% item %]" />
54 <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>
55 <td class="item_list_padding" style="padding-left: 5px;"><a href="[%-
56 authorquery = attrs.author | replace('[,\.:;]', '');
58 ctx.opac_root _ '/results',
59 {qtype => 'author', query => authorquery},
60 ['page', 'id', 'edit_notes']
62 -%]">[% attrs.author | html %]</a></td>