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

(-)a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css (-15 / +15 lines)
Lines 6-13 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
Lines 223-232 a.tagnum { Link Here
223
    width: 31em;
222
    width: 31em;
224
}
223
}
225
224
226
#cat_addbiblio .field_marceditor .flatpickr_wrapper {
227
    display: none;
228
}
229
230
.mandatory_marker {
225
.mandatory_marker {
231
	color: red;
226
	color: red;
232
}
227
}
Lines 277-282 tbody tr.active td { Link Here
277
272
278
.toolbar-tabs-container {
273
.toolbar-tabs-container {
279
    margin: 3em -5px -5px -5px;
274
    margin: 3em -5px -5px -5px;
275
    width: -webkit-fill-available;
280
}
276
}
281
277
282
.toolbar-tabs {
278
.toolbar-tabs {
Lines 299-328 tbody tr.active td { Link Here
299
}
295
}
300
296
301
.toolbar-tabs li a {
297
.toolbar-tabs li a {
302
    border: 1px solid #EDF4F6;
298
    border: 1px solid #71B443;
303
    border-left: 0;
299
    border-left: 0;
304
    border-right: 1px solid #EDF4F6;
300
    background-color: #71B443;
305
    border-bottom-right-radius: 5px;
301
    border-right: 1px solid #71B443;
306
    border-bottom-left-radius: 5px;
302
    border-radius: 5px;
303
    margin: 5px;
304
    /* border-bottom-left-radius: 5px; */
307
    display: block;
305
    display: block;
306
    color: #fff;
308
    font-weight: bold;
307
    font-weight: bold;
309
    padding: .3em 1.5em;
308
    padding: .3em 1.5em;
310
    width: 100%;
309
    width: 100%;
311
}
310
}
312
311
313
.toolbar-tabs li.selected a {
312
.toolbar-tabs li.selected a {
314
    background-color: #EDF4F6;
313
    background-color: #418940;
315
    border-right: 1px solid #C3D6DB;
314
    border-right: 1px solid #418940;
316
    border-bottom: 1px solid #C3D6DB;
315
    border-bottom: 1px solid #418940;
317
    font-weight: bold;
316
    font-weight: bold;
318
}
317
}
319
318
320
.toolbar-tabs li.selected a:hover {
319
.toolbar-tabs li.selected a:hover {
321
    background-color: #EDF4F6;
320
    background-color: #418940;
322
}
321
}
323
322
324
.toolbar-tabs li a:hover {
323
.toolbar-tabs li a:hover {
325
    background-color: #F4F8F9;
324
    background-color: #418940;
325
    text-decoration: none;
326
}
326
}
327
327
328
.toolbar-tabs li:first-child a {
328
.toolbar-tabs li:first-child a {
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-41 / +59 lines)
Lines 3-9 Link Here
3
@import "flatpickr";
3
@import "flatpickr";
4
4
5
::selection {
5
::selection {
6
    background: #538200;
6
    background: #418940;
7
    color: #fff;
7
    color: #fff;
8
}
8
}
9
9
Lines 129-135 a { Link Here
129
129
130
    &.close {
130
    &.close {
131
        &:hover {
131
        &:hover {
132
            //color: #538200;
132
            //color: #418940;
133
        }
133
        }
134
    }
134
    }
135
135
Lines 229-238 a { Link Here
229
    }
229
    }
230
}
230
}
231
231
232
#addauth{
233
    color: #fff;
234
    background-color: #71B443;
235
}
236
232
237
#resetZ3950Search{
233
#resetZ3950Search{
238
    font-size: 110%;
234
    font-size: 110%;
Lines 750-756 cite { Link Here
750
input,
746
input,
751
textarea {
747
textarea {
752
    &:focus {
748
    &:focus {
753
        border-color: #538200;
749
        border-color: #418940;
754
        border-radius: 4px;
750
        border-radius: 4px;
755
    }
751
    }
756
}
752
}
Lines 884-889 label, Link Here
884
    width: 25%;
880
    width: 25%;
885
}
881
}
886
882
883
.col-sm-6 {
884
    width: 100%;
885
}
886
887
#area-news{
887
#area-news{
888
    background-color: #FFF;
888
    background-color: #FFF;
889
    color: #696969;
889
    color: #696969;
Lines 1983-1989 div { Link Here
1983
1983
1984
            &:hover, &:active{
1984
            &:hover, &:active{
1985
                font-weight: bold;
1985
                font-weight: bold;
1986
                color: #418910;
1986
                color: #418940;
1987
            }
1987
            }
1988
        }
1988
        }
1989
    }
1989
    }
Lines 2127-2133 div { Link Here
2127
2127
2128
#reserves,
2128
#reserves,
2129
#checkouts {
2129
#checkouts {
2130
    //border-top: 3px solid #418910;
2130
    //border-top: 3px solid #418940;
2131
    padding: 1em;
2131
    padding: 1em;
2132
}
2132
}
2133
2133
Lines 2495-2502 dd { Link Here
2495
.dropdown-menu {
2495
.dropdown-menu {
2496
    position: absolute;
2496
    position: absolute;
2497
    top: 50px;
2497
    top: 50px;
2498
    background-color: #F3F4F4;
2498
    li {
2499
    li {
2499
        list-style-type: none;
2500
        list-style-type: none;
2501
2502
        a{
2503
            color: #000;
2504
            
2505
            &:hover{
2506
                background-color: #F3F4F4;
2507
                color: #000;
2508
                text-decoration: underline;
2509
                background-image: none;
2510
            }
2511
        }
2500
    }
2512
    }
2501
2513
2502
}
2514
}
Lines 2654-2659 i { Link Here
2654
    border-radius: 3px;
2666
    border-radius: 3px;
2655
    box-shadow: 1px 1px 2px 0 rgba(102, 102, 102, .5);
2667
    box-shadow: 1px 1px 2px 0 rgba(102, 102, 102, .5);
2656
    margin: .5em;
2668
    margin: .5em;
2669
    width: fit-content;
2657
    padding: .5em;
2670
    padding: .5em;
2658
}
2671
}
2659
2672
Lines 2827-2833 i { Link Here
2827
        //border: 1px solid #BCBCBC;
2840
        //border: 1px solid #BCBCBC;
2828
        color: #000000;
2841
        color: #000000;
2829
        text-align: center;
2842
        text-align: center;
2830
        background-color: #fff;
2843
        background-color: transparent;
2831
      //  box-shadow: 8px 8px 12px rgba(170, 170, 170, 0.356);
2844
      //  box-shadow: 8px 8px 12px rgba(170, 170, 170, 0.356);
2832
        
2845
        
2833
2846
Lines 2963-2969 i { Link Here
2963
2976
2964
                &:hover {
2977
                &:hover {
2965
                    background-color: #FFFFFF;
2978
                    background-color: #FFFFFF;
2966
                    color: #538200;
2979
                    color: #418940;
2967
                }
2980
                }
2968
            }
2981
            }
2969
        }
2982
        }
Lines 3096-3101 li { Link Here
3096
#searchresults {
3109
#searchresults {
3097
    background-color: #fff;
3110
    background-color: #fff;
3098
    margin-top: 20px;
3111
    margin-top: 20px;
3112
    min-width: 100%;
3113
    width: fit-content;
3099
  //  overflow: auto;
3114
  //  overflow: auto;
3100
    box-shadow: 8px 8px 12px rgba(170, 170, 170, 0.356);
3115
    box-shadow: 8px 8px 12px rgba(170, 170, 170, 0.356);
3101
    padding: 20px;
3116
    padding: 20px;
Lines 3359-3365 td { Link Here
3359
    }
3374
    }
3360
}
3375
}
3361
3376
3362
#lientype, #add, #merge-patrons, #btn_batchremove, #doedit, #show_invoice_adjustment, #cancel_invoice_adjustment, #show_active_vendors, #add-contact, #multi_hold_submit, #show-picture-upload, #edit_suggester, #expand_all, #collapse_all, #hide_inactive, #show_inactive, #addnewmessageLabel, #results_batch_ops, #highlight_toggle_off, #selectall, #clearall, #highlight_toggle_on, #addColumn, #remove_from_cart, #place_hold, #add_to_list, #batch_modify, #batch_delete, #delColumn, #edit_manager, #addauth, #unset, #UncheckAll, #check-all, #results_batch_ops #uncheck-all, #frameworkactions, #authtypeactions, #modify_sru_fields, #cartsubmit, #z3950submit, #add_manual_restriction{
3377
#lientype, #add, #merge-patrons, #btn_batchremove, #doedit, #show_invoice_adjustment, #cancel_invoice_adjustment, #show_active_vendors, #add-contact, #multi_hold_submit, #show-picture-upload, #edit_suggester, #expand_all, #collapse_all, #hide_inactive, #show_inactive, #addnewmessageLabel, #results_batch_ops, #highlight_toggle_off, #selectall, #clearall, #highlight_toggle_on, #addColumn, #remove_from_cart, #place_hold, #add_to_list, #batch_modify, #batch_delete, #delColumn, #edit_manager, #unset, #UncheckAll, #check-all, #results_batch_ops #uncheck-all, #frameworkactions, #authtypeactions, #modify_sru_fields, #cartsubmit, #add_manual_restriction{
3363
    color: #71B443;
3378
    color: #71B443;
3364
    padding: .3em;
3379
    padding: .3em;
3365
    border: none;
3380
    border: none;
