TPAC: Remove more inline styles from results table
authorDan Scott <dscott@laurentian.ca>
Mon, 12 Dec 2011 05:44:34 +0000 (00:44 -0500)
committerDan Scott <dscott@laurentian.ca>
Mon, 12 Dec 2011 05:44:34 +0000 (00:44 -0500)
Most of the inline styles are gone from the results table.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/result/table.tt2
Open-ILS/web/css/skin/default/opac/style.css

index ce786fd..a8a277e 100644 (file)
@@ -50,7 +50,7 @@
                                                         href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"
                                                         class='search_link'>[% attrs.title | html %]</a>
                                                 </div>
-                                                <div style="font-size:11px;">
+                                                <div>
                                                     <div>
                                                         <em><a title="[% l("Perform an Author Search") %]"
                                                                 name='item_author'
                                                         %]
                                                     </div>
                                                 </div>
-                                                <div class="hide_me">
-                                                    <span name='result_table_extra_span' class='hide_me'>
-                                                        <span name='result_table_pub_box'
-                                                            style='padding-left: 10px;'>
-                                                            <span name='result_table_edition_span'
-                                                                style='padding-left: 10px;'></span> |
-                                                            <span name='result_table_pub_span'> </span> |
-                                                            <span name='result_table_phys_span'> </span>
-                                                        </span>
-                                                    </span>
-                                                </div>
                                             </td>
 
                                             <td name='result_table_format_cell' class='result_table_format_cell' width="1">
 
                                             </td>
                                             <td nowrap='nowrap' width="1" align="right">
-                                                <div style="width:250px;text-align:left;">
-                                                    <div style="float:right;">
+                                                <div class="result_table_utils_cont">
+                                                    <div class="result_table_utils">
                                                         <div class="results_aux_utils place_hold"><a
                                                                 href="[% mkurl(ctx.opac_root _ '/place_hold', 
                                                                     {hold_target => rec.id, hold_type => 'T', hold_source_page => mkurl()}) %]" 
                                                                     name="place_hold_link" class="no-dec"><img
                                                                 src="[% ctx.media_prefix %]/images/green_check.png"
-                                                                alt=""/><span style="position:relative;top:-3px;left:3px;">[% l('Place Hold') %]</span></a>
+                                                                alt=""/><span class="result_place_hold">[% l('Place Hold') %]</span></a>
                                                         </div>
-                                                        <div class="results_aux_utils opac-auto-011">
+                                                        <div class="results_aux_utils result_util">
                                                             [%  
                                                                 operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
                                                                 label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
                                                             </a>
                                                         </div>
                                                         [% IF ENV.OILS_CONTENT_CAFE_USER %]
-                                                        <div class="results_aux_utils opac-auto-011">
+                                                        <div class="results_aux_utils result_util">
                                                             <a title="[% l('Reviews and More') %]" target='_blank' 
                                                                 href="[% ctx.proto %]://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=[%- 
                                                                     ENV.OILS_CONTENT_CAFE_USER %]&amp;Password=[%-
                                                                     ENV.OILS_CONTENT_CAFE_PASS %]&amp;ItemKey=[% ident | uri %]&Options=Y">
                                                                 <img src='[% ctx.media_prefix %]/images/starz.png'/> 
-                                                                <span style='position:relative;top:-5px;'>[% l('Reviews &amp; More') %]</span>
+                                                                <span class="results_reviews">[% l('Reviews &amp; More') %]</span>
                                                             </a>
                                                         </div>
                                                         [% END %]
index cf1bcd2..27eb9d8 100644 (file)
@@ -407,6 +407,16 @@ div.format_icon {
        padding-right: 50px;
 }
 
+.result_util {
+    border-bottom: 1px dotted #ccc;
+    padding-top: 6px;
+}
+
+.results_reviews {
+    position: relative;
+    top: -5px;
+}
+
 #rdetail_copies {
     padding-top: 1.5em;
 }
@@ -715,8 +725,20 @@ tr.result_table_row td.result_table_row {
     padding-top: 1em;
 }
 
+div.result_table_utils_cont {
+    width: 250px;
+    text-align:left;
+}
 
+div.result_table_utils {
+    float: right;
+}
 
+div.result_place_hold {
+    position: relative;
+    top: -3px;
+    left:3px;
+}
 
 .icon_text {
        text-transform:capitalize;
@@ -1266,10 +1288,6 @@ table.bookbag-specific {
 .save-notes { padding-bottom: 1.5ex; }
 
 /* Moved from semiauto.css */
-.opac-auto-011 {
-    border-bottom: 1px dotted #ccc;
-    padding-top: 6px;
-}
 .adv_global_input_container { border-bottom: none; }
 .opac-auto-013 {
     border-bottom: none;