Fix for KPAC multi-format items
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 6 Jan 2015 18:30:27 +0000 (13:30 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 19 Nov 2016 12:38:09 +0000 (07:38 -0500)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Conflicts:

Open-ILS/src/templates/kpac/record.tt2
Open-ILS/web/css/skin/default/kpac/style.css

Open-ILS/src/templates/kpac/parts/record_row.tt2
Open-ILS/src/templates/kpac/record.tt2
Open-ILS/web/css/skin/default/kpac/style.css

index 38c39ad..de10084 100644 (file)
             [% l('[_1], [_2]', attrs.publisher, attrs.pubdate) | html %] <!-- TODO fix commas, etc. -->
             [% IF attrs.phys_desc %]<br/>[% attrs.phys_desc | html; END %]
         </div>
+               
+        [%- IF attrs.format_label %]
+            [% FOR format IN attrs.all_formats %]
+                       <div class="item_icon_wrapper">
+                               <div class="item_icon">
+                                   <img title="[% format.label | html %]" 
+                    alt="[% format.label | html %]" 
+                    src="[% format.icon %]" /><br/>
+                    [% format.label | html %]
+                               </div>
+                       </div>
+            [% END %]
+                   <div class="clear">&nbsp;</div>
+           [% END %]
+       
         [% IF show_actions %]
         <div class="item_detail_actions">
             <div class="button"><a href="[% mkurl(ctx.kpac_root _ '/record/' _ rec_id) %]"><img 
         </div>
         [% END %]
     </div>
-    <div class="item_icon_wrapper">
-        <div class="item_icon">
-            &nbsp;<img width="35" alt="[% attrs.format_label %]" src="[% attrs.format_icon %]" />&nbsp; 
-            <!-- put a single &nbsp; around each side of the image - for vertical centering -->
-        </div>
-        <div class="item_icon_type_text">[% attrs.format_label %]</div>
-    </div>
     <div class="clear">&nbsp;</div>
 </div>
 
index b28cfe2..12824e6 100644 (file)
             </div>
             <div class="clear">&nbsp;</div>
 
-
             [%- IF attrs.format_label %]
                 [% FOR format IN attrs.all_formats %]
-                    <div class="item_icon_wrapper">   
-                        <div class="item_icon">
-                            &nbsp;<img width="35" alt="[% attrs.format_label %]" src="[% attrs.format_icon %]" />&nbsp;
-                        </div>
-                    <div class="item_icon_type_text">[% attrs.format_label %]</div>
+                                   <div class="item_icon_wrapper">
+                                       <div class="item_icon">
+                                           <img title="[% format.label | html %]" 
+                            alt="[% format.label | html %]" 
+                            src="[% format.icon %]" /><br/>
+                            [% format.label | html %]
+                                           </div>
+                                       </div>
                 [% END %]
             [% END %]
             </div>
-
-
         </div>
     </div>
 
index 34904c0..d7104e1 100755 (executable)
@@ -512,22 +512,20 @@ input[type=text], input[type=password], textarea {
        background:url('/images/kpac/icon_bg.png') no-repeat;
        text-align:center;
        overflow:hidden;
-       line-height:80px;
 }
 
 .item_icon img {
-       vertical-align:middle;
-       position:relative;
-       top:-1px;
+       width:30px;
+       height:30px;
+       margin:10px;
+       
 }
 
 .item_icon_type_text {
        width:80px;
-       height:24px;
        text-align:center;
        overflow:hidden;
        display:table-cell;
-       vertical-align:middle;
        line-height:12px;
 }
 
@@ -812,7 +810,8 @@ input[type=text], input[type=password], textarea {
 }
 
 .search_results .item_detail_info .item_detail_actions {
-       padding-top:28px;
+       padding-top:0px;
+       margin-left:20px;
 }
 
 .search_results