Lines 3824-3830 td { Link Here
3824
.ui-widget-content {
3839
.ui-widget-content {
3825
    background: #FFFFFF none;
3840
    background: #FFFFFF none;
3826
    border-radius: 4px;
3841
    border-radius: 4px;
3827
    border: 3px solid #538200;
3842
    border: 3px solid #418940;
3828
    color: #222222;
3843
    color: #222222;
3829
}
3844
}
3830
3845
Lines 3950-3956 td { Link Here
3950
    .ui-tabs-panel {
3965
    .ui-tabs-panel {
3951
        background: #FFF none;
3966
        background: #FFF none;
3952
        border-radius: 4px;
3967
        border-radius: 4px;
3953
        border: 3px solid #538200;
3968
        border: 3px solid #418940;
3954
3969
3955
        fieldset{
3970
        fieldset{
3956
            box-shadow: none;
3971
            box-shadow: none;
Lines 3965-3971 td { Link Here
3965
            border-radius: 4px 4px 0 0;
3980
            border-radius: 4px 4px 0 0;
3966
3981
3967
            &.ui-tabs-active, &.ui-state-hover {
3982
            &.ui-tabs-active, &.ui-state-hover {
3968
                background-color: #418910;
3983
                background-color: #418940;
3969
                border-radius: 4px 4px 0 0;
3984
                border-radius: 4px 4px 0 0;
3970
                border: none;
3985
                border: none;
3971
                border-bottom-width: 0;
3986
                border-bottom-width: 0;
Lines 3999-4009 td { Link Here
3999
4014
4000
    .ui-state-hover {
4015
    .ui-state-hover {
4001
        a {
4016
        a {
4002
            color: #538200;
4017
            color: #418940;
4003
4018
4004
            &:link,
4019
            &:link,
4005
            &:visited {
4020
            &:visited {
4006
                color: #538200;
4021
                color: #418940;
4007
            }
4022
            }
4008
        }
4023
        }
4009
    }
4024
    }
Lines 4133-4139 td { Link Here
4133
                font-weight: normal;
4148
                font-weight: normal;
4134
                padding-bottom: 1px;
4149
                padding-bottom: 1px;
4135
4150
4136
                background-color: #418910;
4151
                background-color: #418940;
4137
                border: none;
4152
                border: none;
4138
                border-bottom-width: 0;
4153
                border-bottom-width: 0;
4139
                //padding-bottom: 0;
4154
                //padding-bottom: 0;
Lines 4159-4165 td { Link Here
4159
                    //background-color: #EDF4F5;
4174
                    //background-color: #EDF4F5;
4160
                    border-top-left-radius: 4px;
4175
                    border-top-left-radius: 4px;
4161
                    border-top-right-radius: 4px;
4176
                    border-top-right-radius: 4px;
4162
                    //color: #538200;
4177
                    //color: #418940;
4163
                }
4178
                }
4164
            }
4179
            }
4165
        }
4180
        }
Lines 4167-4173 td { Link Here
4167
4182
4168
    .tabs-container {
4183
    .tabs-container {
4169
        background: none repeat scroll 0 0 transparent;
4184
        background: none repeat scroll 0 0 transparent;
4170
        border: 3px solid #418910;
4185
        border: 3px solid #418940;
4171
        border-radius: 4px;
4186
        border-radius: 4px;
4172
        color: #222222;
4187
        color: #222222;
4173
        display: block;
4188
        display: block;
Lines 4180-4186 td { Link Here
4180
        .ui-tabs-panel {
4195
        .ui-tabs-panel {
4181
            background: #FFF none;
4196
            background: #FFF none;
4182
            border-radius: 4px;
4197
            border-radius: 4px;
4183
            border: 3px solid #538200;
4198
            border: 3px solid #418940;
4184
4199
4185
            fieldset{
4200
            fieldset{
4186
                box-shadow: none;
4201
                box-shadow: none;
Lines 4839-4848 nav { Link Here
4839
4854
4840
            &:hover, &:active{
4855
            &:hover, &:active{
4841
                background-color: #352C2E;
4856
                background-color: #352C2E;
4842
                text-decoration: underline;
4857
                border-bottom: 1px 5px #fff;
4858
                color: #fff;
4843
            }
4859
            }
4844
        }
4860
        }
4845
    }
4861
    }
4862
4863
    ul{
4864
        background-color: #352C2E;
4865
    }
4846
}
4866
}
4847
4867
4848
4868
Lines 4864-4886 nav { Link Here
4864
}
4884
}
4865
4885
4866
.loggedinusername{
4886
.loggedinusername{
4867
    font-size: 0.85em;
4887
        /* font-size: 0.85em; */
4868
    font-weight: normal;
4888
    /* font-weight: normal; */
4869
    //position: absolute;
4889
    /* position: relative; */
4870
    //right: 0px;
4890
    /* left: 135px; */
4871
   // white-space: pre;
4872
    //top: -10px;
4873
    //height: 20px;
4874
    //line-height: normal;
4875
    //padding-top: 10px;
4876
    //padding-right: 10px;
4877
    //width: 100%;
4878
    position: relative;
4879
    left: 135px;
4880
    bottom: 5px;
4891
    bottom: 5px;
4892
    /* height: 20px; */
4893
    /* width: 100%; */
4894
    text-decoration: none;
4895
    position: relative;
4896
    float: right;
4897
    right: 0px;
4881
    height: 20px;
4898
    height: 20px;
4899
    /* top: 10px; */
4882
    width: 100%;
4900
    width: 100%;
4883
    text-decoration: none;
4884
}
4901
}
4885
4902
4886
.logged-in-branch-name{
4903
.logged-in-branch-name{
Lines 4981-4987 button, Link Here
4981
        white-space: nowrap;
4998
        white-space: nowrap;
4982
        vertical-align: middle;
4999
        vertical-align: middle;
4983
        touch-action: manipulation;
5000
        touch-action: manipulation;
4984
        width: 90px;
5001
        min-width: 90px;
5002
        width: fit-content;
4985
        cursor: pointer;
5003
        cursor: pointer;
4986
        background-image: none;
5004
        background-image: none;
4987
        padding: 6px 12px;
5005
        padding: 6px 12px;
Lines 5435-5441 code { Link Here
5435
 /*   background-color: #FFF;
5453
 /*   background-color: #FFF;
5436
    border: 1px solid #bfd9b9;
5454
    border: 1px solid #bfd9b9;
5437
    border-top-width: 0;*/
5455
    border-top-width: 0;*/
5438
    border: 3px solid #538200;
5456
    border: 3px solid #418940;
5439
    border-radius: 4px;
5457
    border-radius: 4px;
5440
    overflow: auto;
5458
    overflow: auto;
5441
    //border-top-width: 0;
5459
    //border-top-width: 0;
Lines 5454-5462 code { Link Here
5454
            padding: .5em 1em;
5472
            padding: .5em 1em;
5455
5473
5456
            &:hover {
5474
            &:hover {
5457
                background-color: #538200;
5475
                background-color: #418940;
5458
                border-radius: 4px 4px 0 0;
5476
                border-radius: 4px 4px 0 0;
5459
                border: 1px solid #538200;
5477
                border: 1px solid #418940;
5460
                text-decoration: none;
5478
                text-decoration: none;
5461
                color: #fff;
5479
                color: #fff;
5462
            }
5480
            }
Lines 5466-5472 code { Link Here
5466
            a,
5484
            a,
5467
            a:hover,
5485
            a:hover,
5468
            a:focus {
5486
            a:focus {
5469
                background-color: #538200;
5487
                background-color: #418940;
5470
                border-radius: 4px 4px 0 0;
5488
                border-radius: 4px 4px 0 0;
5471
                color: #fff;
5489
                color: #fff;
5472
                //border: none;
5490
                //border: none;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-search.inc (-3 / +4 lines)
Lines 6-12 Link Here
6
        <form action="/cgi-bin/koha/admin/aqbudgets.pl" method="post">
6
        <form action="/cgi-bin/koha/admin/aqbudgets.pl" method="post">
7
            <input class="query focus" type="text" name="filter_budgetname" id="filter_budgetname" value="[% filter_budgetname | html %]" style="width:150px" placeholder="Fund code" />
7
            <input class="query focus" type="text" name="filter_budgetname" id="filter_budgetname" value="[% filter_budgetname | html %]" style="width:150px" placeholder="Fund code" />
8
8
9
            <select name="filter_budgetbranch" id="filter_budgetbranch" style="width:10em;position: relative;left: 170px;bottom: 3px;">
9
            <select name="filter_budgetbranch" id="filter_budgetbranch" class="focus" style="width:10em;position: relative;left: 170px;bottom: 3px;">
10
                <option disabled selected hidden>Library:</option>
10
                <option disabled selected hidden>Library:</option>
11
                    [% FOREACH branchloo IN Branches.all( selected => selected_branchcode ) %]
11
                    [% FOREACH branchloo IN Branches.all( selected => selected_branchcode ) %]
12
                        [% IF branchloo.selected %]
12
                        [% IF branchloo.selected %]
Lines 32-38 Link Here
32
32
33
        <span id="button_1" class="buttonsearch active">Search funds</span>
33
        <span id="button_1" class="buttonsearch active">Search funds</span>
34
        <span id="button_2" class="buttonsearch">Check out</span>
34
        <span id="button_2" class="buttonsearch">Check out</span>
35
        <span id="button_3" class="buttonsearch"Search catalog</span>
35
        <span id="button_3" class="buttonsearch">Search catalog</span>
36
    </ul>
36
    </ul>
37
</div>
37
</div>
38
38
Lines 71-77 Link Here
71
        }
71
        }
72
72
73
        for (var i = inputssearch.length - 1; i >= 0; i--) {
73
        for (var i = inputssearch.length - 1; i >= 0; i--) {
74
            inputssearch[i].classList.remove('focus');
75
74
76
            if (elem == iconssearch[i]){
75
            if (elem == iconssearch[i]){
77
                inputssearch[i].classList.add('focus');
76
                inputssearch[i].classList.add('focus');
Lines 110-113 Link Here
110
109
111
</script>
110
</script>
112
111
112
<!-- /header_search -->
113
113
<!-- End Suggestions Resident Search Box -->
114
<!-- End Suggestions Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc (-11 / +49 lines)
Lines 6-19 Link Here
6
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
6
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
7
    <div id="checkin_search" class="residentsearch">
7
    <div id="checkin_search" class="residentsearch">
8
        <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
8
        <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
9
            <input class="head-searchbox focus" name="barcode" id="ret_barcode" type="text" placeholder="Scan a barcode to check in:" />
9
            <input class="head-searchbox focus" name="barcode" id="ret_barcode" type="text" placeholder="Scan a barcode to check in" />
10
            <input value="" class="submit" id="submit" type="submit" />
10
            <input value="" class="submit" id="submit" type="submit" />
11
        </form>
11
        </form>
12
    </div>
12
    </div>
13
13
14
    <div id="renew_search" class="residentsearch">
14
    <div id="renew_search" class="residentsearch">
15
        <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
15
        <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
16
            <input class="head-searchbox focus" name="barcode" id="ren_barcode" type="text" placeholder="Scan a barcode to renew:" />
16
            <input class="head-searchbox focus" name="barcode" id="ren_barcode" type="text" placeholder="Scan a barcode to renew" />
17
            <input value="" class="submit" id="submit" type="submit" />
17
            <input value="" class="submit" id="submit" type="submit" />
18
        </form>
18
        </form>
19
    </div>
19
    </div>
Lines 36-45 Link Here
36
36
37
<script type="text/javascript">
37
<script type="text/javascript">
38
    function focusInput(){
38
    function focusInput(){
39
        document.getElementById('inputsearch').focus();
39
        document.getElementsByClassName('head-searchbox').focus();
40
    }
40
    }
41
41
42
    function toggle(elem){
42
    function toggle(elem){style="width: calc(301px);"
43
        var buttonssearch = document.getElementsByClassName('active');
43
        var buttonssearch = document.getElementsByClassName('active');
44
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
44
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
45
            buttonssearch[i].classList.remove('active');
45
            buttonssearch[i].classList.remove('active');
Lines 50-73 Link Here
50
            fold();
50
            fold();
51
        }else{//Back
51
        }else{//Back
52
            document.getElementById('button_1').classList.add('active');
52
            document.getElementById('button_1').classList.add('active');
53
            document.getElementById('containersearch').classList.remove('fold');
53
            document.getElementById('header_search').classList.remove('fold');
54
            document.getElementById('inputsearch').style = '';
54
            document.getElementsByClassName('head-searchbox').style = '';
55
        }
55
        }
56
56
57
        focusInput();
57
        focusInput();
58
    }
58
    }
59
59
60
    function fold(){
60
    function clique(elem){
61
        var buttonssearch = document.getElementsByClassName('buttonsearch');
62
        var iconssearch = document.getElementsByClassName('iconsearch');
63
        var inputssearch = document.getElementsByClassName('head-searchbox');
64
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
65
            buttonssearch[i].classList.remove('active');
66
            if (elem == iconssearch[i]){
67
                buttonssearch[i].classList.add('active');
68
            }
69
        }
70
71
        for (var i = inputssearch.length - 1; i >= 0; i--) {
72
            inputssearch[i].classList.remove('focus');
73
74
            if (elem == iconssearch[i]){
75
                inputssearch[i].classList.add('focus');
76
77
                taille(inputssearch[i])
78
            }
79
        }
61
80
62
        document.getElementById('containersearch').classList.add('fold');
81
        focusInput();
63
        // document.getElementById('inputsearch').style = "width:calc(500px - 100px)";
82
        fold();
83
    }
84
85
    function fold(){
86
        document.getElementById('header_search').classList.add('fold');
87
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
64
        setTimeout(
88
        setTimeout(
65
            function(){
89
            function(){
66
                var offsetWidth = document.getElementById('buttonssearch').offsetWidth +5;
90
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
67
                document.getElementById('inputsearch').style = "width:calc(500px - "+offsetWidth+"px)";
91
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
68
            }
92
            }
69
        , 250);
93
        , 250);
70
    }
94
    }
71
95
96
    function taille(el){
97
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
98
        el.style = "width:calc(500px - "+offsetWidth+"px)";
99
    }
100
101
    $('.btn').click(function(){
102
    if($(this).hasClass('active')){
103
        $(this).removeClass('active')
104
    } else {
105
        $(this).addClass('active')
106
    }
107
});
108
72
</script>
109
</script>
110
73
<!-- End Catalogue Resident Search Box -->
111
<!-- End Catalogue Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cities-admin-search.inc (-1 / +1 lines)
Lines 2-8 Link Here
2
<div id="header_search" class="fold">
2
<div id="header_search" class="fold">
3
	<div id="city_search" class="residentsearch">
3
	<div id="city_search" class="residentsearch">
4
        <form action="[% script_name | html %]" method="post">
4
        <form action="[% script_name | html %]" method="post">
5
            <input class="head-searchbox focus" type="text" name="city_name_filter" id="city_name_filter" value="[% city_name_filter | html %]" placeholder="City search:" />
5
            <input class="head-searchbox focus" type="text" name="city_name_filter" id="city_name_filter" value="[% city_name_filter | html %]" placeholder="City search" />
6
            <input type="submit" name="submit" value="" id="submit" />
6
            <input type="submit" name="submit" value="" id="submit" />
7
        </form>
7
        </form>
8
	</div>
8
	</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/currencies-admin-search.inc (-1 / +1 lines)
Lines 3-9 Link Here
3
<div id="header_search" class="fold">
3
<div id="header_search" class="fold">
4
	<div id="currency_search" class="residentsearch">
4
	<div id="currency_search" class="residentsearch">
5
        <form action="[% script_name | html %]" method="post">
5
        <form action="[% script_name | html %]" method="post">
6
                <input class="head-searchbox focus" type="text" name="description" id="description" value="[% searchfield | html %]" placeholder="Currencies search:" />
6
                <input class="head-searchbox focus" type="text" name="description" id="description" value="[% searchfield | html %]" placeholder="Currencies search" />
7
                <input type="submit" id="submit" name="search" value="" />
7
                <input type="submit" id="submit" name="search" value="" />
8
        </form>	
8
        </form>	
9
	</div>
9
	</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc (-1 / +1 lines)
Lines 2-8 Link Here
2
[% SET return_claims = patron.return_claims %]
2
[% SET return_claims = patron.return_claims %]
3
3
4
[% IF ( has_modifications || warndeparture || returnbeforeexpiry || expired || patron.gonenoaddress || patron.lost || userdebarred || odues || ( return_claims.count > ClaimReturnedWarningThreshold ) || age_limitations || charges || charges_guarantors_guarantees || charges_guarantees || credits ) %]
4
[% IF ( has_modifications || warndeparture || returnbeforeexpiry || expired || patron.gonenoaddress || patron.lost || userdebarred || odues || ( return_claims.count > ClaimReturnedWarningThreshold ) || age_limitations || charges || charges_guarantors_guarantees || charges_guarantees || credits ) %]
5
    <fieldset id="searchresults">
5
    <fieldset>
6
    <h3>Attention</h3>
6
    <h3>Attention</h3>
7
    <ul>
7
    <ul>
8
        [% IF ( has_modifications ) %]
8
        [% IF ( has_modifications ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/z3950-admin-search.inc (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
    <div id="z3950_search" class="residentsearch">
4
    <div id="z3950_search" class="residentsearch">
5
	    <form action="/cgi-bin/koha/admin/z3950servers.pl" method="post">
5
	    <form action="/cgi-bin/koha/admin/z3950servers.pl" method="post">
6
                <input class="head-searchbox focus" type="text" name="searchfield" id="searchfield" value="[% searchfield | html %]" placeholder="Z39.50/SRU server search:" />
6
                <input class="head-searchbox focus" type="text" name="searchfield" id="searchfield" value="[% searchfield | html %]" placeholder="Z39.50/SRU server search" />
7
                <input type="submit" class="submit" id="submit" name="search" value="" />
7
                <input type="submit" class="submit" id="submit" name="search" value="" />
8
        </form>
8
        </form>
9
	</div>
9
	</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt (-55 / +53 lines)
Lines 8-14 Link Here
8
[% END %]
8
[% END %]
9
[%- BLOCK action_menu %]
9
[%- BLOCK action_menu %]
10
    <div class="btn-group dropup">
10
    <div class="btn-group dropup">
11
        <a class="btn btn-default btn-xs dropdown-toggle" id="budgetmenu_[% block_budget.budget_period_id | html %]" role="button" data-toggle="dropdown" href="#">
11
        <a class="btn btn-default btn-xs dropdown-toggle lientype" id="budgetmenu_[% block_budget.budget_period_id | html %]" role="button" data-toggle="dropdown" href="#">
12
           Actions <b class="caret"></b>
12
           Actions <b class="caret"></b>
13
        </a>
13
        </a>
14
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetmenu_[% block_budget.budget_period_id | html %]">
14
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetmenu_[% block_budget.budget_period_id | html %]">
Lines 77-83 Link Here
77
77
78
[% INCLUDE 'header.inc' form=formulaire %]
78
[% INCLUDE 'header.inc' form=formulaire %]
79
79
80
81
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
80
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
82
    <ol>
81
    <ol>
83
        <li>
82
        <li>
Lines 184-190 Link Here
184
[% END %]
183
[% END %]
185
184
186
[% IF ( duplicate_form ) %]
185
[% IF ( duplicate_form ) %]
187
<h1>Duplicate budget</h1>
186
<h3>Duplicate budget</h3>
188
<form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" id="add_modify_budget" name="f" method="post">
187
<form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" id="add_modify_budget" name="f" method="post">
189
    <fieldset class="rows">
188
    <fieldset class="rows">
190
    <input type="hidden" name="op" value="duplicate_budget" />
189
    <input type="hidden" name="op" value="duplicate_budget" />
Lines 235-246 Link Here
235
    </li>
234
    </li>
236
235
237
    </ol>
236
    </ol>
238
    <fieldset class="action">
237
239
        <input type="submit" class="principal" value="Save" />
238
        <input type="submit" value="Save" class="principal" />
240
        <a class="cancel" href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | html %]">Cancel</a>
239
        <a class="cancel" href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | html %]">Cancel</a>
241
    </fieldset>
240
    </fieldset>
242
    </fieldset>
243
244
241
245
</form>
242
</form>
246
243
Lines 250-258 Link Here
250
    <!--  add or modify a budget period   -->
247
    <!--  add or modify a budget period   -->
251
248
252
    [% IF ( budget_period_id ) %]
249
    [% IF ( budget_period_id ) %]
253
        <h1>Modify budget <em>[% budget_period_description | html %]</em></h1>
250
        <h3>Modify budget <em>[% budget_period_description | html %]</em></h3>
254
    [% ELSE %]
251
    [% ELSE %]
255
        <h1>Add budget</h1>
252
        <h3>Add budget</h3>
256
	[% END %]
253
	[% END %]
257
<form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" id="add_modify_budget" name="f" method="post">
254
<form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" id="add_modify_budget" name="f" method="post">
258
    <fieldset class="rows">
255
    <fieldset class="rows">
Lines 307-324 Link Here
307
        [% IF ( budget_period_locked ) %]<input type="checkbox" checked="checked" id="budget_period_locked" name="budget_period_locked" value="1" />[% ELSE %]  <input type="checkbox" id="budget_period_locked" name="budget_period_locked" value="1"/> [% END %]
304
        [% IF ( budget_period_locked ) %]<input type="checkbox" checked="checked" id="budget_period_locked" name="budget_period_locked" value="1" />[% ELSE %]  <input type="checkbox" id="budget_period_locked" name="budget_period_locked" value="1"/> [% END %]
308
    </li>
305
    </li>
309
    </ol>
306
    </ol>
310
    <fieldset class="action">
307
311
        <!-- "save changes" button -->
308
        <input type="submit" value="Save" class="principal" />
312
        <!-- ###################################### -->
313
        <input type="submit" class="principal" value="Save" />
314
        [% IF ( budget_period_id ) %]
309
        [% IF ( budget_period_id ) %]
315
            <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | uri %]" class="cancel">Cancel</a>
310
            <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | uri %]" class="cancel">Cancel</a>
316
        [% ELSE %]
311
        [% ELSE %]
317
            <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl" class="cancel">Cancel</a>
312
            <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl" class="cancel">Cancel</a>
318
        [% END %]
313
        [% END %]
319
    </fieldset>
314
    </fieldset>
320
    </fieldset>
321
322
315
323
</form>
316
</form>
324
317
Lines 331-346 Link Here
331
[% IF ( delete_confirm ) %]
324
[% IF ( delete_confirm ) %]
332
    [% IF ( total ) %]
325
    [% IF ( total ) %]
333
        <div class="dialog message">
326
        <div class="dialog message">
334
        <h1>Cannot delete budget</h1>
327
        <h3>Cannot delete budget</h3>
335
        <p><strong>This record is used [% total | html %] times</strong>
328
        <p><strong>This record is used [% total | html %] times</strong>
336
        . Deletion is not possible.</p>
329
        . Deletion is not possible.</p>
337
    [% ELSIF ( funds_exist ) %]
330
    [% ELSIF ( funds_exist ) %]
338
        <div class="dialog message">
331
        <div class="dialog message">
339
        <h1>Cannot delete budget</h1>
332
        <h3>Cannot delete budget</h3>
340
        <p>This budget has funds attached. You must delete all attached funds before you can delete this budget.</p>
333
        <p>This budget has funds attached. You must delete all attached funds before you can delete this budget.</p>
341
    [% ELSE %]
334
    [% ELSE %]
342
        <div class="dialog alert">
335
        <div class="dialog alert">
343
        <h1>Delete budget '[% budget_period_description | html %]'?</h1>
336
        <h3>Delete budget '[% budget_period_description | html %]'?</h3>
344
337
345
    <!-- ############################################################# -->
338
    <!-- ############################################################# -->
346
    <!-- "delete" and "cancel" buttons    -->
339
    <!-- "delete" and "cancel" buttons    -->
Lines 360-377 Link Here
360
[% END %]
353
[% END %]
361
354
362
[% IF close_form %]
355
[% IF close_form %]
363
<h1>Close budget [% budget_period_description | html %]</h1>
364
  [% IF budget_periods.size == 0 %]
356
  [% IF budget_periods.size == 0 %]
365
    <span>You cannot move funds of this budget, there is no active budget.
357
    You cannot move funds of this budget, there is no active budget.
366
    Please create a new active budget and retry.</span>
358
    Please create a new active budget and retry.
367
    <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
359
    <a id="lientype" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
368
  [% ELSIF number_of_unreceived_orders == 0 %]
360
  [% ELSIF number_of_unreceived_orders == 0 %]
369
    <span>There are no unreceived orders for this budget.</span>
361
    There are no unreceived orders for this budget.
370
    <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
362
    <a id="lientype" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
371
  [% ELSE %]
363
  [% ELSE %]
372
  <div id="searchresults">
373
    <h3>The unreceived orders from the following funds will be moved</h3>
364
    <h3>The unreceived orders from the following funds will be moved</h3>
374
      Fund list of budget <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | uri %]">[% budget_period_description | html %]</a>:
365
      Fund list of budget <a id="lientype" href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | uri %]">[% budget_period_description | html %]</a>:
375
    <table id="budgeth">
366
    <table id="budgeth">
376
      <thead>
367
      <thead>
377
        <tr>
368
        <tr>
Lines 392-398 Link Here
392
        [% END %]
383
        [% END %]
393
      </tbody>
384
      </tbody>
394
    </table>
385
    </table>
395
    </div>
396
    <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post" id="move_form">
386
    <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post" id="move_form">
397
      <fieldset class="rows">
387
      <fieldset class="rows">
398
        <ol>
388
        <ol>
Lines 410-428 Link Here
410
            <input type="checkbox" name="move_remaining_unspent" id="move_remaining_unspent" />
400
            <input type="checkbox" name="move_remaining_unspent" id="move_remaining_unspent" />
411
          </li>
401
          </li>
412
        </ol>
402
        </ol>
413
      <fieldset class="action">
403
414
          <input type="hidden" name="op" value="close_confirmed" />
404
          <input type="hidden" name="op" value="close_confirmed" />
415
          <input type="hidden" name="budget_period_id" value="[% budget_period_id | html %]" />
405
          <input type="hidden" name="budget_period_id" value="[% budget_period_id | html %]" />
416
          <input type="submit" class="principal" value="Move unreceived orders" />
406
          <input type="submit" class="principal" value="Move unreceived orders" />
417
          <a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Cancel</a>
407
          <a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Cancel</a>
418
      </fieldset>
408
      </fieldset>
419
      </fieldset>
420
    </form>
409
    </form>
421
  [% END %]
410
  [% END %]
422
[% ELSIF closed %]
411
[% ELSIF closed %]
423
    <h2>Budget [% budget_period_description | html %] closed</h2>
424
  <div id="searchresults">
425
426
  <h3>Report after moving unreceived orders from budget [% from_budget_period.budget_period_description | html %] ([% from_budget_period.budget_period_startdate | $KohaDates %] - [% from_budget_period.budget_period_enddate | $KohaDates %]) to [% to_budget_period.budget_period_description | html %] ([% to_budget_period.budget_period_startdate | $KohaDates %] - [% to_budget_period.budget_period_enddate | $KohaDates%])</h3>
412
  <h3>Report after moving unreceived orders from budget [% from_budget_period.budget_period_description | html %] ([% from_budget_period.budget_period_startdate | $KohaDates %] - [% from_budget_period.budget_period_enddate | $KohaDates %]) to [% to_budget_period.budget_period_description | html %] ([% to_budget_period.budget_period_startdate | $KohaDates %] - [% to_budget_period.budget_period_enddate | $KohaDates%])</h3>
427
413
428
  <table id="closed_report">
414
  <table id="closed_report">
Lines 468-480 Link Here
468
      [% END %]
454
      [% END %]
469
    </tbody>
455
    </tbody>
470
  </table>
456
  </table>
471
  </div>
472
  <a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
457
  <a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
473
[% END %]
458
[% END %]
474
459
475
<!--  DEFAULT  display budget periods list -->
460
<!--  DEFAULT  display budget periods list -->
476
[% IF ( else ) %]
461
[% IF ( else ) %]
477
  <h1>Budgets administration</h1>
462
  <h2>Budgets administration</h2>
478
463
479
    [% IF ( failed_delete_funds_exist ) %]
464
    [% IF ( failed_delete_funds_exist ) %]
480
        <div class="dialog message">Failed to delete budget because funds exist.</div>
465
        <div class="dialog message">Failed to delete budget because funds exist.</div>
Lines 482-509 Link Here
482
467
483
  [% INCLUDE 'budgets-active-currency.inc' %]
468
  [% INCLUDE 'budgets-active-currency.inc' %]
484
469
485
  <div id="searchresults">
470
<div id="searchresults">
486
  <div id="budgetsTabs" class="toptabs">
471
  <div id="budgetsTabs" class="toptabs">
487
    <ul class="nav nav-tabs" role="tablist">
472
    <ul>
488
        <li role="presentation" class="active">
473
        <li><a href="#active">Active budgets</a></li>
489
            <a href="#active" aria-controls="active" role="tab" data-toggle="tab">Active budgets</a>
474
        <li><a href="#inactive">Inactive budgets</a></li>
490
        </li>
491
        <li role="presentation">
492
            <a href="#inactive" aria-controls="inactive" role="tab" data-toggle="tab">Inactive budgets</a>
493
        </li>
494
    </ul>
475
    </ul>
495
    <div class="tab-content">
476
496
        <div id="active" role="tabpanel" class="tab-pane active">
477
    <div id="active">
497
        [% IF ( period_active_loop ) %]
478
      [% IF ( period_active_loop ) %]
498
            <table id="activeperiodst">
479
        <table id="activeperiodst">
499
            <thead>
480
          <thead>
481
            <tr>
482
              <th>Budget name</th>
483
              <th>Start date</th>
484
              <th>End date</th>
485
              <th>Locked</th>
486
              <th>Total</th>
487
              <th class="noExport">Actions</th>
488
            </tr>
489
          </thead>
490
          <tbody>
491
              [% FOREACH period_active IN period_active_loop %]
500
                <tr>
492
                <tr>
501
                <th>Budget name</th>
493
                <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_active.budget_period_id | uri %]" title="View funds for [% period_active.budget_period_description | html %]">[% period_active.budget_period_description | html %]</a></td>
502
                <th>Start date</th>
494
                <td data-order="[% period_active.budget_period_startdate | html %]">[% period_active.budget_period_startdate | $KohaDates %]</td>
503
                <th>End date</th>
495
                <td data-order="[% period_active.budget_period_enddate | html %]">[% period_active.budget_period_enddate | $KohaDates %]</td>
504
                <th>Locked</th>
496
                <td>
505
                <th>Total</th>
497
                  [% IF ( period_active.budget_period_locked ) %]
506
                <th class="noExport">Actions</th>
498
                    <i class="fa fa-lock"></i> Locked</span>
499
                  [% END %]
500
                </td>
501
                <td class="data">[% period_active.budget_period_total | $Price %]</td>
502
                <td>
503
                    [% PROCESS action_menu block_budget=period_active %]
504
                </td>
507
                </tr>
505
                </tr>
508
              [% END %]
506
              [% END %]
509
          </tbody>
507
          </tbody>
Lines 566-575 Link Here
566
    [% Asset.js("js/acq.js") | $raw %]
564
    [% Asset.js("js/acq.js") | $raw %]
567
    <script>
565
    <script>
568
        $(document).ready(function() {
566
        $(document).ready(function() {
567
            var tabs = $('#budgetsTabs').tabs();
569
            [% IF ( tab ) %]
568
            [% IF ( tab ) %]
570
                $("#budgetsTabs li:eq([% tab | html %]) a").tab("show");
569
                tabs.tabs("option", "active", [% tab | html %]);
571
            [% END %]
570
            [% END %]
572
573
            $("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, {
571
            $("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, {
574
                "aoColumnDefs": [
572
                "aoColumnDefs": [
575
                    { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
573
                    { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt (-43 / +63 lines)
Lines 4-33 Link Here
4
[% formulaire = BLOCK %]
4
[% formulaire = BLOCK %]
5
    [% INCLUDE 'prefs-admin-search.inc' %]
5
    [% INCLUDE 'prefs-admin-search.inc' %]
6
[% END %]
6
[% END %]
7
7
[% BLOCK pluginlist %]
8
[% BLOCK pluginlist %]
8
<div class="pluginlist">
9
<div class="pluginlist">
9
[% FOREACH plugin IN plugins %]
10
    [% FOREACH plugin IN plugins %]
10
    <div class="plugin">
11
        <div class="plugin">
11
        <div class="pluginname">
12
            <div class="pluginname">
12
            [% IF plugin.enabled %]<input type="checkbox" checked="checked" id="checkbox_[% type | html %][% plugin.name | html %]">[% ELSE %]<input type="checkbox" id="checkbox_[% type | html %][% plugin.name | html %]">[% END %]
13
                [% IF plugin.enabled %]
13
            <label class='pluginlabel' for="checkbox_[% type | html %][% plugin.name | html %]">[% plugin.name | html %]</label></div>
14
                    <input type="checkbox" checked="checked" id="checkbox_[% type | html %][% plugin.name | html %]">
14
        <div class="plugindesc">
15
                [% ELSE %]
15
        [% SWITCH plugin.name %]
16
                    <input type="checkbox" id="checkbox_[% type | html %][% plugin.name | html %]">
16
        [% CASE 'AuthorityFile' %]
17
                [% END %]
17
            <span>Suggest authorities which are relevant to the term the user searched for.</span>
18
18
        [% CASE 'ExplodedTerms' %]
19
                <label class='pluginlabel' for="checkbox_[% type | html %][% plugin.name | html %]">[% plugin.name | html %]</label>
19
            <span>Suggest that patrons expand their searches to include broader/narrower/related terms.</span>
20
            </div>
20
        [% CASE 'LibrisSpellcheck' %]
21
21
            <span>Use the LIBRIS spellcheck API.</span>
22
            <div class="plugindesc">
22
        [% END %]
23
                [% SWITCH plugin.name %]
24
                    [% CASE 'AuthorityFile' %]
25
                        <span>Suggest authorities which are relevant to the term the user searched for.</span>
26
                    [% CASE 'ExplodedTerms' %]
27
                        <span>Suggest that patrons expand their searches to include broader/narrower/related terms.</span>
28
                    [% CASE 'LibrisSpellcheck' %]
29
                        <span>Use the LIBRIS spellcheck API.</span>
30
                [% END %]
31
            </div>
23
        </div>
32
        </div>
24
    </div>
33
    [% END %]
25
[% END %]
26
</div>
34
</div>
27
[% END %]
35
[% END %]
36
28
[% INCLUDE 'doc-head-open.inc' %]
37
[% INCLUDE 'doc-head-open.inc' %]
29
<title>Did you mean? &rsaquo; Administration &rsaquo; Koha</title>
38
<title>Did you mean? &rsaquo; Administration &rsaquo; Koha</title>
30
[% INCLUDE 'doc-head-close.inc' %]
39
[% INCLUDE 'doc-head-close.inc' %]
40
31
</head>
41
</head>
32
42
33
<body id="admin_didyoumean" class="admin">
43
<body id="admin_didyoumean" class="admin">
Lines 47-58 Link Here
47
            </a>
57
            </a>
48
        </li>
58
        </li>
49
    </ol>
59
    </ol>
50
        <ol>
60
51
            [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
61
    <ol>
52
        </ol>
62
        [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
53
        <ol>
63
    </ol>
54
            <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
64
55
        </ol>
65
    <ol>
66
        <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
67
    </ol>
56
</nav>
68
</nav>
57
69
58
<div class="main container-fluid">
70
<div class="main container-fluid">
Lines 60-86 Link Here
60
        <div class="col-sm-10 col-sm-push-2">
72
        <div class="col-sm-10 col-sm-push-2">
61
            <main>
73
            <main>
62
74
63
        <h1>Did you mean?</h1>
75
                <h2>Did you mean?</h2>
64
        <noscript><div class="dialog alert"><strong>Please enable Javascript:</strong>
76
65
            Configuring 'Did you mean?' plugins requires Javascript. If
77
                <noscript>
66
            you are unable to use Javascript, you may be able to enter the
78
                    <div class="dialog alert">
67
            configuration (which is stored in JSON in the OPACdidyoumean system preferences)
79
                        <strong>Please enable Javascript:</strong>
68
            in the Local preferences tab in
80
                        Configuring 'Did you mean?' plugins requires Javascript. If
69
            the system preference editor, but this is unsupported, not
81
                        you are unable to use Javascript, you may be able to enter the
70
            recommended, and likely will not work.</div></noscript>
82
                        configuration (which is stored in JSON in the OPACdidyoumean system preferences)
71
        <div id="didyoumeanlegend">
83
                        in the Local preferences tab in
72
            Please put the 'Did you mean?' plugins in order by significance, from
84
                        the system preference editor, but this is unsupported, not
73
            most significant to least significant, and check the box to enable those
85
                        recommended, and likely will not work.
74
            plugins that you want to use.
86
                    </div>
75
        </div>
87
                </noscript>
76
        <form action="/cgi-bin/koha/admin/didyoumean.pl" method="post">
77
            <fieldset id="didyoumeanopac">
78
                <legend>OPAC</legend>
79
                [% PROCESS pluginlist plugins=OPACpluginlist type='opac' %]
80
            </fieldset>
81
            <fieldset class="action"><button class="save-all submit" type="submit">Save configuration</button> <a href="/cgi-bin/koha/admin/didyoumean.pl" class="force_reload cancel">Cancel</a></fieldset>
82
        </form>
83
88
89
                <div id="didyoumeanlegend">
90
                    Please put the 'Did you mean?' plugins in order by significance, from
91
                    most significant to least significant, and check the box to enable those
92
                    plugins that you want to use.
93
                </div>
94
95
                <form action="/cgi-bin/koha/admin/didyoumean.pl" method="post">
96
                    <fieldset id="didyoumeanopac">
97
                        <h3>OPAC</h3>
98
                        [% PROCESS pluginlist plugins=OPACpluginlist type='opac' %]
99
                        <button class="save-all submit principal" type="submit">Save configuration</button>
100
                        <a href="/cgi-bin/koha/admin/didyoumean.pl" class="force_reload cancel">Cancel</a>
101
                    </fieldset>
102
                </form>
84
            </main>
103
            </main>
85
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
104
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
86
105
Lines 89-95 Link Here
89
                [% INCLUDE 'admin-menu.inc' %]
108
                [% INCLUDE 'admin-menu.inc' %]
90
            </aside>
109
            </aside>
91
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
110
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
92
     </div> <!-- /.row -->
111
    </div> <!-- /.row -->
93
112
94
[% MACRO jsinclude BLOCK %]
113
[% MACRO jsinclude BLOCK %]
95
    [% Asset.js("js/admin-menu.js") | $raw %]
114
    [% Asset.js("js/admin-menu.js") | $raw %]
Lines 139-142 Link Here
139
        }
158
        }
140
    </script>
159
    </script>
141
[% END %]
160
[% END %]
161
142
[% INCLUDE 'intranet-bottom.inc' %]
162
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-335 / +311 lines)
Lines 123-374 a.add, a.delete { Link Here
123
    </div>
123
    </div>
124
124
125
    <form method="post">
125
    <form method="post">
126
    <div id=searchresults>
126
        <div id="tabs" class="toptabs" style="clear:both">
127
        <div id="tabs" class="toptabs ui-tabs" style="clear:both">
127
        <fieldset id="searchresults">
128
            <ul>
128
            <ul class="nav nav-tabs" role="tablist">
129
                <li><a href="#search_fields">Search fields</a></li>
129
                <li><a href="#search_fields">Search fields</a></li>
130
                [% FOREACH index IN indexes %]
130
                [% FOREACH index IN indexes %]
131
                    [% SWITCH index.index_name %]
131
                    [% SWITCH index.index_name %]
132
                        [% CASE 'biblios' %]
132
                        [% CASE 'biblios' %]<li><a href="#mapping_biblios">Bibliographic records</a></li>
133
                            <li role="presentation">
133
                        [% CASE 'authorities' %]<li><a href="#mapping_authorities">Authorities</a></li>
134
                                <a href="#mapping_biblios" data-tab="mapping_biblios" aria-controls="mapping_biblios" role="tab" data-toggle="tab">Bibliographic records</a>
135
                            </li>
136
                        [% CASE 'authorities' %]
137
                            <li role="presentation">
138
                                <a href="#mapping_authorities" data-tab="mapping_authorities" aria-controls="mapping_authorities" role="tab" data-toggle="tab">Authorities</a>
139
                            </li>
140
                    [% END %]
134
                    [% END %]
141
                [% END %]
135
                [% END %]
142
            </ul>
136
            </ul>
137
143
            <div class="tab-content">
138
            <div class="tab-content">
144
                <div id="search_fields" role="tabpanel" class="tab-pane active">
139
            <div id="search_fields" style="border:none">
145
                    <table class="search_fields" id="search_fields_table">
140
              <table class="search_fields" id="search_fields_table">
146
                        <thead>
141
                <thead>
147
                        <tr>
142
                  <tr>
148
                            <th>Name</th>
143
                    <th>Name</th>
149
                            <th>Aliases</th>
144
                    <th>Aliases</th>
150
                            <th>Label</th>
145
                    <th>Label</th>
151
                            <th>Type</th>
146
                    <th>Type</th>
152
                            <th>Weight</th>
147
                    <th>Weight</th>
153
                            <th colspan="2">Searchable</th>
148
                    <th colspan="2">Searchable</th>
154
                        </tr>
149
                  </tr>
155
                        <tr>
150
                  <tr>
156
                            <th colspan="5" class="NoSort">&nbsp;</th>
151
                    <th colspan="5" class="NoSort">&nbsp;</th>
157
                            <th class="NoSort">Staff interface</th>
152
                    <th class="NoSort">Staff interface</th>
158
                            <th class="NoSort">OPAC</th>
153
                    <th class="NoSort">OPAC</th>
154
                  </tr>
155
                </thead>
156
                <tbody>
157
                  [% FOREACH search_field IN all_search_fields %]
158
                    <tr>
159
                      <td data-order="[% search_field.name | html %]">
160
                        [% IF search_field.mandatory %]
161
                            <input type="text" name="search_field_name" value="[% search_field.name | html %]" readonly />
162
                        [% ELSE %]
163
                            <input type="text" name="search_field_name" value="[% search_field.name | html %]" />
164
                        [% END %]
165
                      </td>
166
                      <td>
167
                          [% search_field.aliases.join(', ') | html %]
168
                      </td>
169
                      <td data-order="[% search_field.label | html %]">
170
                        [% IF search_field.mandatory %]
171
                            <input type="text" name="search_field_label" value="[% search_field.label | html %]" readonly />
172
                        [% ELSE %]
173
                            <input type="text" name="search_field_label" value="[% search_field.label | html %]" />
174
                        [% END %]
175
                      </td>
176
                      <td data-order="[% search_field.type | html %]">
177
                        [% IF search_field.mandatory %]
178
                            <input type="hidden" name="search_field_type" value="[% search_field.type | html %]" />
179
                            <select name="search_field_type" disabled>
180
                        [% ELSE %]
181
                            <select name="search_field_type">
182
                        [% END %]
183
                              <option value=""></option>
184
                              [% IF search_field.type == "string" %]
185
                                <option value="string" selected="selected">String</option>
186
                              [% ELSE %]
187
                                <option value="string">String</option>
188
                              [% END %]
189
                              [% IF search_field.type == "date" %]
190
                                <option value="date" selected="selected">Date</option>
191
                              [% ELSE %]
192
                                <option value="date">Date</option>
193
                              [% END %]
194
                              [% IF search_field.type == "year" %]
195
                                <option value="year" selected="selected">Year</option>
196
                              [% ELSE %]
197
                                <option value="year">Year</option>
198
                              [% END %]
199
                              [% IF search_field.type == "number" %]
200
                                <option value="number" selected="selected">Number</option>
201
                              [% ELSE %]
202
                                <option value="number">Number</option>
203
                              [% END %]
204
                              [% IF search_field.type == "boolean" %]
205
                                <option value="boolean" selected="selected">Boolean</option>
206
                              [% ELSE %]
207
                                <option value="boolean">Boolean</option>
208
                              [% END %]
209
                              [% IF search_field.type == "sum" %]
210
                                <option value="sum" selected="selected">Sum</option>
211
                              [% ELSE %]
212
                                <option value="sum">Sum</option>
213
                              [% END %]
214
                              [% IF search_field.type == "isbn" %]
215
                                <option value="isbn" selected="selected">ISBN</option>
216
                              [% ELSE %]
217
                                <option value="isbn">ISBN</option>
218
                              [% END %]
219
                              [% IF search_field.type == "stdno" %]
220
                                <option value="stdno" selected="selected">Std. Number</option>
221
                              [% ELSE %]
222
                                <option value="stdno">Std. Number</option>
223
                              [% END %]
224
                            </select>
225
                      </td>
226
                        <td data-order="[% search_field.weight | html %]">
227
                            [% IF search_field.mapped_biblios %]
228
                                <input type="text" inputmode="decimal" pattern="[0-9\.]*" name="search_field_weight" value="[% search_field.weight | html %]" />
229
                            [% ELSE %]
230
                                <input type="text" name="search_field_weight" value="">
231
                            [% END %]
232
                        </td>
233
                      <td>
234
                        <select name="search_field_staff_client">
235
                          [% IF search_field.staff_client %]
236
                            <option value="1" selected="selected">Yes</option>
237
                            <option value="0">No</option>
238
                          [% ELSE %]
239
                            <option value="1">Yes</option>
240
                            <option value="0" selected="selected">No</option>
241
                          [% END %]
242
                        </select>
243
                      </td>
244
                      <td>
245
                        <select name="search_field_opac">
246
                          [% IF search_field.opac %]
247
                            <option value="1" selected="selected">Yes</option>
248
                            <option value="0">No</option>
249
                          [% ELSE %]
250
                            <option value="1">Yes</option>
251
                            <option value="0" selected="selected">No</option>
252
                          [% END %]
253
                        </select>
254
                      </td>
255
                    </tr>
256
                  [% END %]
257
                </tbody>
258
              </table>
259
            </div>
260
            [% FOREACH index IN indexes %]
261
                <div id="mapping_[% index.index_name | html %]" style="border:none">
262
                    <table class="mappings" data-index_name="[% index.index_name | html %]" data-ordering="false" id="mapping_[% index.index_name | html %]_table">
263
                      <thead>
264
                        <tr class="nodrag nodrop">
265
                          <th>Search field</th>
266
                          <th>Sortable</th>
267
                          <th>Facetable</th>
268
                          <th>Suggestible</th>
269
                          <th>Searchable</th>
270
                          <th>Mapping</th>
271
                          <th>&nbsp;</th>
159
                        </tr>
272
                        </tr>
160
                        </thead>
273
                      </thead>
161
                        <tbody>
274
                      <tbody>
162
                        [% FOREACH search_field IN all_search_fields %]
275
                        [% FOREACH mapping IN index.mappings %]
163
                            <tr>
276
                            [% IF mapping.search_field_mandatory && mapping.search_field_label != loop.next.search_field_label && mapping.search_field_label != loop.prev.search_field_label %]
164
                            <td data-order="[% search_field.name | html %]">
277
                              <tr>
165
                                [% IF search_field.mandatory %]
278
                                <td>
166
                                    <input type="text" name="search_field_name" value="[% search_field.name | html %]" readonly />
279
                                  <input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" />
167
                                [% ELSE %]
280
                                  <input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]">
168
                                    <input type="text" name="search_field_name" value="[% search_field.name | html %]" />
281
                                  [% mapping.search_field_label | html %]
169
                                [% END %]
170
                            </td>
171
                            <td>
172
                                [% search_field.aliases.join(', ') | html %]
173
                            </td>
174
                            <td data-order="[% search_field.label | html %]">
175
                                [% IF search_field.mandatory %]
176
                                    <input type="text" name="search_field_label" value="[% search_field.label | html %]" readonly />
177
                                [% ELSE %]
178
                                    <input type="text" name="search_field_label" value="[% search_field.label | html %]" />
179
                                [% END %]
180
                            </td>
181
                            <td data-order="[% search_field.type | html %]">
182
                                [% IF search_field.mandatory %]
183
                                    <input type="hidden" name="search_field_type" value="[% search_field.type | html %]" />
184
                                    <select name="search_field_type" disabled>
185
                                [% ELSE %]
186
                                    <select name="search_field_type">
187
                                [% END %]
188
                                    <option value=""></option>
189
                                    [% IF search_field.type == "string" %]
190
                                        <option value="string" selected="selected">String</option>
191
                                    [% ELSE %]
192
                                        <option value="string">String</option>
193
                                    [% END %]
194
                                    [% IF search_field.type == "date" %]
195
                                        <option value="date" selected="selected">Date</option>
196
                                    [% ELSE %]
197
                                        <option value="date">Date</option>
198
                                    [% END %]
199
                                    [% IF search_field.type == "year" %]
200
                                        <option value="year" selected="selected">Year</option>
201
                                    [% ELSE %]
202
                                        <option value="year">Year</option>
203
                                    [% END %]
204
                                    [% IF search_field.type == "number" %]
205
                                        <option value="number" selected="selected">Number</option>
206
                                    [% ELSE %]
207
                                        <option value="number">Number</option>
208
                                    [% END %]
209
                                    [% IF search_field.type == "boolean" %]
210
                                        <option value="boolean" selected="selected">Boolean</option>
211
                                    [% ELSE %]
212
                                        <option value="boolean">Boolean</option>
213
                                    [% END %]
214
                                    [% IF search_field.type == "sum" %]
215
                                        <option value="sum" selected="selected">Sum</option>
216
                                    [% ELSE %]
217
                                        <option value="sum">Sum</option>
218
                                    [% END %]
219
                                    [% IF search_field.type == "isbn" %]
220
                                        <option value="isbn" selected="selected">ISBN</option>
221
                                    [% ELSE %]
222
                                        <option value="isbn">ISBN</option>
223
                                    [% END %]
224
                                    [% IF search_field.type == "stdno" %]
225
                                        <option value="stdno" selected="selected">Std. Number</option>
226
                                    [% ELSE %]
227
                                        <option value="stdno">Std. Number</option>
228
                                    [% END %]
229
                                    </select>
230
                            </td>
231
                                <td data-order="[% search_field.weight | html %]">
232
                                    [% IF search_field.mapped_biblios %]
233
                                        <input type="text" inputmode="decimal" pattern="[0-9\.]*" name="search_field_weight" value="[% search_field.weight | html %]" />
234
                                    [% ELSE %]
235
                                        <input type="text" name="search_field_weight" value="">
236
                                    [% END %]
237
                                </td>
282
                                </td>
238
                            <td>
283
                                <td>
239
                                <select name="search_field_staff_client">
284
                                  [% IF mapping.sort == 0 %]
240
                                [% IF search_field.staff_client %]
285
                                      <input type="hidden" name="mapping_sort" value="0" readonly />No
241
                                    <option value="1" selected="selected">Yes</option>
286
                                  [% ELSE %]
242
                                    <option value="0">No</option>
287
                                      <input type="hidden" name="mapping_sort" value="1" readonly />Yes
243
                                [% ELSE %]
288
                                  [% END %]
244
                                    <option value="1">Yes</option>
289
                                </td>
245
                                    <option value="0" selected="selected">No</option>
290
                                <td>
246
                                [% END %]
291
                                  <input type="hidden" name="mapping_facet" value="[% mapping.facet | html %]" readonly />[% IF mapping.facet == 1 %]Yes[% ELSE %]No[% END %]
247
                                </select>
292
                                </td>
248
                            </td>
293
                                <td>
249
                            <td>
294
                                  <input type="hidden" name="mapping_suggestible" value="[% mapping.suggestible | html %]" readonly />[% IF mapping.suggestible == 1 %]Yes[% ELSE %]No[% END %]
250
                                <select name="search_field_opac">
295
                                </td>
251
                                [% IF search_field.opac %]
296
                                <td>
252
                                    <option value="1" selected="selected">Yes</option>
297
                                  <input type="hidden" name="mapping_search" value="[% mapping.search | html %]" readonly />[% IF mapping.search == 1 %]Yes[% ELSE %]No[% END %]
253
                                    <option value="0">No</option>
298
                                </td>
254
                                [% ELSE %]
299
                                <td>
255
                                    <option value="1">Yes</option>
300
                                    <input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" />
256
                                    <option value="0" selected="selected">No</option>
301
                                </td>
257
                                [% END %]
302
                                <td>&nbsp;</td>
258
                                </select>
303
                              </tr>
259
                            </td>
304
                            [% ELSE %]
260
                            </tr>
305
                              <tr>
261
                        [% END %]
306
                                <td>
262
                        </tbody>
307
                                  <input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" />
263
                    </table>
308
                                  <input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]">
264
                </div>
309
                                  [% mapping.search_field_label | html %]
265
                [% FOREACH index IN indexes %]
310
                                </td>
266
                    <div id="mapping_[% index.index_name | html %]" role="tabpanel" class="tab-pane">
311
                                <td>
267
                        <table class="mappings" data-index_name="[% index.index_name | html %]" data-ordering="false" id="mapping_[% index.index_name | html %]_table">
312
                                  <select name="mapping_sort">
268
                        <thead>
269
                            <tr class="nodrag nodrop">
270
                            <th>Search field</th>
271
                            <th>Sortable</th>
272
                            <th>Facetable</th>
273
                            <th>Suggestible</th>
274
                            <th>Searchable</th>
275
                            <th>Mapping</th>
276
                            <th>&nbsp;</th>
277
                            </tr>
278
                        </thead>
279
                        <tbody>
280
                            [% FOREACH mapping IN index.mappings %]
281
                                [% IF mapping.search_field_mandatory && mapping.search_field_label != loop.next.search_field_label && mapping.search_field_label != loop.prev.search_field_label %]
282
                                <tr>
283
                                    <td>
284
                                    <input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" />
285
                                    <input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]">
286
                                    [% mapping.search_field_label | html %]
287
                                    </td>
288
                                    <td>
289
                                    [% IF mapping.sort == 0 %]
313
                                    [% IF mapping.sort == 0 %]
290
                                        <input type="hidden" name="mapping_sort" value="0" readonly />No
314
                                      <option value="0" selected="selected">No</option>
291
                                    [% ELSE %]
315
                                      <option value="1">Yes</option>
292
                                        <input type="hidden" name="mapping_sort" value="1" readonly />Yes
293
                                    [% END %]
294
                                    </td>
295
                                    <td>
296
                                    <input type="hidden" name="mapping_facet" value="[% mapping.facet | html %]" readonly />[% IF mapping.facet == 1 %]Yes[% ELSE %]No[% END %]
297
                                    </td>
298
                                    <td>
299
                                    <input type="hidden" name="mapping_suggestible" value="[% mapping.suggestible | html %]" readonly />[% IF mapping.suggestible == 1 %]Yes[% ELSE %]No[% END %]
300
                                    </td>
301
                                    <td>
302
                                    <input type="hidden" name="mapping_search" value="[% mapping.search | html %]" readonly />[% IF mapping.search == 1 %]Yes[% ELSE %]No[% END %]
303
                                    </td>
304
                                    <td>
305
                                        <input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" />
306
                                    </td>
307
                                    <td>&nbsp;</td>
308
                                </tr>
309
                                [% ELSE %]
310
                                <tr>
311
                                    <td>
312
                                    <input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" />
313
                                    <input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]">
314
                                    [% mapping.search_field_label | html %]
315
                                    </td>
316
                                    <td>
317
                                    <select name="mapping_sort">
318
                                        [% IF mapping.sort == 0 %]
319
                                        <option value="0" selected="selected">No</option>
320
                                        <option value="1">Yes</option>
321
                                        [% ELSE %]
322
                                        <option value="0">No</option>
323
                                        <option value="1" selected="selected">Yes</option>
324
                                        [% END %]
325
                                    </select>
326
                                    </td>
327
                                    <td>
328
                                    [% IF mapping.is_facetable %]
329
                                        <select name="mapping_facet">
330
                                        [% IF mapping.facet %]
331
                                            <option value="0">No</option>
332
                                            <option value="1" selected="selected">Yes</option>
333
                                        [% ELSE %]
334
                                            <option value="0" selected="selected">No</option>
335
                                            <option value="1">Yes</option>
336
                                        [% END %]
337
                                        </select>
338
                                    [% ELSE %]
316
                                    [% ELSE %]
339
                                        <input type="hidden" name="mapping_facet" value="0" />
317
                                      <option value="0">No</option>
340
                                        No
318
                                      <option value="1" selected="selected">Yes</option>
341
                                    [% END %]
319
                                    [% END %]
342
                                    </td>
320
                                  </select>
343
                                    <td>
321
                                </td>
344
                                    <select name="mapping_suggestible">
322
                                <td>
345
                                        [% IF mapping.suggestible %]
323
                                  [% IF mapping.is_facetable %]
346
                                        <option value="0">No</option>
324
                                    <select name="mapping_facet">
347
                                        <option value="1" selected="selected">Yes</option>
325
                                      [% IF mapping.facet %]
348
                                        [% ELSE %]
349
                                        <option value="0" selected="selected">No</option>
350
                                        <option value="1">Yes</option>
351
                                        [% END %]
352
                                    </select>
353
                                    </td>
354
                                    <td>
355
                                    <select name="mapping_search">
356
                                        [% IF mapping.search %]
357
                                        <option value="0">No</option>
326
                                        <option value="0">No</option>
358
                                        <option value="1" selected="selected">Yes</option>
327
                                        <option value="1" selected="selected">Yes</option>
359
                                        [% ELSE %]
328
                                      [% ELSE %]
360
                                        <option value="0" selected="selected">No</option>
329
                                        <option value="0" selected="selected">No</option>
361
                                        <option value="1">Yes</option>
330
                                        <option value="1">Yes</option>
362
                                        [% END %]
331
                                      [% END %]
363
                                    </select>
332
                                    </select>
364
                                    </td>
333
                                  [% ELSE %]
365
                                    <td>
334
                                    <input type="hidden" name="mapping_facet" value="0" />
366
                                        <input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" />
335
                                    No
367
                                    </td>
336
                                  [% END %]
368
                                    [% IF mapping.search_field_mandatory %]
337
                                </td>
369
                                        <td><a class="btn btn-default btn-xs delete mandatory" data-field_name="[% mapping.search_field_name | html %]" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td>
338
                                <td>
339
                                  <select name="mapping_suggestible">
340
                                    [% IF mapping.suggestible %]
341
                                      <option value="0">No</option>
342
                                      <option value="1" selected="selected">Yes</option>
343
                                    [% ELSE %]
344
                                      <option value="0" selected="selected">No</option>
345
                                      <option value="1">Yes</option>
346
                                    [% END %]
347
                                  </select>
348
                                </td>
349
                                <td>
350
                                  <select name="mapping_search">
351
                                    [% IF mapping.search %]
352
                                      <option value="0">No</option>
353
                                      <option value="1" selected="selected">Yes</option>
370
                                    [% ELSE %]
354
                                    [% ELSE %]
371
                                        <td><a class="btn btn-default btn-xs delete" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td>
355
                                      <option value="0" selected="selected">No</option>
356
                                      <option value="1">Yes</option>
372
                                    [% END %]
357
                                    [% END %]
373
                                  </select>
358
                                  </select>
374
                                </td>
359
                                </td>
Lines 376-449 a.add, a.delete { Link Here
376
                                    <input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" />
361
                                    <input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" />
377
                                </td>
362
                                </td>
378
                                [% IF mapping.search_field_mandatory %]
363
                                [% IF mapping.search_field_mandatory %]
379
                                    <td><a class="btn btn-default btn-xs delete mandatory" data-field_name="[% mapping.search_field_name | html %]" style="cursor: pointer;" id="lientype"><i class="fa fa-trash"></i> Delete</a></td>
364
                                    <td><a id="lientype" class="btn btn-default btn-xs delete mandatory" data-field_name="[% mapping.search_field_name | html %]" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td>
380
                                [% ELSE %]
365
                                [% ELSE %]
381
                                    <td><a class="btn btn-default btn-xs delete" style="cursor: pointer;" id="lientype"><i class="fa fa-trash"></i> Delete</a></td>
366
                                    <td><a id="lientype" class="btn btn-default btn-xs delete" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td>
382
                                [% END %]
367
                                [% END %]
383
                                </tr>
368
                              </tr>
384
                            [% END %]
369
                            [% END %]
385
                        </tbody>
370
                        [% END %]
386
                        <tfoot>
371
                      </tbody>
387
                            <tr class="nodrag nodrop">
372
                      <tfoot>
388
                            <td>
373
                        <tr class="nodrag nodrop">
389
                                <input data-id="mapping_index_name" type="hidden" value="[% index.index_name | html %]" />
374
                          <td>
390
                                <select data-id="mapping_search_field_name">
375
                            <input data-id="mapping_index_name" type="hidden" value="[% index.index_name | html %]" />
391
                                [% FOREACH f IN all_search_fields %]
376
                            <select data-id="mapping_search_field_name">
392
                                <option value="[% f.name | html %]">[% f.name | html %]</option>
377
                             [% FOREACH f IN all_search_fields %]
393
                                [% END %]
378
                               <option value="[% f.name | html %]">[% f.name | html %]</option>
394
                                </select>
379
                             [% END %]
395
                            </td>
380
                            </select>
396
                            <td>
381
                          </td>
397
                                <select data-id="mapping_sort">
382
                          <td>
398
                                <option value="undef">Undef</option>
383
                            <select data-id="mapping_sort">
399
                                <option value="0">0</option>
384
                              <option value="undef">Undef</option>
400
                                <option value="1">1</option>
385
                              <option value="0">0</option>
401
                                </select>
386
                              <option value="1">1</option>
402
                            </td>
387
                            </select>
403
                            <td>
388
                          </td>
404
                                <select data-id="mapping_facet">
389
                          <td>
405
                                [% IF mapping.facet %]
390
                            <select data-id="mapping_facet">
406
                                    <option value="0">No</option>
391
                              [% IF mapping.facet %]
407
                                    <option value="1" selected="selected">Yes</option>
392
                                <option value="0">No</option>
408
                                [% ELSE %]
393
                                <option value="1" selected="selected">Yes</option>
409
                                    <option value="0" selected="selected">No</option>
394
                              [% ELSE %]
410
                                    <option value="1">Yes</option>
395
                                <option value="0" selected="selected">No</option>
411
                                [% END %]
396
                                <option value="1">Yes</option>
412
                                </select>
397
                              [% END %]
413
                            </td>
398
                            </select>
414
                            <td>
399
                          </td>
415
                                <select data-id="mapping_suggestible">
400
                          <td>
416
                                [% IF mapping.suggestible %]
401
                            <select data-id="mapping_suggestible">
417
                                    <option value="0">No</option>
402
                              [% IF mapping.suggestible %]
418
                                    <option value="1" selected="selected">Yes</option>
403
                                <option value="0">No</option>
419
                                [% ELSE %]
404
                                <option value="1" selected="selected">Yes</option>
420
                                    <option value="0" selected="selected">No</option>
405
                              [% ELSE %]
421
                                    <option value="1">Yes</option>
406
                                <option value="0" selected="selected">No</option>
422
                                [% END %]
407
                                <option value="1">Yes</option>
423
                                </select>
408
                              [% END %]
424
                            </td>
409
                            </select>
425
                            <td>
410
                          </td>
426
                                <select data-id="mapping_search">
411
                          <td>
427
                                [% IF mapping.search %]
412
                            <select data-id="mapping_search">
428
                                    <option value="0">No</option>
413
                              [% IF mapping.search %]
429
                                    <option value="1" selected="selected">Yes</option>
414
                                <option value="0">No</option>
430
                                [% ELSE %]
415
                                <option value="1" selected="selected">Yes</option>
431
                                    <option value="0" selected="selected">No</option>
416
                              [% ELSE %]
432
                                    <option value="1">Yes</option>
417
                                <option value="0" selected="selected">No</option>
433
                                [% END %]
418
                                <option value="1">Yes</option>
434
                                </select>
419
                              [% END %]
435
                            </td>
420
                            </select>
436
                            <td><input data-id="mapping_marc_field" type="text" /></td>
421
                          </td>
437
                            <td><a class="btn btn-default btn-xs add"><i class="fa fa-plus"></i> Add</a></td>
422
                          <td><input data-id="mapping_marc_field" type="text" /></td>
438
                            </tr>
423
                          <td><a id="lientype" class="btn btn-default btn-xs add"><i class="fa fa-plus"></i> Add</a></td>
439
                        </tfoot>
424
                        </tr>
440
                        </table>
425
                      </tfoot>
441
426
                    </table>
442
427
443
                    [% IF index.index_name == 'biblios' %]
428
                    [% IF index.index_name == 'biblios' %]
444
445
                        <h3>Facet order</h3>
429
                        <h3>Facet order</h3>
446
                        <div id="facet_[% index.index_name | html %]" class="ui-tabs-panel">
430
                        <div id="facet_[% index.index_name | html %]" style="border:none">
447
                            <table>
431
                            <table>
448
                                <thead>
432
                                <thead>
449
                                    <tr>
433
                                    <tr>
Lines 455-508 a.add, a.delete { Link Here
455
                                <tbody>
439
                                <tbody>
456
                                    [% FOREACH f IN facetable_fields %]
440
                                    [% FOREACH f IN facetable_fields %]
457
                                        <tr>
441
                                        <tr>
458
                                            <th>Search field</th>
442
                                            <td>
459
                                            <th>Label</th>
443
                                                [% f.name | html %]
460
                                            <th>Display</th>
444
                                            </td>
445
                                            <td>
446
                                                [% SWITCH f.name %]
447
                                                [% CASE 'author' %]Authors
448
                                                [% CASE 'itype' %]Item types
449
                                                [% CASE 'location' %]Locations
450
                                                [% CASE 'su-geo' %]Places
451
                                                [% CASE 'title-series' %]Series
452
                                                [% CASE 'subject' %]Topics
453
                                                [% CASE 'ccode' %]Collections
454
                                                [% CASE 'holdingbranch' %]Holding libraries
455
                                                [% CASE 'homebranch' %]Home libraries
456
                                                [% CASE 'ln' %]Language
457
                                                [% CASE %][% f | html %]
458
                                                [% END %]
459
                                            </td>
460
                                            <td>
461
                                                [% IF f.facet_order %]
462
                                                    <input type="checkbox" name="display_facet" value="[% f.name | html %]" checked="checked" />
463
                                                [% ELSE %]
464
                                                    <input type="checkbox" name="display_facet" value="[% f.name | html %]" />
465
                                                [% END %]
466
                                            </td>
461
                                        </tr>
467
                                        </tr>
462
                                    </thead>
468
                                    [% END %]
463
                                    <tbody>
469
                                </tbody>
464
                                        [% FOREACH f IN facetable_fields %]
470
                            </table>
465
                                            <tr>
471
                        </div>
466
                                                <td>
472
                    [% END %]
467
                                                    [% f.name | html %]
473
                </div>
468
                                                </td>
474
            [% END %]
469
                                                <td>
475
            </div>
470
                                                    [% SWITCH f.name %]
476
          </fieldset>
471
                                                    [% CASE 'author' %]Authors
477
        </div>
472
                                                    [% CASE 'itype' %]Item types
473
                                                    [% CASE 'location' %]Locations
474
                                                    [% CASE 'su-geo' %]Places
475
                                                    [% CASE 'title-series' %]Series
476
                                                    [% CASE 'subject' %]Topics
477
                                                    [% CASE 'ccode' %]Collections
478
                                                    [% CASE 'holdingbranch' %]Holding libraries
479
                                                    [% CASE 'homebranch' %]Home libraries
480
                                                    [% CASE 'ln' %]Language
481
                                                    [% CASE %][% f | html %]
482
                                                    [% END %]
483
                                                </td>
484
                                                <td>
485
                                                    [% IF f.facet_order %]
486
                                                        <input type="checkbox" name="display_facet" value="[% f.name | html %]" checked="checked" />
487
                                                    [% ELSE %]
488
                                                        <input type="checkbox" name="display_facet" value="[% f.name | html %]" />
489
                                                    [% END %]
490
                                                </td>
491
                                            </tr>
492
                                        [% END %]
493
                                    </tbody>
494
                                </table>
495
                            </div>
496
                        [% END %]
497
                    </div>
498
                [% END %]
499
            </div> <!-- /.tab-content -->
500
        </div> <!-- /#tabs -->
501
        <fieldset class="action">
478
        <fieldset class="action">
502
            <button class="btn btn-default" type="submit" name="op" value="edit" id="lientype"><i class="fa fa-hdd-o" aria-hidden="true"></i> Save</button>
479
            <button class="btn btn-default principal" type="submit" name="op" value="edit"><i class="fa fa-hdd-o" aria-hidden="true"></i> Save</button>
503
            <button class="btn btn-default" type="submit" name="op" value="reset_confirm" id="lientype"><i class="fa fa-refresh" aria-hidden="true"></i> Reset mappings</button>
480
            <button class="btn btn-default cancel" type="submit" name="op" value="reset_confirm"><i class="fa fa-refresh" aria-hidden="true"></i> Reset mappings</button>
504
        </fieldset>
481
        </fieldset>
505
      </div>
506
    </form>
482
    </form>
507
483
508
            </main>
484
            </main>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-394 / +332 lines)
Lines 21-41 Link Here
21
    });
21
    });
22
    var Sticky;
22
    var Sticky;
23
    $(document).ready(function() {
23
    $(document).ready(function() {
24
        var tabs = $('#authoritytabs').tabs({
24
        var tabs = $('#authoritytabs').tabs();
25
            activate: function(e, ui) {
26
                $("#"+ $(ui.newPanel).attr("id") + " .input_marceditor:visible:eq(0)").focus();
27
            }
28
         });
29
30
        /* On page load, check for location.hash in the page URL */
31
        var hash = location.hash;
32
        var hashPieces = hash.split('?');
33
        if( hashPieces[0] !== "" ){
34
            var activeTab = $("[href='" + hashPieces[0] + "']");
35
            selectTab(activeTab);
36
            window.scrollTo( 0, 0 );
37
        }
38
39
        $( "ul.sortable_field", tabs ).sortable();
25
        $( "ul.sortable_field", tabs ).sortable();
40
        $( "ul.sortable_subfield", tabs ).sortable();
26
        $( "ul.sortable_subfield", tabs ).sortable();
41
        Sticky = $("#toolbar");
27
        Sticky = $("#toolbar");
Lines 47-53 Link Here
47
            if(Check()){
33
            if(Check()){
48
                $("#f").submit();
34
                $("#f").submit();
49
            }
35
            }
50
        });
36
		});
51
        $("#z3950submit").click(function(){
37
        $("#z3950submit").click(function(){
52
            var strQuery = GetZ3950Terms();
38
            var strQuery = GetZ3950Terms();
53
            var index = "&index=[% index | html %]";
39
            var index = "&index=[% index | html %]";
Lines 56-273 Link Here
56
            }
42
            }
57
            return false;
43
            return false;
58
        });
44
        });
59
        $(".toolbar-tabs a").on("click",function(e){
60
            e.preventDefault();
61
            selectTab( $(this ) );
62
        });
63
64
        $(".tag_anchor").on("click", function(e){
65
            e.preventDefault();
66
            $(".tag_anchor").removeClass("selected");
67
            $(this).addClass("selected");
68
            var link = this.href;
69
            var linkid = link.substring( link.indexOf("#") + 1 );
70
            window.scrollTo( 0, getScrollto( linkid, "toolbar" ) );
71
        });
72
73
        $("body").on("click", ".linkfield", function(e){
74
            e.preventDefault();
75
            var tab = $(this).data("tab");
76
            var field = $(this).data("field");
77
            var tablink = $("a[data-tabid='" + tab + "']" );
78
            selectTab( tablink );
79
            window.scrollTo( 0, getScrollto( field, "toolbar" ) );
80
        });
81
    });
45
    });
82
46
83
    function selectTab( tablink ){
47
/**
84
        $(".toolbar-tabs li").removeClass("selected");
48
 * check if z3950 mandatories are set or not
85
        tablink.parent().addClass("selected");
49
 */
86
        var tabid = tablink.data("tabid");
50
function GetZ3950Terms(){
87
        $('#authoritytabs').selectTabByID("#tab" + tabid + "XX");
51
 var strQuery="&authtypecode="+document.forms['f'].authtypecode.value;
88
        $(".tag_anchors").removeClass("tab_selected").hide();
52
    var mandatories = new Array();
89
        $(".tag_anchors_" + tabid ).addClass("tab_selected").show();
53
    var mandatories_label = new Array();
90
    }
54
    [% FOREACH BIG_LOO IN BIG_LOOP %][% FOREACH innerloo IN BIG_LOO.innerloop %][% FOREACH subfield_loo IN innerloo.subfield_loop %][% IF ( subfield_loo.z3950_mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
91
55
        mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %]
92
    /**
56
93
    * Returns a roughly ideal position to scroll an element into view
57
    for(var i=0,len=mandatories.length; i<len ; i++){
94
    * @param {string} target - The HTML id of the element to scroll into view
58
        var field_value = document.getElementById(mandatories[i]).value;
95
    * @param {string} elemid - The HTML id of the element which might obscure
59
        if( field_value ){
96
    *                          the view of the target element e.g. a floating toolbar
60
            strQuery += "&"+mandatories_label[i]+"="+encodeURIComponent(field_value);
97
    * @return {number} - The y-coordinate to pass to window.scrollTo()
98
    */
99
    function getScrollto( target, elemid ){
100
        var dest = $("#" + target );
101
        var yoffset = dest.offset();
102
103
        if( elemid != "" ){
104
            var element = $("#" + elemid );
105
            var elem_height = element.outerHeight();
106
        } else {
107
            elem_height = 0;
108
        }
109
        return yoffset.top - elem_height - 20;
110
    }
111
112
113
    /**
114
    * check if z3950 mandatories are set or not
115
    */
116
    function GetZ3950Terms(){
117
        var strQuery="&authtypecode="+document.forms['f'].authtypecode.value;
118
        var mandatories = new Array();
119
        var mandatories_label = new Array();
120
        [% FOREACH BIG_LOO IN BIG_LOOP %][% FOREACH innerloo IN BIG_LOO.innerloop %][% FOREACH subfield_loo IN innerloo.subfield_loop %][% IF ( subfield_loo.z3950_mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
121
            mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %]
122
123
        for(var i=0,len=mandatories.length; i<len ; i++){
124
            var field_value = document.getElementById(mandatories[i]).value;
125
            if( field_value ){
126
                strQuery += "&"+mandatories_label[i]+"="+encodeURIComponent(field_value);
127
            }
128
        }
61
        }
129
        return strQuery;
130
    }
62
    }
131
63
    return strQuery;
132
    /**
64
}
133
    * check if mandatory subfields are written
65
134
    */
66
/**
135
    function AreMandatoriesNotOk(){
67
 * check if mandatory subfields are written
136
        var mandatories = new Array();
68
 */
137
        var mandatoriesfields = new Array();
69
function AreMandatoriesNotOk(){
138
        var   tab = new Array();
70
    var mandatories = new Array();
139
        var label = new Array();
71
    var mandatoriesfields = new Array();
140
        [% FOREACH BIG_LOO IN BIG_LOOP %]
72
    var   tab = new Array();
141
            [% FOREACH innerloo IN BIG_LOO.innerloop %]
73
    var label = new Array();
142
                [% IF ( innerloo.mandatory ) %]
74
    [% FOREACH BIG_LOO IN BIG_LOOP %]
143
                    mandatoriesfields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]"));
75
    	[% FOREACH innerloo IN BIG_LOO.innerloop %]
144
                [% END %]
76
			[% IF ( innerloo.mandatory ) %]
145
                [% FOREACH subfield_loo IN innerloo.subfield_loop %]
77
        		mandatoriesfields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]"));
146
                    [% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
147
                        tab.push("[% BIG_LOO.number | html %]");
148
                        label.push("[% To.json(subfield_loo.marc_lib) | html %]");
149
                    [% END %]
150
                [% END %]
151
            [% END %]
78
            [% END %]
152
        [% END %]
79
    		[% FOREACH subfield_loo IN innerloo.subfield_loop %]
153
        var StrAlert = "";
80
    			[% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
154
        for(var i=0,len=mandatories.length; i<len ; i++){
81
                    tab.push("[% BIG_LOO.number | html %]");
155
            var id_string = mandatories[i];
82
                    label.push("[% To.json(subfield_loo.marc_lib) | html %]");
156
            // alert (id_string);
83
    			[% END %]
157
            if( ! $("#" + id_string).val() ){
84
			[% END %]
158
                var elt = document.getElementById(id_string);
85
		[% END %]
159
                if ( elt.nodeName == 'SELECT' ) {
86
	[% END %]
160
                    $(elt).siblings('.select2').find("span[role='combobox']").addClass('subfield_not_filled');
87
    var StrAlert = "";
161
                } else {
88
    for(var i=0,len=mandatories.length; i<len ; i++){
162
                    $(elt).addClass('subfield_not_filled');
89
        var id_string = mandatories[i];
163
                }
90
        // alert (id_string);
164
91
        if( ! $("#" + id_string).val() ){
165
                $(elt).focus();
92
            var elt = document.getElementById(id_string);
166
                StrAlert += "\t* " + _("%s in tab %s").format(label[i], tab[i]) + "\n";
93
            if ( elt.nodeName == 'SELECT' ) {
167
            }
94
                $(elt).siblings('.select2').find("span[role='combobox']").addClass('subfield_not_filled');
168
        }
95
            } else {
169
96
                $(elt).addClass('subfield_not_filled');
170
        /* Check for mandatories field(not subfields) */
171
        for(var i=0,len=mandatoriesfields.length; i<len; i++){
172
            isempty  = true;
173
            arr      = mandatoriesfields[i];
174
            divid    = "tag_" + arr[0] + "_" + arr[1];
175
            varegexp = new RegExp("^tag_" + arr[0] + "_code_");
176
177
            if(parseInt(arr[0]) >= 10){
178
                elem = document.getElementById(divid);
179
                eleminputs = elem.getElementsByTagName('input');
180
181
                for(var j=0,len2=eleminputs.length; j<len2; j++){
182
183
                    if(eleminputs[j].name.match(varegexp) && eleminputs[j].value){
184
                        inputregexp = new RegExp("^tag_" + arr[0] + "_subfield_" + eleminputs[j].value + "_" + arr[2]);
185
186
                        for( var k=0; k<len2; k++){
187
                            if(eleminputs[k].id.match(inputregexp) && eleminputs[k].value){
188
                                isempty = false
189
                            }
190
                        }
191
                    }
192
                }
193
            }else{
194
                isempty = false;
195
            }
97
            }
196
98
197
            if(isempty){
99
            $(elt).focus();
198
                flag = 1;
100
            StrAlert += "\t* " + _("%s in tab %s").format(label[i], tab[i]) + "\n";
199
                    StrAlert += "\t* " + _("Field %s is mandatory, at least one of its subfields must be filled.").format(arr[0]) + "\n";
200
            }
201
202
        }
203
204
205
        if(StrAlert){
206
            return _("Can't save this record because the following field aren't filled :") + "\n\n" + StrAlert;
207
        }
101
        }
208
        return false;
209
    }
102
    }
210
103
    
211
    function Check(){
104
    /* Check for mandatories field(not subfields) */
212
        var StrAlert = AreMandatoriesNotOk();
105
    for(var i=0,len=mandatoriesfields.length; i<len; i++){
213
        if( ! StrAlert ){
106
    	isempty  = true;
214
            document.f.submit();
107
    	arr      = mandatoriesfields[i];
215
            return true;
108
    	divid    = "tag_" + arr[0] + "_" + arr[1];
216
        } else {
109
    	varegexp = new RegExp("^tag_" + arr[0] + "_code_");
217
            alert(StrAlert);
110
218
            return false;
111
		if(parseInt(arr[0]) >= 10){
219
        }
112
	    	elem = document.getElementById(divid);
113
	    	eleminputs = elem.getElementsByTagName('input');
114
	    	
115
	    	for(var j=0,len2=eleminputs.length; j<len2; j++){
116
	
117
	    		if(eleminputs[j].name.match(varegexp) && eleminputs[j].value){
118
					inputregexp = new RegExp("^tag_" + arr[0] + "_subfield_" + eleminputs[j].value + "_" + arr[2]);
119
					
120
					for( var k=0; k<len2; k++){
121
						if(eleminputs[k].id.match(inputregexp) && eleminputs[k].value){
122
							isempty = false
123
						}
124
					}
125
	    		}
126
	    	}
127
    	}else{
128
    		isempty = false;
129
    	}
130
    	
131
    	if(isempty){
132
    		flag = 1;
133
                StrAlert += "\t* " + _("Field %s is mandatory, at least one of its subfields must be filled.").format(arr[0]) + "\n";
134
    	}
135
    	
220
    }
136
    }
221
137
    
222
    function AddField(field,cntrepeatfield) {
138
    
223
        document.forms['f'].op.value = "addfield";
139
    if(StrAlert){
224
        document.forms['f'].addfield_field.value=field;
140
        return _("Can't save this record because the following field aren't filled :") + "\n\n" + StrAlert;
225
        document.forms['f'].repeat_field.value=cntrepeatfield;
226
        document.f.submit();
227
    }
141
    }
142
    return false;
143
}
228
144
229
    function addauthority() {
145
function Check(){
230
        X = document.forms[0].authtype.value;
146
    var StrAlert = AreMandatoriesNotOk();
231
        window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
147
    if( ! StrAlert ){
232
    }
148
        document.f.submit();
233
    function searchauthority() {
149
        return true;
234
        X = document.forms[0].authtype2.value;
150
    } else {
235
        Y = document.forms[0].value.value;
151
        alert(StrAlert);
236
        window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
152
        return false;
237
    }
238
    function confirmnotdup(redirect){
239
        $("#confirm_not_duplicate").attr("value","1");
240
        Check();
241
    }
153
    }
154
}
155
156
function AddField(field,cntrepeatfield) {
157
    document.forms['f'].op.value = "addfield";
158
    document.forms['f'].addfield_field.value=field;
159
    document.forms['f'].repeat_field.value=cntrepeatfield;
160
    document.f.submit();
161
}
162
163
function addauthority() {
164
    X = document.forms[0].authtype.value;
165
    window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
166
}
167
function searchauthority() {
168
    X = document.forms[0].authtype2.value;
169
    Y = document.forms[0].value.value;
170
    window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
171
}
172
function confirmnotdup(redirect){
173
    $("#confirm_not_duplicate").attr("value","1");
174
    Check();
175
}
242
</script>
176
</script>
243
[% Asset.css("css/addbiblio.css") | $raw %]
177
[% Asset.css("css/addbiblio.css") | $raw %]
244
178
245
</head>
179
</head>
246
<body id="auth_authorities" class="auth">
180
<body id="auth_authorities" class="auth">
247
181
248
    <div id="loading">
182
<div id="loading">
249
        <div>Loading, please wait...</div>
183
   <div>Loading, please wait...</div>
250
    </div>
184
</div>
185
186
[% INCLUDE 'header.inc' %]
251
187
252
    [% INCLUDE 'header.inc' %]
188
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
189
    <ol>
190
        <li>
191
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
192
        </li>
193
        <li>
194
            <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
195
        </li>
253
196
254
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
197
        [% IF ( authid ) %]
255
        <ol>
256
            <li>
198
            <li>
257
                <a href="/cgi-bin/koha/mainpage.pl">Home</a>
199
                <a href="#" aria-current="page">
200
                    Modify authority #[% authid | html %] ([% authtypetext | html %])
201
                </a>
258
            </li>
202
            </li>
203
204
        [% ELSE %]
259
            <li>
205
            <li>
260
                <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
206
                <a href="#" aria-current="page">
207
                    Adding authority [% authtypetext | html %]
208
                </a>
261
            </li>
209
            </li>
262
210
263
        [% END %]
211
        [% END %]
264
    </ol>
212
    </ol>
265
        <ol>
266
            [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
267
        </ol>
268
        <ol>
269
            <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
270
        </ol>
271
</nav>
213
</nav>
272
214
273
<div class="main container-fluid">
215
<div class="main container-fluid">
Lines 275-283 Link Here
275
        <div class="col-md-10 col-md-offset-1">
217
        <div class="col-md-10 col-md-offset-1">
276
218
277
[% IF ( authid ) %]
219
[% IF ( authid ) %]
278
<h1>Modify authority #[% authid | html %] [% authtypetext | html %]</h1>
220
<h2>Modify authority #[% authid | html %] [% authtypetext | html %]</h2>
279
[% ELSE %]
221
[% ELSE %]
280
<h1>Adding authority [% authtypetext | html %]</h1>
222
<h2>Adding authority [% authtypetext | html %]</h2>
281
[% END %]
223
[% END %]
282
224
283
[% IF ( duplicateauthid ) %]
225
[% IF ( duplicateauthid ) %]
Lines 305-365 Link Here
305
    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
247
    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
306
248
307
    <div id="toolbar" class="btn-toolbar">
249
    <div id="toolbar" class="btn-toolbar">
308
        <div class="btn-group"><a href="#" class="btn btn-default" id="principal" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
309
        <div class="btn-group">
250
        <div class="btn-group">
310
            [% IF ( authid ) %]
251
            [% IF ( authid ) %]
311
                <a class="cancel" class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a>
252
                <a class="btn btn-default cancel" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a>
312
            [% ELSE %]
253
            [% ELSE %]
313
                <a class="cancel" class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a>
254
                <a class="btn btn-default cancel" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a>
314
            [% END %]
255
            [% END %]
315
        </div>
256
        </div>
257
        <div class="btn-group"><a href="#" id="addauth" class="btn btn-default principal" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
316
        <div class="btn-group">
258
        <div class="btn-group">
317
            [% IF ( authid ) %]
259
            [% IF ( authid ) %]
318
                <a class="pat" class="btn btn-default" href="#"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a>
260
                <a class="btn btn-default pat" id="z3950submit" href="#"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a>
319
            [% ELSE %]
261
            [% ELSE %]
320
                <a class="pat" class="btn btn-default" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a>
262
                <a class="btn btn-default pat" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a>
321
            [% END %]
263
            [% END %]
322
        </div>
264
        </div>
323
    </div>
265
    </div>
324
266
325
    <fieldset class="select-libs">
267
<div id="authoritytabs" style="background-color: #fff" class="toptabs numbered">
326
        <div id="authoritytabs" class="toptabs numbered">
268
    <ul>
327
            <ul>
269
        [% FOREACH BIG_LOO IN BIG_LOOP %]
328
                [% FOREACH BIG_LOO IN BIG_LOOP %]
270
        <li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li>
329
                    <li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li>
271
        [% END %]
330
                [% END %]
272
    </ul>
331
            </ul>
332
273
333
            [% FOREACH BIG_LOO IN BIG_LOOP %]
274
[% FOREACH BIG_LOO IN BIG_LOOP %]
334
            <div id="tab[% BIG_LOO.number | html %]XX">
275
    <div id="tab[% BIG_LOO.number | html %]XX">
335
                [% previous = "" %]
276
336
                [% FOREACH innerloo IN BIG_LOO.innerloop %]
277
    [% previous = "" %]
337
                [% IF ( innerloo.tag ) %]
278
    [% FOREACH innerloo IN BIG_LOO.innerloop %]
338
                [% IF innerloo.tag != previous %]
279
    [% IF ( innerloo.tag ) %]
339
                [% IF previous != "" %]
280
    [% IF innerloo.tag != previous %]
340
                    </ul>
281
        [% IF previous != "" %]
341
            [% END %]
282
            </ul>
342
            [% previous = innerloo.tag %]
283
        [% END %]
343
            [% IF ( innerloo.repeatable ) %]
284
        [% previous = innerloo.tag %]
344
                <ul class="sortable_field">
285
        [% IF ( innerloo.repeatable ) %]
345
            [% ELSE %]
286
            <ul class="sortable_field">
346
                <ul>
287
        [% ELSE %]
347
            [% END %]
288
            <ul>
348
            [% END %]
289
        [% END %]
349
            [% IF ( innerloo.repeatable ) %]
290
    [% END %]
350
                <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
291
    [% IF ( innerloo.repeatable ) %]
292
        <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
293
    [% ELSE %]
294
        <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
295
    [% END %]
296
        <div class="tag_title" style="background-color:#f3f4f4" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
297
        [% UNLESS hide_marc %]
298
            [% IF advancedMARCEditor %]
299
                <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;">[% innerloo.tag | html %]</a>
351
            [% ELSE %]
300
            [% ELSE %]
352
                <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
301
                <span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
353
            [% END %]
302
            [% END %]
354
355
                <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
356
                [% UNLESS hide_marc %]
357
                [% IF advancedMARCEditor %]
358
                    <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;">[% innerloo.tag | html %]</a>
359
                [% ELSE %]
360
                    <span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
361
                [% END %]
362
363
                [% IF ( innerloo.fixedfield ) %]
303
                [% IF ( innerloo.fixedfield ) %]
364
                    <input type="text"
304
                    <input type="text"
365
                        tabindex="1"
305
                        tabindex="1"
Lines 393-571 Link Here
393
                        maxlength="1"
333
                        maxlength="1"
394
                        value="[% innerloo.indicator2 | html %]" />
334
                        value="[% innerloo.indicator2 | html %]" />
395
                [% END %] -
335
                [% END %] -
396
            [% ELSE %]
336
        [% ELSE %]
397
                    [% IF ( innerloo.fixedfield ) %]
337
                [% IF ( innerloo.fixedfield ) %]
398
                        <input type="hidden"
338
                    <input type="hidden"
399
                            tabindex="1"
339
                        tabindex="1"
400
                            name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
340
                        name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
401
                            value="[% innerloo.indicator1 | html %]" />
341
                        value="[% innerloo.indicator1 | html %]" />
402
                        <input type="hidden"
342
                    <input type="hidden"
403
                            tabindex="1"
343
                        tabindex="1"
404
                            name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
344
                        name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
405
                            value="[% innerloo.indicator2 | html %]" />
345
                        value="[% innerloo.indicator2 | html %]" />
406
                    [% ELSE %]
346
                [% ELSE %]
407
                        <input type="hidden"
347
                    <input type="hidden"
408
                            tabindex="1"
348
                        tabindex="1"
409
                            name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
349
                        name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
410
                            value="[% innerloo.indicator1 | html %]" />
350
                        value="[% innerloo.indicator1 | html %]" />
411
                        <input type="hidden"
351
                    <input type="hidden"
412
                            tabindex="1"
352
                        tabindex="1"
413
                            name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
353
                        name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
414
                            value="[% innerloo.indicator2 | html %]" />
354
                        value="[% innerloo.indicator2 | html %]" />
415
                    [% END %]
355
                [% END %]
416
            [% END %]
356
        [% END %]
417
357
418
                [% UNLESS advancedMARCEditor %]
358
            [% UNLESS advancedMARCEditor %]
419
                    <a href="#" tabindex="1" class="expandfield" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Click to Expand this Tag">[% innerloo.tag_lib | html %]</a>
359
                <a href="#" tabindex="1" class="expandfield" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Click to Expand this Tag">[% innerloo.tag_lib | html %]</a>
360
            [% END %]
361
                <span class="field_controls">
362
                [% IF ( innerloo.repeatable ) %]
363
                    <a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]','[% hide_marc | html %]','[% advancedMARCEditor | html %]'); return false;" title="Repeat this Tag">
364
                        <img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this Tag" />
365
                    </a>
420
                [% END %]
366
                [% END %]
421
                    <span class="field_controls">
367
                    <a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Delete this Tag">
422
                    [% IF ( innerloo.repeatable ) %]
368
                        <img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this Tag" />
423
                        <a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]','[% hide_marc | html %]','[% advancedMARCEditor | html %]'); return false;" title="Repeat this Tag">
369
                    </a>
424
                            <img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this Tag" />
370
                </span> <!-- /.field_controls -->
425
                        </a>
426
                    [% END %]
427
                        <a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Delete this Tag">
428
                            <img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this Tag" />
429
                        </a>
430
                    </span> <!-- /.field_controls -->
431
371
432
        </div> <!-- /div.tag_title -->
372
        </div> <!-- /div.tag_title -->
433
373
434
            <ul class="sortable_subfield">
374
        <ul class="sortable_subfield">
435
            [% FOREACH subfield_loo IN innerloo.subfield_loop %]
375
        [% FOREACH subfield_loo IN innerloo.subfield_loop %]
436
                <!--  One line on the marc editor -->
376
            <!--  One line on the marc editor -->
437
                <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
377
            <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
438
378
439
                    [% UNLESS hide_marc %]
379
                [% UNLESS hide_marc %]
440
                    <div class="subfieldcode">
380
                <div class="subfieldcode">
441
                            <input type="text"
381
                        <input type="text"
442
                                title="[% subfield_loo.marc_lib | $raw %]"
382
                            title="[% subfield_loo.marc_lib | $raw %]"
443
                                style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
383
                            style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
444
                                name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
445
                                value="[% subfield_loo.subfield | html %]"
446
                                size="1"
447
                                maxlength="1"
448
                                class="flat"
449
                                tabindex="0" />
450
                    </div>
451
                    [% ELSE %]
452
                        <input type="hidden"
453
                            name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
384
                            name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
454
                            value="[% subfield_loo.subfield | html %]" />
385
                            value="[% subfield_loo.subfield | html %]"
455
                    [% END %]
386
                            size="1"
387
                            maxlength="1"
388
                            class="flat"
389
                            tabindex="0" />
390
                </div>
391
                [% ELSE %]
392
                    <input type="hidden"
393
                        name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
394
                        value="[% subfield_loo.subfield | html %]" />
395
                [% END %]
456
396
457
                    [% UNLESS advancedMARCEditor %]
397
                [% UNLESS advancedMARCEditor %]
458
                        [% IF ( subfield_loo.mandatory ) %]
398
                    [% IF ( subfield_loo.mandatory ) %]
459
                            <div class="subfield subfield_mandatory">
399
                        <div class="subfield subfield_mandatory">
400
                    [% ELSE %]
401
                        <div class="subfield">
402
                    [% END %]
403
                        [% IF ( subfield_loo.fixedfield ) %]
404
                            <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" style="display:none;" class="labelsubfield">
460
                        [% ELSE %]
405
                        [% ELSE %]
461
                            <div class="subfield">
406
                            <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield">
462
                        [% END %]
407
                        [% END %]
463
                            [% IF ( subfield_loo.fixedfield ) %]
408
                            [% subfield_loo.marc_lib | $raw %]
464
                                <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" style="display:none;" class="labelsubfield">
409
                        </label>
465
                            [% ELSE %]
410
                    </div>
466
                                <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield">
411
                [% END %]
467
                            [% END %]
412
468
                                [% subfield_loo.marc_lib | $raw %]
413
                [% SET mv = subfield_loo.marc_value %]
469
                            </label>
414
                <div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor">
470
                        </div>
415
                [% IF ( mv.type == 'select' ) %]
416
                    [% IF mv.category AND CAN_user_parameters_manage_auth_values %]
417
                        <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]">
418
                    [% ELSE %]
419
                        <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
471
                    [% END %]
420
                    [% END %]
472
421
473
                    [% SET mv = subfield_loo.marc_value %]
422
                     [% FOREACH aval IN mv.values %]
474
                    <div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor">
423
                         [% IF aval == mv.default %]
475
                    [% IF ( mv.type == 'select' ) %]
424
                         <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
476
                        [% IF mv.category AND CAN_user_parameters_manage_auth_values %]
425
                         [% ELSE %]
477
                            <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]">
426
                         <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
427
                         [% END %]
428
                     [% END %]
429
                     </select>
430
                [% ELSIF ( mv.type == 'text1' ) %]
431
                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
432
                [% ELSIF ( mv.type == 'text2' ) %]
433
                    <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" />
434
                [% ELSIF ( mv.type == 'text' ) %]
435
                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]" />
436
                [% ELSIF ( mv.type == 'textarea' ) %]
437
                    <textarea cols="70" rows="4" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]">[%- mv.value | html -%]</textarea>
438
                [% ELSIF ( mv.type == 'hidden' ) %]
439
                    <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
440
                [% ELSIF ( mv.type == 'hidden_simple' ) %]
441
                    <input type="hidden" name="[%- mv.name | html -%]" />
442
                [% END %]
443
                </div>
444
                [% IF ( subfield_loo.mandatory ) %]
445
                    <div class="subfield_loop_mandatory">
446
                        <span class="required">Required</span>
447
                    </div>
448
                [% END %]
449
                <div class="subfield_controls">
450
                    [% IF ( mv.type == 'text1' ) %]
451
                        <a href="#" class="buttonDot tag_editor" onclick="openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtypecode | html -%]','auth'); return false;" tabindex="1" title="Tag editor">Tag editor</a>
452
                    [% ELSIF ( mv.type == 'text2' ) %]
453
                        [% IF mv.noclick %]
454
                            <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
478
                        [% ELSE %]
455
                        [% ELSE %]
479
                            <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
456
                            <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
480
                        [% END %]
457
                        [% END %]
481
458
                        [% mv.javascript | $raw %]
482
                        [% FOREACH aval IN mv.values %]
483
                            [% IF aval == mv.default %]
484
                            <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
485
                            [% ELSE %]
486
                            <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
487
                            [% END %]
488
                        [% END %]
489
                        </select>
490
                    [% ELSIF ( mv.type == 'text1' ) %]
491
                        <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
492
                    [% ELSIF ( mv.type == 'text2' ) %]
493
                        <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" />
494
                    [% ELSIF ( mv.type == 'text' ) %]
495
                        <input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]" />
496
                    [% ELSIF ( mv.type == 'textarea' ) %]
497
                        <textarea cols="70" rows="4" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]">[%- mv.value | html -%]</textarea>
