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 (-216 / +216 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-64 Link Here
56
            }
56
            }
57
            return false;
57
            return false;
58
        });
58
        });
59
59
        $(".toolbar-tabs a").on("click",function(e){
60
        $(".toolbar-tabs a").on("click",function(e){
60
            e.preventDefault();
61
            e.preventDefault();
61
            selectTab( $(this ) );
62
            selectTab( this.hash );
62
        });
63
        });
63
64
64
        $(".tag_anchor").on("click", function(e){
65
        $(".tag_anchor").on("click", function(e){
Lines 81-90 Link Here
81
    });
82
    });
82
83
83
    function selectTab( tablink ){
84
    function selectTab( tablink ){
85
        let a = $("a[href='" + tablink + "']");
84
        $(".toolbar-tabs li").removeClass("selected");
86
        $(".toolbar-tabs li").removeClass("selected");
85
        tablink.parent().addClass("selected");
87
        a.tab("show").parent().addClass("selected");
86
        var tabid = tablink.data("tabid");
88
        var tabid = a.data("tabid");
87
        $('#authoritytabs').selectTabByID("#tab" + tabid + "XX");
88
        $(".tag_anchors").removeClass("tab_selected").hide();
89
        $(".tag_anchors").removeClass("tab_selected").hide();
89
        $(".tag_anchors_" + tabid ).addClass("tab_selected").show();
90
        $(".tag_anchors_" + tabid ).addClass("tab_selected").show();
90
    }
91
    }
Lines 330-343 Link Here
330
                        </div>
331
                        </div>
331
                        <div class="toolbar-tabs-container">
332
                        <div class="toolbar-tabs-container">
332
                            [% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %]
333
                            [% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %]
333
                                <ul class="toolbar-tabs">
334
                                <ul class="toolbar-tabs" role="tablist">
334
                                    [%- FOREACH BIG_LOO IN BIG_LOOP -%]
335
                                    [%- FOREACH BIG_LOO IN BIG_LOOP -%]
335
                                        [% IF loop.first %]
336
                                        [% IF loop.first %]
336
                                            <li class="selected">
337
                                            <li role="presentation" class="active selected">
337
                                        [% ELSE %]
338
                                        [% ELSE %]
338
                                            <li>
339
                                            <li role="presentation">
339
                                        [% END %]
340
                                        [% END %]
340
                                            <a data-tabid="[% BIG_LOO.number | html %]" href="#tab[% BIG_LOO.number | html %]XX">[% BIG_LOO.number | html %]</a>
341
                                            <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>
342
                                        </li>
342
                                    [%- END -%]
343
                                    [%- END -%]
343
                                </ul>
344
                                </ul>
Lines 364-583 Link Here
364
                        [% END %]
365
                        [% END %]
365
                    </div>
366
                    </div>
366
                    <div id="authoritytabs" class="toptabs numbered">
367
                    <div id="authoritytabs" class="toptabs numbered">
367
                        <ul>
368
                        <div class="tab-content">
368
                            [% FOREACH BIG_LOO IN BIG_LOOP %]
369
                            [% FOREACH BIG_LOO IN BIG_LOOP %]
369
                                <li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li>
370
                                [% IF loop.first %]
370
                            [% END %]
371
                                    <div id="tab[% BIG_LOO.number | html %]XX" role="tabpanel" class="tab-pane active">
371
                        </ul>
372
                                [% ELSE %]
372
373
                                    <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 %]
374
                                [% END %]
378
                                [% previous = "" %]
375
                                    [% IF ( BIG_LOOP.size > 1 ) %]
379
                                [% FOREACH innerloo IN BIG_LOO.innerloop %]
376
                                        <h2>Section [% BIG_LOO.number | html %]</h2>
380
                                    [% IF ( innerloo.tag ) %]
377
                                    [% END %]
381
                                        [% IF innerloo.tag != previous %]
378
                                    [% previous = "" %]
382
                                            [% IF previous != "" %]
379
                                    [% FOREACH innerloo IN BIG_LOO.innerloop %]
383
                                                </ul>
380
                                        [% IF ( innerloo.tag ) %]
381
                                            [% IF innerloo.tag != previous %]
382
                                                [% IF previous != "" %]
383
                                                    </ul>
384
                                                [% END %]
385
                                                [% previous = innerloo.tag %]
386
                                                [% IF ( innerloo.repeatable ) %]
