dtd-izing the tips stuff (and the "of" on the results pages)
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Nov 2005 03:28:11 +0000 (03:28 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Nov 2005 03:28:11 +0000 (03:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2015 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/web/opac/skin/default/js/tips.js
Open-ILS/web/opac/skin/default/xml/mresult.xml
Open-ILS/web/opac/skin/default/xml/result_table.xml
Open-ILS/web/opac/skin/default/xml/rresult.xml

index 6be654f..64cf1f9 100644 (file)
 
 <!ENTITY common.nowSearching "Now searching ">
 <!ENTITY common.at " at ">
+<!ENTITY common.ofAtLeast " of at least ">
+<!ENTITY common.relevancy "Relevancy ">
+
+<!ENTITY common.tips "Tips:">
+<!ENTITY common.tips.tip1 "Click on a folder icon in the sidebar to access related quick searches">
+<!ENTITY common.tips.tip2 "If you don't find what you want try expanding your search using the range selector at the right of the search bar">
 
 
 <!-- Sidebar Header Labels -->
index 755bda0..6cdd2e8 100644 (file)
@@ -1,13 +1,18 @@
 attachEvt('common', 'run', insertTip);
 
+/*
 var user_tips = [
        'Click on a folder icon in the sidebar to access related quick searches',
        "If you don't find what you want try expanding your search using the range selector at the right of the search bar"
 ];
+*/
 
 function insertTip () {
        var tip_div = document.getElementById('tips');
-       if (tip_div)
-               tip_div.appendChild( text( user_tips[ Math.floor(Math.random() * user_tips.length) ] ) );
+       if (tip_div) {
+               var tips = tip_div.getElementsByTagName('div')[0].getElementsByTagName('span');
+               var index = Math.floor(Math.random() * tips.length);
+               tip_div.appendChild( tips[index] );
+       }
 }
 
index 249de16..b22a99a 100644 (file)
@@ -27,7 +27,7 @@
                                                <xi:include href="result_common.xml"/>
                                        </div>
                                        <br/>
-                                       <div id='tips' class='tips'><span style="font-weight: bold;">Tip:  </span></div>
+                                       <xi:include href="tips.xml"/>
                                        </td>
                                </tr>
                        </tbody>
index c8e1525..6fcc43f 100644 (file)
                                                                                <span id='offset_start'> </span>
                                                                                <span> - </span>
                                                                                <span id='offset_end'> </span>
-                                                                               <span> of </span>
+                                                                               <span> &common.ofAtLeast; </span>
                                                                                <span id='result_count'> </span>
                                                                                <span style='padding-left: 6px;'> (page </span>
                                                                                <span id='current_page'> </span>
-                                                                               <span> of </span>
+                                                                               <span> &common.ofAtLeast; </span>
                                                                                <span id='num_pages'> </span>
                                                                        </span>
 
                                                                        </a>
 
                                                                        <span class='hide_me' style='color: #9999FF; padding-left: 10px; font-size: 7pt; font-weight: 300;'> 
-                                                                               <span>Relevancy </span><span name='relevancy_span'> </span>
+                                                                               <span>&common.relevancy; </span><span name='relevancy_span'> </span>
                                                                        </span>
 
                                                                </td>
index 3fa3b66..5ef37ec 100644 (file)
@@ -28,7 +28,7 @@
                                                <xi:include href="result_common.xml"/>
                                        </div>
                                        <br/>
-                                       <div id='tips' class='tips'><span style="font-weight: bold;">Tip:  </span></div>
+                                       <xi:include href="tips.xml"/>
                                        </td>
                                </tr>
                        </tbody>