1 <TMPL_INCLUDE NAME="marc-top.inc">
2 <STYLE TYPE="text/css" MEDIA=screen>
3 table { font-family:Arial;
9 <form method="post" action="additem.pl" name="f">
10 <input type="hidden" name="op" value="<TMPL_VAR name="op">">
11 <input type="hidden" name="bibid" value="<TMPL_VAR name="bibid">">
12 <table width="80%" align="center" cellspacing=0 cellpadding=5 border=1>
13 <tr background="<TMPL_VAR name="themelang">/images/background-mem.gif">
15 <table width="100%" border=0 cellpadding=0 cellspacing=0>
17 <td width=8%><a href="addbiblio.pl?oldbiblionumber=<TMPL_VAR name="biblionumber">"><img border="0" src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/fileopen.png"></td>
18 <td width=8%><a href="../detail.pl?bib=<TMPL_VAR name="biblionumber">">Normal</a></td>
19 <td align="center"><b>MARC biblio : <TMPL_VAR name="bibid"></b></td>
27 <DIV name="10XX" id="10XX">
28 <table border=1 cellspacing=0 cellpadding=5 width=80%>
29 <tr background="<TMPL_VAR name="themelang">/images/background-mem.gif">
30 <th>Existing items</th>
33 <table border=1 cellspacing=0 cellpadding=0 width=80%>
34 <tr background="<TMPL_VAR name="themelang">/images/background-mem.gif">
35 <TMPL_LOOP name="item_header_loop"><th><tmpl_var name="header_value"></th></TMPL_LOOP><th colspan=2> </th>
37 <TMPL_LOOP name="item_loop">
39 <TMPL_VAR name="item_value">
40 <td><a href="additem.pl?op=edititem&bibid=<TMPL_VAR name="bibid">&itemnum=<TMPL_VAR name="itemnum">">Edit</a></td>
46 <table border=1 cellspacing=0 cellpadding=5 width=80%>
47 <tr background="<TMPL_VAR name="themelang">/images/background-mem.gif">
50 </table><table width=80% cellspacing=0 cellpadding=1 border=0>
51 <TMPL_LOOP name="item">
53 <td width="3%"> </td>
54 <td width="2%"><TMPL_VAR name="subfield"></td>
55 <td width="55%"><TMPL_IF name="mandatory"><b></TMPL_IF><TMPL_VAR name="marc_lib"><TMPL_IF name="mandatory"> *</b></TMPL_IF></td>
57 <TMPL_VAR name="marc_value">
58 <input type="hidden" name="tag" value="<TMPL_VAR name="tag">">
59 <input type="hidden" name="subfield" value="<TMPL_VAR name="subfield">">
60 <input type="hidden" name="mandatory" value="<TMPL_VAR name="mandatory">">
65 <input type="hidden" name="itemnum" value="<TMPL_VAR name="itemnum">">
66 <TMPL_IF name="opisadd">
67 <input type="button" value="Add item" onClick='Check(this.form)' accesskey="w">
69 <input type="hidden" name="tag" value="<TMPL_VAR name="itemtagfield">">
70 <input type="hidden" name="subfield" value="<TMPL_VAR name="itemtagsubfield">">
71 <input type="hidden" name="field_value" value="<TMPL_VAR name="itemnum">">
72 <input type="button" value="Modify item" onClick='Check(this.form)' accesskey="w">
76 <script LANGUAGE="JavaScript">
77 function active(numlayer)
79 for (i=10; i < 11 ; i++ ) {
83 document.getElementById(ong).style.visibility="visible";
84 document.getElementById(link).style.backgroundColor="#11AA11";
85 document.getElementById(link).style.backgroundImage="url(<TMPL_VAR name="themelang">/images/background-mem.gif)";
87 document.getElementById(ong).style.visibility="hidden";
88 document.getElementById(link).style.backgroundColor="#FFFFFF";
89 document.getElementById(link).style.backgroundImage="";
95 // alert(f.field_value.length);
96 for (i=0 ; i<f.field_value.length ; i++) {
97 // alert (f.field_value[i].value);
98 if (f.field_value[i].value.length==0 && f.mandatory[i].value==1) {
99 document.getElementById("error"+i).style.backgroundColor="#FF0000";
102 // document.getElementById("error"+i).style.backgroundColor="#FFFFFF";
106 if (total_errors==0) {
109 alertString2 = "Form not submitted because of the following problem(s)\n";
110 alertString2 += "------------------------------------------------------------------------------------\n\n";
111 alertString2 += "- "+ total_errors+" mandatory fields empty (see bold subfields)";
115 function Dopop(link,i) {
116 defaultvalue=document.forms[0].field_value[i].value;
117 newin=window.open(link+"&result="+defaultvalue,"value builder",'width=500,height=400,toolbar=false,scrollbars=yes');