1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Cataloging › 006 builder</title>
3 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript" src='[% themelang %]/js/xmlControlfield.js'></script>
6 <script type="text/javascript">
7 var objXmlControlField;
11 function loadXmlValues()
14 alert("[% errorXml %]");
16 var form = document.f_pop;
17 h4_result = document.getElementById("h4_result");
18 tr_result = document.getElementById("tr_result");
19 objXmlControlField = new xmlControlField('[% tagfield %]', 'f_pop', document.getElementById('material_type'), document.getElementById('table_material_types'), 'h4_result', 'tr_result', '');
20 objXmlControlField.loadXmlValues();
21 renderResult(tr_result, (form.result.value != "")?form.result.value:returnValueParam("result"));
25 function changeTypeofMaterial(form)
27 if (form.material_type.options[form.material_type.selectedIndex].value != "" && confirm('Show values for \'' + form.material_type.options[form.material_type.selectedIndex].text + '\' material type?')) {
28 objXmlControlField.setIdMaterial(form.material_type.options[form.material_type.selectedIndex].value);
29 objXmlControlField.renderTemplate();
30 renderResult(tr_result, form.result.value, true);
32 }//changeTypeofMaterial
36 <body style="padding:1em;" onload="loadXmlValues()">
37 <h3>006 Fixed-length data elements--Additional material characteristics--General information</h3>
43 <h4 id="h4_result">"[% result %]"</h4>
45 <form name="f_pop" id="f_pop" onsubmit="report()" action="">
46 <input type="hidden" name="plugin_name" value="marc21_field_006.pl" />
47 <input type="hidden" id="[% index %]" name="index" value="[% index %]" />
48 <input type="hidden" id="result" name="result" value="[% result %]" />
49 <table id="table_material_types">
50 <tr id="tr_material_types">
51 <td><label for="material_type" title="Select a type of material to specify the variable values">Type of Material</label></td>
53 <select name="material_type" id="material_type" title="Select a type of material to specify the variable values" onchange="changeTypeofMaterial(this.form)">
54 <option value="">Select a type of material</option>
59 <fieldset class="action"><input type="submit" value="OK" /> <a href="#" class="cancel close">Cancel</a></fieldset>
61 <script type="text/javascript">//<![CDATA[
63 var doc = opener.document;
64 var field = doc.getElementById("[% index %]");
65 field.value = document.getElementById("result").value;
72 [% INCLUDE 'popup-bottom.inc' %]