View | Details | Raw Unified | Return to bug 7689
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt (-4 / +11 lines)
Lines 79-88 Link Here
79
		<form method="get" action="opac-tags.pl">
79
		<form method="get" action="opac-tags.pl">
80
		<fieldset>Show up to <input type="text" name="limit" style="text-align: right;" maxlength="4" size="4" value="[% limit or "100" %]" />
80
		<fieldset>Show up to <input type="text" name="limit" style="text-align: right;" maxlength="4" size="4" value="[% limit or "100" %]" />
81
			tags[% IF ( opacuserlogin ) %] from other users[% END %].
81
			tags[% IF ( opacuserlogin ) %] from other users[% END %].
82
			<input type="submit" value="OK" />
82
            [% IF ( hidemytags ) %]<input type="hidden" name="hidemytags" value="1" />[% END %]
83
            [% IF ( opacuserlogin ) %][% UNLESS ( loggedinusername ) %]
83
            <input type="submit" value="OK" />
84
            [% UNLESS ( loggedinusername ) %]
84
            <a href="/cgi-bin/koha/opac-user.pl">Log in</a> to see your own saved tags.
85
            <a href="/cgi-bin/koha/opac-user.pl">Log in</a> to see your own saved tags.
85
            [% END %][% END %]</fieldset>
86
            [% ELSE %]
87
            [% IF ( hidemytags ) %]<a class="hidemytags" href="/cgi-bin/koha/opac-tags.pl?limit=[% limit or "100" %]">Show my tags</a>
88
            [% ELSE %]
89
            <a class="hidemytags" href="/cgi-bin/koha/opac-tags.pl?limit=[% limit or "100" %]&amp;hidemytags=1">Hide my tags</a>
90
            [% END %]
91
            [% END %]</fieldset>
86
		</form>
92
		</form>
87
	
93
	
88
	[% IF ( TAGLOOP ) %]
94
	[% IF ( TAGLOOP ) %]
Lines 104-110 Link Here
104
		<div class="dialog message">[% deleted_count %][% IF ( deleted_count ==1 ) %] tag[% ELSE %]tags[% END %] successfully deleted.</div>
110
		<div class="dialog message">[% deleted_count %][% IF ( deleted_count ==1 ) %] tag[% ELSE %]tags[% END %] successfully deleted.</div>
105
	  [% END %]
111
	  [% END %]
106
	[% END %]
112
	[% END %]
107
113
	[% UNLESS ( hidemytags ) %]
108
	[% IF ( MY_TAGS ) %]
114
	[% IF ( MY_TAGS ) %]
109
		<form method="post" action="opac-tags.pl">
115
		<form method="post" action="opac-tags.pl">
110
		<h2>My Tags</h2>
116
		<h2>My Tags</h2>
Lines 124-129 Link Here
124
		</table>
130
		</table>
125
		</form>
131
		</form>
126
	[% END %]
132
	[% END %]
133
	[% END %]
127
134
128
</div>
135
</div>
129
</div>
136
</div>
(-)a/opac/opac-tags.pl (-1 / +1 lines)
Lines 292-297 if ($add_op) { Link Here
292
		$previous = $current;
292
		$previous = $current;
293
	}
293
	}
294
}
294
}
295
$query->param('hidemytags') and $template->param(hidemytags => 1);
295
(scalar @errors  ) and $template->param(ERRORS  => \@errors);
296
(scalar @errors  ) and $template->param(ERRORS  => \@errors);
296
my @orderedresult = sort { uc($a->{'term'}) cmp uc($b->{'term'}) } @$results;
297
my @orderedresult = sort { uc($a->{'term'}) cmp uc($b->{'term'}) } @$results;
297
(scalar @$results) and $template->param(TAGLOOP => \@orderedresult );
298
(scalar @$results) and $template->param(TAGLOOP => \@orderedresult );
298
- 

Return to bug 7689