3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Cataloging › 006 builder</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="cat_marc21_field_006" class="cat" style="padding:1em;" onload="loadXmlValues()">
9 <h3>006 Fixed-length data elements--Additional material characteristics--General information</h3>
15 <h4 id="h4_result">"[% result %]"</h4>
17 <form name="f_pop" id="f_pop" onsubmit="report()" action="">
18 <input type="hidden" name="plugin_name" value="marc21_field_006.pl" />
19 <input type="hidden" id="[% index %]" name="index" value="[% index %]" />
20 <input type="hidden" id="result" name="result" value="[% result %]" />
21 <table id="table_material_types">
22 <tr id="tr_material_types">
23 <td><label for="material_type" title="Select a type of material to specify the variable values">Type of material</label></td>
25 <select name="material_type" id="material_type" title="Select a type of material to specify the variable values" onchange="changeTypeofMaterial(this.form)">
26 <option value="">Select a type of material</option>
31 <fieldset class="action"><input type="submit" value="OK" /> <a href="#" class="cancel close">Cancel</a></fieldset>
34 [% MACRO jsinclude BLOCK %]
35 [% Asset.js("js/xmlControlfield.js") %]
36 <script type="text/javascript">
37 var objXmlControlField;
41 function loadXmlValues(){
43 alert("[% errorXml %]");
45 var form = document.f_pop;
46 h4_result = document.getElementById("h4_result");
47 tr_result = document.getElementById("tr_result");
48 objXmlControlField = new xmlControlField('[% tagfield %]', 'f_pop', document.getElementById('material_type'), document.getElementById('table_material_types'), 'h4_result', 'tr_result', '', '[% themelang %]', '[% marcflavour %]');
49 [% IF ( material_configuration ) %]
50 objXmlControlField.idMaterial = "[% material_configuration %]";
52 objXmlControlField.loadXmlValues();
53 renderResult(tr_result, (form.result.value != "")?form.result.value:returnValueParam("result"));
57 function changeTypeofMaterial(form){
58 if (form.material_type.options[form.material_type.selectedIndex].value != "" && confirm(_("Show values for '%s' material type?").format(form.material_type.options[form.material_type.selectedIndex].text))) {
59 objXmlControlField.setIdMaterial(form.material_type.options[form.material_type.selectedIndex].value);
60 objXmlControlField.renderTemplate();
61 renderResult(tr_result, form.result.value, true);
63 } // changeTypeofMaterial
66 var doc = opener.document;
67 var field = doc.getElementById("[% index %]");
68 field.value = document.getElementById("result").value;
75 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]