Bug 5917 : Swapping templates over
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_123a.tt
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123a.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123a.tt
new file mode 100644 (file)
index 0000000..e4e1c86
--- /dev/null
@@ -0,0 +1,46 @@
+[% INCLUDE 'doc-head-open.inc' %]
+<title>UNIMARC Field 123a builder</title>
+[% INCLUDE 'doc-head-close.inc' %]
+</head>
+<body style="padding:1em;">
+<h3>UNIMARC Field 123a builder</h3>
+<form name="f_pop" action="">
+<table>
+       <tr>
+               <td><label for="f1">Type of Scale:</label></td>
+               <td>
+                       <select name="f1" id="f1" size="1">
+                       [% IF ( f1a ) %]
+                               <option value="a" selected="selected">linear scale</option>
+                       [% ELSE %]
+                               <option value="a">linear scale</option>
+                       [% END %]
+                       [% IF ( f1b ) %]
+                               <option value="b" selected="selected">angular scale</option>
+                       [% ELSE %]
+                               <option value="b">angular scale</option>
+                       [% END %]
+                       [% IF ( f1z ) %]
+                               <option value="z" selected="selected">other type of scale (e.g., time scale, quantitative statistical scale)</option>
+                       [% ELSE %]
+                               <option value="z">other type of scale (e.g., time scale, quantitative statistical scale)</option>
+                       [% END %]
+                       </select>
+               </td></tr>
+</table>
+<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
+</form>
+<script type="text/javascript">
+//<![CDATA[
+function report() {
+           var doc   = opener.document; 
+            var field = doc.getElementById("[% index %]");
+            field.value =  document.f_pop.f1.value;
+           self.close();
+           return false;
+       }
+//]]>
+</script>
+
+
+[% INCLUDE 'popup-bottom.inc' %]