First draft of programmer's templates: a stripped-down version of the templates for use by programmers in adding and testing new functionality. Template-authors can use these templates to track changes that need to be incorporated into their custom templates.

This commit is contained in:
oleonard 2005-07-20 21:23:37 +00:00
parent a21d94ec7c
commit 66cbdb6309
7 changed files with 999 additions and 0 deletions

View file

@ -0,0 +1,32 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Cataloging: Add a Non-MARC Record<!-- TMPL_INCLUDE NAME="doc-head-close-addbiblio.inc" -->
<!-- TMPL_IF name="ERROR" -->
Please Specify a Title
<!-- /TMPL_IF -->
<form action="savebiblio.pl" method="post">
<table>
<caption>Adding a new bibliographic record</caption>
<tr><th scope="row"><label for="title">Title: *</label></th><td><input name="title" id="title" type="text" size="40" /> * Required</td>
</tr>
<tr><th scope="row"><label for="subtitle">Subtitle:</label></th><td><input name="subtitle" id="subtitle" type="text" size="40" /></td>
</tr>
<tr><th scope="row"><label for="author">Author:</label></th><td><input name="author" id="author" type="text" size="40" /></td>
</tr>
<tr><th scope="row"><label for="seriestitle">Series Title:</label><br>
<i>(if applicable)</i></th><td><input name="seriestitle" type="text" id="seriestitle" size="40" /></td>
</tr>
<tr><th scope="row"><label for="copyrightdate">Copyright Date:</label></th><td><input id="copyrightdate" name="copyrightdate" type="text" size="40" /></td>
</tr>
<tr><th scope="row"><label for="abstract">Abstract:</label></th><td><textarea cols="30" id="abstract" rows="6" name="abstract"></textarea></td>
</tr>
<tr><th scope="row"><label for="bib-notes">Notes:</label></th><td><textarea cols="30" rows="6" id="bib-notes" name="notes"></textarea></td>
</tr>
</table>
<input type="submit" value="Add Record" />
</form>
<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->

View file

