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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt (-12 / +14 lines)
Lines 1-8 Link Here
1
[% PROCESS 'authorities-search-results.inc' %]
1
[% PROCESS 'authorities-search-results.inc' %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>UNIMARC field 210c builder</title>
4
<title>UNIMARC field 210c builder</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
7
6
<body id="cat_unimarc_field_210c" class="cat" style="padding:1em;">
8
<body id="cat_unimarc_field_210c" class="cat" style="padding:1em;">
7
<h3>UNIMARC field 210c builder</h3>
9
<h3>UNIMARC field 210c builder</h3>
8
    <h4>Search for authority type: EDITORS</h4>
10
    <h4>Search for authority type: EDITORS</h4>
Lines 77-93 Link Here
77
                          [% pagination_bar %]      
79
                          [% pagination_bar %]      
78
                        </div>
80
                        </div>
79
            [% END %]
81
            [% END %]
80
<script type="text/javascript">
81
//<![CDATA[
82
function report(summary)
83
{    
84
    var doc   = opener.document; 
85
    var field = doc.getElementById('[% index %]');
86
82
87
    field.value = summary;
83
[% MACRO jsinclude BLOCK %]
88
    self.close();
84
    <script type="text/javascript">
89
}
85
        function report(summary){
90
//]]>
86
            var doc   = opener.document;
91
</script>
87
            var field = doc.getElementById('[% index %]');
88
89
            field.value = summary;
90
            self.close();
91
        }
92
    </script>
93
[% END %]
92
94
93
[% INCLUDE 'popup-bottom.inc' %]
95
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c_bis.tt (-24 / +27 lines)
Lines 1-32 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; UNIMARC field 210c builder</title>
3
<title>Koha &rsaquo; UNIMARC field 210c builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
<style type="text/css">
5
<style type="text/css">
5
    #custom-doc { width:37.85em;*width:36.93em;min-width:492px; margin:auto; text-align:left; }
6
    #custom-doc { width:37.85em;*width:36.93em;min-width:492px; margin:auto; text-align:left; }
6
</style>
7
</style>
7
<script type="text/javascript">
8
//<![CDATA[
9
$(document).ready(function(){
10
    $( "#findvalue" ).autocomplete({
11
        source: "/cgi-bin/koha/cataloguing/ysearch.pl?table=biblioitems&field=publishercode",
12
        minLength: 3,
13
        select: function( event, ui ) {
14
            $( "#findvalue" ).val( ui.item.fieldvalue );
15
            return false;
16
        }
17
    })
18
    .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
19
        return $( "<li></li>" )
20
        .data( "ui-autocomplete-item", item )
21
        .append( "<a>" + item.fieldvalue + "</a>" )
22
        .appendTo( ul );
23
    };
24
25
});
26
//]]>
27
</script>
28
29
</head>
8
</head>
9
30
<body id="cat_unimarc_field_210c_bis" class="cat">
10
<body id="cat_unimarc_field_210c_bis" class="cat">
31
11
32
<div id="custom-doc" class="yui-t7">
12
<div id="custom-doc" class="yui-t7">
Lines 47-60 $(document).ready(function(){ Link Here
47
    </div>
27
    </div>
48
</div>
28
</div>
49
</div>
29
</div>
30
31
[% MACRO jsinclude BLOCK %]
50
    <script type="text/javascript">
32
    <script type="text/javascript">
51
        function report() {
33
        function report() {
52
            var doc   = opener.document; 
34
            var doc   = opener.document;
53
            var field = doc.getElementById("[% index %]");
35
            var field = doc.getElementById("[% index %]");
54
            field.value =  document.f_pop.findvalue.value;
36
            field.value =  document.f_pop.findvalue.value;
55
37
56
            window.close();
38
            window.close();
57
            return false;
39
            return false;
58
        }
40
        }
41
42
        $(document).ready(function(){
43
            $( "#findvalue" ).autocomplete({
44
                source: "/cgi-bin/koha/cataloguing/ysearch.pl?table=biblioitems&field=publishercode",
45
                minLength: 3,
46
                select: function( event, ui ) {
47
                    $( "#findvalue" ).val( ui.item.fieldvalue );
48
                    return false;
49
                }
50
            })
51
            .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
52
                return $( "<li></li>" )
53
                .data( "ui-autocomplete-item", item )
54
                .append( "<a>" + item.fieldvalue + "</a>" )
55
                .appendTo( ul );
56
            };
57
58
        });
59
59
    </script>
60
    </script>
60
[% INCLUDE 'popup-bottom.inc' %]
61
[% END %]
62
63
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a.tt (-8 / +11 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 225a builder</title>
3
    <title>UNIMARC field 225a 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_225a" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_225a" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 225a builder</h3>
8
<h3>UNIMARC field 225a builder</h3>
7
    <div id="mainbloc">
9
    <div id="mainbloc">
Lines 23-39 Link Here
23
            <input type="submit" value="OK" class="button authority" />
25
            <input type="submit" value="OK" class="button authority" />
24
        </form>
26
        </form>
25
    </div>
27
    </div>
26
    
28
27
<script type="text/javascript">
29
28
//<![CDATA[
30
[% MACRO jsinclude BLOCK %]
29
function report() {
31
    <script type="text/javascript">
30
            var doc   = opener.document; 
32
        function report() {
33
            var doc   = opener.document;
31
            var field = doc.getElementById("[% index %]");
34
            var field = doc.getElementById("[% index %]");
32
            field.value = document.f_pop.f2.value || document.f_pop.f1.value;
35
            field.value = document.f_pop.f2.value || document.f_pop.f1.value;
33
            window.close();
36
            window.close();
34
            return false;
37
            return false;
35
        }
38
        }
36
    //]]>
39
    </script>
37
</script>
40
[% END %]
38
41
39
[% INCLUDE 'popup-bottom.inc' %]
42
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a_bis.tt (-27 / +28 lines)
Lines 1-3 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; UNIMARC field 225a builder</title>
3
<title>Koha &rsaquo; UNIMARC field 225a builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 9-16 Link Here
9
        text-align:left;
10
        text-align:left;
10
    }
11
    }
