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