Bugzilla – Attachment 8114 Details for
Bug 7689
add possibility to hide my tags in opac
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-Bug-7689-add-possibility-to-hide-my-tags-in-opac.patch (text/plain), 2.62 KB, created by
Stéphane Delaune
on 2012-03-09 11:02:32 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Stéphane Delaune
Created:
2012-03-09 11:02:32 UTC
Size:
2.62 KB
patch
obsolete
>From 00261f1902dfd990b8429e34bb041c1579c3bb71 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?St=C3=A9phane=20Delaune?= <stephane.delaune@biblibre.com> >Date: Fri, 9 Mar 2012 12:00:09 +0100 >Subject: [PATCH] Bug 7689 : add possibility to hide my tags in opac > >--- > koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt | 15 +++++++++++---- > opac/opac-tags.pl | 1 + > 2 files changed, 12 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt >index e93e00a..d0a300d 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt >@@ -79,10 +79,16 @@ > <form method="get" action="opac-tags.pl"> > <fieldset>Show up to <input type="text" name="limit" style="text-align: right;" maxlength="4" size="4" value="[% limit or "100" %]" /> > tags[% IF ( opacuserlogin ) %] from other users[% END %]. >- <input type="submit" value="OK" /> >- [% IF ( opacuserlogin ) %][% UNLESS ( loggedinusername ) %] >+ [% IF ( hidemytags ) %]<input type="hidden" name="hidemytags" value="1" />[% END %] >+ <input type="submit" value="OK" /> >+ [% UNLESS ( loggedinusername ) %] > <a href="/cgi-bin/koha/opac-user.pl">Log in</a> to see your own saved tags. >- [% END %][% END %]</fieldset> >+ [% ELSE %] >+ [% IF ( hidemytags ) %]<a class="hidemytags" href="/cgi-bin/koha/opac-tags.pl?limit=[% limit or "100" %]">Show my tags</a> >+ [% ELSE %] >+ <a class="hidemytags" href="/cgi-bin/koha/opac-tags.pl?limit=[% limit or "100" %]&hidemytags=1">Hide my tags</a> >+ [% END %] >+ [% END %]</fieldset> > </form> > > [% IF ( TAGLOOP ) %] >@@ -104,7 +110,7 @@ > <div class="dialog message">[% deleted_count %][% IF ( deleted_count ==1 ) %] tag[% ELSE %]tags[% END %] successfully deleted.</div> > [% END %] > [% END %] >- >+ [% UNLESS ( hidemytags ) %] > [% IF ( MY_TAGS ) %] > <form method="post" action="opac-tags.pl"> > <h2>My Tags</h2> >@@ -124,6 +130,7 @@ > </table> > </form> > [% END %] >+ [% END %] > > </div> > </div> >diff --git a/opac/opac-tags.pl b/opac/opac-tags.pl >index b5ce340..ad3afa0 100755 >--- a/opac/opac-tags.pl >+++ b/opac/opac-tags.pl >@@ -292,6 +292,7 @@ if ($add_op) { > $previous = $current; > } > } >+$query->param('hidemytags') and $template->param(hidemytags => 1); > (scalar @errors ) and $template->param(ERRORS => \@errors); > my @orderedresult = sort { uc($a->{'term'}) cmp uc($b->{'term'}) } @$results; > (scalar @$results) and $template->param(TAGLOOP => \@orderedresult ); >-- >1.7.5.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7689
: 8114