From 6a244e866430fe67c5ceea408c163dc2236de929 Mon Sep 17 00:00:00 2001 From: Bill Erickson <berick@esilibrary.com> Date: Thu, 8 Sep 2011 15:54:47 -0400 Subject: [PATCH] Make bookbag title/author links Signed-off-by: Bill Erickson <berick@esilibrary.com> --- Open-ILS/src/templates/opac/myopac/lists.tt2 | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/opac/myopac/lists.tt2 b/Open-ILS/src/templates/opac/myopac/lists.tt2 index 9e1ba61b43..403c10a80f 100644 --- a/Open-ILS/src/templates/opac/myopac/lists.tt2 +++ b/Open-ILS/src/templates/opac/myopac/lists.tt2 @@ -131,9 +131,18 @@ attrs = {marc_xml => ctx.bookbags_marc_xml.$rec_id}; PROCESS get_marc_attrs args=attrs %] <tr> - <td class="item_list_padding" style="padding-left: 10px;"><input type="checkbox" name="selected_item" value="[% item.id %]" bbag='[% bbag.id %]'/></td> - <td class="item_list_padding" style="padding-left: 5px;">[% attrs.title | html %]</td> - <td class="item_list_padding">[% attrs.author | html %]</td> + <td class="item_list_padding" style="padding-left: 10px;"> + <input type="checkbox" name="selected_item" value="[% item.id %]" bbag='[% bbag.id %]'/> + </td> + <td class="item_list_padding" style="padding-left: 5px;"> + <a href="[% mkurl(ctx.opac_root _ '/record/' _ rec_id) %]">[% attrs.title | html %]</a> + </td> + <td class="item_list_padding"> + <a href="[%- + authorquery = attrs.author | replace('[,\.:;]', ''); + mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, ['page']) + -%]">[% attrs.author | html %]</a> + </td> </tr> [% END %] </tbody> -- 2.11.0