498
                    [% ELSIF ( mv.type == 'hidden' ) %]
499
                        <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
500
                    [% ELSIF ( mv.type == 'hidden_simple' ) %]
501
                        <input type="hidden" name="[%- mv.name | html -%]" />
502
                    [% END %]
459
                    [% END %]
503
                    </div>
460
                    [% IF ( subfield_loo.repeatable ) %]
504
                    [% IF ( subfield_loo.mandatory ) %]
461
                        <a href="#" class="buttonPlus" tabindex="1" onclick="CloneSubfield('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]','[% advancedMARCEditor | html %]'); return false;">
505
                        <div class="subfield_loop_mandatory">
462
                            <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
506
                            <span class="required">Required</span>
463
                        </a>
507
                        </div>
464
                        <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;">
465
                            <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
466
                        </a>
508
                    [% END %]
467
                    [% END %]
509
                    <div class="subfield_controls">
510
                        [% IF ( mv.type == 'text1' ) %]
511
                            <a href="#" class="buttonDot tag_editor" onclick="openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtypecode | html -%]','auth'); return false;" tabindex="1" title="Tag editor">Tag editor</a>
512
                        [% ELSIF ( mv.type == 'text2' ) %]
513
                            [% IF mv.noclick %]
514
                                <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
515
                            [% ELSE %]
