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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-425 / +426 lines)
Lines 33-39 Link Here
33
            if(Check()){
33
            if(Check()){
34
                $("#f").submit();
34
                $("#f").submit();
35
            }
35
            }
36
		});
36
        });
37
        $("#z3950submit").click(function(){
37
        $("#z3950submit").click(function(){
38
            var strQuery = GetZ3950Terms();
38
            var strQuery = GetZ3950Terms();
39
            var index = "&index=[% index | html %]";
39
            var index = "&index=[% index | html %]";
Lines 44-510 Link Here
44
        });
44
        });
45
    });
45
    });
46
46
47
/**
47
    /**
48
 * check if z3950 mandatories are set or not
48
    * check if z3950 mandatories are set or not
49
 */
49
    */
50
function GetZ3950Terms(){
50
    function GetZ3950Terms(){
51
 var strQuery="&authtypecode="+document.forms['f'].authtypecode.value;
51
        var strQuery="&authtypecode="+document.forms['f'].authtypecode.value;
52
    var mandatories = new Array();
52
        var mandatories = new Array();
53
    var mandatories_label = new Array();
53
        var mandatories_label = new Array();
54
    [% FOREACH BIG_LOO IN BIG_LOOP %][% FOREACH innerloo IN BIG_LOO.innerloop %][% FOREACH subfield_loo IN innerloo.subfield_loop %][% IF ( subfield_loo.z3950_mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
54
        [% FOREACH BIG_LOO IN BIG_LOOP %][% FOREACH innerloo IN BIG_LOO.innerloop %][% FOREACH subfield_loo IN innerloo.subfield_loop %][% IF ( subfield_loo.z3950_mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
55
        mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %]
55
            mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %]
56
56
57
    for(var i=0,len=mandatories.length; i<len ; i++){
57
        for(var i=0,len=mandatories.length; i<len ; i++){
58
        var field_value = document.getElementById(mandatories[i]).value;
58
            var field_value = document.getElementById(mandatories[i]).value;
59
        if( field_value ){
59
            if( field_value ){
60
            strQuery += "&"+mandatories_label[i]+"="+encodeURIComponent(field_value);
60
                strQuery += "&"+mandatories_label[i]+"="+encodeURIComponent(field_value);
61
            }
61
        }
62
        }
63
        return strQuery;
62
    }
64
    }
63
    return strQuery;
65
64
}
66
    /**
65
67
    * check if mandatory subfields are written
66
/**
68
    */
67
 * check if mandatory subfields are written
69
    function AreMandatoriesNotOk(){
68
 */
70
        var mandatories = new Array();
69
function AreMandatoriesNotOk(){
71
        var mandatoriesfields = new Array();
70
    var mandatories = new Array();
72
        var   tab = new Array();
71
    var mandatoriesfields = new Array();
73
        var label = new Array();
72
    var   tab = new Array();
74
        [% FOREACH BIG_LOO IN BIG_LOOP %]
73
    var label = new Array();
75
            [% FOREACH innerloo IN BIG_LOO.innerloop %]
74
    [% FOREACH BIG_LOO IN BIG_LOOP %]
76
                [% IF ( innerloo.mandatory ) %]
75
    	[% FOREACH innerloo IN BIG_LOO.innerloop %]
77
                    mandatoriesfields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]"));
76
			[% IF ( innerloo.mandatory ) %]
78
                [% END %]
77
        		mandatoriesfields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]"));
79
                [% FOREACH subfield_loo IN innerloo.subfield_loop %]
80
                    [% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
81
                        tab.push("[% BIG_LOO.number | html %]");
82
                        label.push("[% To.json(subfield_loo.marc_lib) | html %]");
83
                    [% END %]
84
                [% END %]
78
            [% END %]
85
            [% END %]
79
    		[% FOREACH subfield_loo IN innerloo.subfield_loop %]
86
        [% END %]
80
    			[% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
87
        var StrAlert = "";
81
                    tab.push("[% BIG_LOO.number | html %]");
88
        for(var i=0,len=mandatories.length; i<len ; i++){
82
                    label.push("[% To.json(subfield_loo.marc_lib) | html %]");
89
            var id_string = mandatories[i];
83
    			[% END %]
90
            // alert (id_string);
84
			[% END %]
91
            if( ! $("#" + id_string).val() ){
85
		[% END %]
92
                var elt = document.getElementById(id_string);
86
	[% END %]
93
                if ( elt.nodeName == 'SELECT' ) {
87
    var StrAlert = "";
94
                    $(elt).siblings('.select2').find("span[role='combobox']").addClass('subfield_not_filled');
88
    for(var i=0,len=mandatories.length; i<len ; i++){
95
                } else {
89
        var id_string = mandatories[i];
96
                    $(elt).addClass('subfield_not_filled');
90
        // alert (id_string);
97
                }
91
        if( ! $("#" + id_string).val() ){
98
92
            var elt = document.getElementById(id_string);
99
                $(elt).focus();
93
            if ( elt.nodeName == 'SELECT' ) {
100
                StrAlert += "\t* " + _("%s in tab %s").format(label[i], tab[i]) + "\n";
94
                $(elt).siblings('.select2').find("span[role='combobox']").addClass('subfield_not_filled');
101
            }
95
            } else {
102
        }
96
                $(elt).addClass('subfield_not_filled');
103
104
        /* Check for mandatories field(not subfields) */
105
        for(var i=0,len=mandatoriesfields.length; i<len; i++){
106
            isempty  = true;
107
            arr      = mandatoriesfields[i];
108
            divid    = "tag_" + arr[0] + "_" + arr[1];
109
            varegexp = new RegExp("^tag_" + arr[0] + "_code_");
110
111
            if(parseInt(arr[0]) >= 10){
112
                elem = document.getElementById(divid);
113
                eleminputs = elem.getElementsByTagName('input');
114
115
                for(var j=0,len2=eleminputs.length; j<len2; j++){
116
117
                    if(eleminputs[j].name.match(varegexp) && eleminputs[j].value){
118
                        inputregexp = new RegExp("^tag_" + arr[0] + "_subfield_" + eleminputs[j].value + "_" + arr[2]);
119
120
                        for( var k=0; k<len2; k++){
121
                            if(eleminputs[k].id.match(inputregexp) && eleminputs[k].value){
122
                                isempty = false
123
                            }
124
                        }
125
                    }
126
                }
127
            }else{
128
                isempty = false;
129
            }
130
131
            if(isempty){
132
                flag = 1;
133
                    StrAlert += "\t* " + _("Field %s is mandatory, at least one of its subfields must be filled.").format(arr[0]) + "\n";
97
            }
134
            }
98
135
99
            $(elt).focus();
100
            StrAlert += "\t* " + _("%s in tab %s").format(label[i], tab[i]) + "\n";
101
        }
136
        }
137
138
139
        if(StrAlert){
140
            return _("Can't save this record because the following field aren't filled :") + "\n\n" + StrAlert;
141
        }
142
        return false;
102
    }
143
    }
103
    
144
104
    /* Check for mandatories field(not subfields) */
145
    function Check(){
105
    for(var i=0,len=mandatoriesfields.length; i<len; i++){
146
        var StrAlert = AreMandatoriesNotOk();
106
    	isempty  = true;
147
        if( ! StrAlert ){
107
    	arr      = mandatoriesfields[i];
148
            document.f.submit();
108
    	divid    = "tag_" + arr[0] + "_" + arr[1];
149
            return true;
109
    	varegexp = new RegExp("^tag_" + arr[0] + "_code_");
150
        } else {
110
151
            alert(StrAlert);
111
		if(parseInt(arr[0]) >= 10){
152
            return false;
112
	    	elem = document.getElementById(divid);
153
        }
113
	    	eleminputs = elem.getElementsByTagName('input');
114
	    	
115
	    	for(var j=0,len2=eleminputs.length; j<len2; j++){
116
	
117
	    		if(eleminputs[j].name.match(varegexp) && eleminputs[j].value){
118
					inputregexp = new RegExp("^tag_" + arr[0] + "_subfield_" + eleminputs[j].value + "_" + arr[2]);
119
					
120
					for( var k=0; k<len2; k++){
121
						if(eleminputs[k].id.match(inputregexp) && eleminputs[k].value){
122
							isempty = false
123
						}
124
					}
125
	    		}
126
	    	}
127
    	}else{
128
    		isempty = false;
129
    	}
130
    	
131
    	if(isempty){
132
    		flag = 1;
133
                StrAlert += "\t* " + _("Field %s is mandatory, at least one of its subfields must be filled.").format(arr[0]) + "\n";
134
    	}
135
    	
136
    }
137
    
138
    
139
    if(StrAlert){
140
        return _("Can't save this record because the following field aren't filled :") + "\n\n" + StrAlert;
141
    }
154
    }
142
    return false;
143
}
144
155
145
function Check(){
156
    function AddField(field,cntrepeatfield) {
146
    var StrAlert = AreMandatoriesNotOk();
157
        document.forms['f'].op.value = "addfield";
147
    if( ! StrAlert ){
158
        document.forms['f'].addfield_field.value=field;
159
        document.forms['f'].repeat_field.value=cntrepeatfield;
148
        document.f.submit();
160
        document.f.submit();
149
        return true;
150
    } else {
151
        alert(StrAlert);
152
        return false;
153
    }
161
    }
154
}
162
155
163
    function addauthority() {
156
function AddField(field,cntrepeatfield) {
164
        X = document.forms[0].authtype.value;
157
    document.forms['f'].op.value = "addfield";
165
        window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
158
    document.forms['f'].addfield_field.value=field;
166
    }
159
    document.forms['f'].repeat_field.value=cntrepeatfield;
167
    function searchauthority() {
160
    document.f.submit();
168
        X = document.forms[0].authtype2.value;
161
}
169
        Y = document.forms[0].value.value;
162
170
        window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
163
function addauthority() {
171
    }
164
    X = document.forms[0].authtype.value;
172
    function confirmnotdup(redirect){
165
    window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
173
        $("#confirm_not_duplicate").attr("value","1");
166
}
174
        Check();
167
function searchauthority() {
175
    }
168
    X = document.forms[0].authtype2.value;
169
    Y = document.forms[0].value.value;
170
    window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
171
}
172
function confirmnotdup(redirect){
173
    $("#confirm_not_duplicate").attr("value","1");
174
    Check();
175
}
176
</script>
176
</script>
177
[% Asset.css("css/addbiblio.css") | $raw %]
177
[% Asset.css("css/addbiblio.css") | $raw %]
178
178
179
</head>
179
</head>
180
<body id="auth_authorities" class="auth">
180
<body id="auth_authorities" class="auth">
181
181
182
<div id="loading">
182
    <div id="loading">
183
   <div>Loading, please wait...</div>
183
        <div>Loading, please wait...</div>
184
</div>
184
    </div>
185
186
[% INCLUDE 'header.inc' %]
187
185
188
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
186
    [% INCLUDE 'header.inc' %]
189
    <ol>
190
        <li>
191
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
192
        </li>
193
        <li>
194
            <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
195
        </li>
196
187
197
        [% IF ( authid ) %]
188
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
189
        <ol>
198
            <li>
190
            <li>
199
                <a href="#" aria-current="page">
191
                <a href="/cgi-bin/koha/mainpage.pl">Home</a>
200
                    Modify authority #[% authid | html %] ([% authtypetext | html %])
201
                </a>
202
            </li>
192
            </li>
203
204
        [% ELSE %]
205
            <li>
193
            <li>
206
                <a href="#" aria-current="page">
194
                <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
207
                    Adding authority [% authtypetext | html %]
208
                </a>
209
            </li>
195
            </li>
210
196
211
        [% END %]
212
    </ol>
213
</nav>
214
215
<div class="main container-fluid">
216
    <div class="row">
217
        <div class="col-md-10 col-md-offset-1">
218
219
[% IF ( authid ) %]
220
<h1>Modify authority #[% authid | html %] [% authtypetext | html %]</h1>
221
[% ELSE %]
222
<h1>Adding authority [% authtypetext | html %]</h1>
223
[% END %]
224
225
[% IF ( duplicateauthid ) %]
226
        <div class="dialog alert">
227
                <h3>Duplicate record suspected</h3>
228
                <p>Is this a duplicate of <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid | uri %]" class="popup" onclick="openWindow('/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid | html %]&amp;popup=1', 'DuplicateAuthority','800','600'); return false;" class="button">[% duplicateauthvalue | html %]</a> ?</p>
229
230
                <form action="authorities.pl" method="get">
231
                    <input type="hidden" name="authid" value="[% duplicateauthid | html %]" />
232
                    <button type="submit" class="new"><i class="fa fa-pencil"></i> Yes: Edit existing authority</button>
233
                </form>
234
                <form action="authorities.pl" method="get">
235
                    <button class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-save"></i> No: Save as new authority</button>
236
                </form>
237
        </div>
238
[% END %]
239
240
<form method="post" name="f" action="/cgi-bin/koha/authorities/authorities.pl">
241
    <input type="hidden" name="op" value="add" />
242
    <input type="hidden" name="addfield_field" value="" />
243
    <input type="hidden" name="repeat_field" value="" />
244
    <input type="hidden" name="authtypecode" value="[% authtypecode | html%]" />
245
    <input type="hidden" name="authid" value="[% authid | html %]" />
246
    <input type="hidden" name="index" value="[% index | html %]" />
247
    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
248
249
    <div id="toolbar" class="btn-toolbar">
250
        <div class="btn-group"><a href="#" id="addauth" class="btn btn-default" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
251
        <div class="btn-group">
252
            [% IF ( authid ) %]
253
                <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a>
254
            [% ELSE %]
255
                <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a>
256
            [% END %]
257
        </div>
258
        <div class="btn-group">
259
            [% IF ( authid ) %]
197
            [% IF ( authid ) %]
260
                <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a>
198
                <li>
261
            [% ELSE %]
199
                    <a href="#" aria-current="page">
262
                <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a>
200
                        Modify authority #[% authid | html %] ([% authtypetext | html %])
263
            [% END %]
201
                    </a>
264
        </div>
202
                </li>
265
    </div>
266
267
<div id="authoritytabs" class="toptabs numbered">
268
    <ul>
269
        [% FOREACH BIG_LOO IN BIG_LOOP %]
270
        <li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li>
271
        [% END %]
272
    </ul>
273
274
[% FOREACH BIG_LOO IN BIG_LOOP %]
275
    <div id="tab[% BIG_LOO.number | html %]XX">
276
203
277
    [% previous = "" %]
278
    [% FOREACH innerloo IN BIG_LOO.innerloop %]
279
    [% IF ( innerloo.tag ) %]
280
    [% IF innerloo.tag != previous %]
281
        [% IF previous != "" %]
282
            </ul>
283
        [% END %]
284
        [% previous = innerloo.tag %]
285
        [% IF ( innerloo.repeatable ) %]
286
            <ul class="sortable_field">
287
        [% ELSE %]
288
            <ul>
289
        [% END %]
290
    [% END %]
291
    [% IF ( innerloo.repeatable ) %]
292
        <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
293
    [% ELSE %]
294
        <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
295
    [% END %]
296
        <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
297
        [% UNLESS hide_marc %]
298
            [% IF advancedMARCEditor %]
299
                <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;">[% innerloo.tag | html %]</a>
300
            [% ELSE %]
204
            [% ELSE %]
301
                <span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
205
                <li>
302
            [% END %]
206
                    <a href="#" aria-current="page">
303
                [% IF ( innerloo.fixedfield ) %]
207
                        Adding authority [% authtypetext | html %]
304
                    <input type="text"
208
                    </a>
305
                        tabindex="1"
209
                </li>
306
                        class="indicator flat"
307
                        style="display:none;"
308
                        name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
309
                        size="1"
310
                        maxlength="1"
311
                        value="[% innerloo.indicator1 | html %]" />
312
                    <input type="text"
313
                        tabindex="1"
314
                        class="indicator flat"
315
                        style="display:none;"
316
                        name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
317
                        size="1"
318
                        maxlength="1"
319
                        value="[% innerloo.indicator2 | html %]" />
320
                [% ELSE %]
321
                    <input type="text"
322
                        tabindex="1"
323
                        class="indicator flat"
324
                        name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
325
                        size="1"
326
                        maxlength="1"
327
                        value="[% innerloo.indicator1 | html %]" />
328
                    <input type="text"
329
                        tabindex="1"
330
                        class="indicator flat"
331
                        name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
332
                        size="1"
333
                        maxlength="1"
334
                        value="[% innerloo.indicator2 | html %]" />
335
                [% END %] -
336
        [% ELSE %]
337
                [% IF ( innerloo.fixedfield ) %]
338
                    <input type="hidden"
339
                        tabindex="1"
340
                        name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
341
                        value="[% innerloo.indicator1 | html %]" />
342
                    <input type="hidden"
343
                        tabindex="1"
344
                        name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
345
                        value="[% innerloo.indicator2 | html %]" />
346
                [% ELSE %]
347
                    <input type="hidden"
348
                        tabindex="1"
349
                        name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
350
                        value="[% innerloo.indicator1 | html %]" />
351
                    <input type="hidden"
352
                        tabindex="1"
353
                        name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
354
                        value="[% innerloo.indicator2 | html %]" />
355
                [% END %]
356
        [% END %]
357
210
358
            [% UNLESS advancedMARCEditor %]
359
                <a href="#" tabindex="1" class="expandfield" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Click to Expand this Tag">[% innerloo.tag_lib | html %]</a>
360
            [% END %]
211
            [% END %]
361
                <span class="field_controls">
212
        </ol>
362
                [% IF ( innerloo.repeatable ) %]
213
    </nav>
363
                    <a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]','[% hide_marc | html %]','[% advancedMARCEditor | html %]'); return false;" title="Repeat this Tag">