11
</style>
12
</style>
12
13
</head>
13
</head>
14
14
<body id="cat_unimarc_field_225a_bis" class="cat">
15
<body id="cat_unimarc_field_225a_bis" class="cat">
15
16
16
  <div id="custom-doc" class="yui-t7">
17
  <div id="custom-doc" class="yui-t7">
Lines 31-63 Link Here
31
    </div>
32
    </div>
32
  </div>
33
  </div>
33
34
34
  <script>
35
[% MACRO jsinclude BLOCK %]
35
    //<![CDATA[
36
    <script type="text/javascript">
36
    $(document).ready(function(){
37
        $(document).ready(function(){
37
        $("#findvalue").autocomplete({
38
            $("#findvalue").autocomplete({
38
            source: "/cgi-bin/koha/cataloguing/ysearch.pl?table=biblioitems&field=collectiontitle",
39
                source: "/cgi-bin/koha/cataloguing/ysearch.pl?table=biblioitems&field=collectiontitle",
39
            minLength: 3,
40
                minLength: 3,
40
            select: function(event, ui) {
41
                select: function(event, ui) {
41
                $("#findvalue").val(ui.item.fieldvalue);
42
                    $("#findvalue").val(ui.item.fieldvalue);
42
                return false;
43
                    return false;
43
            }
44
                }
44
        })
45
            })
45
        .data("ui-autocomplete")._renderItem = function(ul, item) {
46
            .data("ui-autocomplete")._renderItem = function(ul, item) {
46
            return $("<li></li>")
47
                return $("<li></li>")
47
                .data("ui-autocomplete-item", item)
48
                    .data("ui-autocomplete-item", item)
48
                .append("<a>" + item.fieldvalue + "</a>")
49
                    .append("<a>" + item.fieldvalue + "</a>")
49
                .appendTo(ul);
50
                    .appendTo(ul);
50
        };
51
            };
51
52
52
        $('form').submit(function() {
53
            $('form').submit(function() {
53
            var field = opener.document.getElementById("[% index %]");
54
                var field = opener.document.getElementById("[% index %]");
54
            field.value = $('#findvalue').val();
55
                field.value = $('#findvalue').val();
55
56
56
            window.close();
57
                window.close();
57
            return false;
58
                return false;
59
            });
58
        });
60
        });
59
    });
