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 49-54
Link Here
|
49 |
[% ELSE %] |
50 |
[% ELSE %] |
50 |
Your lists |
51 |
Your lists |
51 |
[% END %] |
52 |
[% END %] |
|
|
53 |
[% ELSIF shelf AND shelf.is_staff %] › |
54 |
[% IF op == 'view' %] |
55 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% STAFF %]">Staff lists</a> |
56 |
[% ELSE %] |
57 |
Public lists |
58 |
[% END %] |
52 |
[% ELSIF shelf AND shelf.is_public %] › |
59 |
[% ELSIF shelf AND shelf.is_public %] › |
53 |
[% IF op == 'view' %] |
60 |
[% IF op == 'view' %] |
54 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PUBLIC | html %]">Public lists</a> |
61 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PUBLIC | html %]">Public lists</a> |
Lines 306-311
Link Here
|
306 |
[% ELSE %] |
313 |
[% ELSE %] |
307 |
<option value="1">Private</option> |
314 |
<option value="1">Private</option> |
308 |
[% END %] |
315 |
[% END %] |
|
|
316 |
|
317 |
[% IF shelf.is_staff %] |
318 |
<option value="3" selected="selected">Staff only</option> |
319 |
[% ELSE %] |
320 |
<option value="3">Staff only</option> |
321 |
[% END %] |
322 |
|
309 |
[% IF shelf.is_public %] |
323 |
[% IF shelf.is_public %] |
310 |
<option value="2" selected="selected">Public</option> |
324 |
<option value="2" selected="selected">Public</option> |
311 |
[% ELSE %] |
325 |
[% ELSE %] |
Lines 341-346
Link Here
|
341 |
<ul> |
355 |
<ul> |
342 |
<li id="privateshelves_tab" class="active"><a href="#tab_content">Your lists</a></li> |
356 |
<li id="privateshelves_tab" class="active"><a href="#tab_content">Your lists</a></li> |
343 |
<li id="publicshelves_tab" class="active"><a href="#tab_content">Public lists</a></li> |
357 |
<li id="publicshelves_tab" class="active"><a href="#tab_content">Public lists</a></li> |
|
|
358 |
[% IF can_manage_lists %] |
359 |
<li id="staffshelves_tab" class="active"><a href="#tab_content">[% CAN_user_lists %] Staff lists</a></li> |
360 |
[% END %] |
344 |
</ul> |
361 |
</ul> |
345 |
|
362 |
|
346 |
<div id="tab_content"> |
363 |
<div id="tab_content"> |
Lines 449-454
Link Here
|
449 |
$(document).ready(function(){ |
466 |
$(document).ready(function(){ |
450 |
[% IF category == PUBLIC %] |
467 |
[% IF category == PUBLIC %] |
451 |
var type = [% PUBLIC | html %]; |
468 |
var type = [% PUBLIC | html %]; |
|
|
469 |
[% ELSIF category == STAFF %] |
470 |
var type = [% STAFF %]; |
452 |
[% ELSE %] |
471 |
[% ELSE %] |
453 |
var type = [% PRIVATE | html %]; |
472 |
var type = [% PRIVATE | html %]; |
454 |
[% END %] |
473 |
[% END %] |
Lines 508-514
Link Here
|
508 |
dtListResults.fnAddFilters("filter", 750); |
527 |
dtListResults.fnAddFilters("filter", 750); |
509 |
|
528 |
|
510 |
var tabs = $("#tabs").tabs({ |
529 |
var tabs = $("#tabs").tabs({ |
511 |
[% IF category == PUBLIC %] |
530 |
[% IF category == STAFF %] |
|
|
531 |
active: 2, |
532 |
[% ELSIF category == PUBLIC %] |
512 |
active: 1, |
533 |
active: 1, |
513 |
[% ELSE %] |
534 |
[% ELSE %] |
514 |
active: 0, |
535 |
active: 0, |
Lines 521-526
Link Here
|
521 |
} else if ( active == 1 ) { |
542 |
} else if ( active == 1 ) { |
522 |
type = [% PUBLIC | html %]; |
543 |
type = [% PUBLIC | html %]; |
523 |
dtListResults.fnDraw(); |
544 |
dtListResults.fnDraw(); |
|
|
545 |
} else if ( active == 2 ) { |
546 |
type = [% STAFF %]; |
547 |
dtListResults.fnDraw(); |
524 |
} |
548 |
} |
525 |
} |
549 |
} |
526 |
}); |
550 |
}); |