516
                                <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
517
                            [% END %]
518
                            [% mv.javascript | $raw %]
519
                        [% END %]
520
                        [% IF ( subfield_loo.repeatable ) %]
521
                            <a href="#" class="buttonPlus" tabindex="1" onclick="CloneSubfield('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]','[% advancedMARCEditor | html %]'); return false;">
522
                                <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
523
                            </a>
524
                            <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;">
525
                                <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
526
                            </a>
527
                        [% END %]
528
                    </div>
529
                                    </li>
530
                                    <!-- End of the line -->
531
                                [% END %]
532
                                </ul> <!-- /.sortable_subfield -->
533
                            </li>
534
                        [% END %]<!-- if innerloo.tag -->
535
                    [% END %]<!-- BIG_LOO.innerloop -->
536
                    </ul> <!-- /.sortable_field -->
537
                </div>
468
                </div>
538
            [% END %]<!-- BIG_LOOP -->
469
                                </li>
539
        </div><!-- tabs -->
470
                                <!-- End of the line -->
540
471
                            [% END %]
541
        <div name="hidden" id="hidden" class="tab">
472
                            </ul> <!-- /.sortable_subfield -->
542
        [% FOREACH hidden_loo IN hidden_loop %]
473
                        </li>
543
            <input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" />
474
                    [% END %]<!-- if innerloo.tag -->
