Lines 21-41
Link Here
|
21 |
}); |
21 |
}); |
22 |
var Sticky; |
22 |
var Sticky; |
23 |
$(document).ready(function() { |
23 |
$(document).ready(function() { |
24 |
var tabs = $('#authoritytabs').tabs({ |
24 |
var tabs = $('#authoritytabs').tabs(); |
25 |
activate: function(e, ui) { |
|
|
26 |
$("#"+ $(ui.newPanel).attr("id") + " .input_marceditor:visible:eq(0)").focus(); |
27 |
} |
28 |
}); |
29 |
|
30 |
/* On page load, check for location.hash in the page URL */ |
31 |
var hash = location.hash; |
32 |
var hashPieces = hash.split('?'); |
33 |
if( hashPieces[0] !== "" ){ |
34 |
var activeTab = $("[href='" + hashPieces[0] + "']"); |
35 |
selectTab(activeTab); |
36 |
window.scrollTo( 0, 0 ); |
37 |
} |
38 |
|
39 |
$( "ul.sortable_field", tabs ).sortable(); |
25 |
$( "ul.sortable_field", tabs ).sortable(); |
40 |
$( "ul.sortable_subfield", tabs ).sortable(); |
26 |
$( "ul.sortable_subfield", tabs ).sortable(); |
41 |
Sticky = $("#toolbar"); |
27 |
Sticky = $("#toolbar"); |
Lines 47-53
Link Here
|
47 |
if(Check()){ |
33 |
if(Check()){ |
48 |
$("#f").submit(); |
34 |
$("#f").submit(); |
49 |
} |
35 |
} |
50 |
}); |
36 |
}); |
51 |
$("#z3950submit").click(function(){ |
37 |
$("#z3950submit").click(function(){ |
52 |
var strQuery = GetZ3950Terms(); |
38 |
var strQuery = GetZ3950Terms(); |
53 |
var index = "&index=[% index | html %]"; |
39 |
var index = "&index=[% index | html %]"; |
Lines 56-273
Link Here
|
56 |
} |
42 |
} |
57 |
return false; |
43 |
return false; |
58 |
}); |
44 |
}); |
59 |
$(".toolbar-tabs a").on("click",function(e){ |
|
|
60 |
e.preventDefault(); |
61 |
selectTab( $(this ) ); |
62 |
}); |
63 |
|
64 |
$(".tag_anchor").on("click", function(e){ |
65 |
e.preventDefault(); |
66 |
$(".tag_anchor").removeClass("selected"); |
67 |
$(this).addClass("selected"); |
68 |
var link = this.href; |
69 |
var linkid = link.substring( link.indexOf("#") + 1 ); |
70 |
window.scrollTo( 0, getScrollto( linkid, "toolbar" ) ); |
71 |
}); |
72 |
|
73 |
$("body").on("click", ".linkfield", function(e){ |
74 |
e.preventDefault(); |
75 |
var tab = $(this).data("tab"); |
76 |
var field = $(this).data("field"); |
77 |
var tablink = $("a[data-tabid='" + tab + "']" ); |
78 |
selectTab( tablink ); |
79 |
window.scrollTo( 0, getScrollto( field, "toolbar" ) ); |
80 |
}); |
81 |
}); |
45 |
}); |
82 |
|
46 |
|
83 |
function selectTab( tablink ){ |
47 |
/** |
84 |
$(".toolbar-tabs li").removeClass("selected"); |
48 |
* check if z3950 mandatories are set or not |
85 |
tablink.parent().addClass("selected"); |
49 |
*/ |
86 |
var tabid = tablink.data("tabid"); |
50 |
function GetZ3950Terms(){ |
87 |
$('#authoritytabs').selectTabByID("#tab" + tabid + "XX"); |
51 |
var strQuery="&authtypecode="+document.forms['f'].authtypecode.value; |
88 |
$(".tag_anchors").removeClass("tab_selected").hide(); |
52 |
var mandatories = new Array(); |
89 |
$(".tag_anchors_" + tabid ).addClass("tab_selected").show(); |
53 |
var mandatories_label = new Array(); |
90 |
} |
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 %]"); |
91 |
|
55 |
mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %] |
92 |
/** |
56 |
|
93 |
* Returns a roughly ideal position to scroll an element into view |
57 |
for(var i=0,len=mandatories.length; i<len ; i++){ |
94 |
* @param {string} target - The HTML id of the element to scroll into view |
58 |
var field_value = document.getElementById(mandatories[i]).value; |
95 |
* @param {string} elemid - The HTML id of the element which might obscure |
59 |
if( field_value ){ |
96 |
* the view of the target element e.g. a floating toolbar |
60 |
strQuery += "&"+mandatories_label[i]+"="+encodeURIComponent(field_value); |
97 |
* @return {number} - The y-coordinate to pass to window.scrollTo() |
|
|
98 |
*/ |
99 |
function getScrollto( target, elemid ){ |
100 |
var dest = $("#" + target ); |
101 |
var yoffset = dest.offset(); |
102 |
|
103 |
if( elemid != "" ){ |
104 |
var element = $("#" + elemid ); |
105 |
var elem_height = element.outerHeight(); |
106 |
} else { |
107 |
elem_height = 0; |
108 |
} |
109 |
return yoffset.top - elem_height - 20; |
110 |
} |
111 |
|
112 |
|
113 |
/** |
114 |
* check if z3950 mandatories are set or not |
115 |
*/ |
116 |
function GetZ3950Terms(){ |
117 |
var strQuery="&authtypecode="+document.forms['f'].authtypecode.value; |
118 |
var mandatories = new Array(); |
119 |
var mandatories_label = new Array(); |
120 |
[% 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 %]"); |
121 |
mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %] |
122 |
|
123 |
for(var i=0,len=mandatories.length; i<len ; i++){ |
124 |
var field_value = document.getElementById(mandatories[i]).value; |
125 |
if( field_value ){ |
126 |
strQuery += "&"+mandatories_label[i]+"="+encodeURIComponent(field_value); |
127 |
} |
128 |
} |
61 |
} |
129 |
return strQuery; |
|
|
130 |
} |
62 |
} |
131 |
|
63 |
return strQuery; |
132 |
/** |
64 |
} |
133 |
* check if mandatory subfields are written |
65 |
|
134 |
*/ |
66 |
/** |
135 |
function AreMandatoriesNotOk(){ |
67 |
* check if mandatory subfields are written |
136 |
var mandatories = new Array(); |
68 |
*/ |
137 |
var mandatoriesfields = new Array(); |
69 |
function AreMandatoriesNotOk(){ |
138 |
var tab = new Array(); |
70 |
var mandatories = new Array(); |
139 |
var label = new Array(); |
71 |
var mandatoriesfields = new Array(); |
140 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
72 |
var tab = new Array(); |
141 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
73 |
var label = new Array(); |
142 |
[% IF ( innerloo.mandatory ) %] |
74 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
143 |
mandatoriesfields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]")); |
75 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
144 |
[% END %] |
76 |
[% IF ( innerloo.mandatory ) %] |
145 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
77 |
mandatoriesfields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]")); |
146 |
[% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]"); |
|
|
147 |
tab.push("[% BIG_LOO.number | html %]"); |
148 |
label.push("[% To.json(subfield_loo.marc_lib) | html %]"); |
149 |
[% END %] |
150 |
[% END %] |
151 |
[% END %] |
78 |
[% END %] |
152 |
[% END %] |
79 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
153 |
var StrAlert = ""; |
80 |
[% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]"); |
154 |
for(var i=0,len=mandatories.length; i<len ; i++){ |
81 |
tab.push("[% BIG_LOO.number | html %]"); |
155 |
var id_string = mandatories[i]; |
82 |
label.push("[% To.json(subfield_loo.marc_lib) | html %]"); |
156 |
// alert (id_string); |
83 |
[% END %] |
157 |
if( ! $("#" + id_string).val() ){ |
84 |
[% END %] |
158 |
var elt = document.getElementById(id_string); |
85 |
[% END %] |
159 |
if ( elt.nodeName == 'SELECT' ) { |
86 |
[% END %] |
160 |
$(elt).siblings('.select2').find("span[role='combobox']").addClass('subfield_not_filled'); |
87 |
var StrAlert = ""; |
161 |
} else { |
88 |
for(var i=0,len=mandatories.length; i<len ; i++){ |
162 |
$(elt).addClass('subfield_not_filled'); |
89 |
var id_string = mandatories[i]; |
163 |
} |
90 |
// alert (id_string); |
164 |
|
91 |
if( ! $("#" + id_string).val() ){ |
165 |
$(elt).focus(); |
92 |
var elt = document.getElementById(id_string); |
166 |
StrAlert += "\t* " + _("%s in tab %s").format(label[i], tab[i]) + "\n"; |
93 |
if ( elt.nodeName == 'SELECT' ) { |
167 |
} |
94 |
$(elt).siblings('.select2').find("span[role='combobox']").addClass('subfield_not_filled'); |
168 |
} |
95 |
} else { |
169 |
|
96 |
$(elt).addClass('subfield_not_filled'); |
170 |
/* Check for mandatories field(not subfields) */ |
|
|
171 |
for(var i=0,len=mandatoriesfields.length; i<len; i++){ |
172 |
isempty = true; |
173 |
arr = mandatoriesfields[i]; |
174 |
divid = "tag_" + arr[0] + "_" + arr[1]; |
175 |
varegexp = new RegExp("^tag_" + arr[0] + "_code_"); |
176 |
|
177 |
if(parseInt(arr[0]) >= 10){ |
178 |
elem = document.getElementById(divid); |
179 |
eleminputs = elem.getElementsByTagName('input'); |
180 |
|
181 |
for(var j=0,len2=eleminputs.length; j<len2; j++){ |
182 |
|
183 |
if(eleminputs[j].name.match(varegexp) && eleminputs[j].value){ |
184 |
inputregexp = new RegExp("^tag_" + arr[0] + "_subfield_" + eleminputs[j].value + "_" + arr[2]); |
185 |
|
186 |
for( var k=0; k<len2; k++){ |
187 |
if(eleminputs[k].id.match(inputregexp) && eleminputs[k].value){ |
188 |
isempty = false |
189 |
} |
190 |
} |
191 |
} |
192 |
} |
193 |
}else{ |
194 |
isempty = false; |
195 |
} |
196 |
|
197 |
if(isempty){ |
198 |
flag = 1; |
199 |
StrAlert += "\t* " + _("Field %s is mandatory, at least one of its subfields must be filled.").format(arr[0]) + "\n"; |
200 |
} |
97 |
} |
201 |
|
98 |
|
|
|
99 |
$(elt).focus(); |
100 |
StrAlert += "\t* " + _("%s in tab %s").format(label[i], tab[i]) + "\n"; |
202 |
} |
101 |
} |
|
|
102 |
} |
203 |
|
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"; |
134 |
} |
204 |
|
135 |
|
205 |
if(StrAlert){ |
|
|
206 |
return _("Can't save this record because the following field aren't filled :") + "\n\n" + StrAlert; |
207 |
} |
208 |
return false; |
209 |
} |
136 |
} |
210 |
|
137 |
|
211 |
function Check(){ |
|
|
212 |
var StrAlert = AreMandatoriesNotOk(); |
213 |
if( ! StrAlert ){ |
214 |
document.f.submit(); |
215 |
return true; |
216 |
} else { |
217 |
alert(StrAlert); |
218 |
return false; |
219 |
} |
220 |
} |
221 |
|
138 |
|
222 |
function AddField(field,cntrepeatfield) { |
139 |
if(StrAlert){ |
223 |
document.forms['f'].op.value = "addfield"; |
140 |
return _("Can't save this record because the following field aren't filled :") + "\n\n" + StrAlert; |
224 |
document.forms['f'].addfield_field.value=field; |
|
|
225 |
document.forms['f'].repeat_field.value=cntrepeatfield; |
226 |
document.f.submit(); |
227 |
} |
141 |
} |
|
|
142 |
return false; |
143 |
} |
228 |
|
144 |
|
229 |
function addauthority() { |
145 |
function Check(){ |
230 |
X = document.forms[0].authtype.value; |
146 |
var StrAlert = AreMandatoriesNotOk(); |
231 |
window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X; |
147 |
if( ! StrAlert ){ |
232 |
} |
148 |
document.f.submit(); |
233 |
function searchauthority() { |
149 |
return true; |
234 |
X = document.forms[0].authtype2.value; |
150 |
} else { |
235 |
Y = document.forms[0].value.value; |
151 |
alert(StrAlert); |
236 |
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"; |
152 |
return false; |
237 |
} |
|
|
238 |
function confirmnotdup(redirect){ |
239 |
$("#confirm_not_duplicate").attr("value","1"); |
240 |
Check(); |
241 |
} |
153 |
} |
|
|
154 |
} |
155 |
|
156 |
function AddField(field,cntrepeatfield) { |
157 |
document.forms['f'].op.value = "addfield"; |
158 |
document.forms['f'].addfield_field.value=field; |
159 |
document.forms['f'].repeat_field.value=cntrepeatfield; |
160 |
document.f.submit(); |
161 |
} |
162 |
|
163 |
function addauthority() { |
164 |
X = document.forms[0].authtype.value; |
165 |
window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X; |
166 |
} |
167 |
function searchauthority() { |
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 |
} |
242 |
</script> |
176 |
</script> |
243 |
[% Asset.css("css/addbiblio.css") | $raw %] |
177 |
[% Asset.css("css/addbiblio.css") | $raw %] |
244 |
|
178 |
|
245 |
</head> |
179 |
</head> |
246 |
<body id="auth_authorities" class="auth"> |
180 |
<body id="auth_authorities" class="auth"> |
247 |
|
181 |
|
248 |
<div id="loading"> |
182 |
<div id="loading"> |
249 |
<div>Loading, please wait...</div> |
183 |
<div>Loading, please wait...</div> |
250 |
</div> |
184 |
</div> |
251 |
|
185 |
|
252 |
[% INCLUDE 'header.inc' %] |
186 |
[% INCLUDE 'header.inc' %] |
253 |
|
187 |
|
254 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
188 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
255 |
<ol> |
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 |
|
197 |
[% IF ( authid ) %] |
256 |
<li> |
198 |
<li> |
257 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
199 |
<a href="#" aria-current="page"> |
|
|
200 |
Modify authority #[% authid | html %] ([% authtypetext | html %]) |
201 |
</a> |
258 |
</li> |
202 |
</li> |
|
|
203 |
|
204 |
[% ELSE %] |
259 |
<li> |
205 |
<li> |
260 |
<a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> |
206 |
<a href="#" aria-current="page"> |
|
|
207 |
Adding authority [% authtypetext | html %] |
208 |
</a> |
261 |
</li> |
209 |
</li> |
262 |
|
210 |
|
263 |
[% END %] |
211 |
[% END %] |
264 |
</ol> |
212 |
</ol> |
265 |
<ol> |
|
|
266 |
[% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %] |
267 |
</ol> |
268 |
<ol> |
269 |
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a> |
270 |
</ol> |
271 |
</nav> |
213 |
</nav> |
272 |
|
214 |
|
273 |
<div class="main container-fluid"> |
215 |
<div class="main container-fluid"> |
Lines 275-283
Link Here
|
275 |
<div class="col-md-10 col-md-offset-1"> |
217 |
<div class="col-md-10 col-md-offset-1"> |
276 |
|
218 |
|
277 |
[% IF ( authid ) %] |
219 |
[% IF ( authid ) %] |
278 |
<h1>Modify authority #[% authid | html %] [% authtypetext | html %]</h1> |
220 |
<h2>Modify authority #[% authid | html %] [% authtypetext | html %]</h2> |
279 |
[% ELSE %] |
221 |
[% ELSE %] |
280 |
<h1>Adding authority [% authtypetext | html %]</h1> |
222 |
<h2>Adding authority [% authtypetext | html %]</h2> |
281 |
[% END %] |
223 |
[% END %] |
282 |
|
224 |
|
283 |
[% IF ( duplicateauthid ) %] |
225 |
[% IF ( duplicateauthid ) %] |
Lines 305-365
Link Here
|
305 |
<input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" /> |
247 |
<input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" /> |
306 |
|
248 |
|
307 |
<div id="toolbar" class="btn-toolbar"> |
249 |
<div id="toolbar" class="btn-toolbar"> |
308 |
<div class="btn-group"><a href="#" class="btn btn-default" id="principal" accesskey="w"><i class="fa fa-save"></i> Save</a></div> |
|
|
309 |
<div class="btn-group"> |
250 |
<div class="btn-group"> |
310 |
[% IF ( authid ) %] |
251 |
[% IF ( authid ) %] |
311 |
<a class="cancel" class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a> |
252 |
<a class="btn btn-default cancel" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a> |
312 |
[% ELSE %] |
253 |
[% ELSE %] |
313 |
<a class="cancel" class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a> |
254 |
<a class="btn btn-default cancel" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a> |
314 |
[% END %] |
255 |
[% END %] |
315 |
</div> |
256 |
</div> |
|
|
257 |
<div class="btn-group"><a href="#" id="addauth" class="btn btn-default principal" accesskey="w"><i class="fa fa-save"></i> Save</a></div> |
316 |
<div class="btn-group"> |
258 |
<div class="btn-group"> |
317 |
[% IF ( authid ) %] |
259 |
[% IF ( authid ) %] |
318 |
<a class="pat" class="btn btn-default" href="#"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a> |
260 |
<a class="btn btn-default pat" id="z3950submit" href="#"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a> |
319 |
[% ELSE %] |
261 |
[% ELSE %] |
320 |
<a class="pat" class="btn btn-default" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a> |
262 |
<a class="btn btn-default pat" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a> |
321 |
[% END %] |
263 |
[% END %] |
322 |
</div> |
264 |
</div> |
323 |
</div> |
265 |
</div> |
324 |
|
266 |
|
325 |
<fieldset class="select-libs"> |
267 |
<div id="authoritytabs" style="background-color: #fff" class="toptabs numbered"> |
326 |
<div id="authoritytabs" class="toptabs numbered"> |
268 |
<ul> |
327 |
<ul> |
269 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
328 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
270 |
<li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li> |
329 |
<li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li> |
271 |
[% END %] |
330 |
[% END %] |
272 |
</ul> |
331 |
</ul> |
|
|
332 |
|
273 |
|
333 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
274 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
334 |
<div id="tab[% BIG_LOO.number | html %]XX"> |
275 |
<div id="tab[% BIG_LOO.number | html %]XX"> |
335 |
[% previous = "" %] |
276 |
|
336 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
277 |
[% previous = "" %] |
337 |
[% IF ( innerloo.tag ) %] |
278 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
338 |
[% IF innerloo.tag != previous %] |
279 |
[% IF ( innerloo.tag ) %] |
339 |
[% IF previous != "" %] |
280 |
[% IF innerloo.tag != previous %] |
340 |
</ul> |
281 |
[% IF previous != "" %] |
341 |
[% END %] |
282 |
</ul> |
342 |
[% previous = innerloo.tag %] |
283 |
[% END %] |
343 |
[% IF ( innerloo.repeatable ) %] |
284 |
[% previous = innerloo.tag %] |
344 |
<ul class="sortable_field"> |
285 |
[% IF ( innerloo.repeatable ) %] |
345 |
[% ELSE %] |
286 |
<ul class="sortable_field"> |
346 |
<ul> |
287 |
[% ELSE %] |
347 |
[% END %] |
288 |
<ul> |
348 |
[% END %] |
289 |
[% END %] |
349 |
[% IF ( innerloo.repeatable ) %] |
290 |
[% END %] |
350 |
<li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
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" style="background-color:#f3f4f4" 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> |
351 |
[% ELSE %] |
300 |
[% ELSE %] |
352 |
<li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
301 |
<span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span> |
353 |
[% END %] |
302 |
[% END %] |
354 |
|
|
|
355 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
356 |
[% UNLESS hide_marc %] |
357 |
[% IF advancedMARCEditor %] |
358 |
<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> |
359 |
[% ELSE %] |
360 |
<span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span> |
361 |
[% END %] |
362 |
|
363 |
[% IF ( innerloo.fixedfield ) %] |
303 |
[% IF ( innerloo.fixedfield ) %] |
364 |
<input type="text" |
304 |
<input type="text" |
365 |
tabindex="1" |
305 |
tabindex="1" |
Lines 393-571
Link Here
|
393 |
maxlength="1" |
333 |
maxlength="1" |
394 |
value="[% innerloo.indicator2 | html %]" /> |
334 |
value="[% innerloo.indicator2 | html %]" /> |
395 |
[% END %] - |
335 |
[% END %] - |
396 |
[% ELSE %] |
336 |
[% ELSE %] |
397 |
[% IF ( innerloo.fixedfield ) %] |
337 |
[% IF ( innerloo.fixedfield ) %] |
398 |
<input type="hidden" |
338 |
<input type="hidden" |
399 |
tabindex="1" |
339 |
tabindex="1" |
400 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
340 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
401 |
value="[% innerloo.indicator1 | html %]" /> |
341 |
value="[% innerloo.indicator1 | html %]" /> |
402 |
<input type="hidden" |
342 |
<input type="hidden" |
403 |
tabindex="1" |
343 |
tabindex="1" |
404 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
344 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
405 |
value="[% innerloo.indicator2 | html %]" /> |
345 |
value="[% innerloo.indicator2 | html %]" /> |
406 |
[% ELSE %] |
346 |
[% ELSE %] |
407 |
<input type="hidden" |
347 |
<input type="hidden" |
408 |
tabindex="1" |
348 |
tabindex="1" |
409 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
349 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
410 |
value="[% innerloo.indicator1 | html %]" /> |
350 |
value="[% innerloo.indicator1 | html %]" /> |
411 |
<input type="hidden" |
351 |
<input type="hidden" |
412 |
tabindex="1" |
352 |
tabindex="1" |
413 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
353 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
414 |
value="[% innerloo.indicator2 | html %]" /> |
354 |
value="[% innerloo.indicator2 | html %]" /> |
415 |
[% END %] |
355 |
[% END %] |
416 |
[% END %] |
356 |
[% END %] |
417 |
|
357 |
|
418 |
[% UNLESS advancedMARCEditor %] |
358 |
[% UNLESS advancedMARCEditor %] |
419 |
<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> |
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 %] |
361 |
<span class="field_controls"> |
362 |
[% IF ( innerloo.repeatable ) %] |
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"> |
364 |
<img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this Tag" /> |
365 |
</a> |
420 |
[% END %] |
366 |
[% END %] |
421 |
<span class="field_controls"> |
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"> |
422 |
[% IF ( innerloo.repeatable ) %] |
368 |
<img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this Tag" /> |
423 |
<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"> |
369 |
</a> |
424 |
<img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this Tag" /> |
370 |
</span> <!-- /.field_controls --> |
425 |
</a> |
|
|
426 |
[% END %] |
427 |
<a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Delete this Tag"> |
428 |
<img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this Tag" /> |
429 |
</a> |
430 |
</span> <!-- /.field_controls --> |
431 |
|
371 |
|
432 |
</div> <!-- /div.tag_title --> |
372 |
</div> <!-- /div.tag_title --> |
433 |
|
373 |
|
434 |
<ul class="sortable_subfield"> |
374 |
<ul class="sortable_subfield"> |
435 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
375 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
436 |
<!-- One line on the marc editor --> |
376 |
<!-- One line on the marc editor --> |
437 |
<li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]"> |
377 |
<li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]"> |
438 |
|
378 |
|
439 |
[% UNLESS hide_marc %] |
379 |
[% UNLESS hide_marc %] |
440 |
<div class="subfieldcode"> |
380 |
<div class="subfieldcode"> |
441 |
<input type="text" |
381 |
<input type="text" |
442 |
title="[% subfield_loo.marc_lib | $raw %]" |
382 |
title="[% subfield_loo.marc_lib | $raw %]" |
443 |
style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;" |
383 |
style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;" |
444 |
name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" |
|
|
445 |
value="[% subfield_loo.subfield | html %]" |
446 |
size="1" |
447 |
maxlength="1" |
448 |
class="flat" |
449 |
tabindex="0" /> |
450 |
</div> |
451 |
[% ELSE %] |
452 |
<input type="hidden" |
453 |
name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" |
384 |
name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" |
454 |
value="[% subfield_loo.subfield | html %]" /> |
385 |
value="[% subfield_loo.subfield | html %]" |
455 |
[% END %] |
386 |
size="1" |
|
|
387 |
maxlength="1" |
388 |
class="flat" |
389 |
tabindex="0" /> |
390 |
</div> |
391 |
[% ELSE %] |
392 |
<input type="hidden" |
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 %] |
456 |
|
396 |
|
457 |
[% UNLESS advancedMARCEditor %] |
397 |
[% UNLESS advancedMARCEditor %] |
458 |
[% IF ( subfield_loo.mandatory ) %] |
398 |
[% IF ( subfield_loo.mandatory ) %] |
459 |
<div class="subfield subfield_mandatory"> |
399 |
<div class="subfield subfield_mandatory"> |
|
|
400 |
[% ELSE %] |
401 |
<div class="subfield"> |
402 |
[% END %] |
403 |
[% IF ( subfield_loo.fixedfield ) %] |
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"> |
460 |
[% ELSE %] |
405 |
[% ELSE %] |
461 |
<div class="subfield"> |
406 |
<label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield"> |
462 |
[% END %] |
407 |
[% END %] |
463 |
[% IF ( subfield_loo.fixedfield ) %] |
408 |
[% subfield_loo.marc_lib | $raw %] |
464 |
<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"> |
409 |
</label> |
465 |
[% ELSE %] |
410 |
</div> |
466 |
<label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield"> |
411 |
[% END %] |
467 |
[% END %] |
412 |
|
468 |
[% subfield_loo.marc_lib | $raw %] |
413 |
[% SET mv = subfield_loo.marc_value %] |
469 |
</label> |
414 |
<div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor"> |
470 |
</div> |
415 |
[% IF ( mv.type == 'select' ) %] |
|
|
416 |
[% IF mv.category AND CAN_user_parameters_manage_auth_values %] |
417 |
<select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]"> |
418 |
[% ELSE %] |
419 |
<select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]"> |
471 |
[% END %] |
420 |
[% END %] |
472 |
|
421 |
|
473 |
[% SET mv = subfield_loo.marc_value %] |
422 |
[% FOREACH aval IN mv.values %] |
474 |
<div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor"> |
423 |
[% IF aval == mv.default %] |
475 |
[% IF ( mv.type == 'select' ) %] |
424 |
<option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option> |
476 |
[% IF mv.category AND CAN_user_parameters_manage_auth_values %] |
425 |
[% ELSE %] |
477 |
<select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]"> |
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 |
[% IF ( subfield_loo.mandatory ) %] |
445 |
<div class="subfield_loop_mandatory"> |
446 |
<span class="required">Required</span> |
447 |
</div> |
448 |
[% END %] |
449 |
<div class="subfield_controls"> |
450 |
[% IF ( mv.type == 'text1' ) %] |
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> |
452 |
[% ELSIF ( mv.type == 'text2' ) %] |
453 |
[% IF mv.noclick %] |
454 |
<a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a> |
478 |
[% ELSE %] |
455 |
[% ELSE %] |
479 |
<select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]"> |
456 |
<a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a> |
480 |
[% END %] |
457 |
[% END %] |
481 |
|
458 |
[% mv.javascript | $raw %] |
482 |
[% FOREACH aval IN mv.values %] |
|
|
483 |
[% IF aval == mv.default %] |
484 |
<option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option> |
485 |
[% ELSE %] |
486 |
<option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option> |
487 |
[% END %] |
488 |
[% END %] |
489 |
</select> |
490 |
[% ELSIF ( mv.type == 'text1' ) %] |
491 |
<input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" /> |
492 |
[% ELSIF ( mv.type == 'text2' ) %] |
493 |
<input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" /> |
494 |
[% ELSIF ( mv.type == 'text' ) %] |
495 |
<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 -%]" /> |
496 |
[% ELSIF ( mv.type == 'textarea' ) %] |
497 |
<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> |
498 |
[% ELSIF ( mv.type == 'hidden' ) %] |
499 |
<input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
500 |
[% ELSIF ( mv.type == 'hidden_simple' ) %] |
501 |
<input type="hidden" name="[%- mv.name | html -%]" /> |
502 |
[% END %] |
459 |
[% END %] |
503 |
</div> |
460 |
[% IF ( subfield_loo.repeatable ) %] |
504 |
[% IF ( subfield_loo.mandatory ) %] |
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;"> |
505 |
<div class="subfield_loop_mandatory"> |
462 |
<img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> |
506 |
<span class="required">Required</span> |
463 |
</a> |
507 |
</div> |
464 |
<a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;"> |
|
|
465 |
<img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" /> |
466 |
</a> |
508 |
[% END %] |
467 |
[% END %] |
509 |
<div class="subfield_controls"> |
|
|
510 |
[% IF ( mv.type == 'text1' ) %] |
511 |
<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> |
512 |
[% ELSIF ( mv.type == 'text2' ) %] |
513 |
[% IF mv.noclick %] |
514 |
<a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a> |
515 |
[% ELSE %] |
516 |
<a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a> |
517 |
[% END %] |
518 |
[% mv.javascript | $raw %] |
519 |
[% END %] |
520 |
[% IF ( subfield_loo.repeatable ) %] |
521 |
<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;"> |
522 |
<img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> |
523 |
</a> |
524 |
<a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;"> |
525 |
<img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" /> |
526 |
</a> |
527 |
[% END %] |
528 |
</div> |
529 |
</li> |
530 |
<!-- End of the line --> |
531 |
[% END %] |
532 |
</ul> <!-- /.sortable_subfield --> |
533 |
</li> |
534 |
[% END %]<!-- if innerloo.tag --> |
535 |
[% END %]<!-- BIG_LOO.innerloop --> |
536 |
</ul> <!-- /.sortable_field --> |
537 |
</div> |
468 |
</div> |
538 |
[% END %]<!-- BIG_LOOP --> |
469 |
</li> |
539 |
</div><!-- tabs --> |
470 |
<!-- End of the line --> |
540 |
|
471 |
[% END %] |
541 |
<div name="hidden" id="hidden" class="tab"> |
472 |
</ul> <!-- /.sortable_subfield --> |
542 |
[% FOREACH hidden_loo IN hidden_loop %] |
473 |
</li> |
543 |
<input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" /> |
474 |
[% END %]<!-- if innerloo.tag --> |
544 |
<input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" /> |
475 |
[% END %]<!-- BIG_LOO.innerloop --> |
545 |
<input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" /> |
476 |
</ul> <!-- /.sortable_field --> |
546 |
<input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" /> |
477 |
</div> |
547 |
<input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" /> |
478 |
[% END %]<!-- BIG_LOOP --> |
548 |
[% END %] |
479 |
</div><!-- tabs --> |
549 |
</div> |
480 |
|
550 |
|
481 |
<div name="hidden" id="hidden" class="tab"> |
551 |
[% IF ( oldauthnumtagfield ) %] |
482 |
[% FOREACH hidden_loo IN hidden_loop %] |
552 |
<input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" /> |
483 |
<input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" /> |
553 |
<input type="hidden" name="subfield" value="[% oldauthnumtagsubfield | html %]" /> |
484 |
<input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" /> |
554 |
<input type="hidden" name="field_value" value="[% authid | html %]" /> |
485 |
<input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" /> |
555 |
<input type="hidden" name="mandatory" value="0" /> |
486 |
<input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" /> |
556 |
<input type="hidden" name="kohafield" value="[% kohafield | html %]" /> |
487 |
<input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" /> |
557 |
<input type="hidden" name="tag_mandatory" value="[% tag_mandatory | html %]" /> |
488 |
[% END %] |
558 |
<input type="hidden" name="tag" value="[% oldauthtypetagfield | html %]" /> |
489 |
</div> |
559 |
<input type="hidden" name="subfield" value="[% oldauthtypetagsubfield | html %]" /> |
490 |
[% IF ( oldauthnumtagfield ) %] |
560 |
<input type="hidden" name="field_value" value="[% authtypecode | html %]" /> |
491 |
<input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" /> |
561 |
[% END %] |
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 %] |
562 |
|
501 |
|
563 |
</form> |
502 |
</form> |
564 |
|
503 |
|
565 |
[% INCLUDE 'modals/cataloguing_create_av.inc' %] |
504 |
[% INCLUDE 'modals/cataloguing_create_av.inc' %] |
566 |
|
505 |
|
567 |
</div> |
506 |
</div> |
568 |
</fieldset> |
|
|
569 |
</div> |
507 |
</div> |
570 |
</div> |
508 |
</div> |
571 |
|
509 |
|