4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>006 builder › Cataloging › Koha</title>
6 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="cat_marc21_field_006" class="cat" style="padding:1em;" onload="loadXmlValues()">
10 <h1>006 Fixed-length data elements--Additional material characteristics--General information</h1>
16 <h4 id="h4_result">"[% result | html %]"</h4>
18 <form name="f_pop" id="f_pop" onsubmit="report()" action="">
19 <input type="hidden" name="plugin_name" value="marc21_field_006.pl" />
20 <input type="hidden" id="[% index | html %]" name="index" value="[% index | html %]" />
21 <input type="hidden" id="result" name="result" value="[% result | html %]" />
22 <table id="table_material_types">
23 <tr id="tr_material_types">
24 <td><label for="material_type" title="Select a type of material to specify the variable values">Type of material</label></td>
26 <select name="material_type" id="material_type" title="Select a type of material to specify the variable values" onchange="changeTypeofMaterial(this.form)">
27 <option value="">Select a type of material</option>
32 <fieldset class="action"><input type="submit" value="OK" /> <a href="#" class="cancel close">Cancel</a></fieldset>
35 [% MACRO jsinclude BLOCK %]
36 [% Asset.js("js/xmlControlfield.js") | $raw %]
38 var objXmlControlField;
42 function loadXmlValues(){
44 alert("[% errorXml | html %]");
46 var form = document.f_pop;
47 h4_result = document.getElementById("h4_result");
48 tr_result = document.getElementById("tr_result");
49 objXmlControlField = new xmlControlField('[% tagfield | html %]', 'f_pop', document.getElementById('material_type'), document.getElementById('table_material_types'), 'h4_result', 'tr_result', '', '[% themelang | html %]', '[% marcflavour | html %]');
50 [% IF ( material_configuration ) %]
51 objXmlControlField.idMaterial = "[% material_configuration | html %]";
53 objXmlControlField.loadXmlValues();
54 renderResult(tr_result, (form.result.value != "")?form.result.value:returnValueParam("result"));
58 function changeTypeofMaterial(form){
59 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))) {
60 objXmlControlField.setIdMaterial(form.material_type.options[form.material_type.selectedIndex].value);
61 objXmlControlField.renderTemplate();
62 renderResult(tr_result, form.result.value, true);
64 } // changeTypeofMaterial
67 var doc = opener.document;
68 var field = doc.getElementById("[% index | html %]");
69 field.value = document.getElementById("result").value;
76 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]