214
364
                        <img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this Tag" />
215
    <div class="main container-fluid">
365
                    </a>
216
        <div class="row">
366
                [% END %]
217
            <div class="col-md-10 col-md-offset-1">
367
                    <a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Delete this Tag">
218
368
                        <img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this Tag" />
219
                [% IF ( authid ) %]
369
                    </a>
220
                    <h1>Modify authority #[% authid | html %] [% authtypetext | html %]</h1>
370
                </span> <!-- /.field_controls -->
371
372
        </div> <!-- /div.tag_title -->
373
374
        <ul class="sortable_subfield">
375
        [% FOREACH subfield_loo IN innerloo.subfield_loop %]
376
            <!--  One line on the marc editor -->
377
            <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
378
379
                [% UNLESS hide_marc %]
380
                <div class="subfieldcode">
381
                        <input type="text"
382
                            title="[% subfield_loo.marc_lib | $raw %]"
383
                            style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
384
                            name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
385
                            value="[% subfield_loo.subfield | html %]"
386
                            size="1"
387
                            maxlength="1"
388
                            class="flat"
389
                            tabindex="0" />
390
                </div>
391
                [% ELSE %]
221
                [% ELSE %]
392
                    <input type="hidden"
222
                    <h1>Adding authority [% authtypetext | html %]</h1>
