Fix for 2160: My Lists Tab on OPAC Profile
authorJoshua Ferraro <jmf@liblime.com>
Tue, 8 Jul 2008 05:18:40 +0000 (00:18 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 8 Jul 2008 05:18:40 +0000 (00:18 -0500)
koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc
opac/opac-shelves.pl

index 17dda14..2efc1da 100644 (file)
   <!-- TMPL_IF NAME="EnhancedMessagingPreferences" -->
     <!-- TMPL_IF NAME="messagingview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-messaging.pl">my messaging</a></li>
   <!-- /TMPL_IF -->
+  <!-- TMPL_IF NAME="virtualshelves" --> 
+  <!-- TMPL_IF NAME="listsview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">my lists</a></li>
+  <!-- /TMPL_IF -->
+
 </ul>
 </div>
 <!-- /TMPL_IF -->
index 61bf9e3..dbd598c 100755 (executable)
@@ -31,7 +31,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
         type            => "opac",
         authnotrequired => 1,
     });
-
+$template->param(listsview => 1);
 # if $loggedinuser is not defined, set it to -1, which should
 # not correspond to any real borrowernumber.  
 # FIXME: this is a hack to temporarily avoid changing several