koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/koha-tmpl/opac-tmpl/npl/en/includes catsea... [dev_week]


From: Owen Leonard
Subject: [Koha-cvs] koha/koha-tmpl/opac-tmpl/npl/en/includes catsea... [dev_week]
Date: Wed, 06 Sep 2006 14:12:07 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         dev_week
Changes by:     Owen Leonard <oleonard> 06/09/06 14:12:07

Modified files:
        koha-tmpl/opac-tmpl/npl/en/includes: catsearch.js 

Log message:
        Reusing catsearch.js to control tabs on opac-detail

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/npl/en/includes/catsearch.js?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.3&r2=1.1.2.4

Patches:
Index: catsearch.js
===================================================================
RCS file: 
/sources/koha/koha/koha-tmpl/opac-tmpl/npl/en/includes/Attic/catsearch.js,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -b -r1.1.2.3 -r1.1.2.4
--- catsearch.js        23 Jul 2006 20:30:44 -0000      1.1.2.3
+++ catsearch.js        6 Sep 2006 14:12:07 -0000       1.1.2.4
@@ -1,51 +1,37 @@
 function hideSearchsTypes() {
-         document.getElementById('format').style.display = 'none';
-            document.getElementById('advanced').style.display = 'none';
-            document.getElementById('power').style.display = 'none';
-            document.getElementById('proximity').style.display = 'none';
+       if(document.getElementById('holdings')){
+         document.getElementById('holdings').style.display = 'none';
                }
-
-               function resetButtonsColors() {
-                       
document.getElementById('advanced_formButton').className = 'off';
-            document.getElementById('format_formButton').className = 'off';
-                       document.getElementById('power_formButton').className = 
'off';
-                       
document.getElementById('proximity_formButton').className = 'off';
-               }
-
-               function changeSearch(divid) {
-                       resetButtonsColors();
-                       var navlink = divid+"_formButton";
-                   document.getElementById(navlink).className = 'on';
-                   hideSearchsTypes();
-                 //  document.getElementById('keyword_form').reset();
-                   document.getElementById(divid).style.display = 'block';
+       if(document.getElementById('descriptions')){
+      document.getElementById('descriptions').style.display = 'none';
                }
-
-               function checkKeywordSearch() {
-               if (document.keyword_form.keyword.value == '' && 
document.keyword_form.callno.value == '') {
-                       alert("Enter a word to start searching.");
-                       return false;
-               } else {
-                   return true;
+       if(document.getElementById('reviews')){
+      document.getElementById('reviews').style.display = 'none';
                }
+       if(document.getElementById('serials')){
+      document.getElementById('serials').style.display = 'none';
        }
+}
 
-       function checkLooseSearch() {
-               if ( document.loose_form.field_value1.value == '' ) {
-                       alert("Enter at least the first search to start 
searching.");
-                       document.loose_form.field_value1.focus();
-                       return false;
-                   } else {
-                       return true;
+function resetButtonsColors() {
+       if(document.getElementById('holdings_tab')){
+       document.getElementById('holdings_tab').className = 'off';
                    }
+       if(document.getElementById('descriptions_tab')){
+    document.getElementById('descriptions_tab').className = 'off';
        }
-
-       function checkPreciseSearch() {
-               if ( (document.precise_form.itemnumber.value == '') &&
-                       (document.precise_form.isbn.value == '') && 
(document.precise_form.biblionumber.value == '') ) {
-                       alert("Enter a barcode or ISBN or Biblionumber to start 
searching.");
-                       return false;
-               } else {
-                   return true;
+       if(document.getElementById('reviews_tab')){
+       document.getElementById('reviews_tab').className = 'off';
                }
+       if(document.getElementById('reviews_tab')){
+       document.getElementById('reviews_tab').className = 'off';
        }
+}
+
+function changeView(divid) {
+       resetButtonsColors();
+       var navlink = divid+"_tab";
+       document.getElementById(navlink).className = 'on';
+       hideSearchsTypes();
+       document.getElementById(divid).style.display = 'block';
+}
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]