@ -0,0 +1,540 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Cataloging: <!-- TMPL_IF NAME="oldbiblionumtagfield" -->Edit MARC Record Number <!-- TMPL_VAR name="bibid" --><!-- TMPL_ELSE -->Add MARC Record<!-- /TMPL_IF --><!-- TMPL_INCLUDE NAME="doc-head-close-addbiblio.inc" -->
<form method="post" name="f" id="f" action="addbiblio.pl">
<h1><!-- TMPL_IF NAME="oldbiblionumtagfield" -->Edit MARC Record Number <!-- TMPL_VAR name="oldbiblionumber" --><!-- TMPL_ELSE -->Add MARC Record<!-- /TMPL_IF --> With Framework : <!--TMPL_VAR Name="framework" --></h1>
<input type="hidden" name="op" value="addbiblio" />
<input type="hidden" name="addfield_field" />
<input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
<input type="hidden" name="oldbiblionumber" value="<!-- TMPL_VAR NAME="oldbiblionumber" -->" />
<!-- TMPL_IF name="bibid" -->
<input type="button" value="Save Bibliographic Record and go to Items" onclick="Check(this.form)" accesskey="w" />
<!-- TMPL_ELSE -->
<input type="button" value="Add Bibliographic Record and go to Items" onclick="Check(this.form)" accesskey="w" />
<!-- /TMPL_IF -->
<input type="button" value="z39.50 Search" onclick="PopupZ3950(); return false;" / >
<!-- TMPL_IF name="0XX" -->
<a href="#0XX">0</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="1XX" -->
<a href="#1XX">1</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="2XX" -->
<a href="#2XX">2</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="3XX" -->
<a href="#3XX">3</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="4XX" -->
<a href="#4XX">4</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="5XX" -->
<a href="#5XX">5</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="6XX" -->
<a href="#6XX">6</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="7XX" -->
<a href="#7XX">7</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="8XX" -->
<a href="#8XX">8</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="9XX" -->
<a href="#9XX">9</a>
<!-- /TMPL_IF -->
<div name="0XX" id="0XX">
<!-- TMPL_IF name="duplicatebiblionumber" -->
<p>Is this a duplicate of <a href="../MARCdetail.pl?bib=<!-- TMPL_VAR name="duplicatebiblionumber" -->" onclick="openWindow('../MARCdetail.pl?bib=<!-- TMPL_VAR name="duplicatebiblionumber" -->&popup=1', 'Duplicate biblio'; return false;)"><!-- TMPL_VAR name="duplicatetitle" --></a>?</p>
<p>You must either :</p>
<ul>
<li>If it is a duplicate, <a href="additem.pl?bibid=<!-- TMPL_VAR name="duplicatebibid" -->">Edit Items</a> of the existing record.</li>
<li>If not, click to <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" /> <a href="#" onclick="confirmnotdup(); return false;">Confirm it's not a duplicate</a></li>
</ul>
</div>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="0XX" -->
<!-- TMPL_IF name="tag" -->
<p>
<!-- TMPL_VAR NAME="tag" -->
<input type="hidden" name="ind_tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="text" name="indicator" size="3" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" /> - <!-- TMPL_VAR NAME="tag_lib" -->
<!-- TMPL_IF name="repeatable" -->
<a href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a>
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
<p>
<label>
<!-- TMPL_VAR NAME="subfield" -->
<!-- TMPL_IF name="mandatory" --><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
<!-- TMPL_IF name="mandatory" --> *<!-- /TMPL_IF -->
</label>
<!-- TMPL_VAR NAME="marc_value" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
</p>
<!-- /tmpl_loop -->
<!-- /tmpl_loop -->
</div>
<div name="1XX" id="1XX">
<!-- TMPL_LOOP NAME="1XX" -->
<!-- TMPL_IF name="tag" -->
<p>
<!-- TMPL_VAR NAME="tag" -->
<input type="hidden" name="ind_tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="text" name="indicator" size="3" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" /> - <!-- TMPL_VAR NAME="tag_lib" -->
<!-- TMPL_IF name="repeatable" -->
<a href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a>
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
<p>
<label>
<!-- TMPL_VAR NAME="subfield" -->
<!-- TMPL_IF name="mandatory" --><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
<!-- TMPL_IF name="mandatory" --> *<!-- /TMPL_IF -->
</label>
<!-- TMPL_VAR NAME="marc_value" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
</p>
<!-- /tmpl_loop -->
<!-- /tmpl_loop -->
</div>
<div name="2XX" id="2XX">
<!-- TMPL_LOOP NAME="2XX" -->
<!-- TMPL_IF name="tag" -->
<p>
<!-- TMPL_VAR NAME="tag" -->
<input type="hidden" name="ind_tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="text" name="indicator" size="3" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" /> - <!-- TMPL_VAR NAME="tag_lib" -->
<!-- TMPL_IF name="repeatable" -->
<a href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a>
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
<p>
<label>
<!-- TMPL_VAR NAME="subfield" -->
<!-- TMPL_IF name="mandatory" --><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
<!-- TMPL_IF name="mandatory" --> *<!-- /TMPL_IF -->
</label>
<!-- TMPL_VAR NAME="marc_value" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
</p>
<!-- /tmpl_loop -->
<!-- /tmpl_loop -->
</div>
<div name="3XX" id="3XX">
<!-- TMPL_LOOP NAME="3XX" -->
<!-- TMPL_IF name="tag" -->
<p>
<!-- TMPL_VAR NAME="tag" -->
<input type="hidden" name="ind_tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="text" name="indicator" size="3" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" /> - <!-- TMPL_VAR NAME="tag_lib" -->
<!-- TMPL_IF name="repeatable" -->
<a href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a>
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
<p>
<label>
<!-- TMPL_VAR NAME="subfield" -->
<!-- TMPL_IF name="mandatory" --><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
<!-- TMPL_IF name="mandatory" --> *<!-- /TMPL_IF -->
</label>
<!-- TMPL_VAR NAME="marc_value" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
</p>
<!-- /tmpl_loop -->
<!-- /tmpl_loop -->
</div>
<div name="4XX" id="4XX">
<!-- TMPL_LOOP NAME="4XX" -->
<!-- TMPL_IF name="tag" -->
<p>
<!-- TMPL_VAR NAME="tag" -->
<input type="hidden" name="ind_tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="text" name="indicator" size="3" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" /> - <!-- TMPL_VAR NAME="tag_lib" -->
<!-- TMPL_IF name="repeatable" -->
<a href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a>
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
<p>
<label>
<!-- TMPL_VAR NAME="subfield" -->
<!-- TMPL_IF name="mandatory" --><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
<!-- TMPL_IF name="mandatory" --> *<!-- /TMPL_IF -->
</label>
<!-- TMPL_VAR NAME="marc_value" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
</p>
<!-- /tmpl_loop -->
<!-- /tmpl_loop -->
</div>
<div name="5XX" id="5XX">
<!-- TMPL_LOOP NAME="5XX" -->
<!-- TMPL_IF name="tag" -->
<p>
<!-- TMPL_VAR NAME="tag" -->
<input type="hidden" name="ind_tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="text" name="indicator" size="3" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" /> - <!-- TMPL_VAR NAME="tag_lib" -->
<!-- TMPL_IF name="repeatable" -->
<a href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a>
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
<p>
<label>
<!-- TMPL_VAR NAME="subfield" -->
<!-- TMPL_IF name="mandatory" --><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
<!-- TMPL_IF name="mandatory" --> *<!-- /TMPL_IF -->
</label>
<!-- TMPL_VAR NAME="marc_value" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
</p>
<!-- /tmpl_loop -->
<!-- /tmpl_loop -->
</div>
<div name="6XX" id="6XX">
<!-- TMPL_LOOP NAME="6XX" -->
<!-- TMPL_IF name="tag" -->
<p>
<!-- TMPL_VAR NAME="tag" -->
<input type="hidden" name="ind_tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="text" name="indicator" size="3" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" /> - <!-- TMPL_VAR NAME="tag_lib" -->
<!-- TMPL_IF name="repeatable" -->
<a href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a>
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
<p>
<label>
<!-- TMPL_VAR NAME="subfield" -->
<!-- TMPL_IF name="mandatory" --><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
<!-- TMPL_IF name="mandatory" --> *<!-- /TMPL_IF -->
</label>
<!-- TMPL_VAR NAME="marc_value" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
</p>
<!-- /tmpl_loop -->
<!-- /tmpl_loop -->
</div>
<div name="7XX" id="7XX">
<!-- TMPL_LOOP NAME="7XX" -->
<!-- TMPL_IF name="tag" -->
<p>
<!-- TMPL_VAR NAME="tag" -->
<input type="hidden" name="ind_tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="text" name="indicator" size="3" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" /> - <!-- TMPL_VAR NAME="tag_lib" -->
<!-- TMPL_IF name="repeatable" -->
<a href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a>
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
<p>
<label>
<!-- TMPL_VAR NAME="subfield" -->
<!-- TMPL_IF name="mandatory" --><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
<!-- TMPL_IF name="mandatory" --> *<!-- /TMPL_IF -->
</label>
<!-- TMPL_VAR NAME="marc_value" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
</p>
<!-- /tmpl_loop -->
<!-- /tmpl_loop -->
</div>
<div name="8XX" id="8XX">
<!-- TMPL_LOOP NAME="8XX" -->
<!-- TMPL_IF name="tag" -->
<p>
<!-- TMPL_VAR NAME="tag" -->
<input type="hidden" name="ind_tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="text" name="indicator" size="3" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" /> - <!-- TMPL_VAR NAME="tag_lib" -->
<!-- TMPL_IF name="repeatable" -->
<a href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a>
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
<p>
<label>
<!-- TMPL_VAR NAME="subfield" -->
<!-- TMPL_IF name="mandatory" --><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
<!-- TMPL_IF name="mandatory" --> *<!-- /TMPL_IF -->
</label>
<!-- TMPL_VAR NAME="marc_value" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
</p>
<!-- /tmpl_loop -->
<!-- /tmpl_loop -->
</div>
<div name="9XX" id="9XX">
<!-- TMPL_LOOP NAME="9XX" -->
<!-- TMPL_IF name="tag" -->
<p>
<!-- TMPL_VAR NAME="tag" -->
<input type="hidden" name="ind_tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="text" name="indicator" size="3" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" /> - <!-- TMPL_VAR NAME="tag_lib" -->
<!-- TMPL_IF name="repeatable" -->
<a href="javascript:AddField('<!-- TMPL_VAR NAME="tag" -->')">+</a>
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="subfield_loop" -->
<p>
<label>
<!-- TMPL_VAR NAME="subfield" -->
<!-- TMPL_IF name="mandatory" --><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
<!-- TMPL_IF name="mandatory" --> *<!-- /TMPL_IF -->
</label>
<!-- TMPL_VAR NAME="marc_value" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
</p>
<!-- /tmpl_loop -->
<!-- /tmpl_loop -->
</div>
<div name="hidden" id="hidden">
<!-- TMPL_LOOP NAME="hidden_loop" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
<!-- /TMPL_LOOP --> <br clear="both" />
</div> <br clear="both" />
<!-- TMPL_IF name="oldbiblionumtagfield" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="oldbiblionumtagfield" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="oldbiblionumtagsubfield" -->" />
<input type="hidden" name="field_value" value="<!-- TMPL_VAR NAME="oldbiblionumber" -->" />
<input type="hidden" name="mandatory" value="0" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="oldbiblioitemnumtagfield" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="oldbiblioitemnumtagsubfield" -->" />
<input type="hidden" name="field_value" value="<!-- TMPL_VAR NAME="oldbiblioitemnumber" -->" />
<input type="hidden" name="mandatory" value="0" />
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
<!-- /TMPL_IF -->
</form>
</div>
<script language="JavaScript" type="text/javascript">
function _(s) { return s } // dummy function for gettext
function confirmnotdup(){
document.getElementById("confirm_not_duplicate").value = 1;
var checkform = document.getElementById("f");
Check(checkform);
}
function Check(f) {
// Scan for nonempty fields
var field_is_nonempty_p = new Array();
for (i=0 ; i<f.field_value.length ; i++) {
field_is_nonempty_p[f.tag[i].value] = 0;
}
for (i=0 ; i<f.field_value.length ; i++) {
if (f.field_value[i].value.length != 0) {
field_is_nonempty_p[f.tag[i].value] += 1;
}
}
// Scan for missing mandatory subfields
var total_missing_mandatory_subfields = 0;
var missing_mandatory_subfields = new Array();
for (i=0 ; i<f.field_value.length-2 ; i++) {
if (f.field_value[i].value.length==0 && f.mandatory[i].value==1) {
// We should not flag an error unless the tag is also
// mandatory, or if something else in the tag is entered
if (f.tag_mandatory[i].value == 1 || field_is_nonempty_p[f.tag[i].value]) {
document.getElementById("error"+i).style.backgroundColor="#FF0000";
total_missing_mandatory_subfields++;
if (document.getElementById("error"+i).parentNode.tagName == "B")
{
missing_mandatory_subfields.push(document.getElementById("error"+i).innerHTML + " (tab " + document.getElementById("error"+i).parentNode.parentNode.parentNode.parentNode.id.substr(0,1) + ")");
}
else
{
missing_mandatory_subfields.push(document.getElementById("error"+i).innerHTML + " (tab " + document.getElementById("error"+i).parentNode.parentNode.parentNode.id.substr(0,1) + ")");
}
}
} else {
// alert("I = "+i);
document.getElementById("error"+i).style.backgroundColor="#FFFFCC";
}
}
// Scan for missing mandatory tags
var total_missing_mandatory_tags = 0;
var seen_mandatory_tag_p = new Array();
var missing_mandatory_tags = new Array();
for (i=0 ; i<f.field_value.length ; i++) {
var j = f.tag[i].value;
if (!field_is_nonempty_p[j] && f.tag_mandatory[i].value == 1) {
if (seen_mandatory_tag_p[j] != 1) {
seen_mandatory_tag_p[j] = 1;
total_missing_mandatory_tags++;
if (document.getElementById("error"+i).parentNode.tagName == "B")
{
missing_mandatory_tags.push(document.getElementById("error"+i).innerHTML + " (tab " + document.getElementById("error"+i).parentNode.parentNode.parentNode.parentNode.id.substr(0,1) + ")");
}
else
{
missing_mandatory_tags.push(document.getElementById("error"+i).innerHTML + " (tab " + document.getElementById("error"+i).parentNode.parentNode.parentNode.id.substr(0,1) + ")");
}
}
document.getElementById("error"+i).style.backgroundColor="#ffff00";
}
}
var total_errors = total_missing_mandatory_tags + total_missing_mandatory_subfields;
var alertString2;
if (total_errors!=0) {
alertString2 = _("Form not submitted because of the following problem(s)");
alertString2 += "\n------------------------------------------------------------------------------------\n";
alertString2 += "\n- "+ total_missing_mandatory_tags +_(" mandatory tags empty");
for (i=0; i<missing_mandatory_tags.length; i++)
{
alertString2 += "\n--->"+ missing_mandatory_tags[i];
}
alertString2 += "\n- "+ total_missing_mandatory_subfields +_(" mandatory fields empty (see bold subfields)");
for (i=0; i<missing_mandatory_subfields.length; i++)
{
alertString2 += "\n--->"+ missing_mandatory_subfields[i];
}
alert(alertString2);
} else {
document.forms[0].submit();
}
}
function Dopop(link,i) {
defaultvalue=document.forms[0].field_value[i].value;
newin=window.open(link+"&result="+defaultvalue,"value builder",'width=550,height=550,toolbar=false,scrollbars=yes');
}
function PopupZ3950() {
var strQuery="";
var error = 0;
for (i=0 ; i<document.forms[0].field_value.length ; i++) {
if (document.forms[0].kohafield[i].value == "biblioitems.isbn"){
if(document.forms[0].field_value[i].value.length>0) {
strQuery += "&isbn="+document.forms[0].field_value[i].value;
} else {
error++;
}
}
if (document.forms[0].kohafield[i].value == "biblio.title"){
if(document.forms[0].field_value[i].value.length>0) {
strQuery += "&title="+document.forms[0].field_value[i].value;
} else {
error++;
}
}
if (document.forms[0].kohafield[i].value == "biblio.author"){
if(document.forms[0].field_value[i].value.length>0) {
strQuery += "&author="+document.forms[0].field_value[i].value;
} else {
error++;
}
}
if (document.forms[0].kohafield[i].value == "biblioitems.issn"){
if(document.forms[0].field_value[i].value.length>0) {
strQuery += "&issn="+document.forms[0].field_value[i].value;
} else {
error++;
}
}
}
if(error < 4){
newin=window.open("../z3950/search.pl?bibid=<!-- TMPL_VAR NAME="bibid" -->"+strQuery,"z3950search",'width=640,height=400,location=yes,toolbar=no,scrollbars=yes');
} else {
alert("To perform a z39.50 search, you must enter at least one of the following: \n\n ISBN\n ISSN\n Title\n Author\n");
}
}
function Changefwk(FwkList) {
var fwk = FwkList.options[FwkList.selectedIndex].value;
window.location = "addbiblio.pl?oldbiblionumber=<!--TMPL_VAR Name="oldbiblionumber"-->&frameworkcode="+fwk;
}
function AddField(field) {
document.forms[0].op.value = "addfield";
document.forms[0].addfield_field.value=field;
document.f.submit();
}
</script></body>
</html>

