koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple add


From: Paul POULAIN
Subject: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple addbiblio.tmpl,1.14,1.15 marcimport.tmpl,1.3,1.4
Date: Tue, 29 Apr 2003 09:49:02 -0700

Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple
In directory 
sc8-pr-cvs1:/tmp/cvs-serv3884/koha-tmpl/intranet-tmpl/default/en/acqui.simple

Modified Files:
        addbiblio.tmpl marcimport.tmpl 
Log Message:
really proud of this commit :-)
z3950 search and import seems to works fine.
Let me explain how :
* a "search z3950" button is added in the addbiblio template.
* when clicked, a popup appears and z3950/search.pl is called
* z3950/search.pl calls addz3950search in the DB
* the z3950 daemon retrieve the records and stores them in z3950results AND in 
marc_breeding table.
* as long as there as searches pending, the popup auto refresh every 2 seconds, 
and says how many searches are pending.
* when the user clicks on a z3950 result => the parent popup is called with the 
requested biblio, and auto-filled

Note :
* character encoding support : (It's a nightmare...) In the z3950servers table, 
a "encoding" column has been added. You can put "UNIMARC" or "USMARC" in this 
column. Depending on this, the char_decode in C4::Biblio.pm replaces 
marc-char-encode by an iso 8859-1 encoding. Note that in the breeding import 
this value has been added too, for a better support.
* the marc_breeding and z3950* tables have been modified : they have an 
encoding column and the random z3950 number is stored too for convenience => 
it's the key I use to list only requested biblios in the popup.


Index: addbiblio.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** addbiblio.tmpl      24 Apr 2003 14:38:17 -0000      1.14
--- addbiblio.tmpl      29 Apr 2003 16:48:27 -0000      1.15
***************
*** 30,33 ****
--- 30,34 ----
                                                                                
                <input type="hidden" name="oldbiblionumber" value="<TMPL_VAR 
name="oldbiblionumber">">
                                                                                
                <input type="button" value="Add biblio" 
onClick='Check(this.form)' accesskey="w">
+                                                                               
                <a href="javascript:PopupZ3950()">z3950 search</a>
                </td>
        </tr>
***************
*** 362,365 ****
--- 363,370 ----
        defaultvalue=document.forms[0].field_value[i].value;
        newin=window.open(link+"&result="+defaultvalue,"value 
builder",'width=500,height=400,toolbar=false,scrollbars=yes');
+ }
+ 
+ function PopupZ3950(link,i) {
+       newin=window.open("../z3950/search.pl?bibid=<TMPL_VAR 
name="bibid">","z3950 
search",'width=500,height=400,toolbar=false,scrollbars=yes');
  }
  

Index: marcimport.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple/marcimport.tmpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** marcimport.tmpl     24 Apr 2003 14:38:20 -0000      1.3
--- marcimport.tmpl     29 Apr 2003 16:48:29 -0000      1.4
***************
*** 40,43 ****
--- 40,49 ----
        </tr>
        <tr valign="top">
+               <td>Character encoding (USMARC or UNIMARC)</td>
+               <td>
+                       <select name="syntax"/><option 
value="USMARC">USMARC</option><option 
value="UNIMARC">UNIMARC</option></select><br/>
+               </td>
+       </tr>
+       <tr valign="top">
                <td>If ISBN already in breeding farm: </td>
                <td><input type="radio" name="overwrite_biblio" value="0" 
checked>Ignore this one, keep the existing one<br/>




reply via email to

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