393
                        name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
394
                        value="[% subfield_loo.subfield | html %]" />
395
                [% END %]
223
                [% END %]
396
224
397
                [% UNLESS advancedMARCEditor %]
225
                [% IF ( duplicateauthid ) %]
398
                    [% IF ( subfield_loo.mandatory ) %]
226
                    <div class="dialog alert">
399
                        <div class="subfield subfield_mandatory">
227
                        <h3>Duplicate record suspected</h3>
400
                    [% ELSE %]
228
                        <p>Is this a duplicate of <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid | uri %]" class="popup" onclick="openWindow('/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid | html %]&amp;popup=1', 'DuplicateAuthority','800','600'); return false;" class="button">[% duplicateauthvalue | html %]</a> ?</p>
401
                        <div class="subfield">
229
402
                    [% END %]
230
                        <form action="authorities.pl" method="get">
403
                        [% IF ( subfield_loo.fixedfield ) %]
231
                            <input type="hidden" name="authid" value="[% duplicateauthid | html %]" />
404
                            <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" style="display:none;" class="labelsubfield">
232
                            <button type="submit" class="new"><i class="fa fa-pencil"></i> Yes: Edit existing authority</button>
405
                        [% ELSE %]
233
                        </form>
406
                            <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield">
234
                        <form action="authorities.pl" method="get">