View file

@ -0,0 +1,44 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Cataloging Home<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<h1>Catalog Maintenance</h1>
<!-- TMPL_IF name="noitemsfound" -->
No items found
<!-- /TMPL_IF -->
<form action="isbnsearch.pl">
<table>
<caption>Search Existing Records</caption>
<tr><th scope="row"><label for="title">Title</label></th>
<td><input type="hidden" name="marclist" value="biblio.title"><input type="hidden" name="and_or" value="and" />
<input type="hidden" name="excluding" value="" />
<input type="hidden" name="operator" value="contains" />
<input type="text" name="value" id="title"size="35" /></td></tr>
<tr><th scope="row"><label for="isbn">ISBN</label></th>
<td><input type="hidden" name="marclist" value="biblioitems.isbn" />
<input type="hidden" name="and_or" value="and" />
<input type="hidden" name="excluding" value="" />
<input type="hidden" name="operator" value="start" />
<input type="text" name="value" id="isbn"size="35" /></td></tr>
</table>
<input type="submit" value="Search" />
<ul><li>If the ISBN is found into the database, that record will be retrieved and can be modified.</li>
<li>If the ISBN is found in the reservoir, it will be retrieved and a full record added.</li>
<li>Otherwise, a record can be added from scratch.</li></ul>
</form>
<!-- TMPL_IF NAME="NOTMARC" -->
<form action="addbiblio.pl"><input type="submit" value="Add Record Without Search" /></form>
<!-- TMPL_ELSE -->
<form action="addbiblio.pl" method="post">
<h3>Create a Blank Bibliographic Record</h3>
<label for="frameworkcode">Choose a Framework:</label>
<select name="frameworkcode" id="frameworkcode">
<option value="">Default</option>
<!-- TMPL_LOOP NAME="frameworkcodeloop" -->
<option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
<!-- /TMPL_LOOP -->
</select> <input type="submit" value="Add Record Without Search" /></form>
<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

