2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Cataloging › 006 builder</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="cat_marc21_field_006" class="cat" style="padding:1em;" onload="loadXmlValues()">
8 <h3>006 Fixed-length data elements--Additional material characteristics--General information</h3>
14 <h4 id="h4_result">"[% result %]"</h4>
16 <form name="f_pop" id="f_pop" onsubmit="report()" action="">
17 <input type="hidden" name="plugin_name" value="marc21_field_006.pl" />
18 <input type="hidden" id="[% index %]" name="index" value="[% index %]" />
19 <input type="hidden" id="result" name="result" value="[% result %]" />
20 <table id="table_material_types">
21 <tr id="tr_material_types">
22 <td><label for="material_type" title="Select a type of material to specify the variable values">Type of material</label></td>
24 <select name="material_type" id="material_type" title="Select a type of material to specify the variable values" onchange="changeTypeofMaterial(this.form)">
25 <option value="">Select a type of material</option>
30 <fieldset class="action"><input type="submit" value="OK" /> <a href="#" class="cancel close">Cancel</a></fieldset>
33 [% MACRO jsinclude BLOCK %]
34 <script type="text/javascript" src='[% interface %]/[% theme %]/js/xmlControlfield_[% KOHA_VERSION %].js'></script>
35 <script type="text/javascript">
36 var objXmlControlField;
40 function loadXmlValues(){
42 alert("[% errorXml %]");
44 var form = document.f_pop;
45 h4_result = document.getElementById("h4_result");
46 tr_result = document.getElementById("tr_result");
47 objXmlControlField = new xmlControlField('[% tagfield %]', 'f_pop', document.getElementById('material_type'), document.getElementById('table_material_types'), 'h4_result', 'tr_result', '', '[% themelang %]', '[% marcflavour %]');
48 [% IF ( material_configuration ) %]
49 objXmlControlField.idMaterial = "[% material_configuration %]";
51 objXmlControlField.loadXmlValues();
52 renderResult(tr_result, (form.result.value != "")?form.result.value:returnValueParam("result"));
56 function changeTypeofMaterial(form){
57 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))) {
58 objXmlControlField.setIdMaterial(form.material_type.options[form.material_type.selectedIndex].value);
59 objXmlControlField.renderTemplate();
60 renderResult(tr_result, form.result.value, true);
62 } // changeTypeofMaterial
65 var doc = opener.document;
66 var field = doc.getElementById("[% index %]");
67 field.value = document.getElementById("result").value;
74 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]