387
                                                    <ul class="sortable_field">
388
                                                [% ELSE %]
389
                                                    <ul>
390
                                                [% END %]
384
                                            [% END %]
391
                                            [% END %]
385
                                            [% previous = innerloo.tag %]
392
386
                                            [% IF ( innerloo.repeatable ) %]
393
                                            [% IF ( innerloo.repeatable ) %]
387
                                                <ul class="sortable_field">
394
                                                <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
388
                                            [% ELSE %]
395
                                            [% ELSE %]
389
                                                <ul>
396
                                                <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
390
                                            [% END %]
397
                                            [% END %]
391
                                        [% END %]
392
393
                                        [% IF ( innerloo.repeatable ) %]
394
                                            <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
395
                                        [% ELSE %]
396
                                            <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
397
                                        [% END %]
398
398
399
                                            <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
399
                                                <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
400
                                                [% UNLESS hide_marc %]
400
                                                    [% UNLESS hide_marc %]
401
                                                    [% IF advancedMARCEditor %]
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>
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 ) %] -
403
                                                    [% ELSE %]
439
                                                    [% ELSE %]
404
                                                        <span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
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>
405
                                                    [% END %]
463
                                                    [% END %]
406
                                                    [% IF ( innerloo.fixedfield ) %]
464
                                                    <span class="field_controls">
407
                                                        <input type="text"
465
                                                        [% IF ( innerloo.repeatable ) %]
408
                                                            tabindex="1"
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">
409
                                                            class="indicator flat"
467
                                                                <img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this Tag" />
410
                                                            style="display:none;"
468
                                                            </a>
411
                                                            name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
469
                                                        [% END %]
412
                                                            size="1"
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">
413
                                                            maxlength="1"
471
                                                            <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>
472
                                                        </a>
469
                                                    [% END %]
473
                                                    </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">
474
                                                </div> <!-- /div.tag_title -->
471
                                                        <img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this Tag" />
475
472
                                                    </a>
476
                                                <ul class="sortable_subfield">
473
                                                </span> <!-- /.field_controls -->
477
                                                    [% FOREACH subfield_loo IN innerloo.subfield_loop %]
474
                                            </div> <!-- /div.tag_title -->
478
                                                        <!--  One line on the marc editor -->
475
479
                                                        <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">
480
477
                                                [% FOREACH subfield_loo IN innerloo.subfield_loop %]
481
                                                            [% UNLESS hide_marc %]
478
                                                    <!--  One line on the marc editor -->
482
                                                                <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 %]">
483
                                                                    <input type="text"
480
484
                                                                        title="[% subfield_loo.marc_lib | $raw %]"
481
                                                        [% UNLESS hide_marc %]
485
                                                                        style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
482
                                                            <div class="subfieldcode">
486
                                                                        name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
483
                                                                <input type="text"
487
                                                                        value="[% subfield_loo.subfield | html %]"
484
                                                                    title="[% subfield_loo.marc_lib | $raw %]"
488
                                                                        size="1"
485
                                                                    style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
489
                                                                        maxlength="1"
490
                                                                        class="flat"
491
                                                                        tabindex="0" />
492
                                                                </div>
493
                                                            [% ELSE %]
494
                                                                <input type="hidden"
486
                                                                    name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
495
                                                                    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 %]"
496
                                                                    value="[% subfield_loo.subfield | html %]" />
488
                                                                    size="1"
