Lines 1-6
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › [% IF ( viewshelf ) %]Lists › Contents of [% shelfname | html %][% ELSE %]Lists[% END %][% IF ( shelves ) %] › Create new list[% END %][% IF ( edit ) %] › Edit list [% shelfname | html %][% END %]</title> |
2 |
<title>Koha › [% IF ( viewshelf ) %]Lists › Contents of [% shelfname | html %][% ELSE %]Lists[% END %][% IF ( shelves ) %] › Create new list[% END %][% IF ( edit ) %] › Edit list [% shelfname | html %][% END %]</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
4 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
5 |
[% INCLUDE 'datatables.inc' %] |
4 |
[% IF ( viewshelf ) %] |
6 |
[% IF ( viewshelf ) %] |
5 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
7 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
6 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script> |
8 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script> |
Lines 11-16
Link Here
|
11 |
var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); |
13 |
var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); |
12 |
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?"); |
14 |
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?"); |
13 |
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?"); |
15 |
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?"); |
|
|
16 |
|
17 |
[% IF op == 'list' %] |
18 |
$(document).ready(function(){ |
19 |
var type = 1; |
20 |
var dtListResults = $("#listresultst").dataTable($.extend(true, {}, dataTablesDefaults, { |
21 |
'bServerSide': true, |
22 |
'sAjaxSource': "/cgi-bin/koha/svc/virtualshelves/search", |
23 |
'fnServerData': function(sSource, aoData, fnCallback) { |
24 |
aoData.push({ |
25 |
'name': 'type', |
26 |
'value': type, |
27 |
}, |
28 |
{ |
29 |
'name': 'template_path', |
30 |
'value': 'virtualshelves/tables/shelves_results.tt', |
31 |
}); |
32 |
$.ajax({ |
33 |
'dataType': 'json', |
34 |
'type': 'POST', |
35 |
'url': sSource, |
36 |
'data': aoData, |
37 |
'success': function(json){ |
38 |
fnCallback(json); |
39 |
} |
40 |
}); |
41 |
}, |
42 |
'aoColumns':[ |
43 |
{ 'mDataProp': 'dt_type' }, |
44 |
{ 'mDataProp': 'dt_shelfname' }, |
45 |
{ 'mDataProp': 'dt_count' }, |
46 |
{ 'mDataProp': 'dt_owner' }, |
47 |
{ 'mDataProp': 'dt_sortby' }, |
48 |
{ 'mDataProp': 'dt_action', 'bSortable': false } |
49 |
], |
50 |
"aoColumnDefs": [ |
51 |
{ "bVisible": false, "aTargets": [ 'NoVisible' ] } |
52 |
], |
53 |
'bAutoWidth': false, |
54 |
'sPaginationType': 'full_numbers', |
55 |
"bProcessing": true, |
56 |
'bFilter': false |
57 |
})); |
58 |
|
59 |
dtListResults.fnAddFilters("filter", 750); |
60 |
|
61 |
var tabs = $("#tabs").tabs({ |
62 |
activate: function(e, ui) { |
63 |
var active = tabs.tabs("option", "active" ); |
64 |
if ( active == 0 ) { |
65 |
type = 1; // private |
66 |
dtListResults.fnDraw(); |
67 |
} else if ( active == 1 ) { |
68 |
type = 2; // public |
69 |
dtListResults.fnDraw(); |
70 |
} |
71 |
} |
72 |
}); |
73 |
}); |
74 |
[% END %] |
75 |
|
14 |
[% IF ( viewshelf ) %] |
76 |
[% IF ( viewshelf ) %] |
15 |
$(document).ready(function(){ |
77 |
$(document).ready(function(){ |
16 |
[% IF ( itemsloop ) %]$('#searchheader').fixFloat();[% END %] |
78 |
[% IF ( itemsloop ) %]$('#searchheader').fixFloat();[% END %] |
Lines 514-636
function placeHold () {
Link Here
|
514 |
</div> |
576 |
</div> |
515 |
[% END %]<!-- /seflag --> |
577 |
[% END %]<!-- /seflag --> |
516 |
|
578 |
|
517 |
[% UNLESS ( vseflag ) %] |
579 |
[% IF op == 'list' %] |
518 |
<h2>Lists</h2> |
580 |
<h2>Lists</h2> |
519 |
<div class="statictabs"> |
581 |
<div id="tabs" class="toptabs"> |
520 |
<ul> |
582 |
<ul> |
521 |
[% IF ( showprivateshelves ) %] |
583 |
<li id="privateshelves_tab" class="active"><a href="#tab_content">Your lists</a></li> |
522 |
<li id="privateshelves_tab" class="active"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a></li> |
584 |
<li id="publicshelves_tab" class="active"><a href="#tab_content">Public lists</a></li> |
523 |
[% ELSE %] |
|
|
524 |
<li id="privateshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a></li> |
525 |
[% END %] |
526 |
[% IF ( showpublicshelves ) %] |
527 |
<li id="publicshelves_tab" class="active"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a></li> |
528 |
[% ELSE %] |
529 |
<li id="publicshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a></li> |
530 |
[% END %] |
531 |
</ul> |
585 |
</ul> |
532 |
[% IF ( showprivateshelves ) %] |
586 |
|
533 |
<div id="privateshelves" class="tabs-container" style="display:block;"> |
587 |
<div id="tab_content"> |
534 |
[% ELSE %] |
588 |
<table id="listresultst"> |
535 |
<div id="privateshelves" class="tabs-container" style="display:none;"> |
589 |
<thead> |
536 |
[% END %] |
590 |
<tr> |
537 |
[% IF ( shelveslooppriv ) %] |
591 |
<th class="NoVisible">Type</th> |
538 |
<div class="pages">[% pagination_bar %]</div> |
592 |
<th>List name</th> |
539 |
<table> |
593 |
<th>Contents</th> |
540 |
<tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>Options</th></tr> |
594 |
<th>Owner</th> |
541 |
[% FOREACH shelveslooppri IN shelveslooppriv %] |
595 |
<th>Sort by</th> |
542 |
[% IF ( shelveslooppri.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] |
596 |
<th>Actions</th> |
543 |
<td><a href="shelves.pl?[% IF ( shelveslooppri.showprivateshelves ) %]display=privateshelves&[% END %]viewshelf=[% shelveslooppri.shelf %]&shelfoff=[% shelfoff %]">[% shelveslooppri.shelfname |html %]</a></td> |
597 |
</tr> |
544 |
<td>[% shelveslooppri.count %] item(s)</td> |
598 |
</thead> |
545 |
<td>[% IF ( shelveslooppri.sortfield == "author" ) %]Author[% ELSIF ( shelveslooppri.sortfield == "copyrightdate" ) %]Year[% ELSIF (shelveslooppri.sortfield == "itemcallnumber") %]Call number[% ELSE %]Title[% END %]</td> |
599 |
<tbody></tbody> |
546 |
<td>[% IF ( shelveslooppri.viewcategory1 ) %][% IF !shelveslooppri.shares %]Private[% ELSE %]Shared[% END %][% END %] |
600 |
</table> |
547 |
[% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %] |
601 |
</div> |
548 |
</td> |
602 |
</div> |
549 |
<td> |
|
|
550 |
[% IF ( shelveslooppri.mine ) %] |
551 |
<form action="merge.pl" method="get"> |
552 |
<input type="hidden" name="shelf" value="[% shelveslooppri.shelf %]" /> |
553 |
</form> |
554 |
<form action="shelves.pl" method="get"> |
555 |
<input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" /> |
556 |
<input type="hidden" name="op" value="modif" /> |
557 |
<input type="hidden" name="display" value="privateshelves" /> |
558 |
<input type="submit" class="editshelf" value="Edit" /> |
559 |
</form> |
560 |
<form action="shelves.pl" method="post"> |
561 |
<input type="hidden" name="shelfoff" value="[% shelfoff %]" /> |
562 |
<input type="hidden" name="shelves" value="1" /> |
563 |
<input type="hidden" name="display" value="privateshelves" /> |
564 |
<input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" /> |
565 |
[% IF ( shelveslooppri.confirm ) %] |
566 |
<input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" /> |
567 |
<input type="submit" class="approve" value="Confirm" /> |
568 |
[% ELSE %] |
569 |
<input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" /> |
570 |
[% END %] |
571 |
</form> |
572 |
[% ELSE %] |
573 |
None |
574 |
[% END %] |
575 |
</td> |
576 |
</tr> |
577 |
[% END %] |
578 |
</table> |
579 |
[% ELSE %] |
580 |
<p>No private lists.</p> |
581 |
[% END %]<!-- /shelveslooppriv --> |
582 |
</div><!-- /privateshelves --> |
583 |
|
584 |
[% IF ( showpublicshelves ) %] |
585 |
<div id="publicshelves" class="tabs-container" style="display:block;"> |
586 |
[% ELSE %] |
587 |
<div id="publicshelves" class="tabs-container" style="display:none;"> |
588 |
[% END %] |
589 |
[% IF ( shelvesloop ) %] |
590 |
<div class="pages">[% pagination_bar %]</div> |
591 |
<table> |
592 |
<tr><th>List Name</th><th>Created by</th><th>Contents</th><th>Sort By</th><th>Type</th><th>Options</th></tr> |
593 |
[% FOREACH shelvesloo IN shelvesloop %] |
594 |
[% IF ( shelvesloo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] |
595 |
<td><a href="shelves.pl?viewshelf=[% shelvesloo.shelf %]">[% shelvesloo.shelfname |html %]</a></td> |
596 |
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% shelvesloo.owner %]">[% shelvesloo.ownername %]</td> |
597 |
<td>[% shelvesloo.count %] item(s)</td> |
598 |
<td>[% IF ( shelvesloo.sortfield == "author" ) %]Author[% ELSIF ( shelvesloo.sortfield == "copyrightdate" ) %]Year[% ELSIF (shelvesloo.sortfield == "itemcallnumber") %]Call number[% ELSE %]Title[% END %]</td> |
599 |
<td>[% IF ( shelvesloo.viewcategory1 ) %]Private[% END %] |
600 |
[% IF ( shelvesloo.viewcategory2 ) %]Public[% END %] |
601 |
</td> |
602 |
<td> |
603 |
[% IF shelvesloo.manageshelf %] |
604 |
<form action="shelves.pl" method="get"> |
605 |
<input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" /> |
606 |
<input type="hidden" name="op" value="modif" /> |
607 |
<input type="submit" class="editshelf" value="Edit" /> |
608 |
</form> |
609 |
[% END %] |
610 |
[% IF shelvesloo.manageshelf OR shelvesloo.allowdeletingshelf %] |
611 |
<form action="shelves.pl" method="post"> |
612 |
<input type="hidden" name="shelfoff" value="[% shelfoff %]" /> |
613 |
<input type="hidden" name="shelves" value="1" /> |
614 |
<input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" /> |
615 |
[% IF ( shelvesloo.confirm ) %] |
616 |
<input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" /> |
617 |
<input type="submit" class="approve" value="Confirm" /> |
618 |
[% ELSE %] |
619 |
<input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" /> |
620 |
[% END %] |
621 |
</form> |
622 |
[% ELSE %] |
623 |
None |
624 |
[% END %] |
625 |
</td> |
626 |
</tr> |
627 |
[% END %] |
628 |
</table> |
629 |
[% ELSE %] |
630 |
[% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %] |
631 |
[% END %]<!-- /shelvesloop --> |
632 |
</div><!-- /publicshelves --> |
633 |
</div> |
634 |
[% END %] |
603 |
[% END %] |
635 |
|
604 |
|
636 |
<form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl"> |
605 |
<form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl"> |