[Patches] [PATCH] Bug 7226 - can't add tags on list
koha-patchbot at kohaaloha.com
koha-patchbot at kohaaloha.com
Wed Dec 7 04:05:03 NZDT 2011
From: Owen Leonard <oleonard at myacpl.org>
Date: Tue, 6 Dec 2011 09:53:05 -0500
Subject: [PATCH] Bug 7226 - can't add tags on list
Content-Type: text/plain; charset="utf-8"
Incorrect check for TagsInputOnList was preventing the
right JavaScript from being triggered, and markup was
nested inside the wrong logic for the confirmation
message to be displayed consistently.
---
.../opac-tmpl/prog/en/modules/opac-shelves.tt | 26 ++++++++++----------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt
index 528b8a7..8fff936 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt
@@ -92,7 +92,6 @@ $(function() {
$("#addtags").html("<a id=\"tagsel_tag\" href=\"#\">"+_("Tag")+"<\/a> |");
$(".tagbutton").click(KOHA.Tags.add_tag_button);
- [% IF ( TagsInputOnList ) %]
[% IF ( loggedinusername ) %]
$("#tagsel_tag").click(function(){
tagSelected();
@@ -112,7 +111,6 @@ $(function() {
return false;
});
[% END %]
- [% END %]
[% END %][% END %][% END %]
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
});
@@ -278,14 +276,16 @@ $(function() {
[% END %][% ELSE %]This record has no items.[% END %]</span>
[% END %]
[% IF ( TagsEnabled ) %]
- [% IF ( TagsShowOnList ) %]
- [% IF ( itemsloo.TagLoop ) %]
- <div class="results_summary">
- <span class="label">Tags:</span>
- <ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN itemsloo.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>
- [% END %]
- </ul>
- [% END %]
+ [% IF ( TagsShowOnList ) %]
+ [% IF ( itemsloo.TagLoop.size ) %]
+ <div class="results_summary">
+ <span class="label">Tags:</span>
+ <ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN itemsloo.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>
+ [% END %]
+ </ul>
+ </div>
+ [% END %]
+ [% END %]
[% IF ( TagsInputOnList ) %]
[% IF ( loggedinusername ) %]
<form name="tagform[% itemsloo.biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl">
@@ -299,10 +299,10 @@ $(function() {
[% ELSIF ( loop.first ) %]<span class="tagstatus" id="login4tags">Log in to add tags.</span>
[% END %]
[% END %]
- [% IF ( itemsloo.TagLoop ) %]
- </div>[% END %]
+ [% IF ( loggedinusername ) %]
+ <span id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus" style="display:none;">Tag status here.</span>
+ [% END %]
[% END %]
- [% END %]
<span class="results_summary actions"><span class="label">Actions:</span>
[% IF ( RequestOnOpac ) %]
--
1.7.3
More information about the Patches
mailing list