@@ -, +, @@
cases.
---
koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc | 2 +-
opac/opac-tags.pl | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc
@@ -29,7 +29,7 @@
[% ELSE %]
[% END %]
- your tags
+ your tags
[% END %]
[% IF ( OpacPasswordChange ) %]
--- a/opac/opac-tags.pl
+++ a/opac/opac-tags.pl
@@ -253,14 +253,12 @@ if ($add_op) {
deleted_count => $dels,
);
} else {
- my ($arg,$limit,$mine);
+ my ($arg,$limit);
my $hardmax = 100; # you might disagree what this value should be, but there definitely should be a max
$limit = $query->param('limit') || $hardmax;
- $mine = $query->param('mine') || 0; # set if the patron want to see only his own tags.
($limit =~ /^\d+$/ and $limit <= $hardmax) or $limit = $hardmax;
$template->param(limit => $limit);
my $arghash = {approved=>1, limit=>$limit, 'sort'=>'-weight_total'};
- $arghash->{'borrowernumber'} = $loggedinuser if $mine;
# ($openadds) or $arghash->{approved} = 1;
if ($arg = $query->param('tag')) {
$arghash->{term} = $arg;
@@ -270,7 +268,7 @@ if ($add_op) {
$results = get_approval_rows($arghash);
stratify_tags(10, $results); # work out the differents sizes for things
my $count = scalar @$results;
- $template->param(TAGLOOP_COUNT => $count, mine => $mine);
+ $template->param(TAGLOOP_COUNT => $count);
}
(scalar @errors ) and $template->param(ERRORS => \@errors);
my @orderedresult = sort { uc($a->{'term'}) cmp uc($b->{'term'}) } @$results;
--