61
    </script>
60
    //]]>
62
[% END %]
61
  </script>
62
63
63
[% INCLUDE 'popup-bottom.inc' %]
64
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_4XX.tt (-118 / +93 lines)
Lines 1-118 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Cataloging &rsaquo; 4XX plugin</title>
3
<title>Koha &rsaquo; Cataloging &rsaquo; 4XX plugin</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% IF ( fillinput ) %]
5
        <script type="text/javascript">
6
7
            function go() {
8
9
                var index_start = "[% index %]";
10
                var whichfield;
11
                try {
12
                        whichfield = opener.opener.document.getElementById(index_start);
13
                } catch(e) {
14
                        return;
15
                }
16
                
17
                // browse all its subfields
18
19
                var subfields = whichfield.parentNode.parentNode.getElementsByTagName('input');
20
21
                var re = /^tag_\d*_code_/;
22
                for(var i=0, len = subfields.length ; i< len ; i++) {
23
                    if(subfields[i].getAttribute('name').match(re)){ // it s a subfield
24
                        var code     = subfields[i];
25
                        var subfield = subfields[i+1];
26
                        
27
                        if(code.value == '9'){
28
                                subfield.value = "[% subfield_value_9 |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
29
                        }
30
                        if(code.value == '0'){
31
                                subfield.value = "[% subfield_value_0 |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
32
                        }
33
                        if(code.value == 'a'){
34
                                subfield.value = "[% subfield_value_a |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
35
                        }
36
                        if(code.value == 'c'){
37
                                subfield.value = "[% subfield_value_c |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
38
                        }
39
                        if(code.value == 'd'){
40
                                subfield.value = "[% subfield_value_d |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
41
                        }
42
                        if(code.value == 'e'){
43
                                subfield.value = "[% subfield_value_e |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
44
                        }
45
                        if(code.value == 'h'){
46
                                subfield.value = "[% subfield_value_h |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
47
                        }
48
                        if(code.value == 'i'){
49
                                subfield.value = "[% subfield_value_i |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
50
                        }
51
                        if(code.value == 'l'){
52
                                subfield.value = "[% subfield_value_l |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
53
                        }
54
                        if(code.value == 'n'){
55
                                subfield.value = "[% subfield_value_n |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
56
                        }
57
                        if(code.value == 'o'){
58
                                subfield.value = "[% subfield_value_o |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
59
                        }
60
                        if(code.value == 'p'){
61
                                subfield.value = "[% subfield_value_p |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
62
                        }
63
                        if(code.value == 't'){
64
                                subfield.value = "[% subfield_value_t |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
65
                        }
66
                        if(code.value == 'u'){
67
                                subfield.value = "[% subfield_value_u |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
68
                        }
69
                        if(code.value == 'v'){
70
                                subfield.value = "[% subfield_value_v |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
71
                        }
72
                        if(code.value == 'x'){
73
                                subfield.value = "[% subfield_value_x |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
74
                        }
75
                        if(code.value == 'y'){
76
                                subfield.value = "[% subfield_value_y |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
77
                        }
78
                    }
79
                }
80
                    return false;
81
            }
82
                
83
            window.onload = go();
84
            opener.close();
85
            window.close();
86
        //]]>
87
</script>
88
89
</head>
5
</head>
90
<body id="cat_unimarc_field_4XX" class="cat" style="padding:1em;">
91
<h3>UNIMARC field 4XX builder</h3>
92
[% ELSE %]
93
		<script type="text/javascript">
94
//<![CDATA[			
95
// 			document.getElementById('searchbox').focus();
96
		
