Lines 33-38
Link Here
|
33 |
<span>anyone to remove other contributed entries.</span> |
33 |
<span>anyone to remove other contributed entries.</span> |
34 |
</li> |
34 |
</li> |
35 |
[% END %] |
35 |
[% END %] |
|
|
36 |
[% BLOCK remove_share %] |
37 |
[%# Use: add parameter shelfnumber and add end form tag %] |
38 |
<form action="opac-shelves.pl" method="post" class="form-inline"> |
39 |
<input type="hidden" name="shelves" value="1" /> |
40 |
<input type="hidden" name="display" value="privateshelves" /> |
41 |
<input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_REMOVE_SHARE);" value="Remove share" /> |
42 |
[% END %] |
36 |
|
43 |
|
37 |
[% INCLUDE 'masthead.inc' %] |
44 |
[% INCLUDE 'masthead.inc' %] |
38 |
<div class="main"> |
45 |
<div class="main"> |
Lines 173-178
Link Here
|
173 |
[% END %] |
180 |
[% END %] |
174 |
<input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/> |
181 |
<input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/> |
175 |
</form> |
182 |
</form> |
|
|
183 |
[% IF showprivateshelves && Koha.Preference('OpacAllowSharingPrivateLists') %] |
184 |
<a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelfnumber %]" class="">Share list</a> |
185 |
[% END %] |
186 |
[% ELSIF showprivateshelves # not manageshelf and private means shared %] |
187 |
[% INCLUDE remove_share %] |
188 |
<input type="hidden" name="REMSHR-[% shelfnumber %]" value="1" /> |
189 |
</form> |
176 |
[% END # / IF manageshelf %] |
190 |
[% END # / IF manageshelf %] |
177 |
</div> |
191 |
</div> |
178 |
|
192 |
|
Lines 584-592
Link Here
|
584 |
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"> |
598 |
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"> |
585 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
599 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
586 |
[% IF ( showprivateshelves ) %] |
600 |
[% IF ( showprivateshelves ) %] |
587 |
<li id="privateshelves_tab" class="ui-state-default ui-corner-top ui-tabs-active ui-state-active"><a class="ui-tabs-anchor" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your private lists</a></li> |
601 |
<li id="privateshelves_tab" class="ui-state-default ui-corner-top ui-tabs-active ui-state-active"><a class="ui-tabs-anchor" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your lists</a></li> |
588 |
[% ELSE %] |
602 |
[% ELSE %] |
589 |
<li id="privateshelves_tab" class="ui-state-default ui-corner-top"><a class="ui-tabs-anchor" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your private lists</a></li> |
603 |
<li id="privateshelves_tab" class="ui-state-default ui-corner-top"><a class="ui-tabs-anchor" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your lists</a></li> |
590 |
[% END %] |
604 |
[% END %] |
591 |
[% END %] |
605 |
[% END %] |
592 |
[% IF ( showpublicshelves ) %] |
606 |
[% IF ( showpublicshelves ) %] |
Lines 618-625
Link Here
|
618 |
<td><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves&viewshelf=[% shelveslooppri.shelf %]&sortfield=[% shelveslooppri.sortfield %]">[% shelveslooppri.shelfname |html %]</a></td> |
632 |
<td><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves&viewshelf=[% shelveslooppri.shelf %]&sortfield=[% shelveslooppri.sortfield %]">[% shelveslooppri.shelfname |html %]</a></td> |
619 |
<td>[% IF ( shelveslooppri.count ) %][% shelveslooppri.count %] [% IF ( shelveslooppri.single ) %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %]</td> |
633 |
<td>[% IF ( shelveslooppri.count ) %][% shelveslooppri.count %] [% IF ( shelveslooppri.single ) %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %]</td> |
620 |
<td> |
634 |
<td> |
621 |
[% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %] |
635 |
[% IF ( shelveslooppri.viewcategory1 ) %][% IF !shelveslooppri.shares %]Private[% ELSE %]Shared[% END %][% END %] |
622 |
[% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %] |
|
|
623 |
</td> |
636 |
</td> |
624 |
<td> |
637 |
<td> |
625 |
[% IF ( shelveslooppri.mine ) %] |
638 |
[% IF ( shelveslooppri.mine ) %] |
Lines 641-646
Link Here
|
641 |
<input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" /> |
654 |
<input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" /> |
642 |
[% END %] |
655 |
[% END %] |
643 |
</form> |
656 |
</form> |
|
|
657 |
[% IF Koha.Preference('OpacAllowSharingPrivateLists') %] |
658 |
<a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelveslooppri.shelf %]" class="">Share</a> |
659 |
[% END %] |
660 |
[% ELSE # not shelveslooppri.mine, so shared %] |
661 |
[% INCLUDE remove_share # if pref is off, you should still be able to remove shares %] |
662 |
<input type="hidden" name="shelfoff" value="[% shelfoff %]" /> |
663 |
<input type="hidden" name="REMSHR-[% shelveslooppri.shelf %]" value="1" /> |
664 |
</form> |
644 |
[% END %] |
665 |
[% END %] |
645 |
</td> |
666 |
</td> |
646 |
</tr> |
667 |
</tr> |
Lines 685-691
Link Here
|
685 |
<td><a class="title" href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelvesloo.shelf %]&sortfield=[% shelvesloo.sortfield %]">[% shelvesloo.shelfname |html %]</a></td> |
706 |
<td><a class="title" href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelvesloo.shelf %]&sortfield=[% shelvesloo.sortfield %]">[% shelvesloo.shelfname |html %]</a></td> |
686 |
<td>[% shelvesloo.count %] [% IF ( shelvesloo.single ) %]item[% ELSE %]item(s)[% END %]</td> |
707 |
<td>[% shelvesloo.count %] [% IF ( shelvesloo.single ) %]item[% ELSE %]item(s)[% END %]</td> |
687 |
<td> |
708 |
<td> |
688 |
[% IF ( shelvesloo.viewcategory1 ) %]Private[% END %] |
|
|
689 |
[% IF ( shelvesloo.viewcategory2 ) %]Public[% END %] |
709 |
[% IF ( shelvesloo.viewcategory2 ) %]Public[% END %] |
690 |
</td> |
710 |
</td> |
691 |
<td> |
711 |
<td> |
Lines 787-792
Link Here
|
787 |
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?"); |
807 |
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?"); |
788 |
var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?"); |
808 |
var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?"); |
789 |
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?"); |
809 |
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?"); |
|
|
810 |
var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?"); |
790 |
|
811 |
|
791 |
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %] |
812 |
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %] |
792 |
function holdSelections() { |
813 |
function holdSelections() { |
793 |
- |
|
|