Foundational work for temporary/anon lists and per-user lists (bookbags)
[evergreen-equinox.git] / Open-ILS / web / templates / default / opac / myopac / lists.tt2
1 [%  PROCESS "default/opac/parts/header.tt2";
2     PROCESS "default/opac/parts/marc_misc.tt2";
3     WRAPPER "default/opac/parts/base.tt2" +
4         "default/opac/parts/myopac/base.tt2";
5     myopac_page = "lists"  %]
6 <div id='myopac_bookbag_div' style="padding:5px;">
7     <!-- <div class="header_middle">
8         <span id="acct_holds_header" style="float:left;">[% l('My Lists') %]</span>
9         <span style="float:right;"><a class="hide_me" href="#">[% l('Export List') %]</a></span>
10     </div>
11     <div style="float:right;width:85px;">
12         <div style="position:absolute">
13             <div style="position:relative;top:13px;">
14                 <a href="#" style="position:relative;top:-3px;left:-5px;"><img alt="[% l('Saving Help') %]" 
15                     src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
16                 <a href="#"><img alt="[% l('Save') %]" src="[% ctx.media_prefix %]/images/save-btn.png"/></a>
17             </div>
18         </div>
19     </div> -->
20     <div id="temp_wrapper">
21         [% INCLUDE "default/opac/parts/anon_list.tt2" %]
22         [% IF ctx.bookbags.size %]
23         <div id='acct_lists_prime'>
24             <div id='acct_list_template'>
25                 <div style="width:100%">
26                     <div style="float:left;font-weight:bold;padding-top:5px;" name='list_name'></div>
27
28                     <div style="float:left;padding:5px 0px 0px 10px;">
29
30                         <a target='_blank' name='share_list_rss' class='hide_me'><img 
31                             alt="[% l('RSS Feed') %]" border="0" src="[% ctx.media_prefix %]/images/small-rss.png"
32                             title="[% l('You are sharing this list') %]"/></a>
33                     </div>
34                     <div style="float:left;padding:5px 0px 0px 10px;">
35                         <a href="#" name="share_list_link">[% l('Share') %]</a>
36                     </div>
37                     <div style="float:left;padding:5px 0px 0px 10px;">
38                         <a href="#" name="remove_list">[% l('Remove') %]</a>
39                     </div>
40                     <div class="clear-both pad-bottom-five"></div>
41                 </div>
42                 <table id="acct_list_header" cellpadding='0' cellspacing='0' border='0'>
43                     <tr>
44                         <td width="1%" style="padding-left:10px;">
45                             <input type="checkbox" id="check_all_list" />
46                         </td>
47                         <td width="98%" style="padding-left:5px;">Title</td>
48                         <td width="1%">
49                             <select class="opac-auto-179" name="list_actions">
50                                 <option value="0">[% l('-- Actions for this list --') %]</option>
51                                 <option value="hold">[% l('Place Hold') %]</option>
52                                 <option value="remove">[% l('Remove Items') %]</option>
53                             </select>
54                         </td>
55                     </tr>
56                 </table>
57                 <table cellpadding='0' cellspacing='5' border='0'
58                     width='91%' style='margin-left:5px;margin-top:5px;'>
59                     <tbody name='list_tbody'></tbody>
60                 </table>
61                 <br /><br />
62             </div>
63         </div>
64         [% END %]
65     </div>
66     <div id='myopac_delete_bookbag_warn' class='hide_me'>
67         [% l("This will remove the selected bookbag and all items contained within the bookbag.  Are you sure you wish to continue?") %]
68     </div>
69     <div style='text-align: center; font-weight: bold;' 
70         class='hide_me' id='myopac_bookbags_none'>[% l("You have not created any bookbags") %]</div>
71     <table width='100%' class='data_grid data_grid_center hide_me'
72         id='myopac_bookbag_table'>
73         <thead>
74             <tr>
75                 <td>[% l("Name") %]</td>
76                 <td>[% l("# Items") %]</td>
77                 <td>[% l("Shared") %]</td>
78                 <td>[% l("Share / Hide") %]</td>
79                 <td>[% l("Delete this bookbag?") %]</td>
80             </tr>
81         </thead>
82         <tbody id='myopac_bookbag_tbody'>
83             <tr>
84                 <td>
85                     <a href='#' class='classic_link' name='myopac_expand_bookbag'> </a>
86                 </td>
87                 <td>
88                     <span name='myopac_bookbag_item_count'> </span>
89                     <span>[% l("Items") %]</span>
90                 </td>
91                 <td>
92                     <span name='myopac_bb_published_no' class='hide_me'>[% l("No") %]</span>
93                     <span name='myopac_bb_published_yes' class='hide_me'>[% l("Yes") %]</span>
94                     <a class='classic_link hide_me'>[% l("(View)") %]</a>
95
96                     <a class='unadorned_link hide_me'><img 
97                         alt="[% l('RSS Feed') %]" border="0"
98                         src="[% ctx.media_prefix %]/images/small-rss.png" title="[% l("ATOM Feed") %]" />
99                     </a>
100                 </td>
101                 <td>
102                     <a class='classic_link hide_me'>[% l("Hide") %]</a>
103                     <a class='classic_link hide_me'>[% l("Share this Bookbag") %]</a>
104                 </td>
105                 <td>
106                     <a class='classic_link' href='#'>[% l("Delete") %]</a>
107                 </td>
108             </tr>
109         </tbody>
110     </table>
111     <div style='width: 99%; text-align: center'>
112         <b id='myopac_bookbag_items_name'> </b>
113     </div>
114     <div class='hide_me'
115         style='width:100%; text-align:center; font-weight:700; margin-top:10px;'
116         id='myopac_bookbag_no_items'>
117         [% l("The selected bookbag contains no items...") %]
118     </div>
119     <table width='100%' class='hide_me data_grid data_grid_center'
120         id='myopac_bookbag_items_table'>
121         <thead> 
122             <tr>
123                 <td>[% l("Title") %]</td>
124                 <td>[% l("Authors") %]</td>
125                 <td>[% l("Remove this item?") %]</td>
126             </tr> 
127         </thead>
128         <tbody id='myopac_bookbag_items_tbody'>
129             <tr id='myopac_bookbag_items_row'>
130                 <td>
131                     <a name='myopac_bookbag_items_title' class='classic_link'> </a>
132                 </td>
133                 <td name='myopac_bookbag_items_author'></td>
134                 <td>
135                     <a name='myopac_bookbag_items_remove' class='classic_link'>[% l("remove") %]</a>
136                 </td>    
137             </tr>
138         </tbody>
139     </table>
140     <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>
141     <span id='myopac_remove_bb_item_confirm' class='hide_me'>
142         [% l("Are you sure you wish to remove this bookbag item?") %]
143     </span>
144     <span id='myopac_make_published_confirm' class='hide_me'>
145         [% 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?") %]
146     </span>
147     <span id='myopac_make_unpublished_confirm' class='hide_me'>
148         [% l("Are you sure you wish to hide this bookbag?") %]
149     </span>
150     <span id='myopac_bb_update_success' class='hide_me'>
151         [% l("The Bookbag was successfully updated.") %]
152     </span>
153     <span id='bb_create_warning' class='hide_me'>
154         [% 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.") %]
155     </span>
156     <span id='myopac_bb_what_are' class='hide_me'>
157         [% l("Bookbags are...") %]
158     </span>
159     <span class='hide_me' id='bb_update_success'>
160         [% l("Bookbag successfully updated") %]
161     </span>
162 </div>
163 <div style="margin-top: 6px;margin-left:20px;width:250px;padding:5px;" id="mylist_div">
164
165     <!-- new list creation -->
166     <div style="padding-bottom: 7px;">
167         <h2 style="font-weight:normal;">[% l('Create new list') %]</h2>
168         [% l('Enter the name of the new list:') %]<br/>
169         <input type="text" id="mylist_new" />
170     </div>
171
172     <table cellpadding="0" cellspacing="10" border="0">
173         <tr>
174             <td>
175                 [% l('Share this list?') %]
176                 <a href="#"><img alt="[% l('Sharing Help') %]"
177                     src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
178             </td>
179             <td>
180                 <input type="radio" value="0" name="shareList" checked="checked" />[% l('No') %]
181                 <br/>
182                 <input type="radio" value="1" name="shareList"/>[% l('Yes') %]
183             </td>
184         </tr>
185     </table>
186     <a href="#"><img alt="[% l('Submit') %]" src="[% ctx.media_prefix %]/images/btnSubmit.png"/></a>
187     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
188     <a href="#"><img alt="[% l('Cancel') %]" src="[% ctx.media_prefix %]/images/btnCancel.png" /></a>
189 </div>
190 [% END %]