View file

@ -0,0 +1,113 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Cataloging: Add a items for <!-- TMPL_INCLUDE NAME="doc-head-close-addbiblio.inc" -->
<!-- TMPL_IF NAME="NOBARCODE" -->
You must give the item a barcode
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="NOBIBLIOITEM" -->
You must create a new group for your item to be
added to<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="BARCODEINUSE" -->
Sorry, that barcode is already in use<!-- /TMPL_IF -->
<h2>Add items for <!-- TMPL_VAR NAME="TITLE" --></h2>
<table>
<caption>Bibliographic Details</caption>
<tr><th scope="row">Author:</th><td><!-- TMPL_VAR NAME="AUTHOR" --></td></tr>
<tr><th scope="row">Copyright:</th><td><!-- TMPL_VAR NAME="COPYRIGHT" --></td></tr>
<tr><th scope="row">Series Title:</th><td><!-- TMPL_VAR NAME="SERIES" --></td></tr>
<tr><th scope="row">Notes:</th><td><!-- TMPL_VAR NAME="NOTES" --></td></tr>
<!-- TMPL_LOOP NAME="BIBITEMS" -->
<tr><th scope="row">Biblioitem Number: </th><td><!-- TMPL_VAR NAME="biblioitemnumber" --></td></tr>
<tr><th scope="row">Item Type: </th><td><!-- TMPL_VAR NAME="itemtype" --></td></tr>
<tr><th scope="row">ISBN:</th><td><!-- TMPL_VAR NAME="isbn" --></td></tr>
<tr><th scope="row">Dewey:</th><td><!-- TMPL_VAR NAME="dewey" --></td></tr>
<tr><th scope="row">Publisher:</th><td><!-- TMPL_VAR NAME="publishercode" --></td></tr>
<tr><th scope="row">Place:</th><td><!-- TMPL_VAR NAME="place" --></td></tr>
<tr><th scope="row">Date:</th><td><!-- TMPL_VAR NAME="publicationyear" --></td></tr>
<!-- TMPL_LOOP NAME="ITEMS -->
<tr><th scope="row">Item:</th><td><!-- TMPL_VAR NAME="barcode" --></td></tr>
<tr><th scope="row">Home Branch:</th><td><!-- TMPL_VAR NAME="homebranch" --></td></tr>
<tr><th scope="row">Notes:</th><td><!-- TMPL_VAR NAME="itemnotes" --></td></tr>
<!-- /TMPL_LOOP -->
<!-- /TMPL_LOOP -->
</table>
<form action="saveitem.pl" method="post">
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="BIBNUM" -->" />
<table>
<caption>Add New Item</caption>
<tr><th scope="row"><label for="barcode">Item Barcode:</label></th><td><input type="text" id="barcode" name="barcode" size="40" /></td>
</tr>
<tr><th scope="row"><label for="homebranch">Branch:</label></th><td><select name="homebranch" id="branch">
<!-- TMPL_LOOP NAME="BRANCHES" -->
<option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
<!-- /TMPL_LOOP -->
</select></td>
</tr>
<tr><th scope="row"><label for="replacementprice">Replacement Price:</label></th><td><input type="text" name="replacementprice" id="replacementprice" size="40" /></td>
</tr>
<tr><th scope="row"><label for="itemnotes">Notes:</label></th><td><textarea name="itemnotes" id="itemnotes" cols="30" rows="6"></textarea></td>
</tr>
<tr>
<th colspan="2" >Add to existing group</td>
</tr>
<tr><th scope="row"><label for="biblioitemnumber">Biblioitem Number:</label></th><td><select name="biblioitemnumber" id="biblioitemnumber">
<!-- TMPL_LOOP NAME="BIBITEMS" -->
<option value="<!-- TMPL_VAR NAME="biblioitemnumber" -->"><!-- TMPL_VAR NAME="itemtype" --></option>
<!-- /TMPL_LOOP -->
</select></td></tr>
</table>
<input type="submit" name="existinggroup"
value="Add New Item to Existing Group" />
<table>
<caption>OR Add to a new
Group:</caption>
<tr><th scope="row"><label for="itemtype">Item Type:</label></th><td><select name="itemtype" id="itemtype">
<!-- TMPL_LOOP NAME="ITEMTYPES" -->
<option value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" --></option>
<!-- /TMPL_LOOP -->
</select></td>
</tr>
<tr><th scope="row"><label for="isbn">ISBN:</label></th><td><input type="text" name="isbn" id="isbn" size="40" /></td>
</tr>
<tr><th scope="row"><label for="publishercode">Publisher:</label></th><td><input type="text" name="publishercode" id="publishercode" size="40" /></td>
</tr>
<tr><th scope="row"><label for="publicationyear">Publication Year:</label></th><td><input type="text" name="publicationyear" id="publicationyear" size="40" /></td>
</tr>
<tr><th scope="row"><label for="place">Place of Publication:</label></th><td><input type="text" name="place" id="place" size="40" /></td>
</tr>
<tr><th scope="row"><label for="illus">Illustrator:</label></th><td><input type="text" name="illus" id="illus" size="40" /></td>
</tr>
<tr><th scope="row"><label for="url">Website URL:</label></th><td><input type="text" name="url" id="url" size="40" /></td>
</tr>
<tr><th scope="row"><label for="dewey">Dewey:</label></th><td><input type="text" name="dewey" id="dewey" size="40" /></td>
</tr>
<tr><th scope="row"><label for="subclass">Dewey Subclass:</label></th><td><input type="text" name="subclass" id="subclass" size="40" /></td>
</tr>
<tr><th scope="row"><label for="issn">ISSN:</label></th><td><input type="text" name="issn" id="issn" size="40" /></td>
</tr>
<tr><th scope="row"><label for="lccn">LCCN:</label></th><td><input type="text" name="lccn" id="lccn" size="40" /></td>
</tr>
<tr><th scope="row"><label for="volume">Volume:</label></th><td><input type="text" name="volume" id="volume" size="40" /></td>
</tr>
<tr><th scope="row"><label for="number">Number:</label></th><td><input type="text" name="number" id="number" size="40" /></td>
</tr>
<tr><th scope="row"><label for="volumeddesc">Volume Description:</label></th><td><input type="text" name="volumeddesc" id="volumeddesc" size="40" /></td>
</tr>
<tr><th scope="row"><label for="pages">Pages:</label></th><td><input type="text" name="pages" id="pages" size="40" /></td>
</tr>
<tr><th scope="row"><label for="size">Size:</label></th><td><input name="size" size="40" /></td>
</tr>
<tr><th scope="row"><label for="notes">Notes:</label></th><td><textarea cols="30" rows="6" name="notes" id="notes"></textarea></td>
</tr>
</table>
<input type="submit" name="newgroup" value="Add New Item to New Group">
</form>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

