Lines 223-228
$(document).ready(function(){
Link Here
|
223 |
tagAdded(); |
223 |
tagAdded(); |
224 |
return false; |
224 |
return false; |
225 |
}); |
225 |
}); |
|
|
226 |
|
227 |
$(".tag_results_add").click(function(){ |
228 |
var thisid = $(this).attr("id"); |
229 |
thisid = thisid.replace("tag_add",""); |
230 |
$(this).hide(); |
231 |
$("#tagform"+thisid).show(); |
232 |
$("#newtag"+thisid).focus(); |
233 |
return false; |
234 |
}) |
235 |
|
236 |
$(".cancel_tag_add").click(function(){ |
237 |
var thisid = $(this).attr("id"); |
238 |
thisid = thisid.replace("cancel",""); |
239 |
$(this).parent().hide(); |
240 |
$("#tag_add"+thisid).show(); |
241 |
return false; |
242 |
}) |
243 |
|
226 |
[% ELSE %] |
244 |
[% ELSE %] |
227 |
$("#tagsel_tag").click(function(){ |
245 |
$("#tagsel_tag").click(function(){ |
228 |
window.location = "/cgi-bin/koha/opac-user.pl"; |
246 |
window.location = "/cgi-bin/koha/opac-user.pl"; |
Lines 503-508
$(document).ready(function(){
Link Here
|
503 |
</span> |
521 |
</span> |
504 |
[% END %] |
522 |
[% END %] |
505 |
|
523 |
|
|
|
524 |
[% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %] |
525 |
[% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %] |
526 |
[% IF ( TagsShowOnList ) %] |
527 |
[% IF ( SEARCH_RESULT.TagLoop.size ) %] |
528 |
<div class="results_summary"><span class="label">Tags:</span> |
529 |
<ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li> |
530 |
[% END %] |
531 |
</ul> |
532 |
[% END %] |
533 |
[% IF ( SEARCH_RESULT.TagLoop.size ) %] |
534 |
</div>[% END %] |
535 |
[% END %] |
536 |
[% END %][% END %] |
537 |
[% IF ( SEARCH_RESULT.searchhighlightblob ) %]<span class="results_summary"><span class="label">Match:</span> [% SEARCH_RESULT.searchhighlightblob %]</span>[% END %] |
538 |
|
539 |
|
540 |
|
506 |
|
541 |
|
507 |
[% IF ( OpacStarRatings == 'all' ) %] |
542 |
[% IF ( OpacStarRatings == 'all' ) %] |
508 |
<div class="results_summary"> |
543 |
<div class="results_summary"> |
Lines 528-562
$(document).ready(function(){
Link Here
|
528 |
</div> |
563 |
</div> |
529 |
[% END %] |
564 |
[% END %] |
530 |
|
565 |
|
531 |
|
|
|
532 |
[% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %] |
533 |
[% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %] |
534 |
[% IF ( TagsShowOnList ) %] |
535 |
[% IF ( SEARCH_RESULT.TagLoop.size ) %] |
536 |
<div class="results_summary"><span class="label">Tags:</span> |
537 |
<ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li> |
538 |
[% END %] |
539 |
</ul> |
540 |
[% END %] |
541 |
[% IF ( TagsInputOnList ) %] |
542 |
[% IF ( loggedinusername ) %] |
543 |
<span class="label">New tag:</span> |
544 |
<input name="newtag[% SEARCH_RESULT.biblionumber %]" id="newtag[% SEARCH_RESULT.biblionumber %]" maxlength="100" /> |
545 |
<input name="tagbutton" class="tagbutton" title="[% SEARCH_RESULT.biblionumber %]" type="submit" value="Add" /> |
546 |
<span id="newtag[% SEARCH_RESULT.biblionumber %]_status" class="tagstatus" style="display:none;"> |
547 |
Tag status here. |
548 |
</span> |
549 |
[% ELSIF ( loop.first ) %]<span class="tagstatus" id="login4tags">Log in to add tags.</span> |
550 |
[% END %] |
551 |
[% END %] |
552 |
[% IF ( SEARCH_RESULT.TagLoop.size ) %] |
553 |
</div>[% END %] |
554 |
[% END %] |
555 |
[% END %][% END %] |
556 |
[% IF ( SEARCH_RESULT.searchhighlightblob ) %]<span class="results_summary"><span class="label">Match:</span> [% SEARCH_RESULT.searchhighlightblob %]</span>[% END %] |
557 |
|
558 |
<span class="results_summary actions"><span class="label">Actions:</span> |
566 |
<span class="results_summary actions"><span class="label">Actions:</span> |
559 |
[% IF ( RequestOnOpac ) %] |
567 |
[% IF ( RequestOnOpac ) %] |
560 |
[% UNLESS ( SEARCH_RESULT.norequests ) %] |
568 |
[% UNLESS ( SEARCH_RESULT.norequests ) %] |
561 |
[% IF ( opacuserlogin ) %] |
569 |
[% IF ( opacuserlogin ) %] |
562 |
[% IF ( AllowOnShelfHolds ) %] |
570 |
[% IF ( AllowOnShelfHolds ) %] |
Lines 570-575
$(document).ready(function(){
Link Here
|
570 |
[% END %] |
578 |
[% END %] |
571 |
[% END %] |
579 |
[% END %] |
572 |
|
580 |
|
|
|
581 |
[% IF ( TagsInputOnList ) %] |
582 |
[% IF ( loggedinusername ) %] |
583 |
<a class="tag_results_add" id="tag_add[% SEARCH_RESULT.biblionumber %]" href="#">Add tag</a> |
584 |
<span id="tagform[% SEARCH_RESULT.biblionumber %]" class="tag_results_input"><label for="newtag[% SEARCH_RESULT.biblionumber %]">New tag(s):</label><input name="newtag[% SEARCH_RESULT.biblionumber %]" id="newtag[% SEARCH_RESULT.biblionumber %]" maxlength="100" /> |
585 |
<input name="tagbutton" class="tagbutton" title="[% SEARCH_RESULT.biblionumber %]" type="submit" value="Add" /> <a class="cancel_tag_add" id="cancel[% SEARCH_RESULT.biblionumber %]" href="#">Cancel</a> |
586 |
<span id="newtag[% SEARCH_RESULT.biblionumber %]_status" class="tagstatus" style="display:none;"> |
587 |
Tag status here. |
588 |
</span></span> |
589 |
[% ELSIF ( loop.first ) %]<span id="login4tags">Log in to add tags.</span> |
590 |
[% END %] |
591 |
[% END %] |
573 |
|
592 |
|
574 |
[% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( virtualshelves ) %]<a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]'); return false;">Save to Lists</a> |
593 |
[% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( virtualshelves ) %]<a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]'); return false;">Save to Lists</a> |
575 |
[% END %][% END %][% END %] |
594 |
[% END %][% END %][% END %] |