Lines 218-224
Link Here
|
218 |
<span class="clearall"></span> <span class="sep">|</span> |
218 |
<span class="clearall"></span> <span class="sep">|</span> |
219 |
|
219 |
|
220 |
<span class="links"> |
220 |
<span class="links"> |
221 |
[% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %] |
221 |
[% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'AllowLists' ) == 1 ) ) %] |
222 |
<span class="addto"></span> |
222 |
<span class="addto"></span> |
223 |
[% END %] |
223 |
[% END %] |
224 |
<span id="placehold"></span> |
224 |
<span id="placehold"></span> |
Lines 257-263
Link Here
|
257 |
[% IF Koha.Preference( 'opacbookbag' ) == 1 %] |
257 |
[% IF Koha.Preference( 'opacbookbag' ) == 1 %] |
258 |
<input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" aria-label="Select search result: [% check_title | html %]" /> <label for="bib[% SEARCH_RESULT.biblionumber | html %]"></label> |
258 |
<input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" aria-label="Select search result: [% check_title | html %]" /> <label for="bib[% SEARCH_RESULT.biblionumber | html %]"></label> |
259 |
[% ELSE %] |
259 |
[% ELSE %] |
260 |
[% IF Koha.Preference( 'virtualshelves' ) == 1 %] |
260 |
[% IF Koha.Preference( 'AllowLists' ) == 1 %] |
261 |
<input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" aria-label="Select search result: [% check_title | html %]"/> <label for="bib[% SEARCH_RESULT.biblionumber | html %]"></label> |
261 |
<input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" aria-label="Select search result: [% check_title | html %]"/> <label for="bib[% SEARCH_RESULT.biblionumber | html %]"></label> |
262 |
[% ELSE %] |
262 |
[% ELSE %] |
263 |
[% IF Koha.Preference( 'RequestOnOpac' ) == 1 %] |
263 |
[% IF Koha.Preference( 'RequestOnOpac' ) == 1 %] |
Lines 266-272
Link Here
|
266 |
[% END %] |
266 |
[% END %] |
267 |
[% END %] |
267 |
[% END %] |
268 |
[% END # IF RequestOnOpac %] |
268 |
[% END # IF RequestOnOpac %] |
269 |
[% END # IF virtualshelves %] |
269 |
[% END # IF AllowLists %] |
270 |
[% END # IF opacbookbag%] |
270 |
[% END # IF opacbookbag%] |
271 |
</td> |
271 |
</td> |
272 |
|
272 |
|
Lines 529-535
Link Here
|
529 |
</div> |
529 |
</div> |
530 |
[% END %] |
530 |
[% END %] |
531 |
|
531 |
|
532 |
[% IF Koha.Preference('virtualshelves') AND SEARCH_RESULT.shelves.count %] |
532 |
[% IF Koha.Preference('AllowLists') AND SEARCH_RESULT.shelves.count %] |
533 |
<div class="results_summary shelves"> |
533 |
<div class="results_summary shelves"> |
534 |
<span class="label">Lists:</span> |
534 |
<span class="label">Lists:</span> |
535 |
<ul> |
535 |
<ul> |
Lines 772-788
Link Here
|
772 |
}); |
772 |
}); |
773 |
|
773 |
|
774 |
var param1 = ""; |
774 |
var param1 = ""; |
775 |
[% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) || loggedinusername ) %] |
775 |
[% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'AllowLists' ) == 1 ) || loggedinusername ) %] |
776 |
param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>"; |
776 |
param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>"; |
777 |
[% END %] |
777 |
[% END %] |
778 |
|
778 |
|
779 |
[% IF Koha.Preference( 'opacbookbag' ) == 1 OR Koha.Preference('virtualshelves') %] |
779 |
[% IF Koha.Preference( 'opacbookbag' ) == 1 OR Koha.Preference('AllowLists') %] |
780 |
param1 += "<select class=\"disabled\" name=\"addto\" id=\"addto\"><option>"+_("Add to...")+"</option>"; |
780 |
param1 += "<select class=\"disabled\" name=\"addto\" id=\"addto\"><option>"+_("Add to...")+"</option>"; |
781 |
|
781 |
|
782 |
[% IF Koha.Preference( 'opacbookbag' ) == 1 %] |
782 |
[% IF Koha.Preference( 'opacbookbag' ) == 1 %] |
783 |
param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>"; |
783 |
param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>"; |
784 |
[% END %] |
784 |
[% END %] |
785 |
[% IF Koha.Preference('virtualshelves') %] |
785 |
[% IF Koha.Preference('AllowLists') %] |
786 |
[% IF loggedinusername AND add_to_some_private_shelves.count %] |
786 |
[% IF loggedinusername AND add_to_some_private_shelves.count %] |
787 |
param1 += "<optgroup label=\""+_("Your lists:")+"\">"; |
787 |
param1 += "<optgroup label=\""+_("Your lists:")+"\">"; |
788 |
[% SET number_of_private_shelves = 0 %] |
788 |
[% SET number_of_private_shelves = 0 %] |
Lines 811-817
Link Here
|
811 |
param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>"; |
811 |
param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>"; |
812 |
[% END %] |
812 |
[% END %] |
813 |
param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>" |
813 |
param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>" |
814 |
[% END # /IF virtualshelves %] |
814 |
[% END # /IF AllowLists %] |
815 |
param1 += "<\/select> <input type=\"submit\" class=\"btn btn-sm btn-primary\" value=\""+_("Save")+"\" />"; |
815 |
param1 += "<\/select> <input type=\"submit\" class=\"btn btn-sm btn-primary\" value=\""+_("Save")+"\" />"; |
816 |
[% END # /IF opacbookbag || virtualshelves %] |
816 |
[% END # /IF opacbookbag || virtualshelves %] |
817 |
|
817 |
|
Lines 829-841
Link Here
|
829 |
[% IF Koha.Preference( 'opacbookbag' ) == 1 %] |
829 |
[% IF Koha.Preference( 'opacbookbag' ) == 1 %] |
830 |
$("span.addto").html(param1); |
830 |
$("span.addto").html(param1); |
831 |
[% ELSE %] |
831 |
[% ELSE %] |
832 |
[% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %] |
832 |
[% IF ( ( Koha.Preference( 'AllowLists' ) == 1 ) && loggedinusername ) %] |
833 |
$("span.addto").html(param1); |
833 |
$("span.addto").html(param1); |
834 |
[% END %] |
834 |
[% END %] |
835 |
[% END %] |
835 |
[% END %] |
836 |
|
836 |
|
837 |
[% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %] |
837 |
[% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'AllowLists' ) == 1 ) ) %] |
838 |
[% IF Koha.Preference( 'virtualshelves' ) == 1 %] |
838 |
[% IF Koha.Preference( 'AllowLists' ) == 1 %] |
839 |
$("#addto").on("change",function(){ |
839 |
$("#addto").on("change",function(){ |
840 |
cartList(); |
840 |
cartList(); |
841 |
}); |
841 |
}); |