544
            <input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" />
475
                [% END %]<!-- BIG_LOO.innerloop -->
545
            <input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" />
476
                </ul> <!-- /.sortable_field -->
546
            <input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" />
477
            </div>
547
            <input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" />
478
        [% END %]<!-- BIG_LOOP -->
548
        [% END %]
479
    </div><!-- tabs -->
549
        </div>
480
550
481
<div name="hidden" id="hidden" class="tab">
551
        [% IF ( oldauthnumtagfield ) %]
482
[% FOREACH hidden_loo IN hidden_loop %]
552
            <input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" />
483
    <input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" />
553
            <input type="hidden" name="subfield" value="[% oldauthnumtagsubfield | html %]" />
484
    <input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" />
554
            <input type="hidden" name="field_value" value="[% authid | html %]" />
485
    <input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" />
555
            <input type="hidden" name="mandatory" value="0" />
486
    <input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" />
556
            <input type="hidden" name="kohafield" value="[% kohafield | html %]" />
487
    <input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" />
557
            <input type="hidden" name="tag_mandatory" value="[% tag_mandatory | html %]" />
488
[% END %]
558
            <input type="hidden" name="tag" value="[% oldauthtypetagfield | html %]" />
489
</div>
559
            <input type="hidden" name="subfield" value="[% oldauthtypetagsubfield | html %]" />
490
[% IF ( oldauthnumtagfield ) %]
560
            <input type="hidden" name="field_value" value="[% authtypecode | html %]" />
491
    <input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" />
561
        [% END %]
492
    <input type="hidden" name="subfield" value="[% oldauthnumtagsubfield | html %]" />
493
    <input type="hidden" name="field_value" value="[% authid | html %]" />
494
    <input type="hidden" name="mandatory" value="0" />
495
    <input type="hidden" name="kohafield" value="[% kohafield | html %]" />
496
    <input type="hidden" name="tag_mandatory" value="[% tag_mandatory | html %]" />
497
    <input type="hidden" name="tag" value="[% oldauthtypetagfield | html %]" />
498
    <input type="hidden" name="subfield" value="[% oldauthtypetagsubfield | html %]" />
499
    <input type="hidden" name="field_value" value="[% authtypecode | html %]" />
500
[% END %]
562
501
563
    </form>
502
</form>
564
503
565
[% INCLUDE 'modals/cataloguing_create_av.inc' %]
504
[% INCLUDE 'modals/cataloguing_create_av.inc' %]
566
505
567
</div>
506
</div>
568
</fieldset>
569
</div>
507
</div>
570
</div>
508
</div>
571
509
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-7 / +7 lines)
Lines 354-363 Link Here
354
                + '  <tbody></tbody>'
354
                + '  <tbody></tbody>'
355
                + '</table>';
355
                + '</table>';
356
356
357
            var advSearchLink = $('<a>')
357
            var advSearchLink = $('<a id="lientype">')
358
                .attr('href', '/cgi-bin/koha/catalogue/search.pl')
358
                .attr('href', '/cgi-bin/koha/catalogue/search.pl')
359
                .html(_("Go to advanced search"));
359
                .html(_("Go to advanced search"));
360
            var editSearchLink = $('<a>')
360
            var editSearchLink = $('<a id="lientype">')
361
                .attr('href', '#')
361
                .attr('href', '#')
362
                .html(_("Edit search"))
362
                .html(_("Edit search"))
363
                .addClass('btn btn-default btn-xs')
363
                .addClass('btn btn-default btn-xs')
Lines 390-403 Link Here
390
              }
390
              }
391
            }
391
            }
392
392
393
            var csvExportLink = $('<a>')
393
            var csvExportLink = $('<a id="lientype">')
394
                .attr('href', '#')
394
                .attr('href', '#')
395
                .html("CSV")
395
                .html("CSV")
396
                .on('click', function(e) {
396
                .on('click', function(e) {
397
                    e.preventDefault();
397
                    e.preventDefault();
398
                    exportItems('csv');
398
                    exportItems('csv');
399
                });
399
                });
400
            var barcodesExportLink = $('<a>')
400
            var barcodesExportLink = $('<a id="lientype">')
401
                .attr('href', '#')
401
                .attr('href', '#')
402
                .html(_("Barcodes file"))
402
                .html(_("Barcodes file"))
403
                .on('click', function(e) {
403
                .on('click', function(e) {
Lines 419-425 Link Here
419
                  .append($('<li>').append(csvExportLink))
419
                  .append($('<li>').append(csvExportLink))
420
                  .append($('<li>').append(barcodesExportLink)));
420
                  .append($('<li>').append(barcodesExportLink)));
421
421
422
            var selectVisibleRows = $('<a>')
422
            var selectVisibleRows = $('<a id="lientype">')
423
              .attr('href', '#')
423
              .attr('href', '#')
424
              .append('<i class="fa fa-check"></i> ')
424
              .append('<i class="fa fa-check"></i> ')
425
              .append(_("Select visible rows"))
425
              .append(_("Select visible rows"))
Lines 427-433 Link Here
427
                  e.preventDefault();
427
                  e.preventDefault();
428
                  $('#results input[type="checkbox"]').prop('checked', true).change();
428
                  $('#results input[type="checkbox"]').prop('checked', true).change();
429
              });
429
              });
430
            var clearSelection = $('<a>')
430
            var clearSelection = $('<a id="lientype">')
431
              .attr('href', '#')
431
              .attr('href', '#')
432
              .append('<i class="fa fa-remove"></i> ')
432
              .append('<i class="fa fa-remove"></i> ')
433
              .append(_("Clear selection"))
433
              .append(_("Clear selection"))
Lines 594-600 Link Here
594
            // Add the "New field" link.
594
            // Add the "New field" link.
595
            var form_field = $('div.form-field-select-text').last()
595
            var form_field = $('div.form-field-select-text').last()
596
            var NEW_FIELD = _("New field");
596
            var NEW_FIELD = _("New field");
597
      var button_field_new = $('<a href="#" class="button-field-new" id="lientype" title="Add a new field"><i class="fa fa-plus"></i> ' + NEW_FIELD + '</a>');
597
      var button_field_new = $('<a id="lientype" href="#" class="button-field-new" id="lientype" title="Add a new field"><i class="fa fa-plus"></i> ' + NEW_FIELD + '</a>');
598
      button_field_new.click(function(e) {
598
      button_field_new.click(function(e) {
599
          e.preventDefault();
599
          e.preventDefault();
600
          addNewField( $(this) );
600
          addNewField( $(this) );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-68 / +64 lines)
Lines 1-13 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% INCLUDE 'doc-head-open.inc' %][% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% formulaire = BLOCK %]
6
    [% INCLUDE 'cat-search.inc' %]
7
[% END %]
8
<title>[% IF ( biblionumber ) %]Editing [% title | html %] (Record number [% biblionumber | html %])[% ELSE %]Add MARC record[% END %] &rsaquo; Cataloging &rsaquo; Koha</title>
5
<title>[% IF ( biblionumber ) %]Editing [% title | html %] (Record number [% biblionumber | html %])[% ELSE %]Add MARC record[% END %] &rsaquo; Cataloging &rsaquo; Koha</title>
9
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'calendar.inc' %]
11
[% Asset.js("lib/hc-sticky.js") | $raw %]
7
[% Asset.js("lib/hc-sticky.js") | $raw %]
12
[% INCLUDE 'select2.inc' %]
8
[% INCLUDE 'select2.inc' %]
13
<script>
9
<script>
Lines 134-140 Link Here
134
130
135
            if ( !confirm( breedingid ? _("This record cannot be transferred to the advanced editor. Continue?") : _("Any changes will not be saved. Continue?") ) ) return false;
131
            if ( !confirm( breedingid ? _("This record cannot be transferred to the advanced editor. Continue?") : _("Any changes will not be saved. Continue?") ) ) return false;
136
132
137
            Cookies.set( 'catalogue_editor_[% logged_in_user.borrowernumber | html %]', 'advanced', { expires: 365, path: '/', sameSite: 'Lax'  } );
133
            Cookies.set( 'catalogue_editor_[% logged_in_user.borrowernumber | html %]', 'advanced', { expires: 365, path: '/' } );
138
134
139
            var biblionumber = [% biblionumber || "null" | html %];
135
            var biblionumber = [% biblionumber || "null" | html %];
140
136
Lines 512-522 function PopupMARCFieldDoc(field) { Link Here
512
    function toggleMARCdocLinks(flag){
508
    function toggleMARCdocLinks(flag){
513
        if( flag === true ){
509
        if( flag === true ){
514
            $(".marcdocs").show();
510
            $(".marcdocs").show();
515
            Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: 'Lax'  });
511
            Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365 });
516
            $("#marcDocsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o');
512
            $("#marcDocsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o');
517
        } else {
513
        } else {
518
            $(".marcdocs").hide();
514
            $(".marcdocs").hide();
519
            Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: 'Lax'  });
515
            Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365 });
520
            $("#marcDocsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o');
516
            $("#marcDocsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o');
521
        }
517
        }
522
    }
518
    }
Lines 525-536 function PopupMARCFieldDoc(field) { Link Here
525
        if( flag === true ){
521
        if( flag === true ){
526
            $(".tagnum").show();
522
            $(".tagnum").show();
527
            $(".subfieldcode").show();
523
            $(".subfieldcode").show();
528
            Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: 'Lax'  });
524
            Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365 });
529
            $("#marcTagsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o');
525
            $("#marcTagsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o');
530
        } else {
526
        } else {
531
            $(".tagnum").hide();
527
            $(".tagnum").hide();
532
            $(".subfieldcode").hide();
528
            $(".subfieldcode").hide();
533
            Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: 'Lax'  });
529
            Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365 });
534
            $("#marcTagsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o');
530
            $("#marcTagsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o');
535
        }
531
        }
536
    }
532
    }
