|
Lines 2-8
Link Here
|
| 2 |
[% USE Koha %] |
2 |
[% USE Koha %] |
| 3 |
[% USE KohaDates %] |
3 |
[% USE KohaDates %] |
| 4 |
[% SET PRIVATE = 1 %] |
4 |
[% SET PRIVATE = 1 %] |
| 5 |
[% SET PUBLIC = 2 %] |
5 |
[% SET PUBLIC = 2 %] |
|
|
6 |
[% SET STAFF = 3 %] |
| 6 |
[% SET footerjs = 1 %] |
7 |
[% SET footerjs = 1 %] |
| 7 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
| 8 |
<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> |
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> |
|
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 %]">Public lists</a> |
60 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PUBLIC %]">Public lists</a> |
|
Lines 297-302
Link Here
|
| 297 |
[% ELSE %] |
304 |
[% ELSE %] |
| 298 |
<option value="1">Private</option> |
305 |
<option value="1">Private</option> |
| 299 |
[% END %] |
306 |
[% END %] |
|
|
307 |
|
| 308 |
[% IF shelf.is_staff %] |
| 309 |
<option value="3" selected="selected">Staff only</option> |
| 310 |
[% ELSE %] |
| 311 |
<option value="3">Staff only</option> |
| 312 |
[% END %] |
| 313 |
|
| 300 |
[% IF shelf.is_public %] |
314 |
[% IF shelf.is_public %] |
| 301 |
<option value="2" selected="selected">Public</option> |
315 |
<option value="2" selected="selected">Public</option> |
| 302 |
[% ELSE %] |
316 |
[% ELSE %] |
|
Lines 332-337
Link Here
|
| 332 |
<ul> |
346 |
<ul> |
| 333 |
<li id="privateshelves_tab" class="active"><a href="#tab_content">Your lists</a></li> |
347 |
<li id="privateshelves_tab" class="active"><a href="#tab_content">Your lists</a></li> |
| 334 |
<li id="publicshelves_tab" class="active"><a href="#tab_content">Public lists</a></li> |
348 |
<li id="publicshelves_tab" class="active"><a href="#tab_content">Public lists</a></li> |
|
|
349 |
[% IF can_manage_lists %] |
| 350 |
<li id="staffshelves_tab" class="active"><a href="#tab_content">[% CAN_user_lists %] Staff lists</a></li> |
| 351 |
[% END %] |
| 335 |
</ul> |
352 |
</ul> |
| 336 |
|
353 |
|
| 337 |
<div id="tab_content"> |
354 |
<div id="tab_content"> |
|
Lines 439-444
Link Here
|
| 439 |
$(document).ready(function(){ |
456 |
$(document).ready(function(){ |
| 440 |
[% IF category == PUBLIC %] |
457 |
[% IF category == PUBLIC %] |
| 441 |
var type = [% PUBLIC %]; |
458 |
var type = [% PUBLIC %]; |
|
|
459 |
[% ELSIF category == STAFF %] |
| 460 |
var type = [% STAFF %]; |
| 442 |
[% ELSE %] |
461 |
[% ELSE %] |
| 443 |
var type = [% PRIVATE %]; |
462 |
var type = [% PRIVATE %]; |
| 444 |
[% END %] |
463 |
[% END %] |
|
Lines 498-504
Link Here
|
| 498 |
dtListResults.fnAddFilters("filter", 750); |
517 |
dtListResults.fnAddFilters("filter", 750); |
| 499 |
|
518 |
|
| 500 |
var tabs = $("#tabs").tabs({ |
519 |
var tabs = $("#tabs").tabs({ |
| 501 |
[% IF category == PUBLIC %] |
520 |
[% IF category == STAFF %] |
|
|
521 |
active: 2, |
| 522 |
[% ELSIF category == PUBLIC %] |
| 502 |
active: 1, |
523 |
active: 1, |
| 503 |
[% ELSE %] |
524 |
[% ELSE %] |
| 504 |
active: 0, |
525 |
active: 0, |
|
Lines 511-516
Link Here
|
| 511 |
} else if ( active == 1 ) { |
532 |
} else if ( active == 1 ) { |
| 512 |
type = [% PUBLIC %]; |
533 |
type = [% PUBLIC %]; |
| 513 |
dtListResults.fnDraw(); |
534 |
dtListResults.fnDraw(); |
|
|
535 |
} else if ( active == 2 ) { |
| 536 |
type = [% STAFF %]; |
| 537 |
dtListResults.fnDraw(); |
| 514 |
} |
538 |
} |
| 515 |
} |
539 |
} |
| 516 |
}); |
540 |
}); |