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

(-)a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css (-4 / +10 lines)
Lines 6-22 div#toolbar { Link Here
6
    border: 0;
6
    border: 0;
7
}
7
}
8
8
9
#addbibliotabs .ui-tabs-nav,
9
#addbibliotabs .ui-tabs-nav {
10
#authoritytabs .ui-tabs-nav {
11
    display: none;
10
    display: none;
12
}
11
}
13
12
14
.ui-tabs-panel h3 {
13
.tab-content {
14
    border: 0;
15
    padding: 0;
16
}
17
18
.ui-tabs-panel h3,
19
.tab-pane h3 {
15
    font-size: 140%;
20
    font-size: 140%;
16
    margin: .3em 0;
21
    margin: .3em 0;
17
}
22
}
18
23
19
.ui-tabs-panel ul {
24
.ui-tabs-panel ul,
25
.tab-pane ul {
20
    margin-bottom: 0;
26
    margin-bottom: 0;
21
    padding-left: 0;
27
    padding-left: 0;
22
}
28
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-219 / +214 lines)
Lines 21-43 Link Here
21
    });
21
    });
22
    var Sticky;
22
    var Sticky;
23
    $(document).ready(function() {
23
    $(document).ready(function() {
24
        var tabs = $('#authoritytabs').tabs({
24
25
            activate: function(e, ui) {
25
        $("a[data-toggle='tab']").on("shown.bs.tab", function (e) {
26
                $("#"+ $(ui.newPanel).attr("id") + " .input_marceditor:visible:eq(0)").focus();
26
            $( e.target.hash + " .input_marceditor:visible:eq(0)").focus();
27
            }
27
        });
28
         });
29
28
30
        /* On page load, check for location.hash in the page URL */
29
        /* On page load, check for location.hash in the page URL */
30
        /* If present the location hash will be used to activate the correct tab */
31
        var hash = location.hash;
31
        var hash = location.hash;
32
        var hashPieces = hash.split('?');
32
        var hashPieces = hash.split('?');
33
        if( hashPieces[0] !== "" ){
33
        if( hashPieces[0] !== "" ){
34
            var activeTab = $("[href='" + hashPieces[0] + "']");
34
            selectTab( hashPieces[0] );
35
            selectTab(activeTab);
36
            window.scrollTo( 0, 0 );
35
            window.scrollTo( 0, 0 );
37
        }
36
        }
38
37
39
        $( "ul.sortable_field", tabs ).sortable();
38
        $( "ul.sortable_field", "#authoritytabs" ).sortable();
40
        $( "ul.sortable_subfield", tabs ).sortable();
39
        $( "ul.sortable_subfield", "#authoritytabs" ).sortable();
40
41
        Sticky = $("#toolbar");
41
        Sticky = $("#toolbar");
42
        Sticky.hcSticky({
42
        Sticky.hcSticky({
43
            stickTo: ".main",
43
            stickTo: ".main",
Lines 56-65 Link Here
56
            }
56
            }
57
            return false;
57
            return false;
58
        });
58
        });
59
        $(".toolbar-tabs a").on("click",function(e){
60
            e.preventDefault();
61
            selectTab( $(this ) );
62
        });
63
59
64
        $(".tag_anchor").on("click", function(e){
60
        $(".tag_anchor").on("click", function(e){
65
            e.preventDefault();
61
            e.preventDefault();
Lines 81-90 Link Here
81
    });
77
    });
82
78
83
    function selectTab( tablink ){
79
    function selectTab( tablink ){
80
        let a = $("a[href='" + tablink + "']");
84
        $(".toolbar-tabs li").removeClass("selected");
81
        $(".toolbar-tabs li").removeClass("selected");
85
        tablink.parent().addClass("selected");
82
        a.tab("show").parent().addClass("selected");
86
        var tabid = tablink.data("tabid");
83
        var tabid = a.data("tabid");
87
        $('#authoritytabs').selectTabByID("#tab" + tabid + "XX");
88
        $(".tag_anchors").removeClass("tab_selected").hide();
84
        $(".tag_anchors").removeClass("tab_selected").hide();
89
        $(".tag_anchors_" + tabid ).addClass("tab_selected").show();
85
        $(".tag_anchors_" + tabid ).addClass("tab_selected").show();
90
    }
86
    }
Lines 330-343 Link Here
330
                        </div>
326
                        </div>
331
                        <div class="toolbar-tabs-container">
327
                        <div class="toolbar-tabs-container">
332
                            [% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %]
328
                            [% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %]
333
                                <ul class="toolbar-tabs">
329
                                <ul class="toolbar-tabs" role="tablist">
334
                                    [%- FOREACH BIG_LOO IN BIG_LOOP -%]
330
                                    [%- FOREACH BIG_LOO IN BIG_LOOP -%]
335
                                        [% IF loop.first %]
331
                                        [% IF loop.first %]
336
                                            <li class="selected">
332
                                            <li role="presentation" class="active selected">
337
                                        [% ELSE %]
333
                                        [% ELSE %]
338
                                            <li>
334
                                            <li role="presentation">
339
                                        [% END %]
335
                                        [% END %]
340
                                            <a data-tabid="[% BIG_LOO.number | html %]" href="#tab[% BIG_LOO.number | html %]XX">[% BIG_LOO.number | html %]</a>
336
                                            <a data-tabid="[% BIG_LOO.number | html %]" href="#tab[% BIG_LOO.number | html %]XX" aria-controls="#tab[% BIG_LOO.number | html %]XX" role="tab" data-toggle="tab">[% BIG_LOO.number | html %]</a>
341
                                        </li>
337
                                        </li>
342
                                    [%- END -%]
338
                                    [%- END -%]
343
                                </ul>
339
                                </ul>
Lines 364-583 Link Here
364
                        [% END %]
360
                        [% END %]
365
                    </div>
361
                    </div>
366
                    <div id="authoritytabs" class="toptabs numbered">
362
                    <div id="authoritytabs" class="toptabs numbered">
367
                        <ul>
363
                        <div class="tab-content">
368
                            [% FOREACH BIG_LOO IN BIG_LOOP %]
364
                            [% FOREACH BIG_LOO IN BIG_LOOP %]
369
                                <li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li>
365
                                [% IF loop.first %]
370
                            [% END %]
366
                                    <div id="tab[% BIG_LOO.number | html %]XX" role="tabpanel" class="tab-pane active">
371
                        </ul>
367
                                [% ELSE %]
372
368
                                    <div id="tab[% BIG_LOO.number | html %]XX" role="tabpanel" class="tab-pane">
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 %]
369
                                [% END %]
378
                                [% previous = "" %]
370
                                    [% IF ( BIG_LOOP.size > 1 ) %]
379
                                [% FOREACH innerloo IN BIG_LOO.innerloop %]
371
                                        <h2>Section [% BIG_LOO.number | html %]</h2>
380
                                    [% IF ( innerloo.tag ) %]
372
                                    [% END %]
381
                                        [% IF innerloo.tag != previous %]
373
                                    [% previous = "" %]
382
                                            [% IF previous != "" %]
374
                                    [% FOREACH innerloo IN BIG_LOO.innerloop %]
383
                                                </ul>
375
                                        [% IF ( innerloo.tag ) %]
376
                                            [% IF innerloo.tag != previous %]
377
                                                [% IF previous != "" %]
378
                                                    </ul>
379
                                                [% END %]
380
                                                [% previous = innerloo.tag %]
381
                                                [% IF ( innerloo.repeatable ) %]
382
                                                    <ul class="sortable_field">
383
                                                [% ELSE %]
384
                                                    <ul>
385
                                                [% END %]
384
                                            [% END %]
386
                                            [% END %]
385
                                            [% previous = innerloo.tag %]
387
386
                                            [% IF ( innerloo.repeatable ) %]
388
                                            [% IF ( innerloo.repeatable ) %]
387
                                                <ul class="sortable_field">
389
                                                <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
388
                                            [% ELSE %]
390
                                            [% ELSE %]
389
                                                <ul>
391
                                                <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
390
                                            [% END %]
392
                                            [% END %]
391
                                        [% END %]
392
393
393
                                        [% IF ( innerloo.repeatable ) %]
394
                                                <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
394
                                            <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
395
                                                    [% UNLESS hide_marc %]
395
                                        [% ELSE %]
396
                                                        [% IF advancedMARCEditor %]
396
                                            <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
397
                                                            <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>
397
                                        [% END %]
398
                                                        [% ELSE %]
398
399
                                                            <span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
399
                                            <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
400
                                                        [% END %]
400
                                                [% UNLESS hide_marc %]
401
                                                        [% IF ( innerloo.fixedfield ) %]
401
                                                    [% IF advancedMARCEditor %]
402
                                                            <input type="text"
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
                                                                tabindex="1"
404
                                                                class="indicator flat"
405
                                                                style="display:none;"
406
                                                                name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
407
                                                                size="1"
408
                                                                maxlength="1"
409
                                                                value="[% innerloo.indicator1 | html %]" />
410
                                                            <input type="text"
411
                                                                tabindex="1"
412
                                                                class="indicator flat"
413
                                                                style="display:none;"
414
                                                                name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
415
                                                                size="1"
416
                                                                maxlength="1"
417
                                                                value="[% innerloo.indicator2 | html %]" />
418
                                                        [% ELSE %]
419
                                                            <input type="text"
420
                                                                tabindex="1"
421
                                                                class="indicator flat"
422
                                                                name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
423
                                                                size="1"
424
                                                                maxlength="1"
425
                                                                value="[% innerloo.indicator1 | html %]" />
426
                                                            <input type="text"
427
                                                                tabindex="1"
428
                                                                class="indicator flat"
429
                                                                name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
430
                                                                size="1"
431
                                                                maxlength="1"
432
                                                                value="[% innerloo.indicator2 | html %]" />
433
                                                        [% END # /IF ( innerloo.fixedfield ) %] -
403
                                                    [% ELSE %]
434
                                                    [% ELSE %]
404
                                                        <span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
435
                                                        [% IF ( innerloo.fixedfield ) %]
436
                                                            <input type="hidden"
437
                                                                tabindex="1"
438
                                                                name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
439
                                                                value="[% innerloo.indicator1 | html %]" />
440
                                                            <input type="hidden"
441
                                                                tabindex="1"
442
                                                                name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
443
                                                                value="[% innerloo.indicator2 | html %]" />
444
                                                        [% ELSE %]
445
                                                            <input type="hidden"
446
                                                                tabindex="1"
447
                                                                name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
448
                                                                value="[% innerloo.indicator1 | html %]" />
449
                                                            <input type="hidden"
450
                                                                tabindex="1"
451
                                                                name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
452
                                                                value="[% innerloo.indicator2 | html %]" />
453
                                                        [% END # /IF ( innerloo.fixedfield ) %]
454
                                                    [% END # /UNLESS hide_marc %]
455
456
                                                    [% UNLESS advancedMARCEditor %]
457
                                                        <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>
405
                                                    [% END %]
458
                                                    [% END %]
406
                                                    [% IF ( innerloo.fixedfield ) %]
459
                                                    <span class="field_controls">
407
                                                        <input type="text"
460
                                                        [% IF ( innerloo.repeatable ) %]
408
                                                            tabindex="1"
461
                                                            <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">
409
                                                            class="indicator flat"
462
                                                                <img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this Tag" />
410
                                                            style="display:none;"
463
                                                            </a>
411
                                                            name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
464
                                                        [% END %]
412
                                                            size="1"
465
                                                        <a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Delete this Tag">
413
                                                            maxlength="1"
466
                                                            <img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this Tag" />
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>
467
                                                        </a>
469
                                                    [% END %]
468
                                                    </span> <!-- /.field_controls -->
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">
469
                                                </div> <!-- /div.tag_title -->
471
                                                        <img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this Tag" />
470
472
                                                    </a>
471
                                                <ul class="sortable_subfield">
473
                                                </span> <!-- /.field_controls -->
472
                                                    [% FOREACH subfield_loo IN innerloo.subfield_loop %]
474
                                            </div> <!-- /div.tag_title -->
473
                                                        <!--  One line on the marc editor -->
475
474
                                                        <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
476
                                            <ul class="sortable_subfield">
475
477
                                                [% FOREACH subfield_loo IN innerloo.subfield_loop %]
476
                                                            [% UNLESS hide_marc %]
478
                                                    <!--  One line on the marc editor -->
477
                                                                <div class="subfieldcode">
479
                                                    <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
478
                                                                    <input type="text"
480
479
                                                                        title="[% subfield_loo.marc_lib | $raw %]"
481
                                                        [% UNLESS hide_marc %]
480
                                                                        style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
482
                                                            <div class="subfieldcode">
481
                                                                        name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
483
                                                                <input type="text"
482
                                                                        value="[% subfield_loo.subfield | html %]"
484
                                                                    title="[% subfield_loo.marc_lib | $raw %]"
483
                                                                        size="1"
485
                                                                    style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
484
                                                                        maxlength="1"
485
                                                                        class="flat"
486
                                                                        tabindex="0" />
487
                                                                </div>
488
                                                            [% ELSE %]
489
                                                                <input type="hidden"
486
                                                                    name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
490
                                                                    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 %]"
491
                                                                    value="[% subfield_loo.subfield | html %]" />
488
                                                                    size="1"
492
                                                            [% END # /UNLESS hide_marc %]
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
493
499
                                                        [% UNLESS advancedMARCEditor %]
494
                                                            [% UNLESS advancedMARCEditor %]
500
                                                            [% IF ( subfield_loo.mandatory ) %]
495
                                                                [% IF ( subfield_loo.mandatory ) %]
501
                                                                <div class="subfield subfield_mandatory">
496
                                                                    <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 %]
497
                                                                [% 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">
498
                                                                    <div class="subfield">
509
                                                                [% END %]
499
                                                                [% END %]
510
                                                                    [% subfield_loo.marc_lib | $raw %]
500
                                                                    [% IF ( subfield_loo.fixedfield ) %]
511
                                                                </label>
501
                                                                        <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">
512
                                                            </div> <!-- /.subfield -->
502
                                                                    [% ELSE %]
513
                                                        [% END # UNLESS advancedMARCEditor %]
503
                                                                        <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield">
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 %]
504
                                                                    [% END %]
530
                                                                </select>
505
                                                                        [% subfield_loo.marc_lib | $raw %]
531
                                                            [% ELSIF ( mv.type == 'text1' ) %]
506
                                                                    </label>
532
                                                                <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
507
                                                                </div> <!-- /.subfield -->
533
                                                            [% ELSIF ( mv.type == 'text2' ) %]
508
                                                            [% END # UNLESS advancedMARCEditor %]
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" />
509
535
                                                            [% ELSIF ( mv.type == 'text' ) %]
510
                                                            [% SET mv = subfield_loo.marc_value %]
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 -%]" />
511
                                                            <div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor">
537
                                                            [% ELSIF ( mv.type == 'textarea' ) %]
512
                                                                [% IF ( mv.type == 'select' ) %]
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>
513
                                                                    [% IF mv.category AND CAN_user_parameters_manage_auth_values %]
539
                                                            [% ELSIF ( mv.type == 'hidden' ) %]
514
                                                                        <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]">
540
                                                                <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
515
                                                                    [% ELSE %]
541
                                                            [% ELSIF ( mv.type == 'hidden_simple' ) %]
516
                                                                        <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
542
                                                                <input type="hidden" name="[%- mv.name | html -%]" />
517
                                                                    [% END %]
543
                                                            [% END # /IF mv.type %]
518
                                                                        [% FOREACH aval IN mv.values %]
544
                                                        </div> <!-- /.field_marceditor -->
519
                                                                            [% IF aval == mv.default %]
545
520
                                                                                <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
546
                                                        [% IF ( subfield_loo.mandatory ) %]
521
                                                                            [% ELSE %]
547
                                                            <div class="subfield_loop_mandatory">
522
                                                                                <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
548
                                                                <span class="required">Required</span>
523
                                                                            [% END %]
549
                                                            </div>
524
                                                                        [% END %]
550
                                                        [% END %]
525
                                                                    </select>
526
                                                                [% ELSIF ( mv.type == 'text1' ) %]
527
                                                                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
528
                                                                [% ELSIF ( mv.type == 'text2' ) %]
529
                                                                    <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" />
530
                                                                [% ELSIF ( mv.type == 'text' ) %]
531
                                                                    <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 -%]" />
532
                                                                [% ELSIF ( mv.type == 'textarea' ) %]
533
                                                                    <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>
534
                                                                [% ELSIF ( mv.type == 'hidden' ) %]
535
                                                                    <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
536
                                                                [% ELSIF ( mv.type == 'hidden_simple' ) %]
537
                                                                    <input type="hidden" name="[%- mv.name | html -%]" />
538
                                                                [% END # /IF mv.type %]
539
                                                            </div> <!-- /.field_marceditor -->
551
540
552
                                                        <div class="subfield_controls">
541
                                                            [% IF ( subfield_loo.mandatory ) %]
553
                                                            [% IF ( mv.type == 'text1' ) %]
542
                                                                <div class="subfield_loop_mandatory">
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>
543
                                                                    <span class="required">Required</span>
555
                                                            [% ELSIF ( mv.type == 'text2' ) %]
544
                                                                </div>
556
                                                                [% IF mv.noclick %]
545
                                                            [% END %]
557
                                                                    <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
546
558
                                                                [% ELSE %]
547
                                                            <div class="subfield_controls">
559
                                                                    <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
548
                                                                [% IF ( mv.type == 'text1' ) %]
560
                                                                [% END %]
549
                                                                    <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>
561
                                                                [% mv.javascript | $raw %]
550
                                                                [% ELSIF ( mv.type == 'text2' ) %]
562
                                                            [% END #/IF ( mv.type == 'text1' ) %]
551
                                                                    [% IF mv.noclick %]
563
                                                            [% IF ( subfield_loo.repeatable ) %]
552
                                                                        <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
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;">
553
                                                                    [% ELSE %]
565
                                                                    <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
554
                                                                        <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
566
                                                                </a>
555
                                                                    [% END %]
567
                                                                <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;">
556
                                                                    [% mv.javascript | $raw %]
568
                                                                    <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
557
                                                                [% END #/IF ( mv.type == 'text1' ) %]
569
                                                                </a>
558
                                                                [% IF ( subfield_loo.repeatable ) %]
570
                                                            [% END # /IF ( subfield_loo.repeatable ) %]
559
                                                                    <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;">
571
                                                        </div> <!-- /.subfield_controls -->
560
                                                                        <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
572
                                                    </li> <!-- /.subfield_line -->
561
                                                                    </a>
573
                                                [% END # /FOREACH subfield_loo %]
562
                                                                    <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;">
574
                                            </ul> <!-- /.sortable_subfield -->
563
                                                                        <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
575
                                        </li> <!-- /.tag -->
564
                                                                    </a>
576
                                    [% END # /IF ( innerloo.tag ) %]
565
                                                                [% END # /IF ( subfield_loo.repeatable ) %]
577
                                [% END # /FOREACH innerloo %]
566
                                                            </div> <!-- /.subfield_controls -->
578
                                </ul> <!-- /.sortable_field -->
567
                                                        </li> <!-- /.subfield_line -->
579
                            </div> <!-- /#tab[% BIG_LOO.number | html %]XX -->
568
                                                    [% END # /FOREACH subfield_loo %]
580
                        [% END #/FOREACH BIG_LOO %]
569
                                                </ul> <!-- /.sortable_subfield -->
570
                                            </li> <!-- /.tag -->
571
                                        [% END # /IF ( innerloo.tag ) %]
572
                                    [% END # /FOREACH innerloo %]
573
                                    </ul> <!-- /.sortable_field -->
574
                                </div> <!-- /#tab[% BIG_LOO.number | html %]XX -->
575
                            [% END #/FOREACH BIG_LOO %]
576
                        </div> <!-- /.tab-content -->
581
                    </div> <!-- /#authoritytabs -->
577
                    </div> <!-- /#authoritytabs -->
582
578
583
                    <div name="hidden" id="hidden" class="tab">
579
                    <div name="hidden" id="hidden" class="tab">
584
- 

Return to bug 31678