View | Details | Raw Unified | Return to bug 4869
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl (-27 / +12 lines)
Lines 73-81 function tagAdded() { Link Here
73
}
73
}
74
74
75
$(function() {
75
$(function() {
76
    <!-- TMPL_IF NAME="loggedinusername" -->$("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_('Clear All')+"<\/a>|");
76
    $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_('Clear All')+"<\/a>|");
77
    $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_('Select All')+"<\/a>");<!-- /TMPL_IF -->
77
    $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_('Select All')+"<\/a>");
78
	$("a.print").show();
78
  $("a.print").show();
79
    <!-- TMPL_IF NAME="RequestOnOpac" -->$("#placehold").html("<a href=\"#\" class=\"hold tag_hides\">"+_('Place Hold')+"<\/a>");
79
    <!-- TMPL_IF NAME="RequestOnOpac" -->$("#placehold").html("<a href=\"#\" class=\"hold tag_hides\">"+_('Place Hold')+"<\/a>");
80
	$("a.hold").click(function(){
80
	$("a.hold").click(function(){
81
		 holdSelections();
81
		 holdSelections();
Lines 83-89 $(function() { Link Here
83
	});<!-- /TMPL_IF -->
83
	});<!-- /TMPL_IF -->
84
    $("#listcontents").tablesorter({
84
    $("#listcontents").tablesorter({
85
        widgets : ['zebra'],
85
        widgets : ['zebra'],
86
        <!-- TMPL_IF NAME="manageshelf" -->
87
          <!-- TMPL_IF NAME="authorsort" -->
86
          <!-- TMPL_IF NAME="authorsort" -->
88
          sortList: [[2,0]],
87
          sortList: [[2,0]],
89
          <!-- TMPL_ELSIF NAME="yearsort" -->
88
          <!-- TMPL_ELSIF NAME="yearsort" -->
Lines 92-107 $(function() { Link Here
92
          sortList: [[1,0]],
91
          sortList: [[1,0]],
93
          <!-- /TMPL_IF -->
92
          <!-- /TMPL_IF -->
94
          headers: { 0: { sorter: false },1:{sorter: 'articles'}
93
          headers: { 0: { sorter: false },1:{sorter: 'articles'}
95
        <!-- TMPL_ELSE -->
96
          <!-- TMPL_IF NAME="authorsort" -->
97
          sortList: [[1,0]],
98
          <!-- TMPL_ELSIF NAME="yearsort" -->
99
          sortList: [[2,1]],
100
          <!-- TMPL_ELSE -->
101
          sortList: [[0,0]],
102
          <!-- /TMPL_IF -->
103
          headers: { 0:{sorter:'articles'}
104
        <!-- /TMPL_IF -->
105
        }
94
        }
106
    }); 
95
    }); 
107
    $("#CheckAll").click(function(){
96
    $("#CheckAll").click(function(){
Lines 196-208 $(function() { Link Here
196
            <!-- TMPL_IF NAME="viewshelf" --><!--  Viewing a particular shelf -->
185
            <!-- TMPL_IF NAME="viewshelf" --><!--  Viewing a particular shelf -->
197
              <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <em><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></em></h3>
186
              <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <em><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></em></h3>
198
              <!-- TMPL_IF NAME="itemsloop" -->
187
              <!-- TMPL_IF NAME="itemsloop" -->
199
                  <div id="toolbar" class="list-actions">
188
                  <div id="toolbar" class="list-actions"> <span class="checkall"></span>
200
<!-- TMPL_IF NAME="loggedinusername" -->                    <span class="checkall"></span>
201
                    <span class="clearall"></span>
189
                    <span class="clearall"></span>
202
190
203
<!-- TMPL_IF NAME="RequestOnOpac" -->
191
<!-- TMPL_IF NAME="RequestOnOpac" -->
204
                      <span id="placehold"></span><!-- TMPL_UNLESS NAME="TagsEnabled" --> |<!-- /TMPL_UNLESS -->
192
                      <span id="placehold"></span><!-- TMPL_UNLESS NAME="TagsEnabled" --> |<!-- /TMPL_UNLESS -->
205
<!-- /TMPL_IF -->
193
<!-- /TMPL_IF -->
194
<!-- TMPL_IF NAME="loggedinusername" -->
206
    <!-- TMPL_IF NAME="TagsEnabled" -->
195
    <!-- TMPL_IF NAME="TagsEnabled" -->
207
                    <span id="addtags"></span>               
196
                    <span id="addtags"></span>               
208
                    <span id="tagsel_form" style="display:none">
197
                    <span id="tagsel_form" style="display:none">
Lines 218-225 $(function() { Link Here
218
207
219
<span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->" class="send tag_hides" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false; ">Send List</a></span>
208
<span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->" class="send tag_hides" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false; ">Send List</a></span>
220
209
210
<a class="print tag_hides" href="opac-shelves.pl" onclick="print(); return false;">Print List</a>
221
211
222
                <!-- TMPL_IF NAME="manageshelf" --><a class="editshelf tag_hides" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->&amp;op=modif">Edit List</a>
212
                <!-- TMPL_IF NAME="manageshelf" --> | <a class="editshelf tag_hides" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->&amp;op=modif">Edit List</a>
223
                      <form method="post" action="opac-shelves.pl" class="tag_hides">
213
                      <form method="post" action="opac-shelves.pl" class="tag_hides">
224
                        <input type="hidden" value="1" name="shelves"/>
214
                        <input type="hidden" value="1" name="shelves"/>
225
                    <!-- TMPL_IF NAME="showprivateshelves" -->
215
                    <!-- TMPL_IF NAME="showprivateshelves" -->
Lines 229-248 $(function() { Link Here
229
                         <input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
219
                         <input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
230
                      </form> <!-- /TMPL_IF -->
220
                      </form> <!-- /TMPL_IF -->
231
221
232
		      <a class="print tag_hides" href="opac-shelves.pl" onclick="print(); return false;">Print List</a>
222
233
<!-- TMPL_UNLESS NAME="loggedinusername" -->
234
				| <span><a class="login" href="/cgi-bin/koha/opac-user.pl">Log in</a> to place holds or add tags</span><!-- /TMPL_UNLESS -->
235
                  </div>
223
                  </div>
236
224
237
                <!-- TMPL_IF NAME="manageshelf" -->
238
                  <form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform" class="checkboxed">
225
                  <form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform" class="checkboxed">
226
                <!-- TMPL_IF NAME="manageshelf" -->
239
                    <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
227
                    <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
240
                    <input type="hidden" name="modifyshelfcontents" value="1" />
228
                    <input type="hidden" name="modifyshelfcontents" value="1" />
241
                <!-- /TMPL_IF -->
229
                <!-- /TMPL_IF -->
242
                <!-- TMPL_VAR name='pagination_bar'-->
230
                <!-- TMPL_VAR name='pagination_bar'-->
243
                <table id="listcontents">
231
                <table id="listcontents">
244
                  <thead><tr>
232
                  <thead><tr>
245
                    <!-- TMPL_IF NAME="manageshelf" --><th>&nbsp;</th><!-- /TMPL_IF -->
233
                    <th>&nbsp;</th>
246
                    <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th><!-- /TMPL_UNLESS -->
234
                    <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th><!-- /TMPL_UNLESS -->
247
                    <th>Title</th>
235
                    <th>Title</th>
248
                    <th>Author</th>
236
                    <th>Author</th>
Lines 256-265 $(function() { Link Here
256
                    <!-- TMPL_ELSE -->
244
                    <!-- TMPL_ELSE -->
257
                      <tr>
245
                      <tr>
258
                    <!-- /TMPL_UNLESS -->
246
                    <!-- /TMPL_UNLESS -->
259
                    <!-- TMPL_IF NAME="manageshelf" -->
260
                        <td><input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->"
247
                        <td><input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->"
261
                                   value="<!-- TMPL_VAR NAME="biblionumber">" /></td>
248
                                   value="<!-- TMPL_VAR NAME="biblionumber">" /></td>
262
                    <!-- /TMPL_IF -->
263
                    <!-- TMPL_UNLESS NAME="item-level_itypes" -->
249
                    <!-- TMPL_UNLESS NAME="item-level_itypes" -->
264
                        <td>
250
                        <td>
265
                          <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" /><!-- TMPL_VAR NAME="description" -->
251
                          <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" /><!-- TMPL_VAR NAME="description" -->
Lines 312-319 $(function() { Link Here
312
                  <input type="hidden" name="shelves" value="1" />
298
                  <input type="hidden" name="shelves" value="1" />
313
                  <input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" />
299
                  <input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" />
314
              <!-- /TMPL_IF -->
300
              <!-- /TMPL_IF -->
315
                </form>
316
            <!-- /TMPL_IF -->
301
            <!-- /TMPL_IF -->
302
                </form>
317
303
318
            
304
            
319
            <!-- TMPL_IF NAME="edit" -->
305
            <!-- TMPL_IF NAME="edit" -->
Lines 423-429 $(function() { Link Here
423
                    <!-- TMPL_ELSE -->
409
                    <!-- TMPL_ELSE -->
424
                         No Private Lists.
410
                         No Private Lists.
425
                    <!-- /TMPL_IF --><!-- /shelveslooppriv -->
411
                    <!-- /TMPL_IF --><!-- /shelveslooppriv -->
426
                  <!-- /TMPL_IF --><! -- /showprivateshelves -->
412
                  <!-- /TMPL_IF --><!-- /showprivateshelves -->
427
                  <!-- TMPL_ELSE --><!-- /loggedinusername -->
413
                  <!-- TMPL_ELSE --><!-- /loggedinusername -->
428
                      <div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
414
                      <div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
429
                  <!-- /TMPL_IF --><!-- /loggedinusername -->
415
                  <!-- /TMPL_IF --><!-- /loggedinusername -->
430
- 

Return to bug 4869