View file

@ -0,0 +1,122 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Cataloging: Items for Bibliographic Record <!-- TMPL_VAR name="biblionumber" --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<h1>Items for <!-- TMPL_VAR name="title" --> <!-- TMPL_IF NAME="author" --> by <!-- TMPL_VAR name="author" --><!-- /TMPL_IF --> (Record #<!-- TMPL_VAR NAME="biblionumber" -->)</h1>
<ul>
<li> <form action="/cgi-bin/koha/acqui.simple/addbiblio.pl" method="get"><input type="hidden" name="oldbiblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" /><input type="submit" value="Edit Bibliographic Record" /></form></li>
<li><form action="/cgi-bin/koha/detail.pl" method="get"><input type="hidden" name="bib" value="<!-- TMPL_VAR name="biblionumber" -->" /> <input type="submit" value="View in Catalog" /></form></li>
<li><form action="/cgi-bin/koha/MARCdetail.pl" method="get"><input type="hidden" name="bib" value="<!-- TMPL_VAR name="biblionumber" -->" /> <input type="submit" value="View MARC in Catalog" /></form></li>
<li> <form action="/cgi-bin/koha/ISBDdetail.pl" method="get"><input type="hidden" name="bib" value="<!-- TMPL_VAR name="biblionumber" -->" /> <input type="submit" value="View ISBD in Catalog" /></form></li>
</ul>
<form method="post" action="additem.pl" name="f">
<input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->" />
<input type="hidden" name="bibid" value="<!-- TMPL_VAR NAME="bibid" -->" />
<!-- TMPL_IF name="item_loop" -->
<div name="10XX" id="10XX">
<table>
<caption>Existing items</caption>
<tr>
<!-- TMPL_LOOP NAME="item_header_loop" -->
<th>
<!-- TMPL_VAR NAME="header_value" -->
</th>
<!-- /TMPL_LOOP -->
<th colspan="2">&nbsp;</th>
</tr>
<!-- TMPL_LOOP NAME="item_loop" -->
<tr>
<!-- TMPL_VAR NAME="item_value" -->
<td><a href="additem.pl?op=edititem&amp;bibid=<!-- TMPL_VAR NAME="bibid" -->&amp;itemnum=<!-- TMPL_VAR NAME="itemnum" -->">Edit</a></td>
<td><a href="javascript:confirm_deletion(<!-- TMPL_VAR NAME="bibid" -->,<!-- TMPL_VAR NAME="itemnum" -->)">Delete</a></td>
</tr>
<!-- /TMPL_LOOP -->
</table>
</div>
<!-- /TMPL_IF -->
<table>
<!-- TMPL_IF name="opisadd" -->
<caption>Add Item</caption>
<!-- TMPL_ELSE -->
<caption>Edit Item</caption>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="item" -->
<tr>
<th><label><!-- TMPL_VAR NAME="subfield" --> - <!-- TMPL_IF name="mandatory" --><!-- /TMPL_IF --><!-- TMPL_VAR NAME="marc_lib" --><!-- TMPL_IF name="mandatory" --> *<!-- /TMPL_IF --></label></th>
<td><!-- TMPL_VAR NAME="marc_value" -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" /></td>
</tr>
<!-- /tmpl_loop -->
</table>
<input type="hidden" name="itemnum" value="<!-- TMPL_VAR NAME="itemnum" -->" />
<!-- TMPL_IF name="barcode_not_unique" -->
ERROR : Barcode already exists !</div>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="opisadd" -->
<input type="button" value="Add item" onClick="Check(this.form)" accesskey="w" />
<!-- TMPL_ELSE -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="itemtagfield" -->" />
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="itemtagsubfield" -->" />
<input type="hidden" name="field_value" value="<!-- TMPL_VAR NAME="itemnum" -->" />
<input type="button" value="Save Changes" onClick="Check(this.form)" accesskey="w" />
<!-- /TMPL_IF -->
</form>
<script language="JavaScript" type="text/javascript">
function _(s) { return s } // dummy function for gettext
function active(numlayer)
{
for (i=10; i < 11 ; i++ ) {
ong = i+"XX";
link = "link"+i;
if (numlayer==i) {
document.getElementById(ong).style.visibility="visible";
document.getElementById(link).style.backgroundColor="#11AA11";
document.getElementById(link).style.backgroundImage="url(<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif)";
} else {
document.getElementById(ong).style.visibility="hidden";
document.getElementById(link).style.backgroundColor="#FFFFFF";
document.getElementById(link).style.backgroundImage="";
}
}
}
function Check(f) {
var total_errors=0;
// alert(f.field_value.length);
for (i=0 ; i<f.field_value.length ; i++) {
// alert (f.field_value[i].value);
if (f.field_value[i].value.length==0 && f.mandatory[i].value==1) {
document.getElementById("error"+i).style.backgroundColor="#FF0000";
total_errors++;
} else {
// document.getElementById("error"+i).style.backgroundColor="#FFFFFF";
}
}
var alertString2;
if (total_errors==0) {
document.f.submit();
} else {
alertString2 = _("Form not submitted because of the following problem(s)");
alertString2 += "\n------------------------------------------------------------------------------------\n";
alertString2 += "\n- "+ total_errors+_(" mandatory fields empty (see bold subfields)");
alert(alertString2);
}
}
function Dopop(link,i) {
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 confirm_deletion(bibid,itemnum) {
var is_confirmed = confirm(_('Are you sure you want to delete this item?'));
if (is_confirmed) {
window.location = "additem.pl?op=delitem&bibid="+bibid+"&itemnum="+itemnum;
}
}
</script>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

View file

@ -0,0 +1,99 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Cataloging: Search Results for <!-- TMPL_IF name="isbn" -->ISBN <!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF --><!-- TMPL_IF name="title" -->title <!-- TMPL_VAR name="title" --><!-- /TMPL_IF --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<h2>Search Results for <!-- TMPL_IF name="isbn" -->ISBN <!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF --><!-- TMPL_IF name="title" -->title <!-- TMPL_VAR name="title" --><!-- /TMPL_IF --></h2>
<!-- TMPL_IF name="total" -->
Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" -->
<!-- /TMPL_IF -->
<!-- TMPL_IF name="loop" -->
<!-- TMPL_IF NAME="displayprev" -->
<a href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">&lt;&lt;Previous</a><!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="numbers" -->
<!-- TMPL_IF NAME="highlight" -->
<!-- TMPL_VAR NAME="number" -->
<!-- TMPL_ELSE --><a href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><!-- TMPL_VAR NAME="number" --></a><!-- /TMPL_IF --><!-- /TMPL_LOOP --> <!-- TMPL_IF NAME="displaynext" --> <a href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">Next&gt;&gt;</a><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<table>
<caption>Existing Bibliographic Records</caption>
<tr>
<th>Title</th>
<th>Author</th>
<th>&copy;</th>
<th>Call Number</th>
<th>&nbsp;</th>
<!-- TMPL_UNLESS NAME="NOTMARC" -->
<th colspan="2">&nbsp;</th>
<!-- /TMPL_UNLESS -->
</tr>
<!-- TMPL_IF name="loop" -->
<!-- TMPL_LOOP NAME="loop" -->
<tr>
<td><a href="addbiblio.pl?oldbiblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a></td>
<td><!-- TMPL_VAR NAME="author" --></td>
<td><!-- TMPL_IF name="copyrightdate" --><!-- TMPL_VAR name="copyrightdate" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td>
<td><!-- TMPL_IF NAME="classification" --><!-- TMPL_VAR NAME="classification" --><!-- /TMPL_IF --></td>
<!-- TMPL_IF NAME="NOTMARC" -->
<td><a href="additem-nomarc.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Add items</a></td>
<!-- TMPL_ELSE -->
<td><a href="addbiblio.pl?oldbiblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Edit Biblio</a></td>
<td><a href="additem.pl?bibid=<!-- TMPL_VAR NAME="bibid" -->">Edit Items</a></td>
<!-- /TMPL_IF -->
<!-- TMPL_UNLESS NAME="NOTMARC" -->
<td><a href="addbiblio.pl?oldbiblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;op=duplicate">Duplicate</a></td><!-- /TMPL_UNLESS --></tr>
<!-- /TMPL_LOOP -->
<!-- TMPL_ELSE -->
<tr><td colspan="6">Nothing found</td></tr>
<!-- /TMPL_IF -->
</table>
<!-- TMPL_IF NAME="displayprev" -->
<a href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">&lt;&lt;Previous</a><!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="numbers" -->
<!-- TMPL_IF NAME="highlight" -->
<!-- TMPL_VAR NAME="number" -->
<!-- TMPL_ELSE --><a href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><!-- TMPL_VAR NAME="number" --></a><!-- /TMPL_IF --><!-- /TMPL_LOOP --> <!-- TMPL_IF NAME="displaynext" --> <a href="isbnsearch.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">Next&gt;&gt;</a><!-- /TMPL_IF -->
<!-- TMPL_IF name="breeding_loop" -->
<table>
<caption>Bibliographic Records in the Reservoir</caption>
<tr>
<th>Title</th>
<th>Author</th>
<th>ISBN</th>
<th>coming from</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
<!-- TMPL_LOOP NAME="breeding_loop" -->
<!-- TMPL_IF NAME="highlight" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
<td><!-- TMPL_VAR NAME="title" --></a>
<td><!-- TMPL_VAR NAME="author" --></td>
<td><!-- TMPL_VAR NAME="isbn" --></td>
<td><!-- TMPL_VAR NAME="file" --></td>
<!-- TMPL_IF NAME="NOTMARC" -->
<!-- TMPL_ELSE -->
<td><a href="addbiblio.pl?breedingid=<!-- TMPL_VAR NAME="id" -->">Add biblio</a></td>
<!-- /TMPL_IF -->
</tr>
<!-- /TMPL_LOOP -->
</table>
<!-- TMPL_ELSE --><h3>No records found in the Reservoir</h3><!-- /TMPL_IF -->
<h2>Create a New Record</h2>
<!-- TMPL_IF NAME="NOTMARC" -->
<a href="addbiblio-nomarc.pl?isbn=<!-- TMPL_VAR NAME="isbn" -->">Add New Record</a>
<!-- TMPL_ELSE -->
<form action="/cgi-bin/koha/acqui.simple/addbiblio.pl" method="post">
<input type="hidden" name="title" value="<!-- TMPL_VAR NAME="title" ESCAPE="URL" -->" />
<input type="hidden" name="isbn" value="<!-- TMPL_VAR NAME="isbn" -->" /><label for="frameworkcode">Choose a Framework: </label><select id="frameworkcode" name="frameworkcode">
<option value="">Default</option><!-- TMPL_LOOP NAME="frameworkcodeloop" --><option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option><!-- /TMPL_LOOP --></select> <input type="submit" class="submit" value="Add New Record" /></form>
<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

View file

@ -0,0 +1,49 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Cataloging: MARC Import<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<form method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" enctype="multipart/form-data">
<table>
<caption>MARC acquisition system</caption>
<tr>
<th colspan="2">Import into the reservoir</th>
</tr>
<tr><td colspan="2">
<!-- 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 reservoir. It will be parsed, and for each ISBN found, a new record will be created in the reservoir.
If an ISBN already exists in the reservoir, you can choose wether 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 !</li>
<li>Of course, if the ISBN already exists in active DB, the biblio will be ignored.</li></ul>
</td></tr>
<tr>
<td>Select the file to import :</td>
<td>
<input type="file" name="uploadmarc"><br>
</td>
</tr>
<tr>
<td>Name of this import :</td>
<td>
<input type="text" name="filename"><br>
</td>
</tr>
<tr>
<td>If ISBN is already in the reservoir : </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>
<td colspan="2" class="action"><input type="submit" value="Import Data">
</td></tr></table></form>
<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE NAME="acquisitions-bottom.inc" -->