KMAIN 1352
authorMichael Glass <mglass@catalystitservices.com>
Thu, 2 Apr 2015 17:59:55 +0000 (10:59 -0700)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Added an inline style to the sees link, modified positioning of number
  of links. Fixed broken link issue

Signed-off-by: Michael Glass <mglass@catalystitservices.com>
KCLS/openils/var/templates_kcls/opac/browse_results.tt2

index 3fbaaa8..bf11734 100644 (file)
                                                         id = h.target; NEXT IF seenit.$id; seenit.$id = 1; %]
                                                                                                                        [% target = h.target; %]
                                                                                                                        [% IF result.ref_headings.$target.show == 1; %]
-                                                                                                                               <li><span class="browse-result-authority-field-name">[% result.ref_headings.$target.display %]</span>
-                                                                                                                                       <a class="staff-client-link"
-                                                                                                                                               url="[% mkurl(ctx.opac_root _ '/see_also', {query => 'identifier|authority_id[' _ h.target _ ']'}
-                                                                                                                                                                       ) %];
-                                                                                                                                               see_also=[% h.heading | html %]" 
-                                                                                                                                               onclick = "new_tab( this )" >
-                                                                                                                                               [% h.heading | html %]
-                                                                                                                                       </a>
-                                                                                                                                       <span class="browse-result-authority-bib-links browse-result-sources">([% h.target_count %])</span>
+                                                                                                                               <li>
+                                                                                                                                               <div style="display:block; width:99%;" class="browse-result-authority-field-name">[% result.ref_headings.$target.display %]
+                                                                                                                                                       <a class="staff-client-link" 
+                                                                                                                                                               see_also="[% h.heading | html %]" 
+                                                                                                                                                               url="[% mkurl(ctx.opac_root _ '/see_also', {query => 'identifier|authority_id[' _ h.target _ ']'}
+                                                                                                                                                                                       ) %];see_also=[% h.heading | html %]" 
+                                                                                                                                                               onclick = "new_tab( this )" >
+                                                                                                                                                               [% h.heading | html %]
+                                                                                                                                                       </a>
+                                                                                                                                                       
+                                                                                                                                                       <!-- This was pretty much the only way to do this, sets allows the a tag to wrap while maintaining vertical alignment of the sees number -->
+                                                                                                                                                       <span style="float:right; position:relative; left: 1%;" class="browse-result-authority-bib-links browse-result-sources">([% h.target_count %])</span>
+                                                                                                                                               </div>
+
                                                                                                                                        <div>
                                                                                                                                                [% FOR note IN result.ref_headings.$target.notes %]
                                                                                                                                                        <div class="browse-public-general-note">
                                                                                                                                                [% END %]
                                                                                                                                        </div>
                                                                                                                                </li>
+                                                                                                                               <br>
                                                                                                                        [% END %]
                                                     [% END %]
                                                 [% END %]