497
                                                            [% 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
498
499
                                                        [% UNLESS advancedMARCEditor %]
499
                                                            [% UNLESS advancedMARCEditor %]
500
                                                            [% IF ( subfield_loo.mandatory ) %]
500
                                                                [% IF ( subfield_loo.mandatory ) %]
501
                                                                <div class="subfield subfield_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 %]
502
                                                                [% 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">
503
                                                                    <div class="subfield">
509
                                                                [% END %]
504
                                                                [% END %]
510
                                                                    [% subfield_loo.marc_lib | $raw %]
505
                                                                    [% IF ( subfield_loo.fixedfield ) %]
511
                                                                </label>
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">
512
                                                            </div> <!-- /.subfield -->
507
                                                                    [% ELSE %]
513
                                                        [% END # UNLESS advancedMARCEditor %]
508
                                                                        <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 %]
509
                                                                    [% END %]
530
                                                                </select>
510
                                                                        [% subfield_loo.marc_lib | $raw %]
531
                                                            [% ELSIF ( mv.type == 'text1' ) %]
511
                                                                    </label>
532
                                                                <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
512
                                                                </div> <!-- /.subfield -->
533
                                                            [% ELSIF ( mv.type == 'text2' ) %]
513
                                                            [% 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" />
514
535
                                                            [% ELSIF ( mv.type == 'text' ) %]
515
                                                            [% 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 -%]" />
516
                                                            <div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor">
537
                                                            [% ELSIF ( mv.type == 'textarea' ) %]
517
                                                                [% 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>
518
                                                                    [% IF mv.category AND CAN_user_parameters_manage_auth_values %]
539
                                                            [% ELSIF ( mv.type == 'hidden' ) %]
519
                                                                        <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 -%]" />
520
                                                                    [% ELSE %]
541
                                                            [% ELSIF ( mv.type == 'hidden_simple' ) %]
521
                                                                        <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
542
                                                                <input type="hidden" name="[%- mv.name | html -%]" />
522
                                                                    [% END %]
543
                                                            [% END # /IF mv.type %]
523
                                                                        [% FOREACH aval IN mv.values %]
544
                                                        </div> <!-- /.field_marceditor -->
524
                                                                            [% IF aval == mv.default %]
545
525
                                                                                <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
546
                                                        [% IF ( subfield_loo.mandatory ) %]
526
                                                                            [% ELSE %]
547
                                                            <div class="subfield_loop_mandatory">
527
                                                                                <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
548
                                                                <span class="required">Required</span>
528
                                                                            [% END %]
549
                                                            </div>
529
                                                                        [% END %]
550
                                                        [% 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 -->
551
545
552
                                                        <div class="subfield_controls">
546
                                                            [% IF ( subfield_loo.mandatory ) %]
553
                                                            [% IF ( mv.type == 'text1' ) %]
547
                                                                <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>
548
                                                                    <span class="required">Required</span>
555
                                                            [% ELSIF ( mv.type == 'text2' ) %]
549
                                                                </div>
556
                                                                [% IF mv.noclick %]
550
                                                            [% END %]
557
                                                                    <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
551
558
                                                                [% ELSE %]
552
                                                            <div class="subfield_controls">
559
                                                                    <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
553
                                                                [% IF ( mv.type == 'text1' ) %]
560
                                                                [% END %]
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>
561
                                                                [% mv.javascript | $raw %]
555
                                                                [% ELSIF ( mv.type == 'text2' ) %]
562
                                                            [% END #/IF ( mv.type == 'text1' ) %]
556
                                                                    [% IF mv.noclick %]
563
                                                            [% IF ( subfield_loo.repeatable ) %]
557
                                                                        <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;">
558
                                                                    [% ELSE %]
565
                                                                    <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
559
                                                                        <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
566
                                                                </a>
560
                                                                    [% 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;">
561
                                                                    [% mv.javascript | $raw %]
568
                                                                    <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
562
                                                                [% END #/IF ( mv.type == 'text1' ) %]
569
                                                                </a>
563
                                                                [% IF ( subfield_loo.repeatable ) %]
570
                                                            [% END # /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;">
571
                                                        </div> <!-- /.subfield_controls -->
565
                                                                        <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
572
                                                    </li> <!-- /.subfield_line -->
566
                                                                    </a>
573
                                                [% END # /FOREACH subfield_loo %]
567
                                                                    <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 -->
568
                                                                        <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
575
                                        </li> <!-- /.tag -->
569
                                                                    </a>
576
                                    [% END # /IF ( innerloo.tag ) %]
570
                                                                [% END # /IF ( subfield_loo.repeatable ) %]
577
                                [% END # /FOREACH innerloo %]
571
                                                            </div> <!-- /.subfield_controls -->
578
                                </ul> <!-- /.sortable_field -->
572
                                                        </li> <!-- /.subfield_line -->
579
                            </div> <!-- /#tab[% BIG_LOO.number | html %]XX -->
573
                                                    [% END # /FOREACH subfield_loo %]
580
                        [% END #/FOREACH BIG_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> <!-- /.tab-content -->
581
                    </div> <!-- /#authoritytabs -->
582
                    </div> <!-- /#authoritytabs -->
582
583
583
                    <div name="hidden" id="hidden" class="tab">
584
                    <div name="hidden" id="hidden" class="tab">
584
- 

Return to bug 31678