fixed odd bug w/ href attrs rendering the copyright symbol for &copy_limit=
authorberick <berick@esilibrary.com>
Fri, 1 Apr 2011 18:34:49 +0000 (14:34 -0400)
committerberick <berick@esilibrary.com>
Fri, 1 Apr 2011 18:38:40 +0000 (14:38 -0400)
Open-ILS/web/templates/default/opac/parts/record/summary.tt2

index c60c248..83a96cd 100644 (file)
             new_offset = ctx.copy_offset - ctx.copy_limit;
             IF new_offset < 0; new_offset = 0; END %]
             <td>
-                <a href="[% ctx.opac_root %]/record/[% record.id %]?copy_offset=[% new_offset %]&copy_limit=[% ctx.copy_limit %]">&laquo; [%
+                [%# For some reason, browsers render &copy (as in, &copy_limit=foo) as the copyright 
+                    symbol, even though it's inside inside the href attribute string.  Use ; instead %]
+                <a href="[% ctx.opac_root %]/record/[% record.id %]?copy_offset=[% new_offset %];copy_limit=[% ctx.copy_limit %]">&laquo; [%
                     l('Previous [_1]', ctx.copy_offset - new_offset)
                 %]</a>
             </td>
         [% END %]
         [% IF ctx.copies.size >= ctx.copy_limit %]
             <td>
-                <a href="[% ctx.opac_root %]/record/[% record.id %]?copy_offset=[% ctx.copy_offset + ctx.copy_limit %]&copy_limit=[% ctx.copy_limit %]">[%
+                <a href="[% ctx.opac_root %]/record/[% record.id %]?copy_offset=[% ctx.copy_offset + ctx.copy_limit %];copy_limit=[% ctx.copy_limit %]">[%
                     l('Next [_1]', ctx.copy_limit)
                 %] &raquo;</a>
             </td>