Browse Source

Changes to allow highlighting of current tab on user pages.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
3.0.x
Owen Leonard 16 years ago
committed by Joshua Ferraro
parent
commit
0f1825d055
  1. 12
      koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc
  2. 3
      opac/opac-account.pl
  3. 1
      opac/opac-passwd.pl
  4. 1
      opac/opac-readingrecord.pl
  5. 1
      opac/opac-suggestions.pl
  6. 1
      opac/opac-user.pl
  7. 3
      opac/opac-userupdate.pl

12
koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc

@ -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 -->

3
opac/opac-account.pl

@ -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;

1
opac/opac-passwd.pl

@ -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;

1
opac/opac-readingrecord.pl

@ -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;

1
opac/opac-suggestions.pl

@ -103,6 +103,7 @@ $template->param(
status => $status,
suggestedbyme => $suggestedbyme,
"op_$op" => 1,
suggestionsview => 1
);
output_html_with_http_headers $input, $cookie, $template->output;

1
opac/opac-user.pl

@ -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;

3
opac/opac-userupdate.pl

@ -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;

Loading…
Cancel
Save