]> 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-DocBook into doc_consolidati...
[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                 [%- INCLUDE "opac/parts/preserve_params.tt2"; %]
10                 <input type="submit" value="[% l('Sort') %]" />
11             </form>
12         </div>
13
14         <form action="[% mkurl(ctx.opac_root _ '/mylist/move') %]" method="GET">
15         <div>
16             <p class="big-strong">[% l('Temporary List') %]</p>
17             <table cellpadding='0' cellspacing='0' border='0'>
18                 <thead id="acct_list_header_anon">
19                     <tr>
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;}"/>
25                         </td>
26                         <td width="49%" class="opac-auto-108"><a href="[% mkurl('', {anonsort=>(CGI.param('anonsort') == 'titlesort' ? 'titlesort.descending' : 'titlesort')}) %]">[% l('Title') %]</a></td>
27                         <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>
28                         <td width="1%" class="nowrap">
29                             <select name="action">
30                                 <option>[% l('-- Actions for these items --') %]</option>
31                                 <option value="place_hold">[% l('Place hold') %]</option>
32                                 <option value="delete">[% l('Remove from list') %]</option>
33                                 [% IF ctx.user AND ctx.bookbags.size %]
34                                 <optgroup label="[% l('Move selected items to bookbag:') %]">
35                                     [% FOR bbag IN ctx.bookbags %]]
36                                     <option value="[% bbag.id %]" class="selector_actions_for_list_inner_option">[% bbag.name | html %]</option>
37                                     [% END %]
38                                 </optgroup>
39                                 [% END %]
40                             </select>
41                             [%- INCLUDE "opac/parts/preserve_params.tt2"; %]
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 %]