Lines 260-612
Link Here
|
260 |
<a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> |
260 |
<a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> |
261 |
</li> |
261 |
</li> |
262 |
|
262 |
|
|
|
263 |
[% END %] |
264 |
</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> |
272 |
|
273 |
<div class="main container-fluid"> |
274 |
<div class="row"> |
275 |
<div class="col-md-10 col-md-offset-1"> |
276 |
|
277 |
[% IF ( authid ) %] |
278 |
<h1>Modify authority #[% authid | html %] [% authtypetext | html %]</h1> |
279 |
[% ELSE %] |
280 |
<h1>Adding authority [% authtypetext | html %]</h1> |
281 |
[% END %] |
282 |
|
283 |
[% IF ( duplicateauthid ) %] |
284 |
<div class="dialog alert"> |
285 |
<h3>Duplicate record suspected</h3> |
286 |
<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> |
287 |
|
288 |
<form action="authorities.pl" method="get"> |
289 |
<input type="hidden" name="authid" value="[% duplicateauthid | html %]" /> |
290 |
<button type="submit" class="new"><i class="fa fa-pencil"></i> Yes: Edit existing authority</button> |
291 |
</form> |
292 |
<form action="authorities.pl" method="get"> |
293 |
<button class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-save"></i> No: Save as new authority</button> |
294 |
</form> |
295 |
</div> |
296 |
[% END %] |
297 |
|
298 |
<form method="post" name="f" action="/cgi-bin/koha/authorities/authorities.pl"> |
299 |
<input type="hidden" name="op" value="add" /> |
300 |
<input type="hidden" name="addfield_field" value="" /> |
301 |
<input type="hidden" name="repeat_field" value="" /> |
302 |
<input type="hidden" name="authtypecode" value="[% authtypecode | html%]" /> |
303 |
<input type="hidden" name="authid" value="[% authid | html %]" /> |
304 |
<input type="hidden" name="index" value="[% index | html %]" /> |
305 |
<input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" /> |
306 |
|
307 |
<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"> |
263 |
[% IF ( authid ) %] |
310 |
[% IF ( authid ) %] |
264 |
<li> |
311 |
<a class="cancel" class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a> |
265 |
<a href="#" aria-current="page"> |
|
|
266 |
Modify authority #[% authid | html %] ([% authtypetext | html %]) |
267 |
</a> |
268 |
</li> |
269 |
|
270 |
[% ELSE %] |
312 |
[% ELSE %] |
271 |
<li> |
313 |
<a class="cancel" class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a> |
272 |
<a href="#" aria-current="page"> |
|
|
273 |
Adding authority [% authtypetext | html %] |
274 |
</a> |
275 |
</li> |
276 |
|
277 |
[% END %] |
314 |
[% END %] |
278 |
</ol> |
315 |
</div> |
279 |
</nav> <!-- /#breadcrumbs --> |
316 |
<div class="btn-group"> |
|
|
317 |
[% 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> |
319 |
[% ELSE %] |
320 |
<a class="pat" class="btn btn-default" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a> |
321 |
[% END %] |
322 |
</div> |
323 |
</div> |
280 |
|
324 |
|
281 |
<div class="main container-fluid"> |
325 |
<fieldset class="select-libs"> |
282 |
<div class="row"> |
326 |
<div id="authoritytabs" class="toptabs numbered"> |
283 |
<div class="col-md-10 col-md-offset-1"> |
327 |
<ul> |
|
|
328 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
329 |
<li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li> |
330 |
[% END %] |
331 |
</ul> |
332 |
|
333 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
334 |
<div id="tab[% BIG_LOO.number | html %]XX"> |
335 |
[% previous = "" %] |
336 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
337 |
[% IF ( innerloo.tag ) %] |
338 |
[% IF innerloo.tag != previous %] |
339 |
[% IF previous != "" %] |
340 |
</ul> |
341 |
[% END %] |
342 |
[% previous = innerloo.tag %] |
343 |
[% IF ( innerloo.repeatable ) %] |
344 |
<ul class="sortable_field"> |
345 |
[% ELSE %] |
346 |
<ul> |
347 |
[% END %] |
348 |
[% END %] |
349 |
[% IF ( innerloo.repeatable ) %] |
350 |
<li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
351 |
[% ELSE %] |
352 |
<li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
353 |
[% END %] |
284 |
|
354 |
|
285 |
[% IF ( authid ) %] |
355 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
286 |
<h1>Modify authority #[% authid | html %] [% authtypetext | html %]</h1> |
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> |
287 |
[% ELSE %] |
359 |
[% ELSE %] |
288 |
<h1>Adding authority [% authtypetext | html %]</h1> |
360 |
<span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span> |
289 |
[% END %] |
361 |
[% END %] |
290 |
|
362 |
|
291 |
[% IF ( duplicateauthid ) %] |
363 |
[% IF ( innerloo.fixedfield ) %] |
292 |
<div class="dialog alert"> |
364 |
<input type="text" |
293 |
<h3>Duplicate record suspected</h3> |
365 |
tabindex="1" |
294 |
<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> |
366 |
class="indicator flat" |
295 |
|
367 |
style="display:none;" |
296 |
<form action="authorities.pl" method="get"> |
368 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
297 |
<input type="hidden" name="authid" value="[% duplicateauthid | html %]" /> |
369 |
size="1" |
298 |
<button type="submit" class="new"><i class="fa fa-pencil"></i> Yes: Edit existing authority</button> |
370 |
maxlength="1" |
299 |
</form> |
371 |
value="[% innerloo.indicator1 | html %]" /> |
300 |
<form action="authorities.pl" method="get"> |
372 |
<input type="text" |
301 |
<button class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-save"></i> No: Save as new authority</button> |
373 |
tabindex="1" |
302 |
</form> |
374 |
class="indicator flat" |
|
|
375 |
style="display:none;" |
376 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
377 |
size="1" |
378 |
maxlength="1" |
379 |
value="[% innerloo.indicator2 | html %]" /> |
380 |
[% ELSE %] |
381 |
<input type="text" |
382 |
tabindex="1" |
383 |
class="indicator flat" |
384 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
385 |
size="1" |
386 |
maxlength="1" |
387 |
value="[% innerloo.indicator1 | html %]" /> |
388 |
<input type="text" |
389 |
tabindex="1" |
390 |
class="indicator flat" |
391 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
392 |
size="1" |
393 |
maxlength="1" |
394 |
value="[% innerloo.indicator2 | html %]" /> |
395 |
[% END %] - |
396 |
[% ELSE %] |
397 |
[% IF ( innerloo.fixedfield ) %] |
398 |
<input type="hidden" |
399 |
tabindex="1" |
400 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
401 |
value="[% innerloo.indicator1 | html %]" /> |
402 |
<input type="hidden" |
403 |
tabindex="1" |
404 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
405 |
value="[% innerloo.indicator2 | html %]" /> |
406 |
[% ELSE %] |
407 |
<input type="hidden" |
408 |
tabindex="1" |
409 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
410 |
value="[% innerloo.indicator1 | html %]" /> |
411 |
<input type="hidden" |
412 |
tabindex="1" |
413 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
414 |
value="[% innerloo.indicator2 | html %]" /> |
415 |
[% END %] |
416 |
[% END %] |
417 |
|
418 |
[% 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> |
420 |
[% END %] |
421 |
<span class="field_controls"> |
422 |
[% IF ( innerloo.repeatable ) %] |
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"> |
424 |
<img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this Tag" /> |
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 |
|
432 |
</div> <!-- /div.tag_title --> |
433 |
|
434 |
<ul class="sortable_subfield"> |
435 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
436 |
<!-- 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 %]"> |
438 |
|
439 |
[% UNLESS hide_marc %] |
440 |
<div class="subfieldcode"> |
441 |
<input type="text" |
442 |
title="[% subfield_loo.marc_lib | $raw %]" |
443 |
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" /> |
303 |
</div> |
450 |
</div> |
304 |
[% END # /IF duplicateauthid %] |
451 |
[% ELSE %] |
305 |
|
452 |
<input type="hidden" |
306 |
<form method="post" name="f" action="/cgi-bin/koha/authorities/authorities.pl"> |
453 |
name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" |
307 |
<input type="hidden" name="op" value="add" /> |
454 |
value="[% subfield_loo.subfield | html %]" /> |
308 |
<input type="hidden" name="addfield_field" value="" /> |
455 |
[% END %] |
309 |
<input type="hidden" name="repeat_field" value="" /> |
456 |
|
310 |
<input type="hidden" name="authtypecode" value="[% authtypecode | html%]" /> |
457 |
[% UNLESS advancedMARCEditor %] |
311 |
<input type="hidden" name="authid" value="[% authid | html %]" /> |
458 |
[% IF ( subfield_loo.mandatory ) %] |
312 |
<input type="hidden" name="index" value="[% index | html %]" /> |
459 |
<div class="subfield subfield_mandatory"> |
313 |
<input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" /> |
460 |
[% ELSE %] |
314 |
|
461 |
<div class="subfield"> |
315 |
<div id="toolbar" class="btn-toolbar"> |
462 |
[% END %] |
316 |
<div class="btn-group"><a href="#" id="addauth" class="btn btn-default" accesskey="w"><i class="fa fa-save"></i> Save</a></div> |
463 |
[% IF ( subfield_loo.fixedfield ) %] |
317 |
<div class="btn-group"> |
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"> |
318 |
[% IF ( authid ) %] |
|
|
319 |
<a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a> |
320 |
[% ELSE %] |
465 |
[% ELSE %] |
321 |
<a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a> |
466 |
<label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield"> |
322 |
[% END %] |
467 |
[% END %] |
|
|
468 |
[% subfield_loo.marc_lib | $raw %] |
469 |
</label> |
323 |
</div> |
470 |
</div> |
324 |
<div class="btn-group"> |
471 |
[% END %] |
325 |
[% IF ( authid ) %] |
472 |
|
326 |
<a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a> |
473 |
[% SET mv = subfield_loo.marc_value %] |
|
|
474 |
<div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor"> |
475 |
[% IF ( mv.type == 'select' ) %] |
476 |
[% IF mv.category AND CAN_user_parameters_manage_auth_values %] |
477 |
<select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]"> |
478 |
[% ELSE %] |
479 |
<select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]"> |
480 |
[% END %] |
481 |
|
482 |
[% FOREACH aval IN mv.values %] |
483 |
[% IF aval == mv.default %] |
484 |
<option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option> |
327 |
[% ELSE %] |
485 |
[% ELSE %] |
328 |
<a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a> |
486 |
<option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option> |
329 |
[% END %] |
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 %] |
503 |
</div> |
504 |
[% IF ( subfield_loo.mandatory ) %] |
505 |
<div class="subfield_loop_mandatory"> |
506 |
<span class="required">Required</span> |
330 |
</div> |
507 |
</div> |
331 |
<div class="toolbar-tabs-container"> |
508 |
[% END %] |
332 |
[% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %] |
509 |
<div class="subfield_controls"> |
333 |
<ul class="toolbar-tabs"> |
510 |
[% IF ( mv.type == 'text1' ) %] |
334 |
[%- FOREACH BIG_LOO IN BIG_LOOP -%] |
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> |
335 |
[% IF loop.first %] |
512 |
[% ELSIF ( mv.type == 'text2' ) %] |
336 |
<li class="selected"> |
513 |
[% IF mv.noclick %] |
337 |
[% ELSE %] |
514 |
<a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a> |
338 |
<li> |
515 |
[% ELSE %] |
339 |
[% END %] |
516 |
<a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a> |
340 |
<a data-tabid="[% BIG_LOO.number | html %]" href="#tab[% BIG_LOO.number | html %]XX">[% BIG_LOO.number | html %]</a> |
|
|
341 |
</li> |
342 |
[%- END -%] |
343 |
</ul> |
344 |
[% END %] |
517 |
[% END %] |
345 |
<ul class="tag_anchors_list"> |
518 |
[% mv.javascript | $raw %] |
346 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
519 |
[% END %] |
347 |
[% IF loop.first %][% SET tab_selected = "tab_selected" %][% ELSE %][% SET tab_selected = "" %][% END %] |
520 |
[% IF ( subfield_loo.repeatable ) %] |
348 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
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;"> |
349 |
[% IF ( innerloo.tag ) %] |
522 |
<img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> |
350 |
<li class="tag_anchors tag_anchors_[% BIG_LOO.number | html %] [% tab_selected | html %]"> |
523 |
</a> |
351 |
<a class="tag_anchor" id="tag_anchor_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]" title="tag_anchor_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]" href="#div_indicator_tag_[% innerloo.tag | uri %]_[% innerloo.index | uri %][% innerloo.random | uri %]">[% innerloo.tag | uri %]</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;"> |
352 |
</li> |
525 |
<img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" /> |
353 |
[% END %] |
526 |
</a> |
354 |
[% END %] |
|
|
355 |
[% END %] |
356 |
</ul> |
357 |
</div> |
358 |
</div> <!-- /#toolbar --> |
359 |
<div id="action"> |
360 |
[% IF count %] |
361 |
Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an:[% authid | uri %]">[% count | html %] record(s)</a> |
362 |
[% ELSE %] |
363 |
This authority is not used in any records. |
364 |
[% END %] |
527 |
[% END %] |
365 |
</div> |
528 |
</div> |
366 |
<div id="authoritytabs" class="toptabs numbered"> |
529 |
</li> |
367 |
<ul> |
530 |
<!-- End of the line --> |
368 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
|
|
369 |
<li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li> |
370 |
[% END %] |
371 |
</ul> |
372 |
|
373 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
374 |
<div id="tab[% BIG_LOO.number | html %]XX"> |
375 |
[% IF ( BIG_LOOP.size > 1 ) %] |
376 |
<h2>Section [% BIG_LOO.number | html %]</h2> |
377 |
[% END %] |
531 |
[% END %] |
378 |
[% previous = "" %] |
532 |
</ul> <!-- /.sortable_subfield --> |
379 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
533 |
</li> |
380 |
[% IF ( innerloo.tag ) %] |
534 |
[% END %]<!-- if innerloo.tag --> |
381 |
[% IF innerloo.tag != previous %] |
535 |
[% END %]<!-- BIG_LOO.innerloop --> |
382 |
[% IF previous != "" %] |
536 |
</ul> <!-- /.sortable_field --> |
383 |
</ul> |
537 |
</div> |
384 |
[% END %] |
538 |
[% END %]<!-- BIG_LOOP --> |
385 |
[% previous = innerloo.tag %] |
539 |
</div><!-- tabs --> |
386 |
[% IF ( innerloo.repeatable ) %] |
540 |
|
387 |
<ul class="sortable_field"> |
541 |
<div name="hidden" id="hidden" class="tab"> |
388 |
[% ELSE %] |
542 |
[% FOREACH hidden_loo IN hidden_loop %] |
389 |
<ul> |
543 |
<input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" /> |
390 |
[% END %] |
544 |
<input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" /> |
391 |
[% END %] |
545 |
<input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" /> |
392 |
|
546 |
<input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" /> |
393 |
[% IF ( innerloo.repeatable ) %] |
547 |
<input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" /> |
394 |
<li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
548 |
[% END %] |
395 |
[% ELSE %] |
549 |
</div> |
396 |
<li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
|
|
397 |
[% END %] |
398 |
|
399 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
400 |
[% UNLESS hide_marc %] |
401 |
[% IF advancedMARCEditor %] |
402 |
<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> |
403 |
[% ELSE %] |
404 |
<span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span> |
405 |
[% END %] |
406 |
[% IF ( innerloo.fixedfield ) %] |
407 |
<input type="text" |
408 |
tabindex="1" |
409 |
class="indicator flat" |
410 |
style="display:none;" |
411 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
412 |
size="1" |
413 |
maxlength="1" |
414 |
value="[% innerloo.indicator1 | html %]" /> |
415 |
<input type="text" |
416 |
tabindex="1" |
417 |
class="indicator flat" |
418 |
style="display:none;" |
419 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
420 |
size="1" |
421 |
maxlength="1" |
422 |
value="[% innerloo.indicator2 | html %]" /> |
423 |
[% ELSE %] |
424 |
<input type="text" |
425 |
tabindex="1" |
426 |
class="indicator flat" |
427 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
428 |
size="1" |
429 |
maxlength="1" |
430 |
value="[% innerloo.indicator1 | html %]" /> |
431 |
<input type="text" |
432 |
tabindex="1" |
433 |
class="indicator flat" |
434 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
435 |
size="1" |
436 |
maxlength="1" |
437 |
value="[% innerloo.indicator2 | html %]" /> |
438 |
[% END # /IF ( innerloo.fixedfield ) %] - |
439 |
[% ELSE %] |
440 |
[% IF ( innerloo.fixedfield ) %] |
441 |
<input type="hidden" |
442 |
tabindex="1" |
443 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
444 |
value="[% innerloo.indicator1 | html %]" /> |
445 |
<input type="hidden" |
446 |
tabindex="1" |
447 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
448 |
value="[% innerloo.indicator2 | html %]" /> |
449 |
[% ELSE %] |
450 |
<input type="hidden" |
451 |
tabindex="1" |
452 |
name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]" |
453 |
value="[% innerloo.indicator1 | html %]" /> |
454 |
<input type="hidden" |
455 |
tabindex="1" |
456 |
name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]" |
457 |
value="[% innerloo.indicator2 | html %]" /> |
458 |
[% END # /IF ( innerloo.fixedfield ) %] |
459 |
[% END # /UNLESS hide_marc %] |
460 |
|
461 |
[% UNLESS advancedMARCEditor %] |
462 |
<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> |
463 |
[% END %] |
464 |
<span class="field_controls"> |
465 |
[% IF ( innerloo.repeatable ) %] |
466 |
<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"> |
467 |
<img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this Tag" /> |
468 |
</a> |
469 |
[% END %] |
470 |
<a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Delete this Tag"> |
471 |
<img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this Tag" /> |
472 |
</a> |
473 |
</span> <!-- /.field_controls --> |
474 |
</div> <!-- /div.tag_title --> |
475 |
|
476 |
<ul class="sortable_subfield"> |
477 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
478 |
<!-- One line on the marc editor --> |
479 |
<li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]"> |
480 |
|
481 |
[% UNLESS hide_marc %] |
482 |
<div class="subfieldcode"> |
483 |
<input type="text" |
484 |
title="[% subfield_loo.marc_lib | $raw %]" |
485 |
style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;" |
486 |
name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" |
487 |
value="[% subfield_loo.subfield | html %]" |
488 |
size="1" |
489 |
maxlength="1" |
490 |
class="flat" |
491 |
tabindex="0" /> |
492 |
</div> |
493 |
[% ELSE %] |
494 |
<input type="hidden" |
495 |
name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" |
496 |
value="[% subfield_loo.subfield | html %]" /> |
497 |
[% END # /UNLESS hide_marc %] |
498 |
|
499 |
[% UNLESS advancedMARCEditor %] |
500 |
[% IF ( subfield_loo.mandatory ) %] |
501 |
<div class="subfield subfield_mandatory"> |
502 |
[% ELSE %] |
503 |
<div class="subfield"> |
504 |
[% END %] |
505 |
[% IF ( subfield_loo.fixedfield ) %] |
506 |
<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"> |
507 |
[% ELSE %] |
508 |
<label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield"> |
509 |
[% END %] |
510 |
[% subfield_loo.marc_lib | $raw %] |
511 |
</label> |
512 |
</div> <!-- /.subfield --> |
513 |
[% END # UNLESS advancedMARCEditor %] |
514 |
|
515 |
[% SET mv = subfield_loo.marc_value %] |
516 |
<div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor"> |
517 |
[% IF ( mv.type == 'select' ) %] |
518 |
[% IF mv.category AND CAN_user_parameters_manage_auth_values %] |
519 |
<select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]"> |
520 |
[% ELSE %] |
521 |
<select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]"> |
522 |
[% END %] |
523 |
[% FOREACH aval IN mv.values %] |
524 |
[% IF aval == mv.default %] |
525 |
<option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option> |
526 |
[% ELSE %] |
527 |
<option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option> |
528 |
[% END %] |
529 |
[% END %] |
530 |
</select> |
531 |
[% ELSIF ( mv.type == 'text1' ) %] |
532 |
<input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" /> |
533 |
[% ELSIF ( mv.type == 'text2' ) %] |
534 |
<input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" /> |
535 |
[% ELSIF ( mv.type == 'text' ) %] |
536 |
<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 -%]" /> |
537 |
[% ELSIF ( mv.type == 'textarea' ) %] |
538 |
<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> |
539 |
[% ELSIF ( mv.type == 'hidden' ) %] |
540 |
<input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
541 |
[% ELSIF ( mv.type == 'hidden_simple' ) %] |
542 |
<input type="hidden" name="[%- mv.name | html -%]" /> |
543 |
[% END # /IF mv.type %] |
544 |
</div> <!-- /.field_marceditor --> |
545 |
|
546 |
[% IF ( subfield_loo.mandatory ) %] |
547 |
<div class="subfield_loop_mandatory"> |
548 |
<span class="required">Required</span> |
549 |
</div> |
550 |
[% END %] |
551 |
|
552 |
<div class="subfield_controls"> |
553 |
[% IF ( mv.type == 'text1' ) %] |
554 |
<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> |
555 |
[% ELSIF ( mv.type == 'text2' ) %] |
556 |
[% IF mv.noclick %] |
557 |
<a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a> |
558 |
[% ELSE %] |
559 |
<a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a> |
560 |
[% END %] |
561 |
[% mv.javascript | $raw %] |
562 |
[% END #/IF ( mv.type == 'text1' ) %] |
563 |
[% IF ( subfield_loo.repeatable ) %] |
564 |
<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;"> |
565 |
<img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> |
566 |
</a> |
567 |
<a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;"> |
568 |
<img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" /> |
569 |
</a> |
570 |
[% END # /IF ( subfield_loo.repeatable ) %] |
571 |
</div> <!-- /.subfield_controls --> |
572 |
</li> <!-- /.subfield_line --> |
573 |
[% END # /FOREACH subfield_loo %] |
574 |
</ul> <!-- /.sortable_subfield --> |
575 |
</li> <!-- /.tag --> |
576 |
[% END # /IF ( innerloo.tag ) %] |
577 |
[% END # /FOREACH innerloo %] |
578 |
</ul> <!-- /.sortable_field --> |
579 |
</div> <!-- /#tab[% BIG_LOO.number | html %]XX --> |
580 |
[% END #/FOREACH BIG_LOO %] |
581 |
</div> <!-- /#authoritytabs --> |
582 |
|
583 |
<div name="hidden" id="hidden" class="tab"> |
584 |
[% FOREACH hidden_loo IN hidden_loop %] |
585 |
<input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" /> |
586 |
<input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" /> |
587 |
<input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" /> |
588 |
<input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" /> |
589 |
<input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" /> |
590 |
[% END %] |
591 |
</div> <!-- /.tab --> |
592 |
[% IF ( oldauthnumtagfield ) %] |
593 |
<input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" /> |
594 |
<input type="hidden" name="subfield" value="[% oldauthnumtagsubfield | html %]" /> |
595 |
<input type="hidden" name="field_value" value="[% authid | html %]" /> |
596 |
<input type="hidden" name="mandatory" value="0" /> |
597 |
<input type="hidden" name="kohafield" value="[% kohafield | html %]" /> |
598 |
<input type="hidden" name="tag_mandatory" value="[% tag_mandatory | html %]" /> |
599 |
<input type="hidden" name="tag" value="[% oldauthtypetagfield | html %]" /> |
600 |
<input type="hidden" name="subfield" value="[% oldauthtypetagsubfield | html %]" /> |
601 |
<input type="hidden" name="field_value" value="[% authtypecode | html %]" /> |
602 |
[% END %] |
603 |
|
550 |
|
604 |
</form> |
551 |
[% IF ( oldauthnumtagfield ) %] |
|
|
552 |
<input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" /> |
553 |
<input type="hidden" name="subfield" value="[% oldauthnumtagsubfield | html %]" /> |
554 |
<input type="hidden" name="field_value" value="[% authid | html %]" /> |
555 |
<input type="hidden" name="mandatory" value="0" /> |
556 |
<input type="hidden" name="kohafield" value="[% kohafield | html %]" /> |
557 |
<input type="hidden" name="tag_mandatory" value="[% tag_mandatory | html %]" /> |
558 |
<input type="hidden" name="tag" value="[% oldauthtypetagfield | html %]" /> |
559 |
<input type="hidden" name="subfield" value="[% oldauthtypetagsubfield | html %]" /> |
560 |
<input type="hidden" name="field_value" value="[% authtypecode | html %]" /> |
561 |
[% END %] |
605 |
|
562 |
|
606 |
[% INCLUDE 'modals/cataloguing_create_av.inc' %] |
563 |
</form> |
607 |
|
564 |
|
608 |
</div> |
565 |
[% INCLUDE 'modals/cataloguing_create_av.inc' %] |
609 |
</div> |
566 |
|
610 |
</div> |
567 |
</div> |
|
|
568 |
</fieldset> |
569 |
</div> |
570 |
</div> |
611 |
|
571 |
|
612 |
[% INCLUDE 'intranet-bottom.inc' %] |
572 |
[% INCLUDE 'intranet-bottom.inc' %] |