Koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple/marcimport.tmpl
tipaul 26543b430e 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.
2003-04-29 16:48:25 +00:00

60 lines
2.2 KiB
Cheetah

<TMPL_INCLUDE NAME="marc-top.inc">
<h1>MARC acquisition system</h1>
<table bgcolor="#ffcc00" width="80%" cellpadding="3">
<tr valign="center">
<td><font size="4">Import into the breeding farm</font></td>
</tr>
</table>
<TMPL_IF name="uploadmarc">
<p>Import results :</p>
<ul>
<p><TMPL_VAR name="imported"> imported records</p>
<p><TMPL_VAR name="alreadyindb"> not imported because already in DB</p>
<p><TMPL_VAR name="alreadyinfarm"> not imported because already in farm</p>
<p><TMPL_VAR name="notmarcrecord"> not imported because they seems not to be MARC format (or ISBN/ISSN missing) !</p>
<p><TMPL_VAR name="total"> records parsed</p>
<p><a href="addbooks.pl">Back to acquisition</a>
</ul>
<TMPL_ELSE>
<ul>
<li>Select a file to import into the breeding farm. It will be parsed, and for each ISBN found, a new baby will be created in the breeding farm.</li>
<li>If an ISBN already exists in the breeding farm, you can choose whether to ignore the new one or overwrite the old one.</li>
<li>You can enter a name for this import. It may be useful, when creating a biblio, to remember where the suggested MARC data comes from!</li>
<li>Of course, if the ISBN already exists in the active DB, the biblio will be ignored.</li>
</ul>
<form method="post" action="<TMPL_VAR name="SCRIPT_NAME">" enctype="multipart/form-data">
<table cellpadding="3" border=0>
<tr valign="top">
<td>Select the file to import:</td>
<td>
<input type="file" name="uploadmarc"/><br/>
</td>
</tr>
<tr valign="top">
<td>Name of this import:</td>
<td>
<input type="text" name="filename"/><br/>
</td>
</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/>
<input type="radio" name="overwrite_biblio" value="1">Overwrite the existing one with this</td>
</tr>
<tr valign="top">
<td>&nbsp; </td>
<td><input type="submit" value="Import"></td>
</tr>
</table>
</form>
</TMPL_IF>
<TMPL_INCLUDE NAME="acquisitions-bottom.inc">