[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters z3950servers.tmpl,1.8,1.9

Paul POULAIN tipaul at users.sourceforge.net
Tue Apr 29 18:49:04 CEST 2003


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

Modified Files:
	z3950servers.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: z3950servers.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters/z3950servers.tmpl,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** z3950servers.tmpl	26 Apr 2003 03:54:51 -0000	1.8
--- z3950servers.tmpl	29 Apr 2003 16:48:26 -0000	1.9
***************
*** 138,141 ****
--- 138,150 ----
  		</tr>
  		<tr>
+ 			<td>Syntax (z3950 can send records in various format. Choose one)</td>
+ 			<td>
+ 				<select name="syntax">
+ 					<option value="USMARC">USMARC</option>
+ 					<option value="UNIMARC">UNIMARC</option>
+ 				</select>
+ 			</td>
+ 		</tr>
+ 		<tr>
  			<td> </td>
  			<td>
***************
*** 235,239 ****
                          <td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Password</b></td>
                          <td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Checked</b></td>
!                         <td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Rank</b></td>       
                          <td background='<TMPL_VAR name="themelang">/images/background-mem.gif'> </td>
                          <td background='<TMPL_VAR name="themelang">/images/background-mem.gif'> </td>
--- 244,249 ----
                          <td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Password</b></td>
                          <td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Checked</b></td>
!                         <td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Rank</b></td>
!                         <td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Syntax</b></td>
                          <td background='<TMPL_VAR name="themelang">/images/background-mem.gif'> </td>
                          <td background='<TMPL_VAR name="themelang">/images/background-mem.gif'> </td>
***************
*** 249,254 ****
                          <td><TMPL_VAR NAME=checked></td>
                          <td><TMPL_VAR NAME=rank></td>
                          <td><a href="<TMPL_VAR NAME=script_name>?op=add_form&searchfield=<TMPL_VAR NAME=name>"><img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/fileopen.png" ALT="Edit" title="edit" BORDER=0 ></a></td>
!                         <td><a href="<TMPL_VAR NAME=script_name>?op=delete_confirm&searchfield=<TMPL_VAR NAME=name>"><img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/edittrash.png" ALT="Delete" title="delete" BORDER=0 ></a></td>                
  			</tr>
                  </TMPL_LOOP>
--- 259,265 ----
                          <td><TMPL_VAR NAME=checked></td>
                          <td><TMPL_VAR NAME=rank></td>
+                         <td><TMPL_VAR NAME=syntax></td>
                          <td><a href="<TMPL_VAR NAME=script_name>?op=add_form&searchfield=<TMPL_VAR NAME=name>"><img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/fileopen.png" ALT="Edit" title="edit" BORDER=0 ></a></td>
!                         <td><a href="<TMPL_VAR NAME=script_name>?op=delete_confirm&searchfield=<TMPL_VAR NAME=name>"><img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/edittrash.png" ALT="Delete" title="delete" BORDER=0 ></a></td>
  			</tr>
                  </TMPL_LOOP>
***************
*** 263,267 ****
          
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
!                 
          <TMPL_IF NAME=ltcount>
                  <a href="<TMPL_VAR NAME=script_name>?offset=<TMPL_VAR NAME=nextpage>">Next >></a>
--- 274,278 ----
          
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
! 
          <TMPL_IF NAME=ltcount>
                  <a href="<TMPL_VAR NAME=script_name>?offset=<TMPL_VAR NAME=nextpage>">Next >></a>





More information about the Koha-cvs mailing list