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