407
                        [% END %]
235
                            <button class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-save"></i> No: Save as new authority</button>
408
                            [% subfield_loo.marc_lib | $raw %]
236
                        </form>
409
                        </label>
410
                    </div>
237
                    </div>
411
                [% END %]
238
                [% END %]
412
239
413
                [% SET mv = subfield_loo.marc_value %]
240
                <form method="post" name="f" action="/cgi-bin/koha/authorities/authorities.pl">
414
                <div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor">
241
                    <input type="hidden" name="op" value="add" />
415
                [% IF ( mv.type == 'select' ) %]
242
                    <input type="hidden" name="addfield_field" value="" />
416
                    [% IF mv.category AND CAN_user_parameters_manage_auth_values %]
243
                    <input type="hidden" name="repeat_field" value="" />
417
                        <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]">
244
                    <input type="hidden" name="authtypecode" value="[% authtypecode | html%]" />
418
                    [% ELSE %]
245
                    <input type="hidden" name="authid" value="[% authid | html %]" />
419
                        <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
246
                    <input type="hidden" name="index" value="[% index | html %]" />
420
                    [% END %]
247
                    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
421
248
422
                     [% FOREACH aval IN mv.values %]
249
                    <div id="toolbar" class="btn-toolbar">
423
                         [% IF aval == mv.default %]
