]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/parts/anon_list.tt2
Merge branch 'master' of git.evergreen-ils.org:Evergreen into dbs/tpac-non-fixed...
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / anon_list.tt2
1         [% IF ctx.mylist.size %]
2         <div class="bookbag-specific">
3             <form method="GET">
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') %]" />
12             </form>
13         </div>
14
15         <form action="[% ctx.opac_root %]/mylist/move" method="POST">
16         <div>
17             <p class="big-strong">[% l('Temporary List') %]</p>
18             <table cellpadding='0' cellspacing='0' border='0'>
19                 <thead id="acct_list_header_anon">
20                     <tr>
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;}"/>
26                         </td>
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>
38                                     [% END %]
39                                 </optgroup>
40                                 [% END %]
41                             </select>
42                             <input type="submit" value="[% l('Go') %]" />
43                         </td>
44                     </tr>
45                 </thead>
46                 <tbody>
47                     [% FOR item IN ctx.mylist;
48                         attrs = {marc_xml => ctx.mylist_marc_xml.$item};
49                         PROCESS get_marc_attrs args=attrs %]
50                     <tr>
51                         <td class="item_list_padding" style="padding-left: 10px;">
52                             <input type="checkbox" name="record" value="[% item %]" />
53                         </td>
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('[,\.:;]', '');
57                             mkurl(
58                                 ctx.opac_root _ '/results',
59                                 {qtype => 'author', query => authorquery},
60                                 ['page', 'id', 'edit_notes']
61                             )
62                         -%]">[% attrs.author | html %]</a></td>
63                     </tr>
64                     [% END %]
65                 </tbody>
66             </table>
67             <br /><br />
68         </div>
69         </form>
70         [% END %]