TPac: more cleanup of unused IDs and files
authorBill Erickson <berick@esilibrary.com>
Wed, 31 Aug 2011 21:13:23 +0000 (17:13 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 31 Aug 2011 21:13:23 +0000 (17:13 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/default/opac/parts/record/cn_details.tt2 [deleted file]
Open-ILS/src/templates/default/opac/parts/record/cnbrowse.tt2
Open-ILS/src/templates/default/opac/parts/record/copyinfo.tt2 [deleted file]
Open-ILS/src/templates/default/opac/parts/record/extras.tt2
Open-ILS/src/templates/default/opac/parts/record/issues.tt2
Open-ILS/src/templates/default/opac/parts/record/series.tt2
Open-ILS/src/templates/default/opac/parts/record/subjects.tt2
Open-ILS/src/templates/default/opac/parts/record/summary.tt2
Open-ILS/web/css/skin/default/opac/semiauto.css
Open-ILS/web/css/skin/default/opac/style.css

diff --git a/Open-ILS/src/templates/default/opac/parts/record/cn_details.tt2 b/Open-ILS/src/templates/default/opac/parts/record/cn_details.tt2
deleted file mode 100644 (file)
index ea48f3e..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<table class="hide_me">
-    <tbody>
-        <tr class='opac-auto-009' id='rdetail_volume_details_row' templateRow='1'>
-            <td colspan='10'>
-                <div style='text-align: center; margin-top: 6px; margin-bottom: 6px'>
-                    <a name='print' href='#' class='classic_link'>[% l("print these details") %]</a>
-                    <table class='data_grid data_grid_center' style='width: 100%'>
-                        <tbody name='copies_tbody' class='copy_details_table' width='100%'>
-
-                                <!-- XXX keeping for now for reference...
-                                <td>
-                                    <span name='barcode'> </span>
-                                    <a class='hide_me classic_link copy_more_info'
-                                        name='details_link'>[% l("more info...") %]</a>
-                                    <a class='hide_me classic_link copy_more_info'
-                                        name='less_details_link'>[% l("less info") %]</a>
-                                    <a class='hide_me classic_link copy_more_info'
-                                        name='copy_hold_link' href='#'>[% l("place hold") %]</a>
-                                </td>
-                                <td name='status'> </td>
-                                <td name='location'> </td>
-                                <td name='age_protect_value' class='hide_me'>[% l("- Disabled -") %]</td>
-                                <td name='create_date_value' class='hide_me'> </td>
-                                <td name='copy_holdable_td' class='hide_me'>
-                                    <span name='copy_is_holdable'> </span>
-                                </td>
-                                <td name='copy_due_date_td' class='hide_me'>
-                                    <span name='copy_due_date'> </span>
-                                </td>
-                            </tr>
-                                -->
-
-                            <tr name='copy_extras_row' class='hide_me'>
-                                <td colspan='10'>
-                                    <table width='100%' class='data_grid'>
-                                        <tbody name='extras_tbody'>
-                                            <tr name='extras_row' class='hide_me'>
-                                                <td name='type' width='20%'>
-                                                    <span name='note' class='hide_me'>
-                                                        <b>[% l("Copy Note") %]</b>
-                                                    </span>
-                                                    <span name='cat' class='hide_me'>
-                                                        <b>[% l("Copy Category") %]</b>
-                                                    </span>
-                                                </td>
-                                                <td>
-                                                    <span name='key'> </span> : <span name='value'> </span>
-                                                </td>
-                                            </tr>
-                                        </tbody>
-                                    </table>
-                                </td>
-                            </tr>
-                        </tbody>
-                    </table>
-                </div>
-            </td>
-        </tr>
-    </tbody>
-</table>
-
-<span class='hide_me' id='rdetail.yes'>[% l("Yes") %]</span>
-<span class='hide_me' id='rdetail.no'>[% l("No") %]</span>
-
-<div id='rdetail_print_details' class='hide_me'>
-    <div style='text-align: center; padding: 20px; width: 100%'>
-        <div style='width:100%; border: 2px solid #E0F0E0; margin-bottom: 20px;'>
-            <input type='submit' value='[% l("Print Page") %]' onclick='window.print();' />
-        </div>
-        <div name='body'>
-            <table>
-                <tbody name='tbody'>
-                    <tr><td>[% l("Library") %]</td><td colspan='2' name='lib'></td></tr>
-                    <tr><td>[% l("Title") %]</td><td colspan='2' name='title'></td></tr>
-                    <tr><td>[% l("Author") %]</td><td colspan='2' name='author'></td></tr>
-                    <tr><td>[% l("Edition") %]</td><td colspan='2' name='edition'></td></tr>
-                    <tr><td>[% l("Publication Date") %]</td><td colspan='2' name='pubdate'></td></tr>
-                    <tr><td>[% l("Publisher") %]</td><td colspan='2' name='publisher'></td></tr>
-                    <tr><td>[% l("Physical Description") %]</td><td colspan='2' name='phys'></td></tr>
-                    <tr>
-                        <td colspan='3' class='rdetail_print_details_cn_spacer'> </td>
-                    </tr>
-                    <tr name='cnrow'>
-                        <td><b>[% l("Call Number") %]</b></td>
-                        <td><b colspan='2' name='cn'></b></td>
-                    </tr>
-                </tbody>
-            </table>
-        </div>
-    </div>
-</div>
index 1b83642..b9498bb 100644 (file)
             <thead>
                 <tr>
                     <td>
-                        <a id='cn_browse_prev' class='classic_link' 
+                        <a class='classic_link' 
                             href="[% mkurl('', {cnoffset => cnoffset - 1}) %]#cnbrowse"><b>[% l("&lt;&lt; Previous Page") %]</b></a>
                     </td>
                     <td colspan='1' align='center'>[% l("Shelf Browser") %]</td>
                     <td>
-                        <a id='cn_browse_next' class='classic_link' 
+                        <a class='classic_link' 
                             href="[% mkurl('', {cnoffset => cnoffset + 1}) %]#cnbrowse"><b>[% l("Next Page &gt;&gt;") %]</b></a>
                     </td>
                 </tr>
             </thead>
-            <tbody id='cn_tbody'>
+            <tbody>
             [% tr_open = 0; FOR cn IN ctx.browsed_call_numbers %]
                 [%- IF loop.index % 3 == 0; tr_open = 1 %]
                 <tr class='cn_browse_row'>
diff --git a/Open-ILS/src/templates/default/opac/parts/record/copyinfo.tt2 b/Open-ILS/src/templates/default/opac/parts/record/copyinfo.tt2
deleted file mode 100644 (file)
index 9d4673f..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<!-- ****************** rdetail_copyinfo.xml ***************************** -->
-<div id='rdetail_copy_info_div' class='rdetail_extras_div hide_me'>
-    <div style='width: 100%; text-align: center; padding-bottom: 5px;'>
-        <span>
-            <a href='javascript:void(0);' id='copy_info_local_link' 
-                class='rdetail_copy_nav_link hide_me classic_link'><b>[% l("View Copy Information for this location only") %]</b></a>
-        </span>
-        <span width=''>
-            <a href='javascript:void(0);' id='copy_info_all_link' 
-                class='rdetail_copy_nav_link classic_link'><b>[% l("View copy information for all libraries") %]</b></a>
-        </span>
-    </div>
-    <table id='rdetail_copy_info_table' class='data_grid'>
-        <thead>
-            <tr>
-                <td class='rdetail_copy_info_header_cell'>[% l("Library") %]</td>
-                <td class='rdetail_copy_info_header_cell'>[% l("Callnumber") %]</td>
-                <td name='rdetail_copylocation_header' class='rdetail_copy_info_header_cell hide_me'>
-                    [% l("Copy Location") %]
-                </td>
-                <td class='rdetail_copy_info_header_cell'>[% l("Actions") %]</td>
-                <td nowrap='nowrap' class='rdetail_copy_info_header_cell' id='rdetail_copy_info_status'> 
-                    <div name='rdetail_status_cell'> </div>
-                </td>
-            </tr>
-        </thead>
-        <tbody id='rdetail_copy_info_tbody'>
-            <tr id='rdetail_copy_info_row' class='hide_me'>
-                <td name='rdetail_library_cell'>
-                    <a name='lib_print_link' class='hide_me classic_link'
-                        style='font-size: 8pt; padding-left: 20px;'>[% l("Print Call Numbers for this library") %]</a>
-                </td>
-                <td name='rdetail_callnumber_cell'> </td>
-                <td class="hide_me" name='rdetail_copylocation_cell'> </td>
-                <td name='rdetail_actions_cell'> 
-                    <div style='padding-bottom: 1px;'>
-                        <a style='font-size: 8pt;'
-                            name='details' class='hide_me classic_link'>[% l("Copy Details") %]</a>
-                    </div>
-                    <div style='margin-top: 2px;'>
-                        <a name='browse' style='font-size: 8pt;'
-                            class='hide_me classic_link'>[% l("Browse Call Numbers") %]</a>
-                    </div>
-                    <div style='margin-top: 2px;' name='hold_div' class='hide_me'>
-                        <a name='hold' style='font-size: 8pt;' href='javascript:void(0);'
-                            class='classic_link'>[% l("Place Hold") %]</a>
-                    </div>
-                </td>
-                <td nowrap='nowrap' class='rdetail_copy_count_cell vertical' 
-                    name='rdetail_copy_count_cell'>
-                </td>
-            </tr>
-            <tr id='rdetail_copy_info_loading'>
-                <td>
-                    [% l("Loading copy information...") %]
-                </td>
-            </tr>
-        </tbody>
-    </table>
-    <!-- <table class='hide_me'>
-        <tbody>
-        <tr class='opac-auto-009' id='rdetail_volume_details_row'><td colspan='10'></td></tr>
-        </tbody>
-    </table> -->
-    <br/><br/>
-    <div id='rdetail_copy_info_none' class='hide_me'>[% l(" * There are no copies in this location") %]</div>
-</div> <!-- copy info -->
-<!-- ****************** end: rdetail_copyinfo.xml ***************************** -->
index a800317..ec9b62a 100644 (file)
@@ -1,4 +1,4 @@
-<div id="rdetail_main_div">
+<div>
     <div id='rdetail_extras_div' style='width: 100%;'> 
 
         [%  # Hidden extras are not yet implemented.  Some may require JS
@@ -26,7 +26,6 @@
             {name => 'issues',   label => l('Issues Held'), hide => !ctx.have_holdings_to_show},
             {name => 'preview',  label => l('Preview'), hide => 1}, 
             {name => 'cnbrowse', label => l('Shelf Browser')},
-            {name => 'copyinfo', label => l('Copy Summary'), hide => 1}, 
             {name => 'marchtml', label => l('MARC Record')}
         ];
 
@@ -57,9 +56,4 @@
         </div>
         [% END %]
     </div>
-    <!--
-    <div id='rdetail_preview_full_text' class='hide_me'>[% l("Full text") %]</div>
-    <div id='rdetail_preview_title' class='hide_me'>[% l("See the full text of this book.") %]</div>
-    <div id='rdetail_preview_badge' class='hide_me'>[% l("Show a preview of this book from Google Book Search") %]</div>
-    -->
 </div>
index 551567d..e13efb2 100644 (file)
@@ -1,4 +1,4 @@
-<div id='rdetail_issues_div' class='rdetail_extras_div'>
+<div class='rdetail_extras_div'>
 [%
 base_expando = ctx.full_path _ "?expand=issues";
 FOREACH type IN ctx.holding_summaries.keys;
index cdfe588..edf99ba 100644 (file)
@@ -3,7 +3,7 @@
     loc = CGI.param('loc');
 %]
 
-<div id='rdetail_series_div'>
+<div>
     <table cellpadding="0" cellspacing="0" border="0">
     [%  FOR tag IN series_tags; %]
         <tr><td style='padding-top:5px;'>
index 3d02231..25f6e2e 100644 (file)
@@ -48,7 +48,7 @@
     END 
 %]
 
-<div id='rdetail_subject_div'>
+<div>
     <table cellpadding="0" cellspacing="0" border="0">
     [%  any_subjects = 0;
         FOREACH subj IN subjects;
index e2408d1..4a6d93f 100644 (file)
 <!-- This holds the record summary information -->
 
 <table width="100%" border="0" cellpadding="0" cellspacing="0" id="rdetail_details_table">
-    <tbody id="rdetail_details_tbody">
+    <tbody>
         <tr>
             <td width="90" valign="top" id="rdetail_image_cell">
                 [% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
-                <a id='rdetail_img_link' href='[% ctx.media_prefix %]/opac/extras/ac/jacket/large/[% ident | uri %]'><img
+                <a href='[% ctx.media_prefix %]/opac/extras/ac/jacket/large/[% ident | uri %]'><img
                     alt="[% l('Image of item') %]" id='rdetail_image'
                     src='[% ctx.media_prefix %]/opac/extras/ac/jacket/[% record.summary.jacket_size %]/[% ident | uri %]' /></a>
                 [% END %]
@@ -31,7 +31,6 @@
                             [% IF attrs.author %]
                             <span class='opac-auto-030'>[% l("Author") %]:</span>
                             <em><a title='[% l("Perform an author search") %]'
-                                    id='rdetail_author'
                                     href="[%- 
                                         authorquery = attrs.author | replace('[,\.:;]', '');
                                         mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, ['page'])
                     <table border="0" cellpadding="0" width="100%">
                         <tr>
                             <td nowrap='nowrap' valign="top">
-                                [% IF attrs.isbns.0 %]<strong id="rdetail_isbn_lbl">[% l("ISBN") %]</strong>[% END %]
+                                [% IF attrs.isbns.0 %]<strong>[% l("ISBN") %]</strong>[% END %]
                             </td>
-                            <td valign="top" id='rdetail_isbn'>
+                            <td valign="top">
                                 [% FOR isbn IN attrs.isbns %][% IF !loop.first; %]<br/>[% END; isbn | html ; END %]
                             </td>
                             <td nowrap='nowrap' valign="top">
-                                [% IF attrs.phys_desc %]<strong id="rdetail_phys_lbl">[% l("Physical Description") %]</strong>[% END %]
+                                [% IF attrs.phys_desc %]<strong>[% l("Physical Description") %]</strong>[% END %]
                             </td>
-                            <td valign="top" id='rdetail_physical_desc'>[% attrs.phys_desc | html %]</td>
+                            <td valign="top">[% attrs.phys_desc | html %]</td>
                         </tr>
                         [%- IF openurl.enabled == 'true';
                             FOR issn IN args.issns;
                             </td>
                             <td valign="top">[% attrs.marc_cn | html %]</td>
                             <td nowrap='nowrap' valign="top">
-                                <strong id="rdetail_ed_lbl">[% IF attrs.edition; l("Edition"); END %]</strong>
+                                <strong>[% IF attrs.edition; l("Edition"); END %]</strong>
                             </td>
-                            <td valign="top" id='rdetail_edition'>[% attrs.edition | html %]</td>
+                            <td valign="top">[% attrs.edition | html %]</td>
                         </tr>
                         <tr>
                             <td nowrap='nowrap' valign="top">
-                                <strong id="rdetail_pub_lbl">[% IF attrs.publisher; l("Publisher"); END %]</strong>
+                                <strong>[% IF attrs.publisher; l("Publisher"); END %]</strong>
                             </td>
                             <td valign="top" id='rdetail_publisher'>[% attrs.publisher | html %]</td>
                             <td nowrap='nowrap' valign="top">
-                                <strong id="rdetail_pubdate_lbl">[% IF attrs.pubdate; l("Publication Date"); END %]</strong>
+                                <strong>[% IF attrs.pubdate; l("Publication Date"); END %]</strong>
                             </td>
-                            <td valign="top" id='rdetail_pubdate'>[% attrs.pubdate | html %]</td>
+                            <td valign="top">[% attrs.pubdate | html %]</td>
                         </tr>
                     </table>
 
 
 <table cellpadding="0" cellspacing="0" border="0" width="100%" id="rdetails_status">
     <thead>
-        <tr id="rdetails_status_head">
+        <tr>
             <td>[% l("Location") %]</td>
             <td>[% l("Call Number") %]</td>
             <td>[% l("Barcode") %]</td>
index 2ec83d5..7eae4b5 100644 (file)
@@ -1,7 +1,6 @@
 /* once done renaming and everything, combine with style.css */
 
 /* Verfied in-use classes --------------------------- */
-.rdetail_print_details_cn_spacer { background: #E0F0E0; }
 .opac-auto-009 { border: 3px solid #E0E0E0; }
 .opac-auto-010 { border-bottom: 1px dotted #ccc; padding-top: 10px; }
 .opac-auto-011 { border-bottom: 1px dotted #ccc; padding-top: 6px; }
index 89a3da3..f1707af 100644 (file)
@@ -966,8 +966,6 @@ div.select-wrapper:hover {
     float: left; position: relative; top: 2px;
     left: -2px; margin-right: 4px;
 }
-#rdetail_copy_info_table { font-size: 8pt; }
-#rdetail_copy_info_table td { padding: 3px; }
 .search_page_nav_link { cursor: pointer; }
 #opac.result.sort { width: 160px; }
 .renew-summary { font-size: 125%; font-style: italic; margin: 0.5ex 0; }