TPac: repaired undefiend 'loc' var in author 'extras' link
authorBill Erickson <berick@esilibrary.com>
Mon, 12 Sep 2011 16:07:43 +0000 (12:07 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 12 Sep 2011 16:07:43 +0000 (12:07 -0400)
Ported the bare href to mkurl() while I was in there

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/opac/parts/record/authors.tt2

index 3a03c3e..0fabf46 100644 (file)
@@ -31,7 +31,8 @@ BLOCK build_author_links;
             code = subfield.getAttribute('code');
             NEXT UNLESS code.match('[a-z]');
             term = subfield.textContent | html;
-            '<br/><a href="' _ ctx.opac_root _ '/results?qtype=author&amp;query=' _ term _ '&amp;loc=' _ loc _ '">' _ term _ '</a>';
+            url = mkurl(ctx.opac_root _ '/results', {query => subfield.textContent, qtype => 'author'}, ['page', 'expand']);
+            '<br/><a href="' _ url _ '">' _ term _ '</a>';
         END;
     END;
 END;