koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha/koha-tmpl/opac-tmpl/css/en opac-search.tmpl,1.11.2.


From: Owen Leonard
Subject: [Koha-cvs] CVS: koha/koha-tmpl/opac-tmpl/css/en opac-search.tmpl,1.11.2.6,1.11.2.7
Date: Tue, 31 May 2005 08:15:31 -0700

Update of /cvsroot/koha/koha/koha-tmpl/opac-tmpl/css/en
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13692/koha-tmpl/opac-tmpl/css/en

Modified Files:
      Tag: rel_2_2
        opac-search.tmpl 
Log Message:
Removing sql_update() function from form fields, fix for Bug 870.

Index: opac-search.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/opac-tmpl/css/en/opac-search.tmpl,v
retrieving revision 1.11.2.6
retrieving revision 1.11.2.7
diff -C2 -r1.11.2.6 -r1.11.2.7
*** opac-search.tmpl    19 May 2005 22:46:04 -0000      1.11.2.6
--- opac-search.tmpl    31 May 2005 15:15:28 -0000      1.11.2.7
***************
*** 16,20 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" name="value" onchange="sql_update()" 
size="35" />
                </p>
                <p>
--- 16,20 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" name="value" size="35" />
                </p>
                <p>
***************
*** 24,28 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" name="value" onchange="sql_update()" 
size="35" />
                </p>
                <p>
--- 24,28 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" name="value" size="35" />
                </p>
                <p>
***************
*** 31,35 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" name="value" onchange="sql_update()" 
size="35" />
                </p>
                <p>
--- 31,35 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" name="value" size="35" />
                </p>
                <p>
***************
*** 39,43 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" 
/>  
!                       <input type="text" name="value" onchange="sql_update()" 
size="35" />
                </p>
                <p>
--- 39,43 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" 
/>  
!                       <input type="text" name="value" size="35" />
                </p>
                <p>
***************
*** 47,51 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" name="value" onchange="sql_update()" 
size="35"/>
                </p>
                <p>
--- 47,51 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" name="value" size="35"/>
                </p>
                <p>
***************
*** 74,78 ****
                                <input type="hidden" name="excluding" value="" 
/>
                                <input type="hidden" name="operator" 
value="start" />
!                               <input type="text" name="value" 
onchange="sql_update()" /> 
                </p>
                <p>
--- 74,78 ----
                                <input type="hidden" name="excluding" value="" 
/>
                                <input type="hidden" name="operator" 
value="start" />
!                               <input type="text" name="value" /> 
                </p>
                <p>
***************
*** 82,86 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="start" />
!                       <input type="text" name="value" onchange="sql_update()" 
/>
                </p>
                <p>
--- 82,86 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="start" />
!                       <input type="text" name="value" />
                </p>
                <p>
***************
*** 90,94 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="=" />
!                       <input type="text" name="value" onchange="sql_update()" 
/>
                </p>
                <p>
--- 90,94 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="=" />
!                       <input type="text" name="value" />
                </p>
                <p>
***************
*** 98,102 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" name="value" onchange="sql_update()" 
/>
                </p>
                <p>
--- 98,102 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" name="value" />
                </p>
                <p>
***************
*** 106,110 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value=">=" />
!                       <input type="text" name="value" size="6" maxlength="4" 
onchange="sql_update()" />
                        and
                        <input type="hidden" name="marclist" 
value="biblioitems.publicationyear" />
--- 106,110 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value=">=" />
!                       <input type="text" name="value" size="6" maxlength="4" 
/>
                        and
                        <input type="hidden" name="marclist" 
value="biblioitems.publicationyear" />
***************
*** 112,116 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="<=" />
!                       <input type="text" name="value" size="6" maxlength="4" 
onchange="sql_update()" />
                </p>
                <p>
--- 112,116 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="<=" />
!                       <input type="text" name="value" size="6" maxlength="4" 
/>
                </p>
                <p>
***************
*** 157,193 ****
        </div>
  </form>
- 
- <script type="text/javascript">
- function sql_update() {
- document.f.sql.value="";
-       for (i=0 ; i<document.f.marclist.length ; i++) {
-               if (document.f.value[i].value.length>0) {
-                       document.f.sql.value = document.f.sql.value+
-                                                                               
document.f.and_or[i].value + ' (' +
-                                                                               
document.f.excluding[i].value + ' ' +
-                                                                               
document.f.marclist[i].value + ' ' +
-                                                                               
document.f.operator[i].value + ' ' +
-                                                                               
'\''+document.f.value[i].value + '\') ';
-               }
-       }
- }
- 
- function AddStatement() {
- 
-       document.forms[0].op.value="AddStatement";
-       document.f.submit();
- }
- 
- function PopupSuggestion() {
-     var strQuery="";
-       for (i=0 ; i<document.f.marclist.length ; i++) {
-               if (document.f.value[i].value.length>0) {
-                   strQuery += " "+document.f.value[i].value;
-               }
-       }
-       
newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
- }
- 
- </script>
  </div>
  <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
--- 157,160 ----




reply via email to

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