Lines 544-550 function PopupMARCFieldDoc(field) { Link Here
544
        var subfields = new Array();
540
        var subfields = new Array();
545
        var tab = new Array();
541
        var tab = new Array();
546
        var label = new Array();
542
        var label = new Array();
547
        var flag = false;
543
        var flag=0;
548
        var tabflag= new Array();
544
        var tabflag= new Array();
549
        var StrAlert = "<div id='form-errors' class='dialog alert list'>";
545
        var StrAlert = "<div id='form-errors' class='dialog alert list'>";
550
        var notFilledClass = "subfield_not_filled";
546
        var notFilledClass = "subfield_not_filled";
Lines 563-569 function PopupMARCFieldDoc(field) { Link Here
563
                    [% END %]
559
                    [% END %]
564
                [% END %]
560
                [% END %]
565
            [% END %]
561
            [% END %]
566
            StrAlert += "<h4>" + _("The following mandatory subfields aren't filled:") + "</h4>";
562
            StrAlert += "<h4>" + _("The following subfields aren't filled:") + "</h4>";
567
        } else {
563
        } else {
568
            [% FOREACH BIG_LOO IN BIG_LOOP %]
564
            [% FOREACH BIG_LOO IN BIG_LOOP %]
569
                [% FOREACH innerloo IN BIG_LOO.innerloop %]
565
                [% FOREACH innerloo IN BIG_LOO.innerloop %]
Lines 578-584 function PopupMARCFieldDoc(field) { Link Here
578
                    [% END %]
574
                    [% END %]
579
                [% END %]
575
                [% END %]
580
            [% END %]
576
            [% END %]
581
            StrAlert += "<h4>" + _("The following important subfields aren’t filled:") + "</h4>";
577
            StrAlert += "<h4>" + _("A few important fields are not filled:") + "</h4>";
582
            notFilledClass = "important_subfield_not_filled";
578
            notFilledClass = "important_subfield_not_filled";
583
        }
579
        }
584
        StrAlert += "<ul>";
580
        StrAlert += "<ul>";
Lines 613-619 function PopupMARCFieldDoc(field) { Link Here
613
                var tag=tagsubfieldid.substr(0,3);
609
                var tag=tagsubfieldid.substr(0,3);
614
                var subfield=tagsubfieldid.substr(3,1);
610
                var subfield=tagsubfieldid.substr(3,1);
615
                StrAlert += "<li>"+_("Tag %s subfield %s %s in tab %s").format(tag, subfield, formatFieldName( tabflag[tagsubfieldid][1] ), tabflag[tagsubfieldid][2]) + ' <a class="linkfield btn btn-link" href="#" data-tab="' + tabflag[tagsubfieldid][2] + '" data-field="' + tabflag[tagsubfieldid][3] + '"><i class="fa fa-arrow-right" aria-hidden="true"></i> ' + _("Go to field") + '</a></li>';
611
                StrAlert += "<li>"+_("Tag %s subfield %s %s in tab %s").format(tag, subfield, formatFieldName( tabflag[tagsubfieldid][1] ), tabflag[tagsubfieldid][2]) + ' <a class="linkfield btn btn-link" href="#" data-tab="' + tabflag[tagsubfieldid][2] + '" data-field="' + tabflag[tagsubfieldid][3] + '"><i class="fa fa-arrow-right" aria-hidden="true"></i> ' + _("Go to field") + '</a></li>';
616
                flag = true;
612
                flag=1;
617
            }
613
            }
618
        }
614
        }
619
        StrAlert += "</ul>";
615
        StrAlert += "</ul>";
Lines 667-673 function PopupMARCFieldDoc(field) { Link Here
667
            }
663
            }
