Changes to allow highlighting of current tab on user pages.
authorOwen Leonard <oleonard@myacpl.org>
Wed, 19 Mar 2008 20:18:27 +0000 (15:18 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 19 Mar 2008 20:46:17 +0000 (15:46 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc
opac/opac-account.pl
opac/opac-passwd.pl
opac/opac-readingrecord.pl
opac/opac-suggestions.pl
opac/opac-user.pl
opac/opac-userupdate.pl

index 5fe63c1..8355124 100644 (file)
@@ -1,10 +1,10 @@
 <!-- TMPL_IF NAME="loggedinusername" --><div id="menu">
                <ul>
-                       <li class="active"><a href="/cgi-bin/koha/opac-user.pl">my summary</a></li>
-                       <li><a href="/cgi-bin/koha/opac-account.pl">my fines</a></li>
-                       <li><a href="/cgi-bin/koha/opac-userupdate.pl">my personal details</a></li>
-                       <!-- TMPL_IF NAME="OpacPasswordChange" --><li><a href="/cgi-bin/koha/opac-passwd.pl">change my password</a></li><!-- /TMPL_IF -->
-                       <!-- TMPL_IF NAME="opacreadinghistory" --><li><a href="/cgi-bin/koha/opac-readingrecord.pl">my reading history</a></li><!-- /TMPL_IF -->
-                       <!-- TMPL_IF name="suggestion" --><!-- TMPL_UNLESS NAME="AnonSuggestions" --><li><a href="/cgi-bin/koha/opac-suggestions.pl">my purchase suggestions</a></li><!-- /TMPL_UNLESS --><!-- /TMPL_IF -->
+                       <!-- 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="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 -->
                </ul>
 </div><!-- /TMPL_IF -->
index 3fa1d3e..95df842 100755 (executable)
@@ -76,7 +76,8 @@ foreach my $row (@$accts) {
 
 $template->param (
     ACCOUNT_LINES => $accts,
-    total => sprintf( "%.2f", $total )
+    total => sprintf( "%.2f", $total ),
+       accountview => 1
 );
 
 output_html_with_http_headers $query, $cookie, $template->output;
index 860f62a..465dd00 100755 (executable)
@@ -99,6 +99,7 @@ else {
 $template->param(firstname => $borr->{'firstname'},
                                                        surname => $borr->{'surname'},
                                                        minpasslen => $minpasslen,
+                                                       passwdview => 1,
 );
 
 output_html_with_http_headers $query, $cookie, $template->output;
index f24af90..e8ba45c 100755 (executable)
@@ -108,6 +108,7 @@ $template->param(
     READING_RECORD => \@loop_reading,
     limit          => $limit,
     showfulllink   => 1,
+       readingrecview => 1
 );
 
 output_html_with_http_headers $query, $cookie, $template->output;
index ac3870f..a46679a 100755 (executable)
@@ -103,6 +103,7 @@ $template->param(
     status           => $status,
     suggestedbyme    => $suggestedbyme,
     "op_$op"         => 1,
+       suggestionsview => 1
 );
 
 output_html_with_http_headers $input, $cookie, $template->output;
index 576c911..1e1bb93 100755 (executable)
@@ -224,6 +224,7 @@ $template->param(
     textmessaging      => $borr->{textmessaging},
        patronupdate => $patronupdate,
        OpacRenewalAllowed => C4::Context->preference("OpacRenewalAllowed"),
+       userview => 1,
 );
 
 output_html_with_http_headers $query, $cookie, $template->output;
index 9789b44..fb74fb2 100755 (executable)
@@ -121,7 +121,8 @@ my @bordat;
 $bordat[0] = $borr;
 
 $template->param( 
-    BORROWER_INFO => \@bordat
+    BORROWER_INFO => \@bordat,
+    userupdateview => 1,
 );
 
 output_html_with_http_headers $query, $cookie, $template->output;