250
                        <div class="btn-group"><a href="#" id="addauth" class="btn btn-default" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
424
                         <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
251
                        <div class="btn-group">
425
                         [% ELSE %]
252
                            [% IF ( authid ) %]
426
                         <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
253
                                <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a>
427
                         [% END %]
254
                            [% ELSE %]
428
                     [% END %]
255
                                <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a>
429
                     </select>
256
                            [% END %]
430
                [% ELSIF ( mv.type == 'text1' ) %]
257
                        </div>
431
                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
258
                        <div class="btn-group">
432
                [% ELSIF ( mv.type == 'text2' ) %]
259
                            [% IF ( authid ) %]
433
                    <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" />
260
                                <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a>
434
                [% ELSIF ( mv.type == 'text' ) %]
261
                            [% ELSE %]
435
                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]" />
262
                                <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a>
436
                [% ELSIF ( mv.type == 'textarea' ) %]
263
                            [% END %]
437
                    <textarea cols="70" rows="4" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]">[%- mv.value | html -%]</textarea>
264
                        </div>
438
                [% ELSIF ( mv.type == 'hidden' ) %]
439
                    <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
440
                [% ELSIF ( mv.type == 'hidden_simple' ) %]
441
                    <input type="hidden" name="[%- mv.name | html -%]" />
