]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/myopac/lists.tt2
Merge branch 'opac-tt-poc' of git+ssh://yeti.esilibrary.com/home/evergreen/evergreen...
[working/Evergreen.git] / Open-ILS / web / templates / default / opac / myopac / lists.tt2
1 [%  PROCESS "default/opac/parts/header.tt2";
2     PROCESS "default/opac/parts/misc_util.tt2";
3     WRAPPER "default/opac/parts/myopac/base.tt2";
4     myopac_page = "lists"  %]
5 <div id='myopac_bookbag_div' style="padding:5px;">
6     <!-- <div class="header_middle">
7         <span id="acct_holds_header" style="float:left;">[% l('My Lists') %]</span>
8         <span style="float:right;"><a class="hide_me" href="#">[% l('Export List') %]</a></span>
9     </div>
10     <div style="float:right;width:85px;">
11         <div style="position:absolute">
12             <div style="position:relative;top:13px;">
13                 <a href="#" style="position:relative;top:-3px;left:-5px;"><img alt="[% l('Saving Help') %]" 
14                     src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
15                 <a href="#"><img alt="[% l('Save') %]" src="[% ctx.media_prefix %]/images/save-btn.png"/></a>
16             </div>
17         </div>
18     </div> -->
19     <div id="temp_wrapper">
20 <!-- new list creation -->
21 <form action="[% ctx.opac_root %]/myopac/list/update" method="POST" id="create_form">
22     <h2>[% l('Create new list') %]</h2><a name="createnewlist"></a>
23 <table cellpadding="0" border="0" id="list_create_table">
24     <tr>
25         <td>
26             <label for="list_create_name">[% l('Enter the name of the new list:') %]</label>
27             <input id="list_create_name" type="text" name="name" />
28             <input type="hidden" name="action" value="create" />
29         </td>
30         <td>
31             <label for="list_create_shared">[% l('Share this list?') %]</label>
32             <select name="shared" id="list_create_shared">
33                 <option value="0">[% l('No') %]
34                 <option value="1">[% l('Yes') %]
35             </select>
36             <a href="javascript:void(0);" onclick="alert(document.getElementById('bb_publish_text').innerHTML);"><img alt="[% l('Sharing Help') %]"
37                 src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
38         </td>
39         <td class="list-create-table-buttons">
40             <input type="image" alt="[% l('Submit') %]" src="[% ctx.media_prefix %]/images/btnSubmit.png"/>
41             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
42             <a href="javascript:void(0);"
43                 onclick="document.getElementById('create_form').reset(); return false"><img
44                 alt="[% l('Cancel') %]"
45                 src="[% ctx.media_prefix %]/images/btnCancel.png" /></a>
46         </td>
47     </tr>
48 </table>
49             </form>
50         [% INCLUDE "default/opac/parts/anon_list.tt2" %]
51         [% IF ctx.bookbags.size %]
52         <div id='acct_lists_prime'>
53             [% FOR bbag IN ctx.bookbags %]
54             <div id='acct_list_template'>
55                 <div style="width:100%">
56                     <form action="[% ctx.opac_root %]/myopac/list/update"
57                         method="POST">
58                         <div class="bookbag-share">
59                             <input type="hidden" name="list" value="[% bbag.id %]" />
60                             [% IF bbag.pub != 't' %]
61                             <input type="hidden" name="action" value="show" />
62                             <input type="submit" value="[% l('Share') %]" />
63                             [% ELSE %]
64                             <input type="hidden" name="action" value="hide" />
65                             <input type="submit" value="[% l('Hide') %]" />
66                             [% END %]
67                         </div>
68                     </form>
69                     <form action="[% ctx.opac_root %]/myopac/list/update"
70                         method="POST">
71                         <div class="bookbag-controls">
72                             <input type="hidden" name="list" value="[% bbag.id %]" />
73                             <input type="hidden" name="action" value="delete" />
74                             <input type="submit" value="[% l('Delete List') %]" />
75                         </div>
76                     </form>
77                     <div class="bookbag-controls"><big><strong>[% bbag.name %]</strong></big></div>
78                     <div class="bookbag-controls">
79                         [% IF bbag.pub == 't'; %]
80                         <a target='_blank' href='/opac/extras/feed/bookbag/rss2-full/[% bbag.id %]'><img
81                             alt="[% l('RSS Feed') %]" border="0"
82                             src="[% ctx.media_prefix %]/images/small-rss.png"/></a>
83                         [% END %]
84                     </div>
85                     <div class="clear-both pad-bottom-five"></div>
86                 </div>
87                 <form action="[% ctx.opac_root %]/myopac/list/update"
88                     method="POST">
89                 <input type="hidden" name="list" value="[% bbag.id %]" />
90                 <table cellpadding='0' cellspacing='0' border='0'>
91                     <thead id="acct_list_header">
92                         <tr>
93                             <td width="1%" style="padding-left: 10px;">
94                                 <input type="checkbox" />
95                             </td>
96                             <td width="49%" style="padding-left: 5px;">[% l('Title') %]</td>
97                             <td width="49%">[% l('Author(s)') %]</td>
98                             <td width="1%" class="nowrap">
99                                 <select class="opac-auto-179" name="action">
100                                     <option>[% l('-- Actions for this list --') %]</option>
101                                     <!-- XXX not ready yet<option value="hold">[% l('Place Hold') %]</option> -->
102                                     <option value="del_item">[% l('Remove Items') %]</option>
103                                 </select>
104                                 <input type="submit" value="[% l('Go') %]" />
105                             </td>
106                         </tr>
107                     </thead>
108                     <tbody>
109                         [% UNLESS bbag.items.size %]
110                         <tr><td colspan="4" class="opac-auto-171 opac-auto-097">
111                             [% l("This list contains no items.") %]
112                         </td></tr>
113                         [% END %]
114                         [% FOR item IN bbag.items;
115                             rec_id = item.target_biblio_record_entry;
116                             attrs = {marc_xml => ctx.bookbags_marc_xml.$rec_id};
117                             PROCESS get_marc_attrs args=attrs %]
118                         <tr>
119                             <td class="opac-auto-097b" style="padding-left: 10px;"><input type="checkbox" name="del_item" value="[% item.id %]" /></td>
120                             <td class="opac-auto-097b" style="padding-left: 5px;">[% attrs.title %]</td>
121                             <td class="opac-auto-097b">[% attrs.author %]</td>
122                         </tr>
123                         [% END %]
124                     </tbody>
125                 </table>
126                 </form>
127                 <br /><br />
128             </div>
129             [% END %]
130         </div>
131         [% END %]
132     </div>
133     <div id='myopac_delete_bookbag_warn' class='hide_me'>
134         [% l("This will remove the selected bookbag and all items contained within the bookbag.  Are you sure you wish to continue?") %]
135     </div>
136     <div style='text-align: center; font-weight: bold;' 
137         class='hide_me' id='myopac_bookbags_none'>[% l("You have not created any bookbags") %]</div>
138     <div style='width: 99%; text-align: center'>
139         <b id='myopac_bookbag_items_name'> </b>
140     </div>
141     <span id='bb_publish_text' class='hide_me'>[% l("Sharing a Bookbag means that the contents of the Bookbag will be visible to others.  To see the public view of a shared Bookbag, click the \"View\" link in the \"Shared\" column of the Bookbag list at the top of this page.") %]</span>
142     <span id='myopac_remove_bb_item_confirm' class='hide_me'>
143         [% l("Are you sure you wish to remove this bookbag item?") %]
144     </span>
145     <span id='myopac_make_published_confirm' class='hide_me'>
146         [% l("Sharing this bookbag will allow the contents of the bookbag to be seen by others.  Are you sure you wish to share this bookbag?") %]
147     </span>
148     <span id='myopac_make_unpublished_confirm' class='hide_me'>
149         [% l("Are you sure you wish to hide this bookbag?") %]
150     </span>
151     <span id='myopac_bb_update_success' class='hide_me'>
152         [% l("The Bookbag was successfully updated.") %]
153     </span>
154     <span id='bb_create_warning' class='hide_me'>
155         [% l("Warning: Adding items to a bookbag creates a link between you and the items in the database.  The contents of the bookbag are NOT publicly viewable unless the bookbag is shared. However, if you prefer not to have any link between your patron record and a particular item or items, we suggest that you do not place said items in a bookbag or that you avoid using bookbags all together.  Thank you.") %]
156     </span>
157     <span id='myopac_bb_what_are' class='hide_me'>
158         [% l("Bookbags are...") %]
159     </span>
160     <span class='hide_me' id='bb_update_success'>
161         [% l("Bookbag successfully updated") %]
162     </span>
163 </div>
164 [% END %]