Lines 3-9
Link Here
|
3 |
[% USE Koha %] |
3 |
[% USE Koha %] |
4 |
[% USE KohaDates %] |
4 |
[% USE KohaDates %] |
5 |
[% SET PRIVATE = 1 %] |
5 |
[% SET PRIVATE = 1 %] |
6 |
[% SET PUBLIC = 2 %] |
6 |
[% SET PUBLIC = 2 %] |
|
|
7 |
[% SET STAFF = 3 %] |
7 |
[% SET footerjs = 1 %] |
8 |
[% SET footerjs = 1 %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
9 |
[% INCLUDE 'doc-head-open.inc' %] |
9 |
<title>Koha › [% IF op == 'view' %]Lists › Contents of [% shelf.shelfname | html %][% ELSE %]Lists[% END %][% IF op == 'add_form' %] › Create new list[% END %][% IF op == 'edit_form' %] › Edit list [% shelf.shelfname | html %][% END %]</title> |
10 |
<title>Koha › [% IF op == 'view' %]Lists › Contents of [% shelf.shelfname | html %][% ELSE %]Lists[% END %][% IF op == 'add_form' %] › Create new list[% END %][% IF op == 'edit_form' %] › Edit list [% shelf.shelfname | html %][% END %]</title> |
Lines 48-53
Link Here
|
48 |
[% ELSE %] |
49 |
[% ELSE %] |
49 |
Your lists |
50 |
Your lists |
50 |
[% END %] |
51 |
[% END %] |
|
|
52 |
[% ELSIF shelf AND shelf.is_staff %] › |
53 |
[% IF op == 'view' %] |
54 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% STAFF %]">Staff lists</a> |
55 |
[% ELSE %] |
56 |
Public lists |
57 |
[% END %] |
51 |
[% ELSIF shelf AND shelf.is_public %] › |
58 |
[% ELSIF shelf AND shelf.is_public %] › |
52 |
[% IF op == 'view' %] |
59 |
[% IF op == 'view' %] |
53 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PUBLIC | uri %]">Public lists</a> |
60 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PUBLIC | uri %]">Public lists</a> |
Lines 301-306
Link Here
|
301 |
[% ELSE %] |
308 |
[% ELSE %] |
302 |
<option value="1">Private</option> |
309 |
<option value="1">Private</option> |
303 |
[% END %] |
310 |
[% END %] |
|
|
311 |
|
312 |
[% IF shelf.is_staff %] |
313 |
<option value="3" selected="selected">Staff only</option> |
314 |
[% ELSE %] |
315 |
<option value="3">Staff only</option> |
316 |
[% END %] |
317 |
|
304 |
[% IF shelf.is_public %] |
318 |
[% IF shelf.is_public %] |
305 |
<option value="2" selected="selected">Public</option> |
319 |
<option value="2" selected="selected">Public</option> |
306 |
[% ELSE %] |
320 |
[% ELSE %] |
Lines 335-340
Link Here
|
335 |
<ul> |
349 |
<ul> |
336 |
<li id="privateshelves_tab" class="active"><a href="#tab_content">Your lists</a></li> |
350 |
<li id="privateshelves_tab" class="active"><a href="#tab_content">Your lists</a></li> |
337 |
<li id="publicshelves_tab" class="active"><a href="#tab_content">Public lists</a></li> |
351 |
<li id="publicshelves_tab" class="active"><a href="#tab_content">Public lists</a></li> |
|
|
352 |
[% IF can_manage_lists %] |
353 |
<li id="staffshelves_tab" class="active"><a href="#tab_content">[% CAN_user_lists %] Staff lists</a></li> |
354 |
[% END %] |
338 |
</ul> |
355 |
</ul> |
339 |
|
356 |
|
340 |
<div id="tab_content"> |
357 |
<div id="tab_content"> |
Lines 451-456
Link Here
|
451 |
$(document).ready(function(){ |
468 |
$(document).ready(function(){ |
452 |
[% IF category == PUBLIC %] |
469 |
[% IF category == PUBLIC %] |
453 |
var type = [% PUBLIC | html %]; |
470 |
var type = [% PUBLIC | html %]; |
|
|
471 |
[% ELSIF category == STAFF %] |
472 |
var type = [% STAFF %]; |
454 |
[% ELSE %] |
473 |
[% ELSE %] |
455 |
var type = [% PRIVATE | html %]; |
474 |
var type = [% PRIVATE | html %]; |
456 |
[% END %] |
475 |
[% END %] |
Lines 510-516
Link Here
|
510 |
dtListResults.fnAddFilters("filter", 750); |
529 |
dtListResults.fnAddFilters("filter", 750); |
511 |
|
530 |
|
512 |
var tabs = $("#tabs").tabs({ |
531 |
var tabs = $("#tabs").tabs({ |
513 |
[% IF category == PUBLIC %] |
532 |
[% IF category == STAFF %] |
|
|
533 |
active: 2, |
534 |
[% ELSIF category == PUBLIC %] |
514 |
active: 1, |
535 |
active: 1, |
515 |
[% ELSE %] |
536 |
[% ELSE %] |
516 |
active: 0, |
537 |
active: 0, |
Lines 523-528
Link Here
|
523 |
} else if ( active == 1 ) { |
544 |
} else if ( active == 1 ) { |
524 |
type = [% PUBLIC | html %]; |
545 |
type = [% PUBLIC | html %]; |
525 |
dtListResults.fnDraw(); |
546 |
dtListResults.fnDraw(); |
|
|
547 |
} else if ( active == 2 ) { |
548 |
type = [% STAFF %]; |
549 |
dtListResults.fnDraw(); |
526 |
} |
550 |
} |
527 |
} |
551 |
} |
528 |
}); |
552 |
}); |