442
                [% END %]
443
                </div>
444
                [% IF ( subfield_loo.mandatory ) %]
445
                    <div class="subfield_loop_mandatory">
446
                        <span class="required">Required</span>
447
                    </div>
265
                    </div>
448
                [% END %]
266
449
                <div class="subfield_controls">
267
                    <div id="authoritytabs" class="toptabs numbered">
450
                    [% IF ( mv.type == 'text1' ) %]
268
                        <ul>
451
                        <a href="#" class="buttonDot tag_editor" onclick="openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtypecode | html -%]','auth'); return false;" tabindex="1" title="Tag editor">Tag editor</a>
269
                            [% FOREACH BIG_LOO IN BIG_LOOP %]
452
                    [% ELSIF ( mv.type == 'text2' ) %]
270
                                <li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li>
453
                        [% IF mv.noclick %]
271
                            [% END %]
454
                            <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
272
                        </ul>
455
                        [% ELSE %]
273
456
                            <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
274
                        [% FOREACH BIG_LOO IN BIG_LOOP %]
275
                            <div id="tab[% BIG_LOO.number | html %]XX">
276
277
                                [% previous = "" %]
278
                                [% FOREACH innerloo IN BIG_LOO.innerloop %]
279
                                    [% IF ( innerloo.tag ) %]
280
                                        [% IF innerloo.tag != previous %]
281
                                            [% IF previous != "" %]
282
                                                </ul>
283
                                            [% END %]
284
                                            [% previous = innerloo.tag %]
285
                                            [% IF ( innerloo.repeatable ) %]
286
                                                <ul class="sortable_field">
287
                                            [% ELSE %]
288
                                                <ul>
289
                                            [% END %]
290
                                        [% END %]
291
292
                                        [% IF ( innerloo.repeatable ) %]
293
                                            <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
294
                                        [% ELSE %]
295
                                            <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
296
                                        [% END %]
297
298
                                            <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
299
                                                [% UNLESS hide_marc %]
300
                                                    [% IF advancedMARCEditor %]
301
                                                        <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;">[% innerloo.tag | html %]</a>
302
                                                    [% ELSE %]
303
                                                        <span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
304
                                                    [% END %]
305
                                                    [% IF ( innerloo.fixedfield ) %]
306
                                                        <input type="text"
307
                                                            tabindex="1"
308
                                                            class="indicator flat"
309
                                                            style="display:none;"
310
                                                            name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
311
                                                            size="1"
312
                                                            maxlength="1"
313
                                                            value="[% innerloo.indicator1 | html %]" />
314
                                                        <input type="text"
315
                                                            tabindex="1"
316
                                                            class="indicator flat"
317
                                                            style="display:none;"
318
                                                            name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
319
                                                            size="1"
320
                                                            maxlength="1"
321
                                                            value="[% innerloo.indicator2 | html %]" />
322
                                                    [% ELSE %]
323
                                                        <input type="text"
324
                                                            tabindex="1"
325
                                                            class="indicator flat"
326
                                                            name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
327
                                                            size="1"
328
                                                            maxlength="1"
329
                                                            value="[% innerloo.indicator1 | html %]" />
330
                                                        <input type="text"
331
                                                            tabindex="1"
332
                                                            class="indicator flat"
333
                                                            name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
334
                                                            size="1"
335
                                                            maxlength="1"
336
                                                            value="[% innerloo.indicator2 | html %]" />
337
                                                    [% END %] -
338
                                                [% ELSE %]
339
                                                    [% IF ( innerloo.fixedfield ) %]
340
                                                        <input type="hidden"
341
                                                            tabindex="1"
342
                                                            name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
343
                                                            value="[% innerloo.indicator1 | html %]" />
344
                                                        <input type="hidden"
345
                                                            tabindex="1"
346
                                                            name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
347
                                                            value="[% innerloo.indicator2 | html %]" />
348
                                                    [% ELSE %]
349
                                                        <input type="hidden"
350
                                                            tabindex="1"
351
                                                            name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
352
                                                            value="[% innerloo.indicator1 | html %]" />
353
                                                        <input type="hidden"
354
                                                            tabindex="1"
355
                                                            name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
356
                                                            value="[% innerloo.indicator2 | html %]" />
357
                                                    [% END %]
358
                                                [% END %]
