adding "tips" functionality -- miker_s first direct addition to the opac! yay!
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Nov 2005 01:20:34 +0000 (01:20 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Nov 2005 01:20:34 +0000 (01:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2013 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/css/layout.css
Open-ILS/web/opac/skin/default/js/tips.js [new file with mode: 0644]
Open-ILS/web/opac/skin/default/xml/mresult.xml
Open-ILS/web/opac/skin/default/xml/rresult.xml

index 9ffd4c1..a5f3539 100644 (file)
@@ -153,4 +153,4 @@ border-left: 1px solid #E0E0E0; border-top: 1px solid #E0E0E0; border-bottom: 1p
 .myopac_table td { padding: 3px; }
 .myopac_form_pic { width: 20px; height: 20px; }
 
-
+.tips { padding: 2px; text-align: center; border: solid #E0E0E0 3px; -moz-border-radius: 3px; width: 100%; }
diff --git a/Open-ILS/web/opac/skin/default/js/tips.js b/Open-ILS/web/opac/skin/default/js/tips.js
new file mode 100644 (file)
index 0000000..755bda0
--- /dev/null
@@ -0,0 +1,13 @@
+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) ] ) );
+}
+
index a31987e..249de16 100644 (file)
@@ -8,6 +8,7 @@
                <xi:include href="js_common.xml"/>
                <script language='javascript' src='../js/mresult.js'> </script>
                <script language='javascript' src='../js/result_common.js'> </script>
+               <script language='javascript' src='../js/tips.js'> </script>
        </head>
 
        <body onload="init();">
@@ -25,6 +26,8 @@
                                                <xi:include href="altcanvas.xml"/>
                                                <xi:include href="result_common.xml"/>
                                        </div>
+                                       <br/>
+                                       <div id='tips' class='tips'><span style="font-weight: bold;">Tip:  </span></div>
                                        </td>
                                </tr>
                        </tbody>
index e8fcec9..3fa3b66 100644 (file)
@@ -9,6 +9,7 @@
                <xi:include href="js_common.xml"/>
                <script language='javascript' src='../js/rresult.js'> </script>
                <script language='javascript' src='../js/result_common.js'> </script>
+               <script language='javascript' src='../js/tips.js'> </script>
        </head>
 
        <body onload="init();">
@@ -26,6 +27,8 @@
                                                <xi:include href="altcanvas.xml"/>
                                                <xi:include href="result_common.xml"/>
                                        </div>
+                                       <br/>
+                                       <div id='tips' class='tips'><span style="font-weight: bold;">Tip:  </span></div>
                                        </td>
                                </tr>
                        </tbody>