97
			function report(value2report) {
98
                            if (document.f_pop.result.value.length==0) {
99
                                    document.f_pop.result.value = value2report;
100
                            } else {
101
                                    document.f_pop.result.value = document.f_pop.result.value+'|'+value2report;
102
                            }
103
                            return true;
104
			}
105
			function finish() {
106
                            opener.document.f.field_value[[% index %]].value= document.f_pop.result.value;
107
                            self.close();
108
                            return false;
109
			}
110
		//]]>
111
</script>
112
6
113
</head>
114
<body id="cat_unimarc_field_4XX" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_4XX" class="cat" style="padding:1em;">
8
115
<h3>UNIMARC field 4XX builder</h3>
9
<h3>UNIMARC field 4XX builder</h3>
10
[% UNLESS ( fillinput ) %]
116
	[% IF ( Search ) %]
11
	[% IF ( Search ) %]
117
		<div id="UNIMARC_Field_4XX_search">
12
		<div id="UNIMARC_Field_4XX_search">
118
        <h2> Search on  </h2>
13
        <h2> Search on  </h2>
Lines 230-246 Link Here
230
				[% END %]
125
				[% END %]
231
			</p>
126
			</p>
232
		</div>
127
		</div>
233
	
234
<script type="text/javascript">
235
//<![CDATA[
236
		function jumpfull(page){	
237
			window.open(page,'','fullscreen,scrollbars');
238
		}
239
//]]>
240
</script>
241
128
242
		
243
	[% END %]
129
	[% END %]
244
130
245
[% END %]
131
[% END %]
246
[% INCLUDE 'popup-bottom.inc' %]
132
133
[% MACRO jsinclude BLOCK %]
134
    [% IF ( fillinput ) %]
135
        <script type="text/javascript">
136
            function jumpfull(page){
137
                window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
138
            }
139
            function go() {
140
                var index_start = "[% index %]";
141
                var whichfield;
142
                try {
143
                    whichfield = opener.opener.document.getElementById(index_start);
144
                } catch(e) {
145
                    return;
146
                }
147
148
                // browse all its subfields
149
150
                var subfields = whichfield.parentNode.parentNode.getElementsByTagName('input');
151
152
                var re = /^tag_\d*_code_/;
153
                for(var i=0, len = subfields.length ; i< len ; i++) {
154
                    if(subfields[i].getAttribute('name').match(re)){ // it s a subfield
155
                        var code     = subfields[i];
156
                        var subfield = subfields[i+1];
157
158
                        if(code.value == '9'){
159
                                subfield.value = "[% subfield_value_9 |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
160
                        }
161
                        if(code.value == '0'){
162
                                subfield.value = "[% subfield_value_0 |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
163
                        }
164
                        if(code.value == 'a'){
165
                                subfield.value = "[% subfield_value_a |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
166
                        }
167
                        if(code.value == 'c'){
168
                                subfield.value = "[% subfield_value_c |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
169
                        }
170
                        if(code.value == 'd'){
171
                                subfield.value = "[% subfield_value_d |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
172
                        }
173
                        if(code.value == 'e'){
174
                                subfield.value = "[% subfield_value_e |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
175
                        }
176
                        if(code.value == 'h'){
177
                                subfield.value = "[% subfield_value_h |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
178
                        }
179
                        if(code.value == 'i'){
180
                                subfield.value = "[% subfield_value_i |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
181
                        }
182
                        if(code.value == 'l'){
183
                                subfield.value = "[% subfield_value_l |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
184
                        }
185
                        if(code.value == 'n'){
186
                                subfield.value = "[% subfield_value_n |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
187
                        }
188
                        if(code.value == 'o'){
189
                                subfield.value = "[% subfield_value_o |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
190
                        }
191
                        if(code.value == 'p'){
192
                                subfield.value = "[% subfield_value_p |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
193
                        }
194
                        if(code.value == 't'){
195
                                subfield.value = "[% subfield_value_t |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
196
                        }
197
                        if(code.value == 'u'){
198
                                subfield.value = "[% subfield_value_u |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
199
                        }
200
                        if(code.value == 'v'){
201
                                subfield.value = "[% subfield_value_v |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
202
                        }
203
                        if(code.value == 'x'){
204
                                subfield.value = "[% subfield_value_x |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
205
                        }
206
                        if(code.value == 'y'){
207
                                subfield.value = "[% subfield_value_y |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
208
                        }
209
                    }
210
                }
211
                return false;
212
            }
