TPac: more template scrubbing and cleaning
authorBill Erickson <berick@esilibrary.com>
Thu, 1 Sep 2011 18:41:42 +0000 (14:41 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 1 Sep 2011 18:41:42 +0000 (14:41 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/opac/myopac/prefs.tt2
Open-ILS/src/templates/opac/myopac/prefs_notify.tt2
Open-ILS/src/templates/opac/parts/anon_list.tt2
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/result/lowhits.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2
Open-ILS/src/templates/opac/parts/searchbar.tt2
Open-ILS/web/css/skin/default/opac/semiauto.css

index 2db15e5..2aeea79 100644 (file)
             </tr>
 
             <tr>
-                <td class='color_4 light_border'>
-                [% l("Day Phone") %]</td>
-
-                <td class='light_border'
-                    id='myopac_summary_dayphone'>[% ctx.user.day_phone | html %]</td>
-
-                <td class='light_border'><a href='#'
-                   class="hide_me"
-                   id='myopac_summary_phone1_change'
-                   style=
-                   'text-decoration: underline;'>[% l("Change") %]</a></td>
-            </tr>
-
-            <tr id='myopac_update_phone1_row'
-                class='hide_me'>
-                <td class='myopac_update_cell'
-                    colspan='3'>
-                    <span class='myopac_update_span'>
-                        Enter New [% l("Day Phone") %]:
-                    </span>
-
-                    <input type='text' size='24' id='myopac_new_phone1' />
-                    <span class='myopac_update_span'>
-                        <button>
-                            <span class='myopac_update_span'>
-                                [% l("Submit") %]</span>
-                        </button>
-                    </span>
-                    <span class='myopac_update_span'>
-                        <button>
-                            <span class='myopac_update_span'>
-                                [% l("Cancel") %]</span>
-                        </button>
-                    </span>
-                </td>
+                <td class='color_4 light_border'>[% l("Day Phone") %]</td>
+                <td class='light_border'>[% ctx.user.day_phone | html %]</td>
+                <td></td>
             </tr>
 
             <tr>
-                <td class='color_4 light_border'>
-                [% l("Evening Phone") %]</td>
-
-                <td class='light_border'
-                    id='myopac_summary_eveningphone'>[% ctx.user.evening_phone | html %]</td>
-
-                <td class='light_border'><a href='#'
-                   class="hide_me"
-                   id='myopac_summary_phone2_change'
-                   style=
-                   'text-decoration: underline;'>[% l("Change") %]</a></td>
-            </tr>
-
-            <tr id='myopac_update_phone2_row'
-                class='hide_me'>
-                <td class='myopac_update_cell'
-                    colspan='3'><span class='myopac_update_span'>New
-                    [% l("Evening Phone") %]:</span>
-                    <input type='text' size='24' id='myopac_new_phone2' />
-                    <span class='myopac_update_span'><button><span class=
-                        'myopac_update_span'>[% l("Submit") %]</span></button></span>
-                    <span class='myopac_update_span'><button><span class=
-                        'myopac_update_span'>[% l("Cancel") %]</span></button></span>
-                </td>
+                <td class='color_4 light_border'>[% l("Evening Phone") %]</td>
+                <td class='light_border'>[% ctx.user.evening_phone | html %]</td>
+                <td></td>
             </tr>
 
             <tr>
-                <td class='color_4 light_border'>
-                [% l("Other Phone") %]</td>
-
-                <td class='light_border'
-                    id='myopac_summary_otherphone'>[% ctx.user.other_phone | html %]</td>
-
-                <td class='light_border'><a href='#'
-                   class="hide_me"
-                   id='myopac_summary_phone3_change'
-                   style=
-                   'text-decoration: underline;'>[% l("Change") %]</a></td>
-            </tr>
-
-            <tr id='myopac_update_phone3_row'
-                class='hide_me'>
-                <td class='myopac_update_cell'
-                    colspan='3'><span class='myopac_update_span'>Enter
-                    New [% l("Other Phone") %]:</span>
-                    <input type='text' size='24' id='myopac_new_phone3' />
-                    <span class='myopac_update_span'><button><span class=
-                        'myopac_update_span'>[% l("Submit") %]</span></button></span>
-                    <span class='myopac_update_span'><button><span class=
-                        'myopac_update_span'>[% l("Cancel") %]</span></button></span>
-                </td>
+                <td class='color_4 light_border'>[% l("Other Phone") %]</td>
+                <td class='light_border'>[% ctx.user.other_phone | html %]</td>
+                <td></td>
             </tr>
 
             <tr>
             </tr>[% END %]
 
             <tr>
-                <td class='color_4 light_border'>
-                [% l("Active Barcode") %]</td>
-
+                <td class='color_4 light_border'>[% l("Active Barcode") %]</td>
                 <td class='light_border'>[% ctx.user.card.barcode %]</td>
-
                 <td></td>
             </tr>
 
             <tr>
-                <td class='color_4 light_border'>
-                [% l("Home Library") %]</td>
+                <td class='color_4 light_border'>[% l("Home Library") %]</td>
                 <td class='light_border'>[% ctx.user.home_ou.name | html %]</td>
-                <td><a href='#'
-                   class="hide_me"
-                   style='text-decoration: underline;'>[% l("Change") %]</a></td>
-            </tr>
-            <tr class='hide_me'>
-                <td class='myopac_update_cell'
-                    colspan='3'>
-                    <span class='myopac_update_span'>
-                        New home library:</span>
-                    <select>
-                    </select>
-                    <span class='myopac_update_span'>
-                        <button>
-                            <span class= 'myopac_update_span'>
-                                [% l("Submit") %]</span>
-                        </button>
-                    </span>
-                    <span class='myopac_update_span'>
-                        <button>
-                            <span class= 'myopac_update_span'>
-                                [% l("Cancel") %]</span>
-                        </button>
-                    </span>
-                </td>
+                <td></td>
             </tr>
-            <tr class="hide_me">
-                <td class='color_4 light_border'>
-                    [% l("Account Creation Date") %]
-                </td>
-                <td class='light_border'
-                    id='myopac_summary_create_date'></td>
+            <tr>
+                <td class='color_4 light_border'>[% l("Account Creation Date") %]</td>
+                <td class='light_border'>[% date.format(ctx.parse_datetime(ctx.user.create_date), DATE_FORMAT) %]</td>
                 <td></td>
             </tr>
         </tbody>
                             <tr>
                                 <td><input type='submit' value="[% l('Save Changes') %]"/></td>
                                 <td>
-                                    [% IF pending_addr;
-                                        url = mkurl('', {delete_pending => pending_addr.id}, 1);
-                                    ELSE;
-                                        url = mkurl('', {}, 1);
-                                    END %]
-                                    <a href="[% url %]">[% l('Discard Pending Address') %]</a>
+                                    [% params = (pending_addr) ? {delete_pending => pending_addr.id} : {} %]
+                                    <a href="[% mkurl('', params, 1) %]">[% l('Discard Pending Address') %]</a>
                                 </td>
                             </tr>
                             <tr><td colspan='2'><i>[% l('Address changes will be verified by staff') %]</i></td></tr>
index 91a3ce5..3729d37 100644 (file)
@@ -3,7 +3,6 @@
     myopac_page = "prefs_notify";
     prefs_page = 'notify' %]
 
-
 <form method='POST'>
 
     <div style="float:right;width:65px;">
         </tbody>
     </table>
 </form>
-
-
-<!-- NOTIFICATION PREFS / leaving here for reference
-<table class="hide_me"
-       id="acct_notify_main">
-    <tbody>
-        <tr class="hide_me">
-            <td><span>[% l("Default Hold Notification Method") %]</span> <a class=
-            'classic_link'
-               href='#'>[% l("(Help)") %]</a></td>
-
-            <td style="padding-left:15px;"><select id=
-            'prefs_hold_notify'>
-                <option value='phone:email'
-                        selected='selected'>
-                    [% l("Use Phone and Email") %]
-                </option>
-
-                <option value='phone'>
-                    [% l("Use Phone Only") %]
-                </option>
-
-                <option value='email'>
-                    [% l("Use Email Only") %]
-                </option>
-            </select></td>
-        </tr>
-
-        <tr>
-            <td style="padding-top:10px;"><strong>Pick Up Notice for
-            Holds</strong><br />
-            <input type="checkbox"
-                   id="opac.hold_notify.email"
-                   name="opac.hold_notify.email" /> <label for=
-                   "opac.hold_notify.email">Email</label><br />
-            <input type="checkbox"
-                   id="opac.hold_notify.phone"
-                   name="opac.hold_notify.phone" /> <label for=
-                   "opac.hold_notify.phone">Phone</label>
-                   <b>(Temporarily phone notification will generate a
-                   mailed paper notice.)</b></td>
-        </tr>
-
-        <tr>
-            <td style="padding-top:10px;"><strong>Expire Notice for
-            Holds</strong><br />
-            <input type="checkbox"
-                   id="notification.hold.expire.email"
-                   name="notification.hold.expire.email" /> <label for=
-                   "notification.hold.expire.email">Email</label></td>
-        </tr>
-
-        <tr>
-            <td style="padding-top:10px;"><strong>Cancel Notice for
-            Holds</strong><br />
-            <input type="checkbox"
-                   id="notification.hold.cancel.email"
-                   name="notification.hold.cancel.email" /> <label for=
-                   "notification.hold.cancel.email">Email</label></td>
-        </tr>
-
-        <tr>
-            <td style="padding-top:10px;"><strong>Overdue First
-            Notice</strong><br />
-            <input type="checkbox"
-                   id="notification.overdue.first.email"
-                   name="notification.overdue.first.email" />
-                   <label for=
-                   "notification.overdue.first.email">Email</label><br />
-            <input type="checkbox"
-                   id="notification.overdue.first.phone"
-                   name="notification.overdue.first.phone" />
-                   <label for=
-                   "notification.overdue.first.phone">Phone</label>
-                   <b>(Temporarily phone notification will generate a
-                   mailed paper notice.)</b></td>
-        </tr>
-
-        <tr>
-            <td style="padding-top:10px;"><strong>Courtesy
-            Notice</strong><br />
-            <input type="checkbox"
-                   id="notification.predue.email"
-                   name="notification.predue.email" /> <label for=
-                   "notification.predue.email">Email</label><br /></td>
-        </tr>
-    </tbody>
-</table>
--->
-
-
 [% END %]
 
 
index a4630ca..5101117 100644 (file)
@@ -1,6 +1,6 @@
         [% IF ctx.mylist.size %]
         <form action="[% ctx.opac_root %]/mylist/move" method="POST">
-        <div id='acct_list_template2'>
+        <div>
             <div style="width:100%">
                 <table cellpadding="0" cellspacing="0" border="0">
                     <tr>
@@ -45,7 +45,7 @@
                         </td>
                     </tr>
                 </thead>
-                <tbody id='anon_list_tbody'>
+                <tbody>
                     [% FOR item IN ctx.mylist;
                         attrs = {marc_xml => ctx.mylist_marc_xml.$item};
                         PROCESS get_marc_attrs args=attrs %]
index a256d35..a44e447 100644 (file)
                             <td nowrap='nowrap' valign="top">
                                 <strong>[% IF attrs.publisher; l("Publisher"); END %]</strong>
                             </td>
-                            <td valign="top" id='rdetail_publisher'>[% attrs.publisher | html %]</td>
+                            <td valign="top">[% attrs.publisher | html %]</td>
                             <td nowrap='nowrap' valign="top">
                                 <strong>[% IF attrs.pubdate; l("Publication Date"); END %]</strong>
                             </td>
index fe2d160..ecf245d 100644 (file)
@@ -1,22 +1,11 @@
-<div id='result_low_hits'>
+<div>
     <div id="zero_search_hits">
         <div>
             <p>[% l('Sorry, no entries were found for') %]
                 [% IF is_advanced OR is_special; l('your search'); ELSE %]
                 <q>[% CGI.param('query') | html %]</q>
                 [% END %]
-                <br />
-                <span id="zero_hits_label1" class="hide_me">[% l('Did you mean') %]
-                    <strong><a id="spell_check_link" href="javascript:;"></a></strong>?</span>
             </p>
-            <table cellpadding="0" cellspacing="0" border="0">
-                <tr>
-                    <td valign="top" style="padding-right:10px;">
-                        <span id="zero_hits_label2" class="hide_me">[% l('Other Possibilities:') %]</span>
-                    </td>
-                    <td id="zero_hits_suggestions"></td>
-                </tr>
-            </table>
         </div>
         <div style="float:right;width:353px;background:#ccc;padding:10px;margin-top:7px;">
             [% INCLUDE "opac/parts/result/lowhits_purchase.tt2" %]
             </p>
         </div>
     </div>
-    <div class="hide_me">
-        <div style='text-align: center; padding-bottom: 8px;' class="hide_me">
-            <div id='result_low_hits_msg' class='hide_me'>[% l("Few hits were returned for your search.") %]</div>
-            <div id='result_zero_hits_msg' class='hide_me'>[% l("Zero hits were returned for your search.") %]</div>
-        </div>
-
-        <!-- spell checker -->
-        <div id='did_you_mean' class='lowhits_div hide_me'>
-            <span>[% l("Maybe you meant:") %] </span>
-            <!-- <a class='classic_link' id='spell_check_link'> </a> -->
-        </div>
-
-        <div id='low_hits_remove_format' class='lowhits_div hide_me'>
-            <span>[% l("You will find more hits when searching all item formats:") %] </span>
-            <a id='low_hits_remove_format_link' class='classic_link'>[% l("Search again with all formats?") %]</a>
-        </div>
-
-        <div id='low_hits_cross_ref' class='lowhits_div hide_me'>
-            <span>[% l("You may also like to try these related searches:") %]</span>
-            <div style='padding: 5px;'>
-                <a id='low_hits_xref_link' class='classic_link' style='padding-right: 5px;'> </a>
-            </div>
-        </div>
-
-        <div id='low_hits_expand_range' class='lowhits_div hide_me'>
-            <span>[% l("You may also wish to expand your search range to:") %] </span>
-            <a id='low_hits_expand_link' class='classic_link' style='padding-right: 5px;'> </a>
-        </div>
-
-        <div id='low_hits_search_type' class='lowhits_div hide_me'>
-            <span>[% l("You can try searching the same terms by:") %]</span>
-            <a id='low_hits_title_search' class='hide_me classic_link' 
-                style='padding-right: 5px;'>[% l("title") %]</a>
-            <a id='low_hits_author_search' class='hide_me classic_link' 
-                style='padding-right: 5px;'>[% l("author") %]</a>
-            <a id='low_hits_subject_search' class='hide_me classic_link' 
-                style='padding-right: 5px;'>[% l("subject") %]</a>
-            <a id='low_hits_series_search' class='hide_me classic_link' 
-                    style='padding-right: 5px;'>[% l("series") %]</a>
-            <a id='low_hits_keyword_search' class='hide_me classic_link' 
-                style='padding-right: 5px;'>[% l("keyword") %]</a>
-        </div>
-    </div>
 </div>
index ed58d26..905307e 100644 (file)
     <table cellpadding="0" cellspacing="0" border="0" width="100%">
         <tr>
             <td valign="top" width="1" style="padding-right:20px;">
-                <div style="width:174px;" class="hide_me" id="tehSideBar">SIDEBAR TODO
+                <div style="width:174px;" class="hide_me">
+                    SIDEBAR TODO
                 </div>
             </td>
             <td class='opac-auto-015' width="1"></td>
             <td valign="top">
-                <table id="res_table" cellpadding="0" cellspacing="0"
+                <table cellpadding="0" cellspacing="0"
                     border="0" width="100%" style="margin-top:10px;">
                     <tbody id="result_table">
                     [%  FOR rec IN ctx.records;
index aec70db..0215c74 100644 (file)
                 [% INCLUDE "opac/parts/coded_value_selector.tt2" attr=["mattype", "item_type"] none_ok=1 none_label=l('All Formats') %]
             </td>
             <td>
-                <span id='depth_selector_span'>
+                <span>
                     [% PROCESS build_org_selector name='loc' value=CGI.param('loc') %]
                 </span>
-                <span id='lib_selector_span'>
-                    <a id='lib_selector_link' class='classic_link'
-                        href='#'>[% l("Choose a library to search") %]</a>
-                </span>
             </td>
         </tr>
         [% END %]
index 7eae4b5..dbae5b2 100644 (file)
@@ -21,7 +21,6 @@
 /* ------------------------------------------- */
 
 
-#lib_selector_span { display: none }
 .float-left { float: left; }
 .bookbag-share { float: left; padding: 5px 0; }
 .bookbag-controls { float: left; padding: 5px 0px 0px 10px; }