[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple addbooks.tmpl,NONE,1.1 marcimport.tmpl,NONE,1.1

Paul POULAIN tipaul at users.sourceforge.net
Tue Oct 15 12:14:46 CEST 2002


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

Added Files:
	addbooks.tmpl marcimport.tmpl 
Log Message:
road to 1.3.2. Full rewrite of marcimport.pl.
The acquisition system in MARC version will work like this :
* marcimport will put marc records into a "breeding farm" table.
* when the user want to add a biblio, he enters first the ISBN/ISSN of the biblio. koha searches into breeding farm and if the record exists, it is shown to the user to help him adding the biblio. When the biblio is added, it's deleted from the breeding farm.

This commit :
* modify acqui.simple home page  (addbooks.pl)
* adds import into breeding farm

Please note that :
* z3950 functionnality is dropped from "marcimport" will be added somewhere else.
* templates are in a new acqui.simple sub directory, and the marcimport template directory will become obsolete soon.I think this is more logic

--- NEW FILE ---
<TMPL_INCLUDE NAME="acquisitions-top.inc">

<font size="5"><em>MARC import and BIBLIO management</em></font>
<TMPL_IF name="noitemsfound">
	<p />
	<font color="red" size="4">No items found</font>
</TMPL_IF>
<TMPL_IF name="websiteadded">
	<p />
	<font color="red" size="4">Website Biblioitem Added</font>
</TMPL_IF>

<p />
<table bgcolor="#ffcc00" width="80%" cellpadding="3">
	<tr valign="center">
	<td><font size="4">To add a new biblio/item, scan or type the ISBN number:</font></td>
	</tr>
</table>
<table cellpadding="3" border=0 width="100%">
	<tr valign="top">
	<form action="isbnsearch.pl">
		<td width="5%">ISBN:</td>
		<td width="20%"><input type="text" name="isbn" /></td>
		<td width="10%"><input type="submit" value="Go" /></td>
		<td>If the ISBN is found into the biblio table, it will be retrieved and can be modified.<br/>
				If the ISBN is found into the breeding farm, it will be retrieved. and a biblio added.<br/>
				Otherwise, a biblio can be added from scratch.</td>
	</form>
	</tr>
</table>

<p />
<p />
<table bgcolor="#ffcc00" width="80%" cellpadding="3">
	<tr valign="center">
		<td><font size="4">Tools for importing MARC records into breeding farm</font></td>
	</tr>
</table>
<table cellpadding="3" border=0 width="100%">
	<tr valign="top">
		<td width="5%">&nbsp;</td>
		<td width="20%"><li><a href=marcimport.pl>Upload MARC records</a></li></td>
		<td width="10%">&nbsp;</td>
		<td>The breeding farm is a table where are stored imported MARC records.<br/>
			A MARC record is stored in the breeding farm as long as you've no item. When you type the ISBN of a biblio, it's searched in the breeding farm.
			If found, the biblio is added to koha active table, and removed from breeding farm.
		</td>


<table bgcolor="#ffcc00" width="80%" cellpadding"5">
	<tr>
		<td><font size="4">Tools for importing MARC from a z3950 server</font></td>
	</tr>
</table>
<table cellpadding="3" border=0 width="100%">
	<tr valign="top">
		<td width="5%">&nbsp;</td>
		<td width="20%"><li><a href=marcimport.pl?menu=z3950>Z39.50 Search Tool</a></li></td>
		<td width="10%">&nbsp;</td>
		<td>does not work</td>
	</tr>
</table>

<table bgcolor="#ffcc00" width="80%" cellpadding="3">
	<tr valign="center">
		<td><FONT SIZE=4>Add New Website</font></td>
	</tr>
</table>
<form action="websitesearch.pl" method="post">
	<table>
	<tr>
		<td>Keyword:</td>
		<td><input type="text" name="keyword" /></td>
		<td><input type="submit" value="Go" /></td>
	</tr>
	</table>
</FORM>

<p />
<table bgcolor="#ffcc00" width="80%" cellpadding="3">
	<tr valign="center">
		<td><FONT SIZE=4>Help</font></td>
	</tr>
</table>
<FONT SIZE=5>Koha stores data in three sections</font>
<p />
<h2>Biblio</h2>
The first section records bibliographic data such as title, author and copyright for a particular work.
<p />
<h2>Group</h2>
The second records bibliographic data for a particular publication of that work, such as ISBN number, physical description, publisher information, etc
<p />
<h2>Item</h2>
The third section holds specific item information, such as the bar code number
<p />
<TMPL_INCLUDE NAME="acquisitions-bottom.inc">

--- NEW FILE ---
<TMPL_INCLUDE NAME="acquisitions-top.inc">
<h1>MARC acquisition system</h1>

<table bgcolor="#ffcc00" width="80%" cellpadding="3">
	<tr valign="center">
	<td><font size="4">Import into 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>Select a file to import into breeding farm. It will be parsed, and for each ISBN found, a new baby will be created in breeding farm.
If an ISBN already exists in the breeding farm, you can choose wether to ignore the new one, or overwrite the old one.<br/>
You can enter a name for this import. It may be useful, when creating a biblio, to remember where the suggested marc data comes !<br/>
Of course, if the ISBN already exists in active DB, the biblio will be ignored.<br/></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>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">





More information about the Koha-cvs mailing list