From: Bill Erickson <berick@esilibrary.com> Date: Thu, 8 Sep 2011 19:54:47 +0000 (-0400) Subject: Make bookbag title/author links X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6a244e866430fe67c5ceea408c163dc2236de929;p=evergreen%2Fmasslnc.git Make bookbag title/author links Signed-off-by: Bill Erickson <berick@esilibrary.com> --- 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>