213
214
            window.onload = go();
215
            opener.close();
216
            window.close();
217
        </script>
218
    [% END %]
219
[% END %]
220
221
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_700-4.tt (-15 / +18 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 700-4 builder</title>
3
<title>UNIMARC field 700-4 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_700-4" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_700-4" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 700-4 builder</h3>
8
<h3>UNIMARC field 700-4 builder</h3>
7
<p>Sélectionnez la valeur pour le champ 700 $4. Elle sera automatiquement reportée dans la zone 700 $8 qui suit.</p>
9
<p>Sélectionnez la valeur pour le champ 700 $4. Elle sera automatiquement reportée dans la zone 700 $8 qui suit.</p>
Lines 44-64 Link Here
44
</table>
46
</table>
45
<fieldset class="action"><input type="submit" value="OK" /> <a href="#" class="cancel close">Cancel</a></fieldset>
47
<fieldset class="action"><input type="submit" value="OK" /> <a href="#" class="cancel close">Cancel</a></fieldset>
46
</form>
48
</form>
47
<script type="text/javascript">
49
48
//<![CDATA[
50
[% MACRO jsinclude BLOCK %]
49
	function report() {
51
    <script type="text/javascript">
50
		x = document.f_pop.f1.value.split(' - ');
52
        function report() {
51
		var doc   = opener.document; 
53
            x = document.f_pop.f1.value.split(' - ');
54
            var doc   = opener.document;
52
            var field = doc.getElementById("[% index %]");
55
            var field = doc.getElementById("[% index %]");
53
        
56
54
            field.value =  x[0];
57
            field.value =  x[0];
55
		if ([% index2 %]>0) {
58
            if ([% index2 %] > 0) {
56
			opener.document.f.field_value[[% index2 %]].value= x[1];
59
                opener.document.f.field_value[[% index2 %]].value= x[1];
57
		}
60
            }
58
		self.close();
61
            self.close();
59
		return false;
62
            return false;
60
	}
63
        }
61
//]]>
64
    </script>
62
</script>
65
[% END %]
63
66
64
[% INCLUDE 'popup-bottom.inc' %]
67
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_leader.tt (-15 / +17 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 leader builder</title>
3
<title>UNIMARC leader builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="cat_unimarc_leader" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_leader" class="cat" style="padding:1em;">
6
<h3>UNIMARC leader builder</h3>
8
<h3>UNIMARC leader builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 290-310 Link Here
290
</table>
292
</table>
291
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
293
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
292
</form>
294
</form>
293
<script type="text/javascript">
295
294
//<![CDATA[
296
[% MACRO jsinclude BLOCK %]
295
function report() {
297
    <script type="text/javascript">
296
	    var doc   = opener.document; 
298
        function report() {
299
            var doc   = opener.document;
297
            var field = doc.getElementById("[% index %]");
300
            var field = doc.getElementById("[% index %]");
298
        
301
299
            field.value =  '     '+document.f_pop.f5.value +
302
            field.value =  '     '+document.f_pop.f5.value +
300
			document.f_pop.f6.value+ document.f_pop.f7.value+
303
            document.f_pop.f6.value+ document.f_pop.f7.value+
301
			document.f_pop.f8.value+ '        '+
304
            document.f_pop.f8.value+ '        '+
302
			document.f_pop.f17.value+ document.f_pop.f18.value+' 4500';
305
            document.f_pop.f17.value+ document.f_pop.f18.value+' 4500';
303
		window.close();
306
            window.close();
304
		return false;
307
            return false;
305
	}
308
        }
306
//]]>
309
    </script>
307
</script>
310
[% END %]
308
311
309
[% INCLUDE 'popup-bottom.inc' %]
312
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
310
313
311
- 

Return to bug 19878