359
360
                                                [% UNLESS advancedMARCEditor %]
361
                                                    <a href="#" tabindex="1" class="expandfield" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Click to Expand this Tag">[% innerloo.tag_lib | html %]</a>
362
                                                [% END %]
363
                                                <span class="field_controls">
364
                                                    [% IF ( innerloo.repeatable ) %]
365
                                                        <a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]','[% hide_marc | html %]','[% advancedMARCEditor | html %]'); return false;" title="Repeat this Tag">
366
                                                            <img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this Tag" />
367
                                                        </a>
368
                                                    [% END %]
369
                                                    <a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Delete this Tag">
370
                                                        <img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this Tag" />
371
                                                    </a>
372
                                                </span> <!-- /.field_controls -->
373
                                            </div> <!-- /div.tag_title -->
374
375
                                            <ul class="sortable_subfield">
376
                                                [% FOREACH subfield_loo IN innerloo.subfield_loop %]
377
                                                    <!--  One line on the marc editor -->
378
                                                    <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
379
380
                                                        [% UNLESS hide_marc %]
381
                                                            <div class="subfieldcode">
382
                                                                <input type="text"
383
                                                                    title="[% subfield_loo.marc_lib | $raw %]"
384
                                                                    style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
385
                                                                    name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
386
                                                                    value="[% subfield_loo.subfield | html %]"
387
                                                                    size="1"
388
                                                                    maxlength="1"
389
                                                                    class="flat"
390
                                                                    tabindex="0" />
391
                                                            </div>
392
                                                        [% ELSE %]
393
                                                            <input type="hidden"
394
                                                                name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
395
                                                                value="[% subfield_loo.subfield | html %]" />
396
                                                        [% END %]
397
398
                                                        [% UNLESS advancedMARCEditor %]
399
                                                            [% IF ( subfield_loo.mandatory ) %]
400
                                                                <div class="subfield subfield_mandatory">
401
                                                            [% ELSE %]
402
                                                                <div class="subfield">
403
                                                            [% END %]
404
                                                                [% IF ( subfield_loo.fixedfield ) %]
405
                                                                    <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" style="display:none;" class="labelsubfield">
406
                                                                [% ELSE %]
407
                                                                    <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield">
408
                                                                [% END %]
409
                                                                    [% subfield_loo.marc_lib | $raw %]
410
                                                                </label>
411
                                                            </div>
412
                                                        [% END %]
413
414
                                                        [% SET mv = subfield_loo.marc_value %]
415
                                                        <div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor">
416
                                                            [% IF ( mv.type == 'select' ) %]
417
                                                                [% IF mv.category AND CAN_user_parameters_manage_auth_values %]
418
                                                                    <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]">
419
                                                                [% ELSE %]
420
                                                                    <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
421
                                                                [% END %]
422
                                                                    [% FOREACH aval IN mv.values %]
423
                                                                        [% IF aval == mv.default %]
424
                                                                            <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
425
                                                                        [% ELSE %]
426
                                                                            <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
427
                                                                        [% END %]
428
                                                                    [% END %]
429
                                                                </select>
430
                                                            [% ELSIF ( mv.type == 'text1' ) %]
431
                                                                <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
432
                                                            [% ELSIF ( mv.type == 'text2' ) %]
433
                                                                <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" />
434
                                                            [% ELSIF ( mv.type == 'text' ) %]
435
                                                                <input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]" />
436
                                                            [% ELSIF ( mv.type == 'textarea' ) %]
437
                                                                <textarea cols="70" rows="4" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]">[%- mv.value | html -%]</textarea>
438
                                                            [% ELSIF ( mv.type == 'hidden' ) %]
439
                                                                <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
440
                                                            [% ELSIF ( mv.type == 'hidden_simple' ) %]
441
                                                                <input type="hidden" name="[%- mv.name | html -%]" />
442
                                                            [% END %]
443
                                                        </div>
444
445
                                                        [% IF ( subfield_loo.mandatory ) %]
446
                                                            <div class="subfield_loop_mandatory">
447
                                                                <span class="required">Required</span>
448
                                                            </div>
449
                                                        [% END %]
450
451
                                                        <div class="subfield_controls">
452
                                                            [% IF ( mv.type == 'text1' ) %]
453
                                                                <a href="#" class="buttonDot tag_editor" onclick="openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtypecode | html -%]','auth'); return false;" tabindex="1" title="Tag editor">Tag editor</a>
454
                                                            [% ELSIF ( mv.type == 'text2' ) %]
455
                                                                [% IF mv.noclick %]
456
                                                                    <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
457
                                                                [% ELSE %]
458
                                                                    <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
