beanstalk : comments, formatting
authorBill Erickson <berick@esilibrary.com>
Fri, 6 Apr 2012 19:58:43 +0000 (15:58 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 6 Apr 2012 19:58:43 +0000 (15:58 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/beanstalk/results.tt2

index 0274c85..9b33e67 100644 (file)
@@ -1,7 +1,7 @@
-[%  PROCESS 'opac/parts/header.tt2';
-    WRAPPER 'beanstalk/base.tt2';
-    PROCESS 'opac/parts/misc_util.tt2';
-    PROCESS 'beanstalk/paginate.tt2';
+[%  PROCESS 'opac/parts/header.tt2';    # global imports, locale stuff, mkurl()
+    WRAPPER 'beanstalk/base.tt2';       # slimmer base + mobile CSS
+    PROCESS 'opac/parts/misc_util.tt2'; # MARC extraction
+    PROCESS 'beanstalk/paginate.tt2';   # modified paginator
     ctx.page_title = l("Search Results: ") _ CGI.param('query') | html;
 %]
 
@@ -15,7 +15,9 @@
         <td class='results_pictd'>
             [% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
             <a href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"><img alt="[% l('Image') %]"
-                    style="width:55px;height:73px;" src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident | uri %]' /></a><br />
+                    style="width:55px;height:73px;" 
+                    src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident | uri %]' 
+                    /></a><br />
             [% END %]
         </td>
         <td>
                 END 
             %]
             <a href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"
-                [% HTML.attributes(title => l('Display record details for "[_1]"', attrs.title)) %]>[% title | html %]</a>
+                [% HTML.attributes(title => 
+                    l('Display record details for "[_1]"', attrs.title)) %]>[% title | html %]</a>
 
             <div style='padding-left: 15px;'>
                 <div>
                     <a title="[% l("Perform an Author Search") %]"
                         href="[%- 
                             authorquery = attrs.author | replace('[,\.:;]', '');
-                            mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, ['page'])
+                            mkurl(ctx.opac_root _ '/results', 
+                                {qtype => 'author', query => authorquery}, ['page'])
                         -%]">[% attrs.author | html %]</a>
                 </div>
                 <div>[% args.phys_desc | html %]</div>
@@ -40,7 +44,6 @@
         </td>
     </tr>
     [% END %]
-
 </table>
 
 [% PROCESS results_paginate paginate_show_summary=0 %]