View | Details | Raw Unified | Return to bug 19874
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_125a.tt (-12 / +13 lines)
Lines 1-7 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 125a builder</title>
3
<title>UNIMARC field 125a builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="cat_unimarc_field_125a" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_125a" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 125a builder</h3>
8
<h3>UNIMARC field 125a builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 133-149 Link Here
133
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
135
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
134
</form>
136
</form>
135
137
136
<script type="text/javascript">
138
[% MACRO jsinclude BLOCK %]
137
//<![CDATA[
139
    <script type="text/javascript">
138
	function report() {
140
        function report() {
139
            var doc   = opener.document; 
141
            var doc = opener.document;
140
            var field = doc.getElementById("[% index %]");
142
            var field = doc.getElementById("[% index %]");
141
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value;
143
            field.value = document.f_pop.f1.value+document.f_pop.f2.value;
142
	    window.close();
144
            window.close();
143
	    return false;
145
            return false;
144
	}
146
        }
145
//]]>
147
    </script>
146
</script>
148
[% END %]
147
148
149
149
[% INCLUDE 'popup-bottom.inc' %]
150
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_125b.tt (-11 / +14 lines)
Lines 1-7 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 125b builder</title>
3
<title>UNIMARC field 125b builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="unimarc_field_125b" class="cat" style="padding:1em;">
7
<body id="unimarc_field_125b" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 125b builder</h3>
8
<h3>UNIMARC field 125b builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 125-141 Link Here
125
</table>
127
</table>
126
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
128
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
127
</form>
129
</form>
128
<script type="text/javascript">
130
129
//<![CDATA[
131
[% MACRO jsinclude BLOCK %]
130
	function report() {
132
    <script type="text/javascript">
131
            var doc   = opener.document; 
133
        function report() {
134
            var doc   = opener.document;
132
            var field = doc.getElementById("[% index %]");
135
            var field = doc.getElementById("[% index %]");
133
        
136
134
            field.value =  document.f_pop.f1.value;
137
            field.value =  document.f_pop.f1.value;
135
	    window.close();
138
            window.close();
136
	    return false;
139
            return false;
137
	}
140
        }
138
//]]>
141
    </script>
139
</script>
142
[% END %]
140
143
141
[% INCLUDE 'popup-bottom.inc' %]
144
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_126a.tt (-10 / +13 lines)
Lines 1-7 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 126a builder</title>
3
<title>UNIMARC field 126a builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="cat_unimarc_field_126a" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_126a" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 126a builder</h3>
8
<h3>UNIMARC field 126a builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 1026-1041 Link Here
1026
</table>
1028
</table>
1027
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
1029
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
1028
</form>
1030
</form>
1029
<script type="text/javascript">
1031
1030
//<![CDATA[
1032
[% MACRO jsinclude BLOCK %]
1031
	function report() {
1033
    <script type="text/javascript">
1032
            var doc   = opener.document; 
1034
        function report() {
1035
            var doc   = opener.document;
1033
            var field = doc.getElementById("[% index %]");
1036
            var field = doc.getElementById("[% index %]");
1034
            field.value = document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value+document.f_pop.f10.value+document.f_pop.f11.value+document.f_pop.f12.value+document.f_pop.f13.value+document.f_pop.f14.value+document.f_pop.f15.value ;
1037
            field.value = document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value+document.f_pop.f10.value+document.f_pop.f11.value+document.f_pop.f12.value+document.f_pop.f13.value+document.f_pop.f14.value+document.f_pop.f15.value ;
1035
	    window.close();
1038
            window.close();
1036
	    return false;
1039
            return false;
1037
	}
1040
        }
1038
//]]>
1041
    </script>
1039
</script>
1042
[% END %]
1040
1043
1041
[% INCLUDE 'popup-bottom.inc' %]
1044
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_126b.tt (-13 / +14 lines)
Lines 1-7 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 126b builder</title>
3
<title>UNIMARC field 126b builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="cat_unimarc_field_126b" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_126b" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 126b builder</h3>
8
<h3>UNIMARC field 126b builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 169-187 Link Here
169
</table>
171
</table>
170
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
172
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
171
</form>
173
</form>
172
<script type="text/javascript">
173
//<![CDATA[
174
	function report() {
175
176
174
177
		var doc   = opener.document; 
175
[% MACRO jsinclude BLOCK %]
176
    <script type="text/javascript">
177
        function report() {
178
            var doc = opener.document;
178
            var field = doc.getElementById("[% index %]");
179
            var field = doc.getElementById("[% index %]");
179
        
180
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value ;
181
		self.close();
182
		return false;
183
	}
184
//]]>
185
</script>
186
180
187
[% INCLUDE 'popup-bottom.inc' %]
181
            field.value = document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value ;
182
            self.close();
183
            return false;
184
        }
185
    </script>
186
[% END %]
187
188
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_127.tt (-21 / +20 lines)
Lines 1-7 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 127 builder</title>
3
<title>UNIMARC field 127 builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="cat_unimarc_field_127" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_127" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 127 builder</h3>
8
<h3>UNIMARC field 127 builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 23-50 Link Here
23
</table>
25
</table>
24
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
26
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
25
</form>
27
</form>
26
<script type="text/javascript">
27
//<![CDATA[
28
	function report() {
29
document.f_pop.f1.value=document.f_pop.f1.value+'   ';
30
document.f_pop.f2.value=document.f_pop.f2.value+'  ';
31
document.f_pop.f3.value=document.f_pop.f3.value+'  ';
32
33
28
29
[% MACRO jsinclude BLOCK %]
30
    <script type="text/javascript">
31
        function report() {
32
            document.f_pop.f1.value=document.f_pop.f1.value+'   ';
33
            document.f_pop.f2.value=document.f_pop.f2.value+'  ';
34
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
34
35
35
document.f_pop.f1.value=document.f_pop.f1.value.substring(0,2);
36
            document.f_pop.f1.value=document.f_pop.f1.value.substring(0,2);
36
document.f_pop.f2.value=document.f_pop.f2.value.substring(0,2);
37
            document.f_pop.f2.value=document.f_pop.f2.value.substring(0,2);
37
document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
38
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
38
39
39
40
            var doc = opener.document;
40
		var doc   = opener.document; 
41
            var field = doc.getElementById("[% index %]");
41
            var field = doc.getElementById("[% index %]");
42
        
43
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value;
44
		self.close();
45
		return false;
46
	}
47
//]]>
48
</script>
49
42
50
[% INCLUDE 'popup-bottom.inc' %]
43
            field.value = document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value;
44
            self.close();
45
            return false;
46
          }
47
    </script>
48
[% END %]
49
50
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
51
- 

Return to bug 19874