Adding TagsEnabled to list of known sysprefs, adding 'my tabs'
authorJoshua Ferraro <jmf@liblime.com>
Wed, 23 Apr 2008 02:00:56 +0000 (21:00 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 23 Apr 2008 02:00:56 +0000 (21:00 -0500)
to the OPAC user portal

C4/Auth.pm
koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc
opac/opac-tags.pl

index 8ad1470..cfe9e80 100755 (executable)
@@ -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}]);
index 8355124..9cefd1f 100644 (file)
@@ -3,6 +3,9 @@
                        <!-- TMPL_IF NAME="userview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-user.pl">my summary</a></li>
                        <!-- TMPL_IF NAME="accountview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-account.pl">my fines</a></li>
                        <!-- TMPL_IF NAME="userupdateview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-userupdate.pl">my personal details</a></li>
+                               <!-- TMPL_IF NAME="TagsEnabled" -->
+                               <!-- TMPL_IF NAME="tagsview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-tags.pl">my tags</a></li>
+                               <!-- /TMPL_IF -->
                        <!-- TMPL_IF NAME="OpacPasswordChange" --><!-- TMPL_IF NAME="passwdview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-passwd.pl">change my password</a></li><!-- /TMPL_IF -->
                        <!-- TMPL_IF NAME="opacreadinghistory" --><!-- TMPL_IF NAME="readingrecview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-readingrecord.pl">my reading history</a></li><!-- /TMPL_IF -->
                        <!-- TMPL_IF name="suggestion" --><!-- TMPL_UNLESS NAME="AnonSuggestions" --><!-- TMPL_IF NAME="suggestionsview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-suggestions.pl">my purchase suggestions</a></li><!-- /TMPL_UNLESS --><!-- /TMPL_IF -->
index 0a613d9..143488e 100755 (executable)
@@ -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 += $_;}