Make bookbag title/author links
authorBill Erickson <berick@esilibrary.com>
Thu, 8 Sep 2011 19:54:47 +0000 (15:54 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 8 Sep 2011 19:55:49 +0000 (15:55 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/opac/myopac/lists.tt2

index 9e1ba61..403c10a 100644 (file)
                         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>