668
664
669
            if(isempty){
665
            if(isempty){
670
                flag = true;
666
                flag = 1;
671
                if (mandatory) {
667
                if (mandatory) {
672
                    mandatoryFields[ arr[0] ] = {
668
                    mandatoryFields[ arr[0] ] = {
673
                        importance: "mandatory",
669
                        importance: "mandatory",
Lines 692-705 function PopupMARCFieldDoc(field) { Link Here
692
                if( mandatoryFields[prop]["importance"] == "mandatory" ){
688
                if( mandatoryFields[prop]["importance"] == "mandatory" ){
693
                    StrAlert += "<li>" + _("Field %s is mandatory, at least one of its subfields must be filled.").format( prop ) + ' <a class="linkfield btn btn-link" href="#" data-tab="' + mandatoryFields[prop]["tab"] + '" data-field="' + mandatoryFields[prop]["elemid"] + '"><i class="fa fa-arrow-right" aria-hidden="true"></i> ' + _("Go to field") + '</a></li>';
689
                    StrAlert += "<li>" + _("Field %s is mandatory, at least one of its subfields must be filled.").format( prop ) + ' <a class="linkfield btn btn-link" href="#" data-tab="' + mandatoryFields[prop]["tab"] + '" data-field="' + mandatoryFields[prop]["elemid"] + '"><i class="fa fa-arrow-right" aria-hidden="true"></i> ' + _("Go to field") + '</a></li>';
694
                } else {
690
                } else {
695
                    StrAlert += "<li>" + _("Field %s is important, at least one of its subfields must be filled.").format(prop) + ' <a class="linkfield btn btn-link" href="#" data-tab="' + mandatoryFields[prop]["tab"] + '" data-field="' + mandatoryFields[prop]["elemid"] + '"><i class="fa fa-arrow-right" aria-hidden="true"></i> ' + _("Go to field") + '</a></li>';
691
                    StrAlert += "<li>" + _("Field %s is important, at least one of its subfields must be filled.").format(arr[0]) + ' <a class="linkfield btn btn-link" href="#" data-tab="' + mandatoryFields[prop]["tab"] + '" data-field="' + mandatoryFields[prop]["elemid"] + '"><i class="fa fa-arrow-right" aria-hidden="true"></i> ' + _("Go to field") + '</a></li>';
696
                }
692
                }
697
            }
693
            }
698
            StrAlert += "</ul>";
694
            StrAlert += "</ul>";
699
        }
695
        }
700
        StrAlert += "</div>";
696
        StrAlert += "</div>";
701
        if ( flag ) {
697
        if (flag) {
702
            $("#show-errors").html('<button type="button" class="btn btn-danger show-errors"><i class="fa fa-warning"></i> ' + _("Errors") + '</span>');
698
            $("#show-errors").html('<button type="button" style="margin-top: 5px" class="btn btn-danger show-errors"><i class="fa fa-warning"></i> ' + _("Errors") + '</span>');
703
            return StrAlert;
699
            return StrAlert;
704
        } else {
700
        } else {
705
            return flag;
701
            return flag;
Lines 707-742 function PopupMARCFieldDoc(field) { Link Here
707
    }
703
    }
708
704
709
    /**
705
    /**
710
     * Run checks for mandatory and important fields
706
     *
711
     * Output errors if necessary, or submit the form
707
     *
712
     */
708
     */
713
    function Check(){
709
    function Check(){
714
        var StrAlert = AreFieldsNotOk();
710
        var StrAlert = AreFieldsNotOk();
715
        var StrWarning = AreFieldsNotOk( false );
711
        if( ! StrAlert ){
716
        if( !StrAlert && StrWarning ){
712
            var StrWarning = AreFieldsNotOk(false);
717
            // Check important fields
713
            if (StrWarning){
718
            $("#check_errors").html( StrWarning );
714
                StrWarning += "\n" + _("Are you sure you want to save?");
719
            $('html, body').animate({ scrollTop: 0 }, 'fast');
715
                var r=confirm(StrWarning);
720
716
                if (! r){
721
            var r=confirm( _("Important fields(s) are not filled. Are you sure you want to save?" ) );
717
                    return false;
722
            if (! r){
718
                }
723
                return false;
724
            } else {
725
                document.f.submit();
726
                return true;
727
            }
728
        } else if( StrAlert ){
729
            var strAll = StrAlert;
730
            if( StrWarning ){
731
                strAll += StrWarning;
732
            }
719
            }
733
            $("#check_errors").html( strAll );
720
            document.f.submit();
721
            return true;
722
        } else {
723
            $("#check_errors").html( StrAlert );
734
            $('html, body').animate({ scrollTop: 0 }, 'fast');
724
            $('html, body').animate({ scrollTop: 0 }, 'fast');
735
            Sticky.hcSticky('refresh');
725
            Sticky.hcSticky('refresh');
736
            return false;
726
            return false;
737
        } else if( !StrAlert && !StrWarning ){
738
            document.f.submit();
739
            return true;
740
        }
727
        }
741
    }
728
    }
742
729
Lines 789-795 function PopupMARCFieldDoc(field) { Link Here
789
       <div>Loading, please wait...</div>
776
       <div>Loading, please wait...</div>
790
   </div>
777
   </div>
791
778
792
    [% INCLUDE 'header.inc' form=formulaire %]
779
    [% INCLUDE 'header.inc' %]
793
780
794
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
781
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
795
        <ol>
782
        <ol>
Lines 809-820 function PopupMARCFieldDoc(field) { Link Here
809
                </a>
796
                </a>
810
            </li>
797
            </li>
811
        </ol>
798
        </ol>
812
        <ol>
813
            [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
814
        </ol>
815
        <ol>
816
            <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
817
        </ol>
818
    </nav>
799
    </nav>
819
800
820
    <div class="main container-fluid">
801
    <div class="main container-fluid">
Lines 873-888 function PopupMARCFieldDoc(field) { Link Here
873
                [% END %]
854
                [% END %]
874
855
875
                <div id="toolbar" class="btn-toolbar">
856
                <div id="toolbar" class="btn-toolbar">
876
                <div>
877
                    [% IF CAN_user_editcatalogue_edit_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
857
                    [% IF CAN_user_editcatalogue_edit_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
878
                        [% IF (circborrowernumber) %][%# fast cataloging must lead to items %]
858
                        [% IF (circborrowernumber) %][%# fast cataloging must lead to items %]
879
                            <!-- Action is under fast cataloging - Save button redirecting to items -->
859
                            <!-- Action is under fast cataloging - Save button redirecting to items -->
880
                            <div class="btn-group"><a href="#" id="saveanditems" class="principal"><i class="fa fa-save"></i> Save</a></div>
860
                            <div class="btn-group"><a href="#" id="saveanditems" class="btn btn-default principal"><i class="fa fa-save"></i> Save</a></div>
881
                        [% ELSE %]
861
                        [% ELSE %]
882
                            <!-- Not using fast cataloging - Display split menu -->
862
                            <!-- Not using fast cataloging - Display split menu -->
883
                            <div class="btn-group">
863
                            <div class="btn-group">
884
                                <button class="principal" id="saverecord"><i class="fa fa-save"></i> Save</button>
864
                                <button class="btn btn-default principal" id="saverecord"><i class="fa fa-save"></i> Save</button>
885
                                <button class="dropdown-toggle pat" data-toggle="dropdown">
865
                                <button class="btn btn-default dropdown-toggle principal" data-toggle="dropdown">
886
                                <span class="caret"></span>
866
                                <span class="caret"></span>
887
                                </button>
867
                                </button>
888
                                <ul class="dropdown-menu">
868
                                <ul class="dropdown-menu">
Lines 894-922 function PopupMARCFieldDoc(field) { Link Here
894
                        [% END %]
874
                        [% END %]
895
                    [% ELSE %]
875
                    [% ELSE %]
896
                        <!-- User cannot edit items - single button redirecting to view -->
876
                        <!-- User cannot edit items - single button redirecting to view -->
897
                        <div class="btn-group"><a href="#" id="saveandview" class="principal"><i class="fa fa-save"></i> Save</a></div>
877
                        <div class="btn-group"><a href="#" id="saveandview" class="btn btn-default principal"><i class="fa fa-save"></i> Save</a></div>
898
                    [% END # /IF CAN_user_editcatalogue_edit_items %]
878
                    [% END # /IF CAN_user_editcatalogue_edit_items %]
899
879
900
                    [% UNLESS (circborrowernumber) %][%# Hide in fast cataloging %]
880
                    [% UNLESS (circborrowernumber) %][%# Hide in fast cataloging %]
901
                        [% IF biblionumber %]
881
                        [% IF biblionumber %]
902
                            <div class="btn-group"><a class="pat" href="#" id="z3950search"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a></div>
882
                            <div class="btn-group"><a class="btn btn-default pat" href="#" id="z3950search"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a></div>
903
                        [% ELSE %]
883
                        [% ELSE %]
904
                            <div class="btn-group"><a class="pat" href="#" id="z3950search"><i class="fa fa-search"></i> Z39.50/SRU search</a></div>
884
                            <div class="btn-group"><a class="btn btn-default pat" href="#" id="z3950search"><i class="fa fa-search"></i> Z39.50/SRU search</a></div>
905
                        [% END %]
885
                        [% END %]
906
                        [% IF ( CAN_user_editauthorities ) %]
886
                        [% IF ( CAN_user_editauthorities ) %]
907
                            <div class="btn-group"><a class="pat" href="#" id="linkerbutton"><i class="fa fa-refresh"></i> Link authorities automatically</a></div>
887
                            <div class="btn-group"><a class="btn btn-default pat" href="#" id="linkerbutton"><i class="fa fa-refresh"></i> Link authorities automatically</a></div>
908
                        [% END %]
888
                        [% END %]
909
                    [% END %]
889
                    [% END %]
910
890
911
                    <div class="btn-group">
891
                    <div class="btn-group">
912
                        <button class="pat dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i> Settings <span class="caret"></span></button>
892
                        <button class="btn btn-default dropdown-toggle pat" data-toggle="dropdown"><i class="fa fa-cog"></i> Settings <span class="caret"></span></button>
913
                        <ul id="settings-menu" class="dropdown-menu">
893
                        <ul id="settings-menu" class="dropdown-menu">
914
                            [% IF Koha.Preference( 'EnableAdvancedCatalogingEditor' ) == 1 && CAN_user_editcatalogue_advanced_editor %]
894
                            [% IF Koha.Preference( 'EnableAdvancedCatalogingEditor' ) == 1 && CAN_user_editcatalogue_advanced_editor %]
915
                                <li><a href="#" id="switcheditor">Switch to advanced editor</a></li>
895
                                <li><a href="#" id="switcheditor">Switch to advanced editor</a></li>
916
                            [% END %]
896
                            [% END %]
917
                            [% UNLESS advancedMARCEditor %]
897
                            [% UNLESS advancedMARCEditor %]
918
                                <li>
898
                                <li>
919
                                    <a href="#" id="marcDocsSelect"><i class="fa fa-check-square-o"></i> Show MARC tag documentation links</a>
899
                                    <a href="#" id="marcDocsSelect"><i class="fa fa-check-square-o"></i> Show MARC tag documentation links</a></li>
920
                                <li>
900
                                <li>
921
                                    <a href="#" id="marcTagsSelect"><i class="fa fa-check-square-o"></i> Show tags</a>
901
                                    <a href="#" id="marcTagsSelect"><i class="fa fa-check-square-o"></i> Show tags</a>
922
                                </li>
902
                                </li>
Lines 934-940 function PopupMARCFieldDoc(field) { Link Here
934
                            </li>
914
                            </li>
935
                            [% FOREACH framework IN frameworks%]
915
                            [% FOREACH framework IN frameworks%]
936
                                <li>
916
                                <li>
937
                                    <a href="#" class="change-framework" data-frameworkcode="[% framework.frameworkcode | html %]">
917
                                    <a href="#" id="lientype" class="change-framework" data-frameworkcode="[% framework.frameworkcode | html %]">
938
                                        [% IF framework.frameworkcode == frameworkcode %]
918
                                        [% IF framework.frameworkcode == frameworkcode %]
939
                                            <i class="fa fa-fw fa-check"></i>
919
                                            <i class="fa fa-fw fa-check"></i>
940
                                        [% ELSE %]
920
                                        [% ELSE %]
Lines 943-964 function PopupMARCFieldDoc(field) { Link Here
943
                                        [% framework.frameworktext | html %]
923
                                        [% framework.frameworktext | html %]
944
                                    </a>
924
                                    </a>
945
                                </li>
925
                                </li>
946
                            [% END %]
926
                            [% END %]</li>
947
                        </ul> <!-- /#settings-menu -->
927
                        </ul> <!-- /#settings-menu -->
948
                    </div> <!-- /.btn-group -->
928
                    </div> <!-- /.btn-group -->
949
                    [% UNLESS (circborrowernumber) %][%# Hide in fast cataloging %]
929
                    [% UNLESS (circborrowernumber) %][%# Hide in fast cataloging %]
950
                        [% IF (biblionumber) %]
930
                        [% IF (biblionumber) %]
951
                            <div class="btn-group">
931
                            [% IF ( BiblioDefaultViewmarc ) %]
952
                                <a href="[% PROCESS biblio_a_href biblionumber => biblionumber %]" class="btn btn-default" id="cancel">Cancel</a>
932
                                <div class="btn-group">
953
                            </div>
933
                                    <a class="btn btn-default cancel" id="cancel" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% biblionumber |url %]">Cancel</a>
934
                                </div>
935
                            [% ELSIF ( BiblioDefaultViewlabeled_marc ) %]
936
                                <div class="btn-group">
937
                                    <a class="btn btn-default cancel" id="cancel" href="/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=[% biblionumber |url %]">Cancel</a>
938
                                </div>
939
                            [% ELSIF ( BiblioDefaultViewisbd ) %]
940
                                <div class="btn-group">
941
                                    <a class="btn btn-default cancel" id="cancel" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=[% biblionumber |url %]">Cancel</a>
942
                                </div>
943
                            [% ELSE %]
944
                                <div class="btn-group">
945
                                    <a class="btn btn-default cancel" id="cancel" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber |url %]">Cancel</a>
946
                                </div>
947
                            [% END %]
954
                        [% ELSE %]
948
                        [% ELSE %]
955
                            <div class="btn-group">
949
                            <div class="btn-group">
956
                                <a class="cancel" id="cancel" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cancel</a>
950
                                <a class="btn btn-default cancel" id="cancel" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cancel</a>
957
                            </div>
951
                            </div>
958
                        [% END %]
952
                        [% END %]
959
                        <div id="show-errors" class="btn-group"></div>
953
                        <div id="show-errors" class="btn-group"></div>
960
                    [% END # /UNLESS circborrowernumber %]
954
                    [% END # /UNLESS circborrowernumber %]
961
                    <div class="toolbar-tabs-container">
955
                    <div class="toolbar-tabs-container">
956
                    <div id="searchresults">
962
                        [% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %]
957
                        [% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %]
963
                            <ul class="toolbar-tabs">
958
                            <ul class="toolbar-tabs">
964
                                [%- FOREACH BIG_LOO IN BIG_LOOP -%]
959
                                [%- FOREACH BIG_LOO IN BIG_LOOP -%]
Lines 984-991 function PopupMARCFieldDoc(field) { Link Here
984
                                [% END %]
979
                                [% END %]
985
                            [% END %]
980
                            [% END %]
986
                        </ul>
981
                        </ul>
987
                    </div>
982
                    </div></div>
988
                </div></div> <!-- /#toolbar.btn-toolbar -->
983
                </div> <!-- /#toolbar.btn-toolbar -->
989
984
990
                [% IF bib_doesnt_exist %]
985
                [% IF bib_doesnt_exist %]
991
                    <div class="dialog alert">
986
                    <div class="dialog alert">
Lines 1004-1009 function PopupMARCFieldDoc(field) { Link Here
1004
                <input type="hidden" name="breedingid" value="[% breedingid | html %]" />
999
                <input type="hidden" name="breedingid" value="[% breedingid | html %]" />
1005
                <input type="hidden" name="changed_framework" value="" />
1000
                <input type="hidden" name="changed_framework" value="" />
1006
1001
1002
                <div id="searchresults">
1007
                <div id="addbibliotabs" class="toptabs numbered">
1003
                <div id="addbibliotabs" class="toptabs numbered">
1008
                    <ul>
1004
                    <ul>
1009
                        [% FOREACH BIG_LOO IN BIG_LOOP %]
1005
                        [% FOREACH BIG_LOO IN BIG_LOOP %]
Lines 1036-1042 function PopupMARCFieldDoc(field) { Link Here
1036
                                    [% ELSE %]
1032
                                    [% ELSE %]
1037
                                        <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
1033
                                        <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
1038
                                    [% END %]
1034
                                    [% END %]
1039
                                        <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
1035
                                        <div class="tag_title" style="background-color: #f3f4f4" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
1040
                                            [% IF advancedMARCEditor %]
1036
                                            [% IF advancedMARCEditor %]
1041
                                                <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>
1037
                                                <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>
1042
                                            [% ELSE %]
1038
                                            [% ELSE %]
Lines 1204-1210 function PopupMARCFieldDoc(field) { Link Here
1204
                            </ul> <!--  /.sortable_field -->
1200
                            </ul> <!--  /.sortable_field -->
1205
                        </div> <!-- /#tabXXX -->
1201
                        </div> <!-- /#tabXXX -->
1206
                    [% END # /FOREACH BIG_LOOP %]
1202
                    [% END # /FOREACH BIG_LOOP %]
1207
                </div><!-- /#addbibliotabs -->
1203
                </div></div><!-- /#addbibliotabs -->
1208
1204
1209
                [%# Fields for fast cataloging %]
1205
                [%# Fields for fast cataloging %]
1210
                <input type="hidden" name="barcode" value="[% barcode | html %]" />
1206
                <input type="hidden" name="barcode" value="[% barcode | html %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +1 lines)
Lines 610-616 Link Here
610
                            </div>
610
                            </div>
611
                        [% END %]
611
                        [% END %]
612
612
613
                        <div class="row">
613
                        <div>
614
                            [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
614
                            [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
615
                                <div class="col-sm-6">
615
                                <div class="col-sm-6">
616
                                    <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
616
                                    <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +1 lines)
Lines 180-186 Link Here
180
                            <!-- Patron has added an issue note -->
180
                            <!-- Patron has added an issue note -->
181
                            [% IF ( issue.note) %]
181
                            [% IF ( issue.note) %]
182
                                <div class="dialog message">
182
                                <div class="dialog message">
183
                                    <h1>Patron note</h1>
183
                                    <h2>Patron note</h2>
184
                                    <p>[% issue.notedate | $KohaDates %]</p>
184
                                    <p>[% issue.notedate | $KohaDates %]</p>
185
                                    <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
185
                                    <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
186
                                    <p>[% issue.note | html %]</p>
186
                                    <p>[% issue.note | html %]</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-75 / +73 lines)
Lines 52-60 Link Here
52
                        [% END %]
52
                        [% END %]
53
                [% END %]
53
                [% END %]
54
                </div><!-- /additional-contents -->
54
                </div><!-- /additional-contents -->
55
55
                <div id="area-news">
56
                <div id="area-news">
56
                    <h3>Quote of the day</h3>
57
                    <h3>Quote of the day</h3>
57
58
                [% IF ( daily_quote ) %]
58
                [% IF ( daily_quote ) %]
59
                        <div class="newsitem">
59
                        <div class="newsitem">
60
                            <span id="daily-quote-text">[% daily_quote.text | html %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source | html %]</span>
60
                            <span id="daily-quote-text">[% daily_quote.text | html %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source | html %]</span>
Lines 62-140 Link Here
62
                [% END %]
62
                [% END %]
63
                </div>
63
                </div>
64
64
65
            </div> <!-- /.col-sm-2 -->
65
                [%# Following statement must be in one line for translatability %]
66
            <div class="col-sm-9">
67
                <div class="row">
68
                    <div class="menuspe"><ul class="biglinks-list">
69
                        [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
70
                            <li><a class="accueil" href="/cgi-bin/koha/circ/circulation-home.pl"><i class="fa fa-fw fa-exchange fa-2x"></i><h1>Circulation</h1></a></li>
71
                        [% END %]
72
73
                        [% IF CAN_user_borrowers_edit_borrowers %]
74
                            <li><a class="accueil" href="/cgi-bin/koha/members/members-home.pl"><i class="fa fa-fw fa-id-card-o fa-2x"></i><h1>Patrons</h1></a></li>
75
                        [% END %]
76
77
                         </ul></div>
78
                        <div class="menuspe"><ul class="biglinks-list">
79
80
                        [% IF ( CAN_user_catalogue ) %]
81
                            <li><a class="accueil" href="/cgi-bin/koha/catalogue/search.pl"><i class="fa fa-fw fa-search fa-2x"></i><h1>Advanced search</h1></a></li>
82
                            <li><a class="accueil" href="/cgi-bin/koha/catalogue/itemsearch.pl"><i class="fa fa-fw fa-search fa-2x"></i><h1>Item search</h1></a></li>
83
                        [% END %]
84
85
                        <li><a class="accueil" href="/cgi-bin/koha/virtualshelves/shelves.pl"><i class="fa fa-fw fa-list-alt fa-2x"></i><h1>Lists</h1></a></li>
86
                        
87
                        [% IF ( UseCourseReserves ) %]
88
                            <li><a class="accueil" href="/cgi-bin/koha/course_reserves/course-reserves.pl"><i class="fa fa-fw fa-book fa-2x"></i><h1>Course reserves</h1></a></li>
89
                        [% END %]
90
91
                    </ul></div>
92
                    <div class="menuspe"><ul class="biglinks-list">
93
                            
94
                            <li><a class="accueil" href="/cgi-bin/koha/authorities/authorities-home.pl"><i class="fa fa-fw fa-link fa-2x"></i><h1>Authorities</h1></a></li>
95
                        [% IF Koha.Preference('ILLModule') && CAN_user_ill %]
96
                            <li><a class="accueil" href="/cgi-bin/koha/ill/ill-requests.pl"><i class="fa fa-fw fa-retweet fa-2x"></i><h1>ILL requests</h1></a></li>
97
                        [% END %]
98
99
                        [% IF ( Koha.Preference('EnablePointOfSale') && Koha.Preference('UseCashRegisters') && CAN_user_cash_management_takepayment ) %]
100
                            <li><a class="accueil" href="/cgi-bin/koha/pos/pay.pl"><i class="fa fa-fw fa-shopping-cart fa-2x"></i><h1>Point of sale</h1></a></li>
101
                        [% END %]
102
103
                        [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
104
                            <li><a class="accueil" href="/cgi-bin/koha/cataloguing/addbooks.pl"><i class="fa fa-fw fa-tag fa-2x"></i><h1>Cataloging</h1></a></li>
105
                        [% END %]
106
107
                        [% IF ( CAN_user_serials ) %]
108
                            <li><a class="accueil" href="/cgi-bin/koha/serials/serials-home.pl"><i class="fa fa-fw fa-newspaper-o fa-2x"></i><span class="biglink"></span><h1>Serials</h1></a></li>
109
                        [% END %]
110
111
                        [% IF ( CAN_user_acquisition ) %]
112
                            <li><a class="accueil" href="/cgi-bin/koha/acqui/acqui-home.pl"><i class="fa fa-fw fa-gift fa-2x"></i><span class="biglink"></span><h1>Acquisitions</h1></a></li>
113
                        [% END %]
114
                    </ul></div>
115
                        <div class="vert"><ul class="biglinks-list">
116
                        [% IF ( CAN_user_reports ) %]
117
                            <li><a class="accueil" id="reglages" href="/cgi-bin/koha/reports/reports-home.pl"><i class="fa fa-fw fa-pie-chart fa-2x"></i><h1>Reports</h1></a></li>
118
                        [% END %]
119
120
121
                        [% IF ( CAN_user_tools ) %]
122
                            <li><a class="accueil" id="reglages" href="/cgi-bin/koha/tools/tools-home.pl"><i class="fa fa-fw fa-wrench fa-2x"></i><h1>Tools</h1></a></li>
123
                        [% END %]
124
125
                        [% IF ( CAN_user_parameters ) %]
126
                            <li><a class="accueil" id="reglages" href="/cgi-bin/koha/admin/admin-home.pl"><i class="fa fa-fw fa-cogs fa-2x"></i><h1>Administration</h1></a></li>
127
                        [% END %]
128
129
                            <li><a class="accueil" id="reglages" href="/cgi-bin/koha/about.pl"><img src="/intranet-tmpl/prog/img/koha-egg.svg" alt="Koha Logo SVG"><h1>About Koha</h1></a></li>
130
                        </div>
131
                    </ul></div>
132
                </div> <!-- /.row -->
133
                <div class="row">
134
                    <div class="col-sm-12">
135
                        [%# Following statement must be in one line for translatability %]
136
                        [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) || ( CAN_user_suggestions_suggestions_manage && ( pendingsuggestions || all_pendingsuggestions )) || ( CAN_user_borrowers_edit_borrowers && pending_discharge_requests ) || pending_article_requests || ( Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes && pending_checkout_notes.count ) || ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports.count ) || already_ran_jobs %]
66
                        [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) || ( CAN_user_suggestions_suggestions_manage && ( pendingsuggestions || all_pendingsuggestions )) || ( CAN_user_borrowers_edit_borrowers && pending_discharge_requests ) || pending_article_requests || ( Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes && pending_checkout_notes.count ) || ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports.count ) || already_ran_jobs %]
137
                            <div id="area-pending">
67
                            <div id="area-news">
138
                                [% IF pending_article_requests %]
68
                                [% IF pending_article_requests %]
139
                                <div class="pending-info" id="article_requests_pending">
69
                                <div class="pending-info" id="article_requests_pending">
140
70
Lines 146-152 Link Here
146
                                [% IF CAN_user_suggestions_suggestions_manage && ( pendingsuggestions || all_pendingsuggestions ) %]
76
                                [% IF CAN_user_suggestions_suggestions_manage && ( pendingsuggestions || all_pendingsuggestions ) %]
147
                                <div class="pending-info" id="suggestions_pending">
77
                                <div class="pending-info" id="suggestions_pending">
148
78
149
                                    Suggestions pending approval:
79
                                    <h3>Suggestions pending approval</h3>
150
                                    <a href="/cgi-bin/koha/suggestion/suggestion.pl?branchcode=[% Branches.GetLoggedInBranchcode | url %]#ASKED">
80
                                    <a href="/cgi-bin/koha/suggestion/suggestion.pl?branchcode=[% Branches.GetLoggedInBranchcode | url %]#ASKED">
151
                                    <span id="pendingsuggestions" class="pending-number-link">[% Branches.GetLoggedInBranchname | html %]: [% pendingsuggestions | html %]</span>
81
                                    <span id="pendingsuggestions" class="pending-number-link">[% Branches.GetLoggedInBranchname | html %]: [% pendingsuggestions | html %]</span>
152
                                    </a>
82
                                    </a>
Lines 211-220 Link Here
211
                            </div>
141
                            </div>
212
142
213
                        [% END %]
143
                        [% END %]
144
            </div> <!-- /.col-sm-2 -->
145
146
147
            <div class="col-sm-9">
148
                <div class="row">
149
                    <div class="menuspe"><ul class="biglinks-list">
150
                        [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
151
                            <li><a class="accueil" href="/cgi-bin/koha/circ/circulation-home.pl"><i class="fa fa-fw fa-exchange fa-2x"></i><h1>Circulation</h1></a></li>
152
                        [% END %]
153
154
                        [% IF CAN_user_borrowers_edit_borrowers %]
155
                            <li><a class="accueil" href="/cgi-bin/koha/members/members-home.pl"><i class="fa fa-fw fa-id-card-o fa-2x"></i><h1>Patrons</h1></a></li>
156
                        [% END %]
157
158
                         </ul></div>
159
                        <div class="menuspe"><ul class="biglinks-list">
160
161
                        [% IF ( CAN_user_catalogue ) %]
162
                            <li><a class="accueil" href="/cgi-bin/koha/catalogue/search.pl"><i class="fa fa-fw fa-search fa-2x"></i><h1>Advanced search</h1></a></li>
163
                            <li><a class="accueil" href="/cgi-bin/koha/catalogue/itemsearch.pl"><i class="fa fa-fw fa-search fa-2x"></i><h1>Item search</h1></a></li>
164
                        [% END %]
165
166
                        <li><a class="accueil" href="/cgi-bin/koha/virtualshelves/shelves.pl"><i class="fa fa-fw fa-list-alt fa-2x"></i><h1>Lists</h1></a></li>
167
                        
168
                        [% IF ( UseCourseReserves ) %]
169
                            <li><a class="accueil" href="/cgi-bin/koha/course_reserves/course-reserves.pl"><i class="fa fa-fw fa-book fa-2x"></i><h1>Course reserves</h1></a></li>
170
                        [% END %]
171
172
                    </ul></div>
173
                    <div class="menuspe"><ul class="biglinks-list">
174
                            
175
                            <li><a class="accueil" href="/cgi-bin/koha/authorities/authorities-home.pl"><i class="fa fa-fw fa-link fa-2x"></i><h1>Authorities</h1></a></li>
176
                        [% IF Koha.Preference('ILLModule') && CAN_user_ill %]
177
                            <li><a class="accueil" href="/cgi-bin/koha/ill/ill-requests.pl"><i class="fa fa-fw fa-retweet fa-2x"></i><h1>ILL requests</h1></a></li>
178
                        [% END %]
179
180
                        [% IF ( Koha.Preference('EnablePointOfSale') && Koha.Preference('UseCashRegisters') && CAN_user_cash_management_takepayment ) %]
181
                            <li><a class="accueil" href="/cgi-bin/koha/pos/pay.pl"><i class="fa fa-fw fa-shopping-cart fa-2x"></i><h1>Point of sale</h1></a></li>
182
                        [% END %]
183
184
                        [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
185
                            <li><a class="accueil" href="/cgi-bin/koha/cataloguing/addbooks.pl"><i class="fa fa-fw fa-tag fa-2x"></i><h1>Cataloging</h1></a></li>
186
                        [% END %]
187
188
                        [% IF ( CAN_user_serials ) %]
189
                            <li><a class="accueil" href="/cgi-bin/koha/serials/serials-home.pl"><i class="fa fa-fw fa-newspaper-o fa-2x"></i><span class="biglink"></span><h1>Serials</h1></a></li>
190
                        [% END %]
214
191
215
                    </div> <!-- /.col-sm-12 -->
192
                        [% IF ( CAN_user_acquisition ) %]
193
                            <li><a class="accueil" href="/cgi-bin/koha/acqui/acqui-home.pl"><i class="fa fa-fw fa-gift fa-2x"></i><span class="biglink"></span><h1>Acquisitions</h1></a></li>
194
                        [% END %]
195
                    </ul></div>
196
                        <div class="vert"><ul class="biglinks-list">
197
                        [% IF ( CAN_user_reports ) %]
198
                            <li><a class="accueil" id="reglages" href="/cgi-bin/koha/reports/reports-home.pl"><i class="fa fa-fw fa-pie-chart fa-2x"></i><h1>Reports</h1></a></li>
199
                        [% END %]
200
201
202
                        [% IF ( CAN_user_tools ) %]
203
                            <li><a class="accueil" id="reglages" href="/cgi-bin/koha/tools/tools-home.pl"><i class="fa fa-fw fa-wrench fa-2x"></i><h1>Tools</h1></a></li>
204
                        [% END %]
205
206
                        [% IF ( CAN_user_parameters ) %]
207
                            <li><a class="accueil" id="reglages" href="/cgi-bin/koha/admin/admin-home.pl"><i class="fa fa-fw fa-cogs fa-2x"></i><h1>Administration</h1></a></li>
208
                        [% END %]
209
210
                            <li><a class="accueil" id="reglages" href="/cgi-bin/koha/about.pl"><img src="/intranet-tmpl/prog/img/koha-egg.svg" alt="Koha Logo SVG"><h1>About Koha</h1></a></li>
211
                        </div>
212
                    </ul></div>
216
                </div> <!-- /.row -->
213
                </div> <!-- /.row -->
217
214
215
218
                [% IF ( IntranetmainUserblock ) %]
216
                [% IF ( IntranetmainUserblock ) %]
219
                    <div class="row">
217
                    <div class="row">
220
                        <div class="col-sm-12">
218
                        <div class="col-sm-12">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/barcode-print.tt (-2 / +2 lines)
Lines 68-74 Link Here
68
                <h2>Barcode image generator</h2>
68
                <h2>Barcode image generator</h2>
69
69
70
                <form action="/cgi-bin/koha/svc/barcode" method="post" id="barcodegen">
70
                <form action="/cgi-bin/koha/svc/barcode" method="post" id="barcodegen">
71
                    <fieldset class="brief">
71
                    <fieldset class="searchresults">
72
                        <div class="row">
72
                        <div class="row">
73
                            <div class="col-sm-6">
73
                            <div class="col-sm-6">
74
                                <ol>
74
                                <ol>
Lines 115-121 Link Here
115
                                </fieldset>
115
                                </fieldset>
116
                            </div>
116
                            </div>
117
                            <div class="col-sm-6">
117
                            <div class="col-sm-6">
118
                                <div id="barcode_container">
118
                                <div id="barcode_container" style="overflow:auto">
119
                                    <img id="barcode_image" />
119
                                    <img id="barcode_image" />
120
                                    <textarea readonly="readonly" rows="5" cols="40" id="urltext"></textarea>
120
                                    <textarea readonly="readonly" rows="5" cols="40" id="urltext"></textarea>
121
                                </div>
121
                                </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-12 / +14 lines)
Lines 66-76 Link Here
66
                        [% INCLUDE 'labels-toolbar.inc' %]
66
                        [% INCLUDE 'labels-toolbar.inc' %]
67
67
68
                        [% IF description %]
68
                        [% IF description %]
69
                            <h1>Edit [% description | html %]</h1>
69
                            <h2>Edit [% description | html %]</h2>
70
                        [% ELSIF batch_id %]
70
                        [% ELSIF batch_id %]
71
                            <h1>Edit label batch [% batch_id | html %]</h1>
71
                            <h2>Edit label batch [% batch_id | html %]</h2>
72
                        [% ELSE %]
72
                        [% ELSE %]
73
                            <h1>New label batch</h1>
73
                            <h2>New label batch</h2>
74
                        [% END %]
74
                        [% END %]
75
75
76
                        [% IF ( err ) %]
76
                        [% IF ( err ) %]
Lines 131-143 Link Here
131
                                </div>
131
                                </div>
132
                            </form>
132
                            </form>
133
                            <div id="batch-manage" class="btn-toolbar">
133
                            <div id="batch-manage" class="btn-toolbar">
134
                                <a class="btn btn-default" id="additems" href="#"><i class="fa fa-plus"></i> Add item(s)</a>[% IF ( table_loop ) %]
134
                                <a class="btn btn-default lientype" id="additems" href="#"><i class="fa fa-plus"></i> Add item(s)</a>
135
                                <a class="btn btn-default" id="savedesc" href="#" data-batch_id="[% batch_id | html %]"><i class="fa fa-save"></i> Save description</a>
135
                                [% IF ( table_loop ) %]
136
                                <a class="btn btn-default" id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected items</a>
136
                                <a class="btn btn-default lientype" id="savedesc" href="#" data-batch_id="[% batch_id | html %]"><i class="fa fa-save"></i> Save description</a>
137
                                <a class="btn btn-default" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a>
137
                                <a class="btn btn-default lientype" id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected items</a>
138
                                <a class="btn btn-default" id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a>
138
                                <a class="btn btn-default lientype" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a>
139
                                <a class="btn btn-default" id="exportitems" href="#"><i class="fa fa-share-square-o"></i> Export selected items</a>
139
                                <a class="btn btn-default lientype" id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a>
140
                                <a class="btn btn-default" id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> Export full batch</a>[% END %]
140
                                <a class="btn btn-default lientype" id="exportitems" href="#"><i class="fa fa-share-square-o"></i> Export selected items</a>
141
                                <a class="btn btn-default lientype" id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> Export full batch</a>
142
                                [% END %]
141
                            </div>
143
                            </div>
142
                            [% IF ( table_loop ) %]
144
                            [% IF ( table_loop ) %]
143
                                <form name="items">
145
                                <form name="items">
Lines 173-180 Link Here
173
                                                        [% FOREACH text_field IN table_loo.text_fields %]
175
                                                        [% FOREACH text_field IN table_loo.text_fields %]
174
                                                            [% IF ( text_field.select_field ) %]
176
                                                            [% IF ( text_field.select_field ) %]
175
                                                                <td>
177
                                                                <td>
176
                                                                    <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&amp;batch_id=[% batch_id |url %]&amp;label_id=[% text_field.field_value |url %]"><i class="fa fa-trash"></i> Delete</a>
178
                                                                    <a id="lientype" class="btn btn-default btn-xs delete" href="/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&amp;batch_id=[% batch_id |url %]&amp;label_id=[% text_field.field_value |url %]"><i class="fa fa-trash"></i> Delete</a>
177
                                                                    <a class="btn btn-default btn-xs export" href="#" data-batch-id="[% batch_id | html %]" data-label-id="[% text_field.field_value | html %]"><i class="fa fa-share-square-o"></i> Export</a>
179
                                                                    <a id="lientype" class="btn btn-default btn-xs export" href="#" data-batch-id="[% batch_id | html %]" data-label-id="[% text_field.field_value | html %]"><i class="fa fa-share-square-o"></i> Export</a>
178
                                                                </td>
180
                                                                </td>
179
                                                                <td><input type="checkbox" name="action" value="[% text_field.field_value | html %]"></td>
181
                                                                <td><input type="checkbox" name="action" value="[% text_field.field_value | html %]"></td>
180
                                                            [% ELSE %]
182
                                                            [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt (-15 / +14 lines)
Lines 5-15 Link Here
5
[% END %]
5
[% END %]
6
[%- BLOCK translate_label_types -%]
6
[%- BLOCK translate_label_types -%]
7
    [%-  SWITCH type -%]
7
    [%-  SWITCH type -%]
8
        [%- CASE 'BIB' -%]<span> Only the bibliographic data is printed</span>
8
        [%- CASE 'BIB' -%] Only the bibliographic data is printed
9
        [%- CASE 'BARBIB'-%]<span> Barcode proceeds bibliographic data</span>
9
        [%- CASE 'BARBIB'-%] Barcode proceeds bibliographic data
10
        [%- CASE 'BIBBAR'-%]<span> Bibliographic data proceeds barcode</span>
10
        [%- CASE 'BIBBAR'-%] Bibliographic data proceeds barcode
11
        [%- CASE 'ALT' -%]<span> Barcode and bibliographic data are printed on alternating labels</span>
11
        [%- CASE 'ALT' -%] Barcode and bibliographic data are printed on alternating labels
12
        [%- CASE 'BAR' -%]<span> Only the barcode is printed</span>
12
        [%- CASE 'BAR' -%] Only the barcode is printed
13
    [%- END -%]
13
    [%- END -%]
14
[%- END -%]
14
[%- END -%]
15
    [% INCLUDE 'doc-head-open.inc' %]
15
    [% INCLUDE 'doc-head-open.inc' %]
Lines 19-31 Link Here
19
19
20
[% BLOCK translate_justification_types %]
20
[% BLOCK translate_justification_types %]
21
[%  SWITCH type %]
21
[%  SWITCH type %]
22
[%   CASE 'L' %]<span>Left</span>
22
[%   CASE 'L' %]Left
23
[%   CASE 'C' %]<span>Center</span>
23
[%   CASE 'C' %]Center
24
[%   CASE 'R' %]<span>Right</span>
24
[%   CASE 'R' %]Right
25
[%  END %]
25
[%  END %]
26
[% END %]
26
[% END %]
27
<body id="labels_label-edit-layout" class="tools labels">
27
<body id="labels_label-edit-layout" class="tools labels">
28
    [% INCLUDE 'header.inc'' form=formulaire %]
28
    [% INCLUDE 'header.inc' %]
29
29
30
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
30
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
31
        <ol>
31
        <ol>
Lines 72-80 Link Here
72
                    [% INCLUDE 'labels-toolbar.inc' %]
72
                    [% INCLUDE 'labels-toolbar.inc' %]
73
73
74
                    [% IF ( layout_id ) %]
74
                    [% IF ( layout_id ) %]
75
                        <h1>Edit label layout [% layout_id | html %]</h1>
75
                        <h2>Edit label layout [% layout_id | html %]</h2>
76
                    [% ELSE %]
76
                    [% ELSE %]
77
                        <h1>New label layout</h1>
77
                        <h2>New label layout</h2>
78
                    [% END %]
78
                    [% END %]
79
79
80
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
80
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
Lines 110-116 Link Here
110
                                </li>
110
                                </li>
111
                                <li>
111
                                <li>
112
                                    <fieldset>
112
                                    <fieldset>
113
                                        <legend>Bibliographic data to print</legend>
113
                                        <h3>Bibliographic data to print</h3>
114
										<ol>
114
										<ol>
115
                                        <li class="radio">[% IF ( layout_string ) %]
115
                                        <li class="radio">[% IF ( layout_string ) %]
116
                                        <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" checked="checked" /><label for="layout_choice_order">Choose order of text fields to print</label>
116
                                        <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" checked="checked" /><label for="layout_choice_order">Choose order of text fields to print</label>
Lines 208-216 Link Here
208
                                    [% END %]
208
                                    [% END %]
209
                                </li>
209
                                </li>
210
                            </ol>
210
                            </ol>
211
                        </fieldset>
211
212
                        <fieldset class="action">
212
                            <input type="submit" class="principal" value="Save" />
213
                            <input type="submit" value="Save" />
214
                            <a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Cancel</a>
213
                            <a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Cancel</a>
215
                            <input type="hidden" name="op" value="save" />
214
                            <input type="hidden" name="op" value="save" />
216
                            <input type="hidden" name="layout_id" value="[% layout_id | html %]" />
215
                            <input type="hidden" name="layout_id" value="[% layout_id | html %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt (-2 / +3 lines)
Lines 131-138 Link Here
131
                                                <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert | html %]" />
131
                                                <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert | html %]" />
132
                                            </li>
132
                                            </li>
133
                                        </ol>
133
                                        </ol>
134
                                        
134
                                        </fieldset>
135
                                        <input type="submit" value="Save" class="princip"/>
135
                                        <fieldset class="action">
136
                                        <input type="submit" value="Save" class="principal"/>
136
                                        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
137
                                        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
137
                                        <input type="hidden" name="op" value="save" />
138
                                        <input type="hidden" name="op" value="save" />
138
                                        <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
139
                                        <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt (-3 / +2 lines)
Lines 54-62 Link Here
54
                                    <input type="text" inputmode="numeric" pattern="[0-9]*" name="to" id="to-input" value="0" style="text-align: right;"/>
54
                                    <input type="text" inputmode="numeric" pattern="[0-9]*" name="to" id="to-input" value="0" style="text-align: right;"/>
55
                                </li>
55
                                </li>
56
                            </ol>
56
                            </ol>
57
                        </fieldset>
57
58
                        <fieldset class="action">
58
                            <button type="button" class="btn btn-default principal" id="print">Print range</button>
59
                            <button type="button" class="btn btn-default" id="print">Print range</button>
60
                        </fieldset>
59
                        </fieldset>
61
                    </form>
60
                    </form>
62
                </main>
61
                </main>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt (-1 / +1 lines)
Lines 177-183 Link Here
177
                        </div>
177
                        </div>
178
                    </div>
178
                    </div>
179
                        <fieldset class="action">
179
                        <fieldset class="action">
180
                            <input type="submit" class="submit principal" value="Save" /><a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Cancel</a>
180
                            <input type="submit" class="principal" value="Save" /><a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Cancel</a>
181
                            <input type="hidden" name="op" value="save" />
181
                            <input type="hidden" name="op" value="save" />
182
                            [% IF ( template_id ) %]
182
                            [% IF ( template_id ) %]
183
                            <input type="hidden" name="template_id" value="[% template_id | html %]" />
183
                            <input type="hidden" name="template_id" value="[% template_id | html %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt (+2 lines)
Lines 66-71 Link Here
66
66
67
                        <div id="manage-label-layouts">
67
                        <div id="manage-label-layouts">
68
                            [% IF ( table_loop ) %]
68
                            [% IF ( table_loop ) %]
69
                            <div id="searchresults">
69
                            <form name="layouts" action="/cgi-bin/koha/label-manage.pl?label_element=[% label_element | html %]">
70
                            <form name="layouts" action="/cgi-bin/koha/label-manage.pl?label_element=[% label_element | html %]">
70
                            [% IF    ( label_element == 'layout' ) %]
71
                            [% IF    ( label_element == 'layout' ) %]
71
                            <h3>Currently available layouts</h3>
72
                            <h3>Currently available layouts</h3>
Lines 124-129 Link Here
124
                            [% IF ( print ) %]<button type="button" class="btn btn-default" id="print">Export selected</button>[% END %]
125
                            [% IF ( print ) %]<button type="button" class="btn btn-default" id="print">Export selected</button>[% END %]
125
                            </fieldset>
126
                            </fieldset>
126
                            </form>
127
                            </form>
128
                            </div>
127
                            [% ELSE %]
129
                            [% ELSE %]
128
							<div class="dialog message">
130
							<div class="dialog message">
129
                            <h4>There are no
131
                            <h4>There are no
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt (-1 / +1 lines)
Lines 101-107 to add to Batch [% batch_id | html %] Link Here
101
</ol>
101
</ol>
102
</fieldset>
102
</fieldset>
103
103
104
<fieldset class="action"><input type="submit" value="Search" class="submit principal" /> <a class="cancel close" href="#">Cancel</a></fieldset>
104
<fieldset class="action"><input type="submit" value="Search" class="principal" /> <a class="cancel close" href="#">Cancel</a></fieldset>
105
</form>
105
</form>
106
</div>
106
</div>
107
107
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-1 / +1 lines)
Lines 15-21 Link Here
15
</head>
15
</head>
16
16
17
<body id="pat_member">
17
<body id="pat_member">
18
[% INCLUDE 'header.inc' %]
18
[% INCLUDE 'header.inc' form=formulaire %]
19
19
20
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
20
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21
    <ol>
21
    <ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-4 / +4 lines)
Lines 435-446 Link Here
435
                                [% IF ( CAN_user_reports_create_reports ) %]
435
                                [% IF ( CAN_user_reports_create_reports ) %]
436
                                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
436
                                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
437
                                        <input type="hidden" name="phase" value="Build new" />
437
                                        <input type="hidden" name="phase" value="Build new" />
438
                                        <button type="submit" class="new"><i class="fa fa-plus"></i> New guided report</button>
438
                                        <button id="lientype" type="submit" class="new"><i class="fa fa-plus"></i> New guided report</button>
439
                                    </form>
439
                                    </form>
440
440
441
                                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
441
                                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
442
                                        <input type="hidden" name="phase" value="Create report from SQL" />
442
                                        <input type="hidden" name="phase" value="Create report from SQL" />
443
                                        <button type="submit" class="new"><i class="fa fa-plus"></i> New SQL report</button>
443
                                        <button id="lientype" type="submit" class="new"><i class="fa fa-plus"></i> New SQL report</button>
444
                                    </form>
444
                                    </form>
445
445
446
                                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
446
                                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
Lines 865-871 Link Here
865
                                    </p>
865
                                    </p>
866
                                [% END %]
866
                                [% END %]
867
                            </div>
867
                            </div>
868
                            <fieldset class="action"><input type="submit" value="Edit SQL" /></fieldset>
868
                            <fieldset class="action"><input type="submit" class="principal" value="Edit SQL" /></fieldset>
869
                        [% ELSE #  IF ( auth_val_error ) %]
869
                        [% ELSE #  IF ( auth_val_error ) %]
870
                            <input type='hidden' name='phase' value='Run this report' />
870
                            <input type='hidden' name='phase' value='Run this report' />
871
                            <h2>Enter parameters for report [% name | html %]:</h2>
871
                            <h2>Enter parameters for report [% name | html %]:</h2>
Lines 907-913 Link Here
907
                                </ol>
907
                                </ol>
908
                            </fieldset> <!-- /.rows -->
908
                            </fieldset> <!-- /.rows -->
909
                            <fieldset class="action">
909
                            <fieldset class="action">
910
                                <input type="submit" value="Run the report" />
910
                                <input type="submit" class="principal" value="Run the report" />
911
                            </fieldset>
911
                            </fieldset>
912
                        [% END # / IF ( auth_val_error ) %]
912
                        [% END # / IF ( auth_val_error ) %]
913
                    </form>
913
                    </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt (-3 / +3 lines)
Lines 73-79 Link Here
73
	     [% IF ( SHOWCONFIRMATION ) %]
73
	     [% IF ( SHOWCONFIRMATION ) %]
74
     <div class="dialog alert">Your notification has been sent.</div>
74
     <div class="dialog alert">Your notification has been sent.</div>
75
     [% END %]
75
     [% END %]
76
[% UNLESS letters %]<div class="dialog alert">No claims notice defined. <a href="/cgi-bin/koha/tools/letter.pl">Please define one</a>.</div>[% END %]
76
[% UNLESS letters %]<div class="dialog alert">No claims notice defined. <a id="lientype" href="/cgi-bin/koha/tools/letter.pl">Please define one</a>.</div>[% END %]
77
    <form id="claims" name="claims" action="claims.pl" method="post">
77
    <form id="claims" name="claims" action="claims.pl" method="post">
78
    <fieldset>
78
    <fieldset>
79
	    <label for="supplierid">Vendor: </label>
79
	    <label for="supplierid">Vendor: </label>
Lines 107-113 Link Here
107
        <input type="text" name="enddate" id="to" value="[% enddate | html %]" size="10" maxlength="10" class="flatpickr" />
107
        <input type="text" name="enddate" id="to" value="[% enddate | html %]" size="10" maxlength="10" class="flatpickr" />
108
        <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
108
        <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
109
        <input id="filterByDate" type="button" value="OK" />
109
        <input id="filterByDate" type="button" value="OK" />
110
        <a href="#" id="clearfilter"><i class="fa fa-remove"></i> Clear filter</a>
110
        <a class="lientype" href="#" id="clearfilter"><i class="fa fa-remove"></i> Clear filter</a>
111
    </li>
111
    </li>
112
	</ol>
112
	</ol>
113
	</fieldset>
113
	</fieldset>
Lines 202-208 Link Here
202
                    <option value="[% csv.export_format_id | html %]">[% csv.profile | html %]</option>
202
                    <option value="[% csv.export_format_id | html %]">[% csv.profile | html %]</option>
203
                   [% END %]
203
                   [% END %]
204
                </select>
204
                </select>
205
                <span class="exportSelected"><a id="ExportSelected" href="/cgi-bin/koha/serials/claims.pl">Download selected claims</a></span>
205
                <span class="exportSelected"> class="lientype" id="ExportSelected" href="/cgi-bin/koha/serials/claims.pl">Download selected claims</a></span>
206
            [% END %]
206
            [% END %]
207
207
208
            [% IF letters %]
208
            [% IF letters %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (-18 / +18 lines)
Lines 71-77 fieldset.rows table { clear: none; margin: 0; } Link Here
71
<div class="main container-fluid">
71
<div class="main container-fluid">
72
    <div class="row">
72
    <div class="row">
73
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
73
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
74
            <h1>[% IF ( modify ) %] Modify subscription for <em>[% bibliotitle | html %]</em>[% ELSE %]Add a new subscription[% END %] (<span id="page_number">1/2</span>)</h1>
74
            <h2>[% IF ( modify ) %] Modify subscription for <em>[% bibliotitle | html %]</em>[% ELSE %]Add a new subscription[% END %] (<span id="page_number">1/2</span>)</h2>
75
        </div>
75
        </div>
76
    </div>
76
    </div>
77
    <form method="post" id="subscription_add_form" name="f" action="/cgi-bin/koha/serials/subscription-add.pl" class="validated">
77
    <form method="post" id="subscription_add_form" name="f" action="/cgi-bin/koha/serials/subscription-add.pl" class="validated">
Lines 86-99 fieldset.rows table { clear: none; margin: 0; } Link Here
86
                        <input type="hidden" name="user" value="[% logged_in_user.userid | html %]" />
86
                        <input type="hidden" name="user" value="[% logged_in_user.userid | html %]" />
87
                        <input type="hidden" name="irreg_check" value="0" />
87
                        <input type="hidden" name="irreg_check" value="0" />
88
                        <fieldset id="subscription_add_information" class="rows">
88
                        <fieldset id="subscription_add_information" class="rows">
89
                            <legend>Subscription details</legend>
89
                            <h3>Subscription details</h3>
90
                            <ol>
90
                            <ol>
91
                                [% IF ( subscriptionid ) %]
91
                                [% IF ( subscriptionid ) %]
92
                                    <li><span class="label">Subscription number: </span> [% subscriptionid | html %]</li>
92
                                    <li><span class="label">Subscription number: </span> [% subscriptionid | html %]</li>
93
                                [% END %]
93
                                [% END %]
94
                                <li>
94
                                <li>
95
                                    <label for="aqbooksellerid">Vendor: </label>
95
                                    <label for="aqbooksellerid">Vendor: </label>
96
                                    <input type="text" name="aqbooksellerid" id="aqbooksellerid" value="[% aqbooksellerid | html %]" size="8" /> (<input type="text" name="aqbooksellername" id="aqbooksellername" value="[% aqbooksellername | html %]" disabled="disabled" readonly="readonly" />) <a href="#" id="vendor_search"><i class="fa fa-search"></i> Search for a vendor</a>
96
                                    <input type="text" name="aqbooksellerid" id="aqbooksellerid" value="[% aqbooksellerid | html %]" size="8" /> (<input type="text" name="aqbooksellername" id="aqbooksellername" value="[% aqbooksellername | html %]" disabled="disabled" readonly="readonly" />) <a id="lientype" href="#" id="vendor_search"><i class="fa fa-search"></i> Search for a vendor</a>
97
                                </li>
97
                                </li>
98
                                <li>
98
                                <li>
99
                                    <label for="biblionumber" class="required">Record:</label>
99
                                    <label for="biblionumber" class="required">Record:</label>
Lines 101-112 fieldset.rows table { clear: none; margin: 0; } Link Here
101
                                    (<input type="text" name="title" value="[% bibliotitle | html %]" disabled="disabled" readonly="readonly" />) <span class="required" title="Subscriptions must be associated with a bibliographic record">Required</span>
101
                                    (<input type="text" name="title" value="[% bibliotitle | html %]" disabled="disabled" readonly="readonly" />) <span class="required" title="Subscriptions must be associated with a bibliographic record">Required</span>
102
                                    <span id="error_bib_not_exist"></span>
102
                                    <span id="error_bib_not_exist"></span>
103
                                    <div class="hint">Subscriptions must be associated with a bibliographic record</div>
103
                                    <div class="hint">Subscriptions must be associated with a bibliographic record</div>
104
                                    <div class="inputnote"> <a href="#" id="record_search"><i class="fa fa-search"></i> Search for record</a>
104
                                    <div class="inputnote"> <a class="lientype" href="#" id="record_search"><i class="fa fa-search"></i> Search for record</a>
105
                                        [% IF ( CAN_user_editcatalogue ) %]
105
                                        [% IF ( CAN_user_editcatalogue ) %]
106
                                            [% IF ( modify ) %]
106
                                            [% IF ( modify ) %]
107
                                            | <a href="#" id="biblio_add_edit" data-biblionumber="[% bibnum | html %]"><i class="fa fa-pencil"></i> Edit record</a>
107
                                            | <a class="lientype" href="#" id="biblio_add_edit" data-biblionumber="[% bibnum | html %]"><i class="fa fa-pencil"></i> Edit record</a>
108
                                            [% ELSE %]
108
                                            [% ELSE %]
109
                                            | <a href="#" id="biblio_add_edit"><i class="fa fa-plus"></i> Create record</a>
109
                                            | <a class="lientype" href="#" id="biblio_add_edit"><i class="fa fa-plus"></i> Create record</a>
110
                                            [% END %]
110
                                            [% END %]
111
                                        [% END %]
111
                                        [% END %]
112
                                    </div>
112
                                    </div>
Lines 191-197 fieldset.rows table { clear: none; margin: 0; } Link Here
191
                                        <div class="hint">Selecting a notice will allow patrons to subscribe to notifications when a new issue is received.</div>
191
                                        <div class="hint">Selecting a notice will allow patrons to subscribe to notifications when a new issue is received.</div>
192
                                    [% ELSE %]
192
                                    [% ELSE %]
193
                                        <span class="label">Patron notification: </span>
193
                                        <span class="label">Patron notification: </span>
194
                                        <div class="hint">To notify patrons of new serial issues, you must <a href="/cgi-bin/koha/tools/letter.pl">define a notice</a>.</div>
194
                                        <div class="hint">To notify patrons of new serial issues, you must <a id="lientype" href="/cgi-bin/koha/tools/letter.pl">define a notice</a>.</div>
195
                                    [% END %]
195
                                    [% END %]
196
                                </li>
196
                                </li>
197
                                <li>
197
                                <li>
Lines 263-269 fieldset.rows table { clear: none; margin: 0; } Link Here
263
                            </ol>
263
                            </ol>
264
                        </fieldset>
264
                        </fieldset>
265
                        <fieldset class="action">
265
                        <fieldset class="action">
266
                            <button type="button" id="subscription_add_next" style="float:right;">Next <i class="fa fa-long-arrow-right"></i></button>
266
                            <button type="button" class="principal" id="subscription_add_next" style="float:right;">Next <i class="fa fa-long-arrow-right"></i></button>
267
                        </fieldset>
267
                        </fieldset>
268
                    </div> <!-- /.col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2 -->
268
                    </div> <!-- /.col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2 -->
269
                </div> <!-- /.row#page_1 -->
269
                </div> <!-- /.row#page_1 -->
Lines 279-285 fieldset.rows table { clear: none; margin: 0; } Link Here
279
                        </div>
279
                        </div>
280
                        <div id="subscription_form_planning">
280
                        <div id="subscription_form_planning">
281
                            <fieldset class="rows">
281
                            <fieldset class="rows">
282
                                <legend>Serials planning</legend>
282
                                <h3>Serials planning</h3>
283
                                <ol>
283
                                <ol>
284
                                    <li>
284
                                    <li>
285
                                        <label for="acqui_date" class="required">First issue publication date:</label>
285
                                        <label for="acqui_date" class="required">First issue publication date:</label>
Lines 419-426 fieldset.rows table { clear: none; margin: 0; } Link Here
419
                                    </li>
419
                                    </li>
420
                                    <li>
420
                                    <li>
421
                                        <span class="label">&nbsp;</span>
421
                                        <span class="label">&nbsp;</span>
422
                                        <a href="#" class="toggle_advanced_pattern show_advanced_pattern"><i class="fa fa-plus-square"></i> Show advanced pattern</a>
422
                                        <a id="lientype" href="#" class="toggle_advanced_pattern show_advanced_pattern"><i class="fa fa-plus-square"></i> Show advanced pattern</a>
423
                                        <a href="#" style="display:none;" class="toggle_advanced_pattern hide_advanced_pattern"><i class="fa fa-minus-square"></i> Hide advanced pattern</a>
423
                                        <a id="lientype" href="#" style="display:none;" class="toggle_advanced_pattern hide_advanced_pattern"><i class="fa fa-minus-square"></i> Hide advanced pattern</a>
424
                                    </li>
424
                                    </li>
425
                                </ol>
425
                                </ol>
426
426
Lines 511-524 fieldset.rows table { clear: none; margin: 0; } Link Here
511
                                    </li>
511
                                    </li>
512
                                    <li>
512
                                    <li>
513
                                        <span class="label">&nbsp;</span>
513
                                        <span class="label">&nbsp;</span>
514
                                        <a href="#" id="modifyadvancedpatternbutton"><i class="fa fa-pencil"></i> Modify pattern</a>
514
                                        <a id="lientype" href="#" id="modifyadvancedpatternbutton"><i class="fa fa-pencil"></i> Modify pattern</a>
515
                                        <button type="button" class="btn btn-default btn-xs" id="saveadvancedpatternbutton" style="display:none"><i class="fa fa-save"></i> Save as new pattern</button>
515
                                        <button type="button" class="btn btn-default btn-xs principal" id="saveadvancedpatternbutton" style="display:none"><i class="fa fa-save"></i> Save as new pattern</button>
516
                                        <a class="cancel" href="#" id="restoreadvancedpatternbutton" style="display:none">Cancel modifications</a>
516
                                        <a  class="cancel" href="#" id="restoreadvancedpatternbutton" style="display:none">Cancel modifications</a>
517
                                    </li>
517
                                    </li>
518
                                    </ol>
518
                                    </ol>
519
                                </div> <!-- /#advancedpredictionpattern -->
519
                                </div> <!-- /#advancedpredictionpattern -->
520
                                <fieldset class="action">
520
                                <fieldset class="action">
521
                                    <button type="button" id="testpatternbutton" class="btn btn-default btn-sm"><i class="fa fa-play"></i> Test prediction pattern</button>
521
                                    <button type="button" id="testpatternbutton" class="btn btn-default btn-sm principal"><i class="fa fa-play"></i> Test prediction pattern</button>
522
                                </fieldset>
522
                                </fieldset>
523
                            </fieldset>
523
                            </fieldset>
524
524
Lines 535-542 fieldset.rows table { clear: none; margin: 0; } Link Here
535
                            <input type="hidden" id="unitsperissue"  name="unitsperissue" value=""/>
535
                            <input type="hidden" id="unitsperissue"  name="unitsperissue" value=""/>
536
                            <input type="hidden" id="issuesperunit"  name="issuesperunit" value=""/>
536
                            <input type="hidden" id="issuesperunit"  name="issuesperunit" value=""/>
537
                            <fieldset class="action">
537
                            <fieldset class="action">
538
                                <button type="button" id="subscription_add_previous" style="float:left"><i class="fa fa-long-arrow-left"></i> Previous</button>
538
                                <button type="button" id="subscription_add_previous" class="cancel" style="float:left"><i class="fa fa-long-arrow-left"></i> Previous</button>
539
                                <input id="save-subscription" type="submit" value="Save subscription" style="float:right;" accesskey="w"/>
539
                                <input id="save-subscription" type="submit" value="Save subscription" class="principal" style="float:right;" accesskey="w"/>
540
                            </fieldset>
540
                            </fieldset>
541
                        </div>
541
                        </div>
542
                    </div>
542
                    </div>
Lines 558-564 fieldset.rows table { clear: none; margin: 0; } Link Here
558
                    <div class="modal-body">
558
                    <div class="modal-body">
559
                    </div>
559
                    </div>
560
                    <div class="modal-footer">
560
                    <div class="modal-footer">
561
                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
561
                        <button type="button" class="btn btn-default cancel" data-dismiss="modal">Close</button>
562
                    </div>
562
                    </div>
563
                </div>
563
                </div>
564
             </div>
564
             </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-4 / +5 lines)
Lines 987-992 Link Here
987
987
988
                <div class="col-sm-2 col-sm-pull-10">
988
                <div class="col-sm-2 col-sm-pull-10">
989
                    <aside>
989
                    <aside>
990
                    <div id="filters">
990
                        <form name="suggestionfilter" action="suggestion.pl" method="get">
991
                        <form name="suggestionfilter" action="suggestion.pl" method="get">
991
                            <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
992
                            <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
992
                            <fieldset class="brief">
993
                            <fieldset class="brief">
Lines 1029-1035 Link Here
1029
1030
1030
                            <div id="limits">
1031
                            <div id="limits">
1031
                                <fieldset class="brief">
1032
                                <fieldset class="brief">
1032
                                    <h4 class="local_collapse"><a href="#">Bibliographic information</a></h4>
1033
                                    <h4 class="local_collapse"><a href="#">Bibliographic information<b class="caret"></b></a></h4>
1033
                                    <ol>
1034
                                    <ol>
1034
                                        <li>
1035
                                        <li>
1035
                                            <p for="title"> Title:
1036
                                            <p for="title"> Title:
Lines 1059-1065 Link Here
1059
                                </fieldset> <!-- /.brief -->
1060
                                </fieldset> <!-- /.brief -->
1060
1061
1061
                                <fieldset class="brief">
1062
                                <fieldset class="brief">
1062
                                    <h4 class="local_collapse"><a href="#">Suggestion information</a></h4>
1063
                                    <h4 class="local_collapse"><a href="#">Suggestion information<b class="caret"></b></a></h4>
1063
                                    <ol>
1064
                                    <ol>
1064
                                        <li>
1065
                                        <li>
1065
                                            <p for="archived" style="display: inline;">Include archived:
1066
                                            <p for="archived" style="display: inline;">Include archived:
Lines 1184-1190 Link Here
1184
1185
1185
                                <fieldset class="brief">
1186
                                <fieldset class="brief">
1186
                                    <h4 class="local_collapse">
1187
                                    <h4 class="local_collapse">
1187
                                        <a href="#">Acquisition information</a>
1188
                                        <a href="#">Acquisition information<b class="caret"></b></a>
1188
                                    </h4>
1189
                                    </h4>
1189
                                    <ol>
1190
                                    <ol>
1190
                                        <li>
1191
                                        <li>
Lines 1214-1220 Link Here
1214
                        </form> <!-- /suggestionsfilter -->
1215
                        </form> <!-- /suggestionsfilter -->
1215
1216
1216
                        [% INCLUDE 'acquisitions-menu.inc' %]
1217
                        [% INCLUDE 'acquisitions-menu.inc' %]
1217
1218
                    </div>
1218
                    </aside>
1219
                    </aside>
1219
                </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1220
                </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1220
            [% END # /UNLESS ( op == 'show' ) %]
1221
            [% END # /UNLESS ( op == 'show' ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js (-36 / +9 lines)
Lines 21-26 function clone_line(line) { Link Here
21
}
21
}
22
22
23
function tableInit( oldtabid, newtabid ) {
23
function tableInit( oldtabid, newtabid ) {
24
24
    if ( oldtabid ){
25
    if ( oldtabid ){
25
        var oldTableId = $("#" + oldtabid + "_table");
26
        var oldTableId = $("#" + oldtabid + "_table");
26
        oldTableId.DataTable().destroy();
27
        oldTableId.DataTable().destroy();
Lines 41-50 $(document).ready(function () { Link Here
41
42
42
    tableInit( "", "search_fields");
43
    tableInit( "", "search_fields");
43
44
44
    $("a[data-toggle='tab']").on("shown.bs.tab", function (e) {
45
    $("#tabs").tabs({
45
        var oldtabid = $(e.relatedTarget).data("tab");
46
        activate: function( event, ui ){
46
        var newtabid = $(e.target).data("tab");
47
            tableInit( ui.oldPanel.attr('id'), ui.newPanel.attr('id') );
47
        tableInit( oldtabid, newtabid );
48
        },
48
    });
49
    });
49
50
50
    $('.delete').click(function () {
51
    $('.delete').click(function () {
Lines 52-60 $(document).ready(function () { Link Here
52
            alert( __("This field is mandatory and must have at least one mapping") );
53
            alert( __("This field is mandatory and must have at least one mapping") );
53
            return;
54
            return;
54
        } else {
55
        } else {
55
            var table = $(this).closest('table');
56
            $(this).parents('tr').remove();
56
            let dt = $(table).DataTable();
57
            dt.row( $(this).closest('tr') ).remove().draw();
58
        }
57
        }
59
    });
58
    });
60
59
Lines 64-85 $(document).ready(function () { Link Here
64
63
65
    $('.add').click(function () {
64
    $('.add').click(function () {
66
        var table = $(this).closest('table');
65
        var table = $(this).closest('table');
67
        let table_id = table.attr('id');
68
        var index_name = $(table).attr('data-index_name');
66
        var index_name = $(table).attr('data-index_name');
69
        var line = $(this).closest("tr");
67
        var line = $(this).closest("tr");
70
        var marc_field = $(line).find('input[data-id="mapping_marc_field"]').val();
68
        var marc_field = $(line).find('input[data-id="mapping_marc_field"]').val();
71
        if (marc_field.length > 0) {
69
        if (marc_field.length > 0) {
72
            var new_line = clone_line(line);
70
            var new_line = clone_line(line);
73
            new_line.appendTo($('table[data-index_name="' + index_name + '"]>tbody'));
71
            new_line.appendTo($('table[data-index_name="' + index_name + '"]>tbody'));
74
            let dt = $('#' + table_id).DataTable();
72
            $('.delete').click(function () {
75
            dt.row.add(new_line).draw();
73
                $(this).parents('tr').remove();
76
74
            });
77
            $(table).on( 'click', '.delete', function () {
78
                var table = $(this).closest('table');
79
                let dt = $(table).DataTable();
80
                dt.row( $(this).closest('tr') ).remove().draw();
81
            } );
82
83
            clean_line(line);
75
            clean_line(line);
84
76
85
            $(table).tableDnD({
77
            $(table).tableDnD({
Lines 90-111 $(document).ready(function () { Link Here
90
    $("#facet_biblios > table").tableDnD({
82
    $("#facet_biblios > table").tableDnD({
91
        onDragClass: "dragClass highlighted-row",
83
        onDragClass: "dragClass highlighted-row",
92
    });
84
    });
93
94
    $("#es_mappings").on("submit", function(e){
95
        let table_ids = ['search_fields_table', 'mapping_biblios_table', 'mapping_authorities_table'];
96
        $(table_ids).each(function(){
97
            let table;
98
            // Remove warning "Cannot reinitialise DataTable"
99
            if ( $.fn.dataTable.isDataTable( '#' + this ) ) {
100
                table = $('#' + this).DataTable();
101
            }
102
            else {
103
                table = $('#' + this).DataTable( {
104
                    paging: false
105
                } );
106
            }
107
            table.search('').draw();
108
        });
109
        return true;
110
    });
111
});
85
});
112
- 

Return to bug 30952