1 <TMPL_INCLUDE NAME="acquisitions-top.inc">
2 <STYLE TYPE="text/css" MEDIA=screen>
3 table { font-family:Arial;
9 <form method="post" action="additem.pl" name="f">
10 <table width=100% cellspacing=0 cellpadding=5 border=1>
11 <tr background="/images/background-mem.gif">
12 <th>MARC biblio : <TMPL_VAR name="bibid"></th>
16 <table width=100% border=0 colspacing=0 cellpadding=0>
18 <td width=9% align="center"> </td>
19 <td width=9% align="center"> </td>
20 <td width=9% align="center"> </td>
21 <td width=9% align="center"> </td>
22 <td width=9% align="center"> </td>
23 <td width=9% align="center"> </td>
24 <td width=9% align="center"> </td>
25 <td width=9% align="center"> </td>
26 <td width=9% align="center"> </td>
27 <td width=9% align="center"> </td>
28 <td width=10% align="center">
29 <input type="hidden" name="op" value="<TMPL_VAR name="op">">
30 <input type="hidden" name="bibid" value="<TMPL_VAR name="bibid">">
39 <DIV name="10XX" id="10XX">
40 <table border=1 cellspacing=0 cellpadding=5 width=100%>
41 <tr background="/images/background-mem.gif">
42 <th>Existing items</th>
45 <table border=1 cellspacing=0 cellpadding=0 width=100%>
46 <tr background="/images/background-mem.gif">
47 <TMPL_LOOP name="item_header_loop"><th><tmpl_var name="header_value"></th></TMPL_LOOP><th colspan=2> </th>
49 <TMPL_LOOP name="item_loop">
51 <TMPL_VAR name="item_value">
52 <td><a href="additem.pl?op=edititem&bibid=<TMPL_VAR name="bibid">&itemnum=<TMPL_VAR name="itemnum">">Edit</a></td>
58 <table border=1 cellspacing=0 cellpadding=5 width=100%>
59 <tr background="/images/background-mem.gif">
62 </table><table width=100% cellspacing=0 cellpadding=1 border=0>
63 <TMPL_LOOP name="item">
65 <td width="3%"> </td>
66 <td width="2%"><TMPL_VAR name="subfield"></td>
67 <td width="55%"><TMPL_IF name="mandatory"><b></TMPL_IF><TMPL_VAR name="marc_lib"><TMPL_IF name="mandatory"></b></TMPL_IF></td>
69 <TMPL_VAR name="marc_value">
70 <input type="hidden" name="tag" value="<TMPL_VAR name="tag">">
71 <input type="hidden" name="subfield" value="<TMPL_VAR name="subfield">">
72 <input type="hidden" name="mandatory" value="<TMPL_VAR name="mandatory">">
77 <input type="hidden" name="itemnum" value="<TMPL_VAR name="itemnum">">
78 <TMPL_IF name="opisadd">
79 <input type="button" value="Add item" onClick='Check(this.form)' accesskey="w">
81 <input type="hidden" name="tag" value="<TMPL_VAR name="itemtagfield">">
82 <input type="hidden" name="subfield" value="<TMPL_VAR name="itemtagsubfield">">
83 <input type="hidden" name="field_value" value="<TMPL_VAR name="itemnum">">
84 <input type="button" value="Modify item" onClick='Check(this.form)' accesskey="w">
88 <script LANGUAGE="JavaScript">
89 function active(numlayer)
91 for (i=0; i < 10 ; i++ ) {
95 document.getElementById(ong).style.visibility="visible";
96 document.getElementById(link).style.backgroundColor="#11AA11";
97 document.getElementById(link).style.backgroundImage="url(/images/background-mem.gif)";
99 document.getElementById(ong).style.visibility="hidden";
100 document.getElementById(link).style.backgroundColor="#FFFFFF";
101 document.getElementById(link).style.backgroundImage="";
107 // alert(f.field_value.length);
108 for (i=0 ; i<f.field_value.length ; i++) {
109 // alert (f.field_value[i].value);
110 if (f.field_value[i].value.length==0 && f.mandatory[i].value==1) {
111 document.getElementById("error"+i).style.backgroundColor="#FF0000";
114 document.getElementById("error"+i).style.backgroundColor="#FFFFFF";
118 if (total_errors==0) {
121 alertString2 = "Form not submitted because of the following problem(s)\n";
122 alertString2 += "------------------------------------------------------------------------------------\n\n";
123 alertString2 += "- "+ total_errors+" mandatory fields empty (see bold subfields)";
127 function Dopop(link,i) {
128 defaultvalue=document.forms[0].field_value[i].value;
129 newin=window.open(link+"&result="+defaultvalue,"value builder",'width=500,height=400,toolbar=false,scrollbars=yes');