From dfe310868fbc46d99d4ccaf57facfe1e226da418 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Tue, 22 Apr 2008 21:00:56 -0500 Subject: [PATCH] Adding TagsEnabled to list of known sysprefs, adding 'my tabs' to the OPAC user portal --- C4/Auth.pm | 2 ++ koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc | 3 +++ opac/opac-tags.pl | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 8ad1470623..cfe9e80c0e 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -258,6 +258,7 @@ sub get_template_and_user { intranetreadinghistory => C4::Context->preference("intranetreadinghistory"), noItemTypeImages => C4::Context->preference("noItemTypeImages"), singleBranchMode => C4::Context->preference("singleBranchMode"), + TagsEnabled => C4::Context->preference("TagsEnabled"), ); } else { @@ -316,6 +317,7 @@ sub get_template_and_user { singleBranchMode => C4::Context->preference("singleBranchMode"), XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"), XSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"), + TagsEnabled => C4::Context->preference("TagsEnabled"), ); } $template->param(listloop=>[{shelfname=>"Freelist", shelfnumber=>110}]); diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc b/koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc index 8355124b68..9cefd1f3ae 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc @@ -3,6 +3,9 @@
  • my summary
  • my fines
  • my personal details
  • + +
  • my tags
  • +
  • change my password
  • my reading history
  • my purchase suggestions
  • diff --git a/opac/opac-tags.pl b/opac/opac-tags.pl index 0a613d9178..143488eee8 100755 --- a/opac/opac-tags.pl +++ b/opac/opac-tags.pl @@ -119,7 +119,7 @@ if ($loggedinuser) { $_->{date_created_display} = format_date($_->{date_created}); } } - +$template->param(tagsview => 1,); if ($add_op) { my $adds = 0; for (values %counts) {$adds += $_;} -- 2.39.5