459
                                                                [% END %]
460
                                                                [% mv.javascript | $raw %]
461
                                                            [% END %]
462
                                                            [% IF ( subfield_loo.repeatable ) %]
463
                                                                <a href="#" class="buttonPlus" tabindex="1" onclick="CloneSubfield('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]','[% advancedMARCEditor | html %]'); return false;">
464
                                                                    <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
465
                                                                </a>
466
                                                                <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;">
467
                                                                    <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
468
                                                                </a>
469
                                                            [% END %]
470
                                                        </div>
471
                                                    </li>
472
                                                    <!-- End of the line -->
473
                                                [% END %]
474
                                            </ul> <!-- /.sortable_subfield -->
475
                                        </li>
476
                                    [% END %]<!-- if innerloo.tag -->
477
                                [% END %]<!-- BIG_LOO.innerloop -->
478
                                </ul> <!-- /.sortable_field -->
479
                            </div>
480
                        [% END %]<!-- BIG_LOOP -->
481
                    </div><!-- tabs -->
482
483
                    <div name="hidden" id="hidden" class="tab">
484
                        [% FOREACH hidden_loo IN hidden_loop %]
485
                            <input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" />
486
                            <input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" />
487
                            <input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" />
488
                            <input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" />
489
                            <input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" />
457
                        [% END %]
490
                        [% END %]
458
                        [% mv.javascript | $raw %]
491
                    </div>
459
                    [% END %]
492
                    [% IF ( oldauthnumtagfield ) %]
460
                    [% IF ( subfield_loo.repeatable ) %]
493
                        <input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" />
461
                        <a href="#" class="buttonPlus" tabindex="1" onclick="CloneSubfield('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]','[% advancedMARCEditor | html %]'); return false;">
494
                        <input type="hidden" name="subfield" value="[% oldauthnumtagsubfield | html %]" />
462
                            <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
495
                        <input type="hidden" name="field_value" value="[% authid | html %]" />
463
                        </a>
496
                        <input type="hidden" name="mandatory" value="0" />
464
                        <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;">
497
                        <input type="hidden" name="kohafield" value="[% kohafield | html %]" />
465
                            <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
498
                        <input type="hidden" name="tag_mandatory" value="[% tag_mandatory | html %]" />
466
                        </a>
499
                        <input type="hidden" name="tag" value="[% oldauthtypetagfield | html %]" />
500
                        <input type="hidden" name="subfield" value="[% oldauthtypetagsubfield | html %]" />
501
                        <input type="hidden" name="field_value" value="[% authtypecode | html %]" />
467
                    [% END %]
502
                    [% END %]
468
                </div>
503
469
                                </li>
504
                </form>
470
                                <!-- End of the line -->
505
471
                            [% END %]
506
                [% INCLUDE 'modals/cataloguing_create_av.inc' %]
472
                            </ul> <!-- /.sortable_subfield -->
507
473
                        </li>
474
                    [% END %]<!-- if innerloo.tag -->
475
                [% END %]<!-- BIG_LOO.innerloop -->
476
                </ul> <!-- /.sortable_field -->
477
            </div>
508
            </div>
478
        [% END %]<!-- BIG_LOOP -->
509
        </div>
479
    </div><!-- tabs -->
510
    </div>
480
481
<div name="hidden" id="hidden" class="tab">
482
[% FOREACH hidden_loo IN hidden_loop %]
483
    <input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" />
484
    <input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" />
485
    <input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" />
486
    <input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" />
487
    <input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" />
488
[% END %]
489
</div>
490
[% IF ( oldauthnumtagfield ) %]
491
    <input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" />
492
    <input type="hidden" name="subfield" value="[% oldauthnumtagsubfield | html %]" />
493
    <input type="hidden" name="field_value" value="[% authid | html %]" />
494
    <input type="hidden" name="mandatory" value="0" />
495
    <input type="hidden" name="kohafield" value="[% kohafield | html %]" />
496
    <input type="hidden" name="tag_mandatory" value="[% tag_mandatory | html %]" />
497
    <input type="hidden" name="tag" value="[% oldauthtypetagfield | html %]" />
498
    <input type="hidden" name="subfield" value="[% oldauthtypetagsubfield | html %]" />
499
    <input type="hidden" name="field_value" value="[% authtypecode | html %]" />
500
[% END %]
501
502
</form>
503
504
[% INCLUDE 'modals/cataloguing_create_av.inc' %]
505
506
</div>
507
</div>
508
</div>
509
511
510
[% INCLUDE 'intranet-bottom.inc' %]
512
[% INCLUDE 'intranet-bottom.inc' %]
511
- 

Return to bug 26975