</div>
<div id="adv_search_parent">
<div id="adv_search_tabs">
- <a href="?pane=advanced[% IF loc %];loc=[% loc %][% END %]" [% IF pane == 'advanced' %]class="on" [% END %]id="adv_search">[% l('Advanced Search') %]</a>
- <a href="?pane=numeric[% IF loc %];loc=[% loc %][% END %]" [% IF pane == 'numeric' %]class="on" [% END %]id="num_search">[% l('Numeric Search') %]</a>
- <a href="?pane=expert[% IF loc %];loc=[% loc %][% END %]" [% IF pane == 'expert' %]class="on" [% END %]id="expert_search">[% l('Expert Search') %]</a>
+ <a href="[% mkurl('', {pane => 'advanced'}) %]"
+ [% IF pane == 'advanced' %]class="on" [% END %]
+ id="adv_search">[% l('Advanced Search') %]</a>
+ <a href="[% mkurl('', {pane => 'numeric'}) %]"
+ [% IF pane == 'numeric' %]class="on" [% END %]
+ id="num_search">[% l('Numeric Search') %]</a>
+ <a href="[% mkurl('', {pane => 'expert'}) %]"
+ [% IF pane == 'expert' %]class="on" [% END %]
+ id="expert_search">[% l('Expert Search') %]</a>
</div>
</div>
</div>
<div id="acct_checked_tabs">
<div class="align">
- <a href='circs'>[% l("Current Items Checked Out") %]</a>
+ <a href='[% mkurl('circs') %]'>[% l("Current Items Checked Out") %]</a>
</div>
<div class="align selected">
<a href="#">[% l("Check Out History") %]</a>
<div class="header_middle">
<span class="float-left">[% l('Previously Checked Out Items') %]</span>
<span class='float-left' style='padding-left: 10px;'>
- <a href='circ_history?limit=[% limit %]&offset=[% offset - limit %]'
+ <a href='[% mkurl('circ_history', {limit => limit, offset => (offset - limit)}) %]'
[% IF offset == 0 %] class='invisible' [% END %]><span class="nav_arrow_fix">◄</span>[% l('Previous') %]</a>
[%# TODO: get total to prevent paging off then end of the list.. %]
- <a href='circ_history?limit=[% limit %]&offset=[% offset + limit %]'
+ <a href='[% mkurl('circ_history', {limit => limit, offset => (offset + limit)}) %]'
[% IF ctx.circs.size < limit %] class='invisible' [% END %] >[% l('Next') %]<span class="nav_arrow_fix">►</span></a>
</span>
<span class="float-right">
PROCESS get_marc_attrs args=attrs; %]
<tr>
<td style="padding-left:5px;padding-bottom:10px;">
- <a href="[% ctx.opac_root %]/record/[% circ.circ.target_copy.call_number.record.id %]"
+ <a href="[% mkurl(ctx.opac_root _ '/record/' _ circ.circ.target_copy.call_number.record.id) %]"
name="[% l('Catalog record') %]">[% attrs.title | html %]</a>
[% IF attrs.author %] /
- <a href="[% ctx.opac_root %]/results?qtype=author&query=[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author | html %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/results',
+ {qtype => 'author', query => attrs.author.replace('[,\.:;]', '')}
+ )%]">[% attrs.author | html %]</a>
[% END %]
</td>
<td style="padding-left:5px;">
<a href="#">[% l("Current Items Checked Out") %]</a>
</div>
<div class="align">
- <a href="circ_history">[% l("Check Out History") %]</a>
+ <a href="[% mkurl('circ_history') %]">[% l("Check Out History") %]</a>
</div>
</div>
<td width="40%"
style="padding-left:5px;padding-bottom:10px;"
name="author">
- <a href="[% ctx.opac_root %]/record/[% circ.circ.target_copy.call_number.record.id %]" name="[% l('Catalog record') %]">[% attrs.title | html %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/record/' _
+ circ.circ.target_copy.call_number.record.id) %]"
+ name="[% l('Catalog record') %]">[% attrs.title | html %]</a>
[% IF attrs.author %] /
- <a href="[% ctx.opac_root %]/results?qtype=author&query=[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author | html %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/results',
+ {qtype => 'author', query => attrs.author.replace('[,\.:;]', '')}
+ ) %]">[% attrs.author | html %]</a>
[% END %]
</td>
<td width="8%" name="renewals" align="center">
<div id="acct_holds_tabs">
<div class="align">
- <a href='holds'>[% l("Items on Hold") %]</a>
+ <a href='[% mkurl('holds') %]'>[% l("Items on Hold") %]</a>
</div>
<div class="align selected">
<a href="#">[% l("Holds History") %]</a>
<div class="header_middle">
<span style="float:left;">[% l("Previously Held Items") %]</span>
<span class='float-left' style='padding-left: 10px;'>
- <a href='hold_history?limit=[% limit %]&offset=[% offset - limit %]'
+ <a href='[% mkurl(hold_history, {limit => limit,offset => (offset - limit)}) %]'
[% IF offset == 0 %] class='invisible' [% END %]><span class="nav_arrow_fix">◄</span>[% l('Previous') %]</a>
[%# TODO: get total to prevent paging off then end of the list.. %]
- <a href='hold_history?limit=[% limit %]&offset=[% offset + limit %]'
+ <a href='[% mkurl(hold_history, {limit => limit, offset => (offset + limit)}) %]'
[% IF ctx.holds.size < limit %] class='invisible' [% END %] >[% l('Next') %]<span class="nav_arrow_fix">►</span></a>
</span>
<span style="float:right;">
<td width="138">
<div style="margin-top:10px;margin-bottom:10px;">
- <a href="[% ctx.opac_root %]/record/[% hold.hold.bre_id %]">[% attrs.title | html %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/record/' _ hold.hold.bre_id) %]">[% attrs.title | html %]</a>
</div>
</td>
<td width="123">
<div style="margin-top:10px;margin-bottom:10px;">
- <a href="[% ctx.opac_root %]/results?qtype=author&query=[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author | html %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/results',
+ {qtype => author, query => attrs.author.replace('[,\.:;]', '')}
+ ) %]">[% attrs.author | html %]</a>
</div>
</td>
<td width="64">
<a href='#'>[% l("Items on Hold") %]</a>
</div>
<div class="align">
- <a href='hold_history'>[% l("Holds History") %]</a>
+ <a href='[% mkurl('hold_history') %]'>[% l("Holds History") %]</a>
</div>
</div>
<td align="right">
[% l("Show") %]
[% IF CGI.param("available") %]
- <a href="holds">[% l('all') %]</a> |
+ <a href="[% mkurl('holds') %]">[% l('all') %]</a> |
<strong>[% l("only available") %]</strong>
[% ELSE %]
<strong>[% l("all") %]</strong> |
- <a href="holds?available=1">[% l("only available") %]</a>
+ <a href="[% mkurl('holds', {available => 1}) %]">[% l("only available") %]</a>
[% END %]
[% l("holds") %]
<select class="hide_me" id="holds_sort">
title = l('[_1] ([_2])', title, hold.hold.part.label);
END;
%]
- <a href="[% ctx.opac_root %]/record/[% hold.hold.bre_id %]">[% title | html %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/record/' _ hold.hold.bre_id) %]">[% title | html %]</a>
</div>
</td>
<td width="123">
<div style="margin-top:10px;margin-bottom:10px;">
- <a href="[% ctx.opac_root %]/results?qtype=author&query=[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author | html %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/results',
+ {qtype => 'author', query => attrs.author.replace('[,\.:;]', '')}
+ ) %]">[% attrs.author | html %]</a>
</div>
</td>
<td width="64">
</div>
</td>
<td class="opac-auto-161">
- <a href="[% ctx.opac_root %]/myopac/holds/edit?id=[% ahr.id %]">Edit</a>
+ <a href="[% mkurl(ctx.opac_root _ '/myopac/holds/edit', {id => ahr.id}) %]">Edit</a>
</td>
</tr>
[% END %]
<div id='myopac_bookbag_div' style="padding:5px;">
<!-- new list creation -->
- <form action="[% ctx.opac_root %]/myopac/list/update" method="POST" id="create_form">
+ <form action="[% mkurl(ctx.opac_root _ '/myopac/list/update') %]" method="POST" id="create_form">
<h1>[% l('Create new list') %]</h1><a name="createnewlist"></a>
<table cellpadding="0" border="0" id="list_create_table">
<tr>
<td>
[% recid = f.xact.circulation.target_copy.call_number.record.id || f.xact.reservation.target_resource_type.record.id;
IF recid; %]
- <a href="[% ctx.opac_root %]/record/[% recid %]">[% attrs.title | html %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/record/' _ recid,
+ {loc => ctx.search_ou}) %]">[% attrs.title | html %]</a>
[% ELSE %]
[% attrs.title | html %]
[% END %]
</td>
- <td>
- <a href="[% ctx.opac_root %]/results?qtype=author&query=[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author | html %]</a>
+ <td>[%- author_query = attrs.author.replace('[,\.:;]', ''); %]
+ <a href="[% mkurl(ctx.opac_root _ '/results',
+ {qtype => 'author', query => author_query,
+ loc => ctx.search_ou}) %]">[% attrs.author | html %]</a>
</td>
<td name='myopac_circ_trans_start'>
[% ts = f.xact.circulation.xact_start || f.xact.reservation.start_time || 0;
ELSE;
cls_which = "acct-tab-off";
END -%]
- <a href="[% ctx.opac_root _ '/myopac/' _ page.url %]"
+ <a href="[% mkurl(ctx.opac_root _ '/myopac/' _ page.url) %]"
class="[% cls_which %]">[% page.name; %]</a>
[% END %]
</div>
<tr>
<td>[% l("Items Currently Checked out ([_1])", ctx.user_stats.checkouts.total_out) %]</td>
<td align="right">
- <a href="[% ctx.opac_root %]/myopac/circs">[% l("View All") %]</a>
+ <a href="[% mkurl(ctx.opac_root + '/myopac/circs') %]">[% l("View All") %]</a>
</td>
</tr>
</table>
<tr>
<td>[% l('Items Currently on Hold ([_1])', ctx.user_stats.holds.total) %]</td>
<td align="right">
- <a href="[% ctx.opac_root %]/myopac/holds">[% l('View All') %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/myopac/holds') %]">[% l('View All') %]</a>
</td>
</tr>
</table>
<tr>
<td>[% l('Items ready for pickup ([_1])', ctx.user_stats.holds.ready) %]</td>
<td align="right">
- <a href="[% ctx.opac_root %]/myopac/holds?available=1">[% l('View All') %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/myopac/holds', {available => 1}) %]">[% l('View All') %]</a>
</td>
</tr>
</table>
<div id='acct_fines_tabs'>
[% IF myopac_main_page == 'main' %]
<a href='#' class="acct-tab-on">[% l("Fines") %]</a>
- <a href='main_payments' class="acct-tab-off">[% l("Payments") %]</a>
+ <a href='[% mkurl(ctx.opac_root _ '/myopac/main_payments') %]' class="acct-tab-off">[% l("Payments") %]</a>
[% ELSE %]
- <a href='main' class="acct-tab-off">[% l("Fines") %]</a>
+ <a href='[% mkurl(ctx.opac_root _ '/myopac/main') %]' class="acct-tab-off">[% l("Fines") %]</a>
<a href='#' class="acct-tab-on">[% l("Payments") %]</a>
[% END %]
</div>
<div class="float-right">
[% IF !ctx.user %]
<div id="your-acct-login">
- <a href="[% ctx.opac_root %]/myopac/main"
+ <a href="[% mkurl(ctx.opac_root _ '/myopac/main') %]"
class="opac-button" id="home_myopac_link">
[% l('Your Account Log in') %]
</a>
[% l('[_1] [_2]', ctx.user.first_given_name, ctx.user.family_name) | html %]
</span>
<span class="dash_divider">|</span>
- <a href="[% ctx.opac_root %]/myopac/main"
+ <a href="[% mkurl(ctx.opac_root _ '/myopac/main') %]"
class="opac-button">[% l('My Account') %]</a>
- <a href="[% ctx.opac_root %]/logout" class="opac-button"
- id="logout_link">[% l('Logout') %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/logout', {}, 1) %]"
+ class="opac-button" id="logout_link">[% l('Logout') %]</a>
</div>
<div id="dashboard">
<span class="dash-align">
- <a class="dash-link" href="[% ctx.opac_root %]/myopac/circs"><span id="dash_checked">[% ctx.user_stats.checkouts.total_out %]</span> [% l("Checked Out") %]</a>
+ <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/circs')
+ %]"><span id="dash_checked">[% ctx.user_stats.checkouts.total_out
+ %]</span> [% l("Checked Out") %]</a>
</span>
<span class="dash_divider">|</span>
<span class="dash-align">
- <a class="dash-link" href="[% ctx.opac_root %]/myopac/holds"><span id="dash_holds">[% ctx.user_stats.holds.total %]</span> [% l("On Hold") %]</a>
+ <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/holds')
+ %]"><span id="dash_holds">[% ctx.user_stats.holds.total
+ %]</span> [% l("On Hold") %]</a>
</span>
<span class="dash_divider">|</span>
<span class="dash-align">
- <a class="dash-link" href="[% ctx.opac_root %]/myopac/holds?available=1"><span id="dash_pickup">[% ctx.user_stats.holds.ready %]</span> [% l("Ready for Pickup") %]</a>
+ <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/holds',
+ {available => 1}) %]"><span id="dash_pickup">[%
+ ctx.user_stats.holds.ready %]</span> [% l("Ready for Pickup") %]</a>
</span>
<span class="dash_divider">|</span>
<span class="dash-align">
- <a class="dash-link" href="[% ctx.opac_root %]/myopac/main"><span id="dash_fines">[% money(ctx.user_stats.fines.balance_owed) %]</span> [% l("Fines") %]</a>
+ <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/main')
+ %]"><span id="dash_fines">[% money(ctx.user_stats.fines.balance_owed)
+ %]</span> [% l("Fines") %]</a>
</span>
</div>
</div>