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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss (+19 lines)
Lines 401-406 tbody { Link Here
401
            }
401
            }
402
        }
402
        }
403
    }
403
    }
404
    .dropdown-menu{
405
406
        background-color: #fff;
407
        color: #000;
408
        top: 100%;
409
410
        a{
411
            color: #000;
412
413
            &:hover,
414
            &:focus{
415
                background-image: none;
416
                background-color: #fff;
417
                color: #000;
418
                padding: 3px 20px;
419
                text-decoration: underline;
420
            }
421
        }
422
    }
404
}
423
}
405
424
406
.dataTables_wrapper {
425
.dataTables_wrapper {
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-54 / +104 lines)
Lines 28-34 a { Link Here
28
    }
28
    }
29
29
30
    &.authlink {
30
    &.authlink {
31
        background-color: #e6f0f2;
31
        background-color: #e3f1df;
32
        border-radius: 5px;
32
        border-radius: 5px;
33
        display: inline-block;
33
        display: inline-block;
34
        padding: 2px 4px;
34
        padding: 2px 4px;
Lines 38-44 a { Link Here
38
        &:link,
38
        &:link,
39
        &:visited {
39
        &:visited {
40
            //color: #71B443;
40
            //color: #71B443;
41
            padding: 6px 25px;
41
           // padding: 6px 25px;
42
        }
42
        }
43
43
44
        &.btn-link {
44
        &.btn-link {
Lines 64-79 a { Link Here
64
    box-shadow: none;
64
    box-shadow: none;
65
    font-size: 100%;
65
    font-size: 100%;
66
66
67
    &:hover, &:focus, &:active{
67
    &:hover, &:focus, &:active, &:active:hover, &:active:focus{
68
        text-decoration: underline;
68
        text-decoration: underline;
69
        color: #71B443;
69
        color: #71B443;
70
    padding: .3em;
70
        padding: .3em;
71
    border: none;
71
        border: none;
72
    background-color: transparent;
72
        background-color: transparent;
73
    border: none;
73
        border: none;
74
    box-shadow: none;
74
        box-shadow: none;
75
    font-size: 100%;
75
        font-size: 100%;
76
    }
76
        }
77
    }
77
    }
78
78
79
    &.cancel {
79
    &.cancel {
Lines 694-699 p { Link Here
694
            font: 400 13.3333px Arial;
694
            font: 400 13.3333px Arial;
695
        }
695
        }
696
    }
696
    }
697
698
    &.plusdessous{
699
        background-color: #352C2E;
700
        height: auto !important;
701
        padding: 0 5px 10px 5px;
702
        top: 30px;
703
        border-bottom-left-radius: 17px;
704
        border-bottom-right-radius: 17px;
705
706
        input{
707
            outline-offset: 0px;
708
            outline: 1px black;
709
            height: 20px;
710
            border-radius: 17px;
711
            padding-left: 2em;
712
            padding-right: 1.5em;
713
            border: none;
714
            margin-top: 5px;
715
            margin-left: 0px;
716
            width: 100%;
717
            z-index: 100;
718
            display: inline-block !important;
719
            letter-spacing: normal;
720
            word-spacing: normal;
721
            text-transform: none;
722
            text-indent: 0px;
723
            text-shadow: none;
724
            text-align: start;
725
            cursor: text;
726
            font: 400 13.3333px Arial;
727
        }
728
    }
697
}
729
}
698
730
699
strong {
731
strong {
Lines 1255-1267 ol { Link Here
1255
}
1287
}
1256
1288
1257
fieldset {
1289
fieldset {
1258
    overflow: auto;
1290
    //overflow: auto;
1259
    background-color: #FFF;
1291
    background-color: #FFF;
1260
    position: relative;
1292
    position: relative;
1261
    color: #696969;
1293
    color: #696969;
1262
    left: 0px;
1294
    left: 0px;
1263
    top: 0px;
1295
    top: 0px;
1264
    //border: 2px solid #B9D8D9;
1296
    //border: 2px solid #bfd9b9;
1265
    //border-radius: 5px;
1297
    //border-radius: 5px;
1266
    margin: 0em 1em 1em 0em;
1298
    margin: 0em 1em 1em 0em;
1267
    //display: block;
1299
    //display: block;
Lines 1282-1288 fieldset { Link Here
1282
    }
1314
    }
1283
1315
1284
    .standard {
1316
    .standard {
1285
        background-color:#f4f8f9 !important;
1317
        background-color:#F4F8F9 !important;
1286
    }
1318
    }
1287
1319
1288
    .contrast {
1320
    .contrast {
Lines 1306-1314 fieldset { Link Here
1306
1338
1307
1339
1308
    &.brief {
1340
    &.brief {
1309
        //border: 2px solid #B9D8D9;
1341
        //border: 2px solid #bfd9b9;
1310
        width: 50%;
1342
        width: 50%;
1311
        box-shadow: 8px 8px 12px rgba(170, 170, 170, 0.356);
1343
        box-shadow: 8px 8px 12px rgba(170, 170, 170, 0.356);
1344
        overflow: visible;
1312
1345
1313
        div {
1346
        div {
1314
            &.hint {
1347
            &.hint {
Lines 1671-1677 fieldset { Link Here
1671
/*
1704
/*
1672
legend {
1705
legend {
1673
    background-color: #FFFFFF;
1706
    background-color: #FFFFFF;
1674
    border: 2px solid #B9D8D9;
1707
    border: 2px solid #bfd9b9;
1675
    border-radius: 3px;
1708
    border-radius: 3px;
1676
    font-size: 123.1%;
1709
    font-size: 123.1%;
1677
    font-weight: bold;
1710
    font-weight: bold;
Lines 1808-1814 div { Link Here
1808
1841
1809
    &.rule {
1842
    &.rule {
1810
        background-color: #F4F8F9;
1843
        background-color: #F4F8F9;
1811
        border: 2px solid #B9D8D9;
1844
        border: 2px solid #bfd9b9;
1812
        border-radius: 5px;
1845
        border-radius: 5px;
1813
        margin: .3em;
1846
        margin: .3em;
1814
        padding: .3em;
1847
        padding: .3em;
Lines 2140-2146 dd { Link Here
2140
        position: relative;
2173
        position: relative;
2141
        float: right;
2174
        float: right;
2142
        height: 100%;
2175
        height: 100%;
2143
        padding: 0.3em;
2176
     //   padding: 0.3em;
2144
2177
2145
        .dropdown-menu {
2178
        .dropdown-menu {
2146
            /*border-top-width: 1px;
2179
            /*border-top-width: 1px;
Lines 2162-2168 dd { Link Here
2162
            border: 0.5px solid lightgray;
2195
            border: 0.5px solid lightgray;
2163
            font-size: 100%;
2196
            font-size: 100%;
2164
            background-color: #fff;
2197
            background-color: #fff;
2165
            margin: 0;
2198
            margin: 5px 0 0 0;
2166
            box-shadow: 1px 1px 2px 0 rgba(102, 102, 102, .5);
2199
            box-shadow: 1px 1px 2px 0 rgba(102, 102, 102, .5);
2167
            position: absolute;
2200
            position: absolute;
2168
            text-decoration: none;
2201
            text-decoration: none;
Lines 2319-2325 dd { Link Here
2319
    padding-bottom: 25px;
2352
    padding-bottom: 25px;
2320
2353
2321
    h5 {
2354
    h5 {
2322
        //border-right: 1px solid #B9D8D9;
2355
        //border-right: 1px solid #bfd9b9;
2323
        margin-bottom: 0;
2356
        margin-bottom: 0;
2324
        padding: .5em .9em;
2357
        padding: .5em .9em;
2325
        font-weight: bold;
2358
        font-weight: bold;
Lines 2357-2363 dd { Link Here
2357
    }
2390
    }
2358
2391
2359
    > div {
2392
    > div {
2360
        //border-right: 1px solid #B9D8D9;
2393
        //border-right: 1px solid #bfd9b9;
2361
        width: 100%;
2394
        width: 100%;
2362
    }
2395
    }
2363
2396
Lines 2584-2590 i { Link Here
2584
.circ-settings {
2617
.circ-settings {
2585
    //background-color: #F4F8F9;
2618
    //background-color: #F4F8F9;
2586
    border-radius: 0;
2619
    border-radius: 0;
2587
    //border-top: 2px solid #B9D8D9;
2620
    //border-top: 2px solid #bfd9b9;
2588
    display: none;
2621
    display: none;
2589
    margin-left: -1em;
2622
    margin-left: -1em;
2590
    margin-right: -1em;
2623
    margin-right: -1em;
Lines 2794-2799 i { Link Here
2794
        //border: 1px solid #BCBCBC;
2827
        //border: 1px solid #BCBCBC;
2795
        color: #000000;
2828
        color: #000000;
2796
        text-align: center;
2829
        text-align: center;
2830
        background-color: #fff;
2831
      //  box-shadow: 8px 8px 12px rgba(170, 170, 170, 0.356);
2832
2797
2833
2798
        ul,
2834
        ul,
2799
        h5 {
2835
        h5 {
Lines 2888-2894 i { Link Here
2888
}
2924
}
2889
2925
2890
#menu {
2926
#menu {
2891
    border-right: 1px solid #B9D8D9;
2927
    border-right: 1px solid #bfd9b9;
2892
    margin-right: .5em;
2928
    margin-right: .5em;
2893
    padding-bottom: 2em;
2929
    padding-bottom: 2em;
2894
    padding-top: 1em;
2930
    padding-top: 1em;
Lines 2896-2902 i { Link Here
2896
    li {
2932
    li {
2897
        a {
2933
        a {
2898
            background: linear-gradient(to bottom, #E8F0F6 0%, #E8F0F6 96%, #C1C1C1 100%);
2934
            background: linear-gradient(to bottom, #E8F0F6 0%, #E8F0F6 96%, #C1C1C1 100%);
2899
            border: 1px solid #B9D8D9;
2935
            border: 1px solid #bfd9b9;
2900
            border-bottom-left-radius: 5px;
2936
            border-bottom-left-radius: 5px;
2901
            border-top-left-radius: 5px;
2937
            border-top-left-radius: 5px;
2902
            display: block;
2938
            display: block;
Lines 3060-3065 li { Link Here
3060
#searchresults {
3096
#searchresults {
3061
    background-color: #fff;
3097
    background-color: #fff;
3062
    margin-top: 20px;
3098
    margin-top: 20px;
3099
  //  overflow: auto;
3063
    box-shadow: 8px 8px 12px rgba(170, 170, 170, 0.356);
3100
    box-shadow: 8px 8px 12px rgba(170, 170, 170, 0.356);
3064
    padding: 20px;
3101
    padding: 20px;
3065
3102
Lines 3078-3085 li { Link Here
3078
                font-size: 90%;
3115
                font-size: 90%;
3079
                list-style: url("../img/item-bullet.svg");
3116
                list-style: url("../img/item-bullet.svg");
3080
                padding: .2em 0;
3117
                padding: .2em 0;
3081
                background-color: #fff;
3118
              //  background-color: #fff;
3082
                box-shadow: 8px 8px 12px rgba(170, 170, 170, 0.356);
3119
                //box-shadow: 8px 8px 12px rgba(170, 170, 170, 0.356);
3083
                color: #000;
3120
                color: #000;
3084
                top: 100%;
3121
                top: 100%;
3085
3122
Lines 3145-3150 li { Link Here
3145
        //top: 50px;
3182
        //top: 50px;
3146
        background-color: #fff;
3183
        background-color: #fff;
3147
        color: #000;
3184
        color: #000;
3185
        height: fit-content;
3148
        top: 100%;
3186
        top: 100%;
3149
3187
3150
        a{
3188
        a{
Lines 3270-3276 li { Link Here
3270
}
3308
}
3271
3309
3272
#biblio-cover-slider {
3310
#biblio-cover-slider {
3273
    border: 1px solid #b9d8d9;
3311
    border: 1px solid #bfd9b9;
3274
    border-radius: 3px;
3312
    border-radius: 3px;
3275
    margin: 5px;
3313
    margin: 5px;
3276
    padding: 10px 5px 5px 5px;
3314
    padding: 10px 5px 5px 5px;
Lines 3321-3327 td { Link Here
3321
    }
3359
    }
3322
}
3360
}
3323
3361
3324
#lientype, #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{
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{
3325
    color: #71B443;
3363
    color: #71B443;
3326
    padding: .3em;
3364
    padding: .3em;
3327
    border: none;
3365
    border: none;
Lines 3330-3336 td { Link Here
3330
    box-shadow: none;
3368
    box-shadow: none;
3331
    font-size: 100%;
3369
    font-size: 100%;
3332
3370
3333
    &:hover{
3371
    &:hover, &:active, &:focus, &:active:hover, &:active:focus{
3334
        text-decoration: underline;
3372
        text-decoration: underline;
3335
    }
3373
    }
3336
}
3374
}
Lines 3792-3799 td { Link Here
3792
}
3830
}
3793
3831
3794
.ui-widget-header {
3832
.ui-widget-header {
3795
    background: #E6F0F2 none;
3833
    background: #b5dbad none;
3796
    border: 1px solid #B9D8D9;
3834
    border: 1px solid #bfd9b9;
3797
    color: #222222;
3835
    color: #222222;
3798
    font-weight: bold;
3836
    font-weight: bold;
3799
}
3837
}
Lines 3802-3808 td { Link Here
3802
.ui-widget-content .ui-state-default,
3840
.ui-widget-content .ui-state-default,
3803
.ui-widget-header .ui-state-default {
3841
.ui-widget-header .ui-state-default {
3804
   // background: #F4F8F9 none;
3842
   // background: #F4F8F9 none;
3805
    border: 1px solid #B9D8D9;
3843
    border: 1px solid #bfd9b9;
3806
    color: #555555;
3844
    color: #555555;
3807
    font-weight: normal;
3845
    font-weight: normal;
3808
}
3846
}
Lines 3813-3820 td { Link Here
3813
.ui-state-focus,
3851
.ui-state-focus,
3814
.ui-widget-content .ui-state-focus,
3852
.ui-widget-content .ui-state-focus,
3815
.ui-widget-header .ui-state-focus {
3853
.ui-widget-header .ui-state-focus {
3816
    background: #E6F0F2 none;
3854
    background: #cad8c6 none;
3817
    border: 1px solid #B9D8D9;
3855
    border: 1px solid #bfd9b9;
3818
    color: #212121;
3856
    color: #212121;
3819
    font-weight: normal;
3857
    font-weight: normal;
3820
}
3858
}
Lines 3856-3862 td { Link Here
3856
                padding: 3px 1em 3px .4em;
3894
                padding: 3px 1em 3px .4em;
3857
3895
3858
                &:hover {
3896
                &:hover {
3859
                    background: #E6F0F2 none;
3897
                    background: #e3f1df none;
3860
                    color: #212121;
3898
                    color: #212121;
3861
                    font-weight: normal;
3899
                    font-weight: normal;
3862
                }
3900
                }
Lines 4065-4072 td { Link Here
4065
        }
4103
        }
4066
4104
4067
        li {
4105
        li {
4068
            //background: none repeat scroll 0 0 #E6F0F2;
4106
            //background: none repeat scroll 0 0 #e3f1df;
4069
            //border: 1px solid #B9D8D9;
4107
            //border: 1px solid #bfd9b9;
4070
        //    border-bottom: 0 none;
4108
        //    border-bottom: 0 none;
4071
            border-top-left-radius: 4px;
4109
            border-top-left-radius: 4px;
4072
            border-top-right-radius: 4px;
4110
            border-top-right-radius: 4px;
Lines 4104-4110 td { Link Here
4104
                a {
4142
                a {
4105
                    background: none repeat scroll 0 0 transparent;
4143
                    background: none repeat scroll 0 0 transparent;
4106
                    color: #fff;
4144
                    color: #fff;
4107
                    cursor: text;
4145
                  //  cursor: text;
4108
                    //font-weight: bold;
4146
                    //font-weight: bold;
4109
                    outline: 0 none;
4147
                    outline: 0 none;
4110
                    top: 1px;
4148
                    top: 1px;
Lines 4250-4256 td { Link Here
4250
}
4288
}
4251
4289
4252
.pluginname {
4290
.pluginname {
4253
    background-color: #E6F0F2;
4291
    background-color: #e3f1df;
4254
    cursor: move;
4292
    cursor: move;
4255
    margin: .3em;
4293
    margin: .3em;
4256
    padding-bottom: 4px;
4294
    padding-bottom: 4px;
Lines 4418-4423 nav { Link Here
4418
    li {
4456
    li {
4419
        list-style: none;
4457
        list-style: none;
4420
4458
4459
        .haut{
4460
            position: relative;
4461
            bottom: 3px;
4462
            left: 300px;
4463
        }
4464
4421
        .filteraction{
4465
        .filteraction{
4422
            position: absolute;
4466
            position: absolute;
4423
            right: 30px;
4467
            right: 30px;
Lines 5069-5074 button, Link Here
5069
    &:active,
5113
    &:active,
5070
    &:focus{
5114
    &:focus{
5071
        background-color: #fec22c9f;
5115
        background-color: #fec22c9f;
5116
        color: #000;
5072
    }
5117
    }
5073
}
5118
}
5074
5119
Lines 5083-5088 button, Link Here
5083
.panel {
5128
.panel {
5084
    background: #F4F8F9 none;
5129
    background: #F4F8F9 none;
5085
    box-shadow: none;
5130
    box-shadow: none;
5131
5132
    &:hover{
5133
        background: #e3f1df none;
5134
    }
5086
}
5135
}
5087
5136
5088
.panel-collapse {
5137
.panel-collapse {
Lines 5105-5111 button, Link Here
5105
        }
5154
        }
5106
5155
5107
        &:hover {
5156
        &:hover {
5108
            background: #e6f0f2 none;
5157
            background: #e3f1df none;
5109
            border-bottom-left-radius: 0;
5158
            border-bottom-left-radius: 0;
5110
            border-bottom-right-radius: 0;
5159
            border-bottom-right-radius: 0;
5111
        }
5160
        }
Lines 5119-5125 button, Link Here
5119
            }
5168
            }
5120
5169
5121
            &:hover {
5170
            &:hover {
5122
                background: #e6f0f2 none;
5171
                background: #e3f1df none;
5123
                border-bottom-left-radius: 3px;
5172
                border-bottom-left-radius: 3px;
5124
                border-bottom-right-radius: 3px;
5173
                border-bottom-right-radius: 3px;
5125
            }
5174
            }
Lines 5128-5141 button, Link Here
5128
}
5177
}
5129
5178
5130
.panel-default {
5179
.panel-default {
5131
    border: 1px solid #B9D8D9;
5180
    border: 1px solid #bfd9b9;
5132
    > .panel-heading {
5181
    > .panel-heading {
5133
        background: transparent none;
5182
        background: transparent none;
5134
        padding: 0;
5183
        padding: 0;
5135
5184
5136
        + .panel-collapse {
5185
        + .panel-collapse {
5137
            > .panel-body {
5186
            > .panel-body {
5138
                border-top-color: #B9D8D9;
5187
                border-top-color: #bfd9b9;
5139
            }
5188
            }
5140
        }
5189
        }
5141
    }
5190
    }
Lines 5334-5340 label { Link Here
5334
5383
5335
    fieldset,
5384
    fieldset,
5336
    ol {
5385
    ol {
5337
        background-color: transparent;
5386
        background-color: #FFF;
5338
        border: 0;
5387
        border: 0;
5339
        margin: 0;
5388
        margin: 0;
5340
        padding: 0;
5389
        padding: 0;
Lines 5342-5348 label { Link Here
5342
}
5391
}
5343
5392
5344
.modal-content {
5393
.modal-content {
5345
    background-color: #EDF4F6;
5394
    background-color: rgb(211, 223, 204);
5346
}
5395
}
5347
5396
5348
.btn-group {
5397
.btn-group {
Lines 5385-5394 code { Link Here
5385
5434
5386
.tab-content {
5435
.tab-content {
5387
 /*   background-color: #FFF;
5436
 /*   background-color: #FFF;
5388
    border: 1px solid #B9D8D9;
5437
    border: 1px solid #bfd9b9;
5389
    border-top-width: 0;*/
5438
    border-top-width: 0;*/
5390
    border: 3px solid #538200;
5439
    border: 3px solid #538200;
5391
    border-radius: 4px;
5440
    border-radius: 4px;
5441
    overflow: auto;
5392
    //border-top-width: 0;
5442
    //border-top-width: 0;
5393
    padding: 1em;
5443
    padding: 1em;
5394
}
5444
}
Lines 5477-5483 progress { Link Here
5477
    }
5527
    }
5478
5528
5479
    span {
5529
    span {
5480
        background-color: #EBF3FF;
5530
        background-color: #ecffeb;
5481
        border-radius: 5px;
5531
        border-radius: 5px;
5482
        display: inline-block;
5532
        display: inline-block;
5483
        font-size: 75%;
5533
        font-size: 75%;
Lines 5486-5492 progress { Link Here
5486
        white-space: nowrap;
5536
        white-space: nowrap;
5487
5537
5488
        &.selected {
5538
        &.selected {
5489
            background-color: #CCE0FC;
5539
            background-color: #d2fad0;
5490
        }
5540
        }
5491
    }
5541
    }
5492
}
5542
}
Lines 5547-5553 progress { Link Here
5547
5597
5548
#browse-return-to-results {
5598
#browse-return-to-results {
5549
    background-color: #E8F0F6;
5599
    background-color: #E8F0F6;
5550
    border: 1px solid #B9D8D9;
5600
    border: 1px solid #bfd9b9;
5551
    border-bottom-width: 0;
5601
    border-bottom-width: 0;
5552
    border-top-left-radius: 5px;
5602
    border-top-left-radius: 5px;
5553
    border-top-right-radius: 5px;
5603
    border-top-right-radius: 5px;
Lines 5558-5564 progress { Link Here
5558
5608
5559
.browse-button {
5609
.browse-button {
5560
    background-color: #FFF;
5610
    background-color: #FFF;
5561
    border: 1px solid #B9D8D9;
5611
    border: 1px solid #bfd9b9;
5562
    color: #004D99;
5612
    color: #004D99;
5563
    display: block;
5613
    display: block;
5564
    overflow: hidden;
5614
    overflow: hidden;
Lines 5746-5752 input.renew { Link Here
5746
5796
5747
.branchgriditem {
5797
.branchgriditem {
5748
    background-color: #FFFFFF;
5798
    background-color: #FFFFFF;
5749
    border: 1px solid #B9D8D9;
5799
    border: 1px solid #bfd9b9;
5750
    border-radius: 3px;
5800
    border-radius: 3px;
5751
    display: table-cell;
5801
    display: table-cell;
5752
    float: left;
5802
    float: left;
Lines 5773-5779 input.renew { Link Here
5773
5823
5774
#new_rule {
5824
#new_rule {
5775
    background-color: #F4F8F9;
5825
    background-color: #F4F8F9;
5776
    border: 2px solid #B9D8D9;
5826
    border: 2px solid #bfd9b9;
5777
    border-radius: 5px;
5827
    border-radius: 5px;
5778
    display: none;
5828
    display: none;
5779
    margin: .3em;
5829
    margin: .3em;
Lines 5859-5865 input.renew { Link Here
5859
}
5909
}
5860
5910
5861
#fixedlengthbuilderaction {
5911
#fixedlengthbuilderaction {
5862
    border: 3px solid #E6F0F2;
5912
    border: 3px solid #e3f1df;
5863
    left: 80%;
5913
    left: 80%;
5864
    padding: 5px;
5914
    padding: 5px;
5865
    position: relative;
5915
    position: relative;
Lines 6295-6301 input.renew { Link Here
6295
}
6345
}
6296
6346
6297
.about h2 {
6347
.about h2 {
6298
    border-bottom: 1px solid #B9D8D9;
6348
    border-bottom: 1px solid #bfd9b9;
6299
    padding: .5em .2em;
6349
    padding: .5em .2em;
6300
    margin:  .5em 0;
6350
    margin:  .5em 0;
6301
}
6351
}
Lines 6319-6325 input.renew { Link Here
6319
6369
6320
/*#catalog-search-link {
6370
/*#catalog-search-link {
6321
    //color : #fff;
6371
    //color : #fff;
6322
    //border-right: 1px solid lighten( #E6F0F2, 15% );
6372
    //border-right: 1px solid lighten( #e3f1df, 15% );
6323
    //padding-right: .3em;
6373
    //padding-right: .3em;
6324
6374
6325
}*/
6375
}*/
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-search.inc (-2 / +2 lines)
Lines 26-33 Link Here
26
26
27
27
28
    <ul id="taille">
28
    <ul id="taille">
29
        <li><a id="button_1" title="Vendor search" onclick="clique(this)" class="iconsearch" href="#supplier_search"><i class="fa fa-upload"></i></a></li>
29
        <li><a id="icon_1" title="Vendor search" onclick="clique(this)" class="iconsearch" href="#supplier_search"><i class="fa fa-upload"></i></a></li>
30
        <li><a id="button_2" title="Orders search" onclick="clique(this)" class="iconsearch" href="#orders_search"><i class="fa fa-download"></i></a></li>
30
        <li><a id="icon_2" title="Orders search" onclick="clique(this)" class="iconsearch" href="#orders_search"><i class="fa fa-download"></i></a></li>
31
31
32
        <span id="button_1" class="buttonsearch active">Vendor search</span>
32
        <span id="button_1" class="buttonsearch active">Vendor search</span>
33
        <span id="button_2" class="buttonsearch">Orders search</span>
33
        <span id="button_2" class="buttonsearch">Orders search</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc (-202 / +309 lines)
Lines 1-209 Link Here
1
<!-- Begin Authorities Resident Search Box -->
1
<!-- Begin Authorities Resident Search Box -->
2
2
3
<div id="header_search" class="residentsearch fold">
3
<div id="header_search" class="fold">
4
    <div id="mainmain_heading" class="residentsearch">
4
    <div id="mainmain_heading" class="residentsearch">
5
    <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
5
        <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
6
        <label class="tip" for="value_mainentry">Enter main heading ($a only):</label>
6
7
        <input type="hidden" name="op" value="do_search" />
7
            <select name="orderby" class="haut">
8
        <input type="hidden" name="type" value="intranet" />
8
                [% IF ( orderby == 'HeadingAsc' ) %]
9
        <select name="authtypecode" id="authtype_main_heading_a">
9
                <option value="HeadingAsc" selected="selected">Heading A-Z</option>
10
        [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
10
                [% ELSE %]
11
        [% FOREACH authority_type IN authority_types %]
11
                <option value="HeadingAsc">Heading A-Z</option>
12
            [% IF authority_type.authtypecode == authtypecode %]
12
                [% END %]
13
            <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
13
                [% IF ( orderby == 'HeadingDsc' ) %]
14
            [% ELSE %]
14
                <option value="HeadingDsc" selected="selected">Heading Z-A</option>
15
            <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
15
                [% ELSE %]
16
            [% END %]
16
                <option value="HeadingDsc">Heading Z-A</option>
17
        [% END %]
17
                [% END %]
18
        </select>
18
                [% IF ( orderby == '' && op ) %]
19
        <input type="hidden" name="marclist" value="mainmainentry" />
19
                <option value="" selected="selected">None</option>
20
        <input type="hidden" name="and_or" value="and" />
20
                [% ELSE %]
21
        <input type="hidden" name="excluding" value="" />
21
                <option value="">None</option>
22
        <select name="operator">
22
                [% END %]
23
            [% IF ( operator == 'contains' ) %]
23
            </select>
24
            <option value="contains" selected="selected">contains</option>
24
25
            [% ELSE %]
25
            <p class="plusdessous" id="filters">
26
            <option value="contains">contains</option>
26
                <input type="hidden" name="op" value="do_search" />
27
            [% END %]
27
                <input type="hidden" name="type" value="intranet" />
28
            [% IF ( operator == 'start' ) %]
28
                <select name="authtypecode" id="authtype_main_heading_a">
29
            <option value="start" selected="selected">starts with</option>
29
                [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
30
            [% ELSE %]
30
                [% FOREACH authority_type IN authority_types %]
31
            <option value="start">starts with</option>
31
                    [% IF authority_type.authtypecode == authtypecode %]
32
            [% END %]
32
                    <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
33
            [% IF ( operator == 'exact' ) %]
33
                    [% ELSE %]
34
            <option value="exact" selected="selected">is exactly</option>
34
                    <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
35
            [% ELSE %]
35
                    [% END %]
36
            <option value="exact">is exactly</option>
36
                [% END %]
37
            [% END %]
37
                </select>
38
        </select>
38
39
        <input id="value_mainentry" type="text" name="value" value="[% value | html %]" class="head-searchbox" />
39
                <input type="hidden" name="marclist" value="mainmainentry" />
40
        <select name="orderby">
40
                <input type="hidden" name="and_or" value="and" />
41
            [% IF ( orderby == 'HeadingAsc' ) %]
41
                <input type="hidden" name="excluding" value="" />
42
            <option value="HeadingAsc" selected="selected">Heading A-Z</option>
42
                <select name="operator">
43
            [% ELSE %]
43
                    [% IF ( operator == 'contains' ) %]
44
            <option value="HeadingAsc">Heading A-Z</option>
44
                    <option value="contains" selected="selected">contains</option>
45
            [% END %]
45
                    [% ELSE %]
46
            [% IF ( orderby == 'HeadingDsc' ) %]
46
                    <option value="contains">contains</option>
47
            <option value="HeadingDsc" selected="selected">Heading Z-A</option>
47
                    [% END %]
48
            [% ELSE %]
48
                    [% IF ( operator == 'start' ) %]
49
            <option value="HeadingDsc">Heading Z-A</option>
49
                    <option value="start" selected="selected">starts with</option>
50
            [% END %]
50
                    [% ELSE %]
51
            [% IF ( orderby == '' && op ) %]
51
                    <option value="start">starts with</option>
52
            <option value="" selected="selected">None</option>
52
                    [% END %]
53
            [% ELSE %]
53
                    [% IF ( operator == 'exact' ) %]
54
            <option value="">None</option>
54
                    <optiontype value="exact" selected="selected">is exactly</option>
55
            [% END %]
55
                    [% ELSE %]
56
        </select>
56
                    <option value="exact">is exactly</option>
57
        <input type="submit" class="submit principal" value="Submit" />
57
                    [% END %]
58
    </form>
58
                </select>
59
60
                <input id="value_mainentry" type="text" name="value" value="[% value | html %]" placeholder="Enter main heading ($a only)" />
61
            </p>
62
63
            <input type="submit" class="submit" id="submit" value="" />
64
        </form>
59
    </div>
65
    </div>
66
67
60
    <div id="main_heading" class="residentsearch">
68
    <div id="main_heading" class="residentsearch">
61
    <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
69
        <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
62
        <label class="tip" for="value_mainheading">Enter main heading:</label>
70
            <select name="orderby" class="haut">
63
        <input type="hidden" name="op" value="do_search" />
71
                [% IF ( orderby == 'HeadingAsc' ) %]
64
        <input type="hidden" name="type" value="intranet" />
72
                <option value="HeadingAsc" selected="selected">Heading A-Z</option>
65
        <select name="authtypecode" id="authtype_main_heading">
73
                [% ELSE %]
66
        [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
74
                <option value="HeadingAsc">Heading A-Z</option>
67
        [% FOREACH authority_type IN authority_types %]
75
                [% END %]
68
            [% IF authority_type.authtypecode == authtypecode %]
76
                [% IF ( orderby == 'HeadingDsc' ) %]
69
            <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
77
                <option value="HeadingDsc" selected="selected">Heading Z-A</option>
70
            [% ELSE %]
78
                [% ELSE %]
71
            <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
79
                <option value="HeadingDsc">Heading Z-A</option>
72
            [% END %]
80
                [% END %]
73
        [% END %]
81
                [% IF ( orderby == '' && op ) %]
74
        </select>
82
                <option value="" selected="selected">None</option>
75
        <input type="hidden" name="marclist" value="mainentry" />
83
                [% ELSE %]
76
        <input type="hidden" name="and_or" value="and" />
84
                <option value="">None</option>
77
        <input type="hidden" name="excluding" value="" />
85
                [% END %]
78
        <select name="operator">
86
            </select>
79
            [% IF ( operator == 'contains' ) %]
87
80
            <option value="contains" selected="selected">contains</option>
88
            <p class="plusdessous" id="filters">
81
            [% ELSE %]
89
                <input type="hidden" name="op" value="do_search" />
82
            <option value="contains">contains</option>
90
                <input type="hidden" name="type" value="intranet" />
83
            [% END %]
91
                <select name="authtypecode" id="authtype_main_heading">
84
            [% IF ( operator == 'start' ) %]
92
                [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
85
            <option value="start" selected="selected">starts with</option>
93
                [% FOREACH authority_type IN authority_types %]
86
            [% ELSE %]
94
                    [% IF authority_type.authtypecode == authtypecode %]
87
            <option value="start">starts with</option>
95
                    <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
88
            [% END %]
96
                    [% ELSE %]
89
            [% IF ( operator == 'exact' ) %]
97
                    <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
90
            <option value="exact" selected="selected">is exactly</option>
98
                    [% END %]
91
            [% ELSE %]
99
                [% END %]
92
            <option value="exact">is exactly</option>
100
                </select>
93
            [% END %]
101
94
        </select>
102
                <input type="hidden" name="marclist" value="mainentry" />
95
        <input id="value_mainheading" type="text" name="value" value="[% value | html %]" class="head-searchbox" />
103
                <input type="hidden" name="and_or" value="and" />
96
        <select name="orderby">
104
                <input type="hidden" name="excluding" value="" />
97
            [% IF ( orderby == 'HeadingAsc' ) %]
105
                <select name="operator">
98
            <option value="HeadingAsc" selected="selected">Heading A-Z</option>
106
                    [% IF ( operator == 'contains' ) %]
99
            [% ELSE %]
107
                    <option value="contains" selected="selected">contains</option>
100
            <option value="HeadingAsc">Heading A-Z</option>
108
                    [% ELSE %]
101
            [% END %]
109
                    <option value="contains">contains</option>
102
            [% IF ( orderby == 'HeadingDsc' ) %]
110
                    [% END %]
103
            <option value="HeadingDsc" selected="selected">Heading Z-A</option>
111
                    [% IF ( operator == 'start' ) %]
104
            [% ELSE %]
112
                    <option value="start" selected="selected">starts with</option>
105
            <option value="HeadingDsc">Heading Z-A</option>
113
                    [% ELSE %]
106
            [% END %]
114
                    <option value="start">starts with</option>
107
            [% IF ( orderby == '' && op ) %]
115
                    [% END %]
108
            <option value="" selected="selected">None</option>
116
                    [% IF ( operator == 'exact' ) %]
109
            [% ELSE %]
117
                    <option value="exact" selected="selected">is exactly</option>
110
            <option value="">None</option>
118
                    [% ELSE %]
111
            [% END %]
119
                    <option value="exact">is exactly</option>
112
        </select>
120
                    [% END %]
113
        <input type="submit" class="submit principal" value="Submit" />
121
                </select>
114
    </form>
122
123
                <input id="value_mainheading" type="text" name="value" value="[% value | html %]" placeholder="Enter main heading" />
124
            </p>
125
126
            <input type="submit" class="submit" id="submit" value="" />
127
        </form>
115
    </div>
128
    </div>
129
116
    <div id="matchheading_search" class="residentsearch">
130
    <div id="matchheading_search" class="residentsearch">
117
    <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
131
        <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
118
        <label class="tip" for="value_matchheading">Enter any heading:</label>
132
119
        <input type="hidden" name="op" value="do_search" />
133
            <select name="orderby" class="haut">
120
        <input type="hidden" name="type" value="intranet" />
134
                [% IF ( orderby == 'HeadingAsc' ) %]
121
        <select name="authtypecode" id="authtype_all_headings">
135
                <option value="HeadingAsc" selected="selected">Heading A-Z</option>
122
        [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
136
                [% ELSE %]
123
        [% FOREACH authority_type IN authority_types %]
137
                <option value="HeadingAsc">Heading A-Z</option>
124
            [% IF authority_type.authtypecode == authtypecode %]
138
                [% END %]
125
            <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
139
                [% IF ( orderby == 'HeadingDsc' ) %]
126
            [% ELSE %]
140
                <option value="HeadingDsc" selected="selected">Heading Z-A</option>
127
            <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
141
                [% ELSE %]
128
            [% END %]
142
                <option value="HeadingDsc">Heading Z-A</option>
129
        [% END %]
143
                [% END %]
130
        </select>
144
                [% IF ( orderby == '' && op ) %]
131
        <input type="hidden" name="marclist" value="match" />
145
                <option value="" selected="selected">None</option>
132
        <select name="operator">
146
                [% ELSE %]
133
            [% IF ( operator == 'contains' ) %]
147
                <option value="">None</option>
134
            <option value="contains" selected="selected">contains</option>
148
                [% END %]
135
            [% ELSE %]
149
            </select>
136
            <option value="contains">contains</option>
150
137
            [% END %]
151
            <p class="plusdessous" id="filters">
138
            [% IF ( operator == 'start' ) %]
152
                <input type="hidden" name="op" value="do_search" />
139
            <option value="start" selected="selected">starts with</option>
153
                <input type="hidden" name="type" value="intranet" />
140
            [% ELSE %]
154
                <select name="authtypecode" id="authtype_all_headings">
141
            <option value="start">starts with</option>
155
                [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
142
            [% END %]
156
                [% FOREACH authority_type IN authority_types %]
143
            [% IF ( operator == 'exact' ) %]
157
                    [% IF authority_type.authtypecode == authtypecode %]
144
            <option value="exact" selected="selected">is exactly</option>
158
                    <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
145
            [% ELSE %]
159
                    [% ELSE %]
146
            <option value="exact">is exactly</option>
160
                    <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
147
            [% END %]
161
                    [% END %]
148
        </select>
162
                [% END %]
149
        <input id="value_matchheading" type="text" name="value" value="[% value | html %]" class="head-searchbox" />
163
                </select>
150
        <select name="orderby">
164
151
            [% IF ( orderby == 'HeadingAsc' ) %]
165
                <input type="hidden" name="marclist" value="match" />
152
            <option value="HeadingAsc" selected="selected">Heading A-Z</option>
166
                <select name="operator">
153
            [% ELSE %]
167
                    [% IF ( operator == 'contains' ) %]
154
            <option value="HeadingAsc">Heading A-Z</option>
168
                    <option value="contains" selected="selected">contains</option>
155
            [% END %]
169
                    [% ELSE %]
156
            [% IF ( orderby == 'HeadingDsc' ) %]
170
                    <option value="contains">contains</option>
157
            <option value="HeadingDsc" selected="selected">Heading Z-A</option>
171
                    [% END %]
158
            [% ELSE %]
172
                    [% IF ( operator == 'start' ) %]
159
            <option value="HeadingDsc">Heading Z-A</option>
173
                    <option value="start" selected="selected">starts with</option>
160
            [% END %]
174
                    [% ELSE %]
161
            [% IF ( orderby == '' && op ) %]
175
                    <option value="start">starts with</option>
162
            <option value="" selected="selected">None</option>
176
                    [% END %]
163
            [% ELSE %]
177
                    [% IF ( operator == 'exact' ) %]
164
            <option value="">None</option>
178
                    <option value="exact" selected="selected">is exactly</option>
165
            [% END %]
179
                    [% ELSE %]
166
         </select>
180
                    <option value="exact">is exactly</option>
167
         <input type="submit" class="submit principal" value="Submit" />
181
                    [% END %]
168
    </form>
182
                </select>
183
184
                <input id="value_matchheading" type="text" name="value" value="[% value | html %]" placeholder="Enter any heading" />
185
            </p>
186
187
            <input type="submit" class="submit" id="submit" value="" />
188
        </form>
169
    </div>
189
    </div>
190
170
    <div id="entire_record" class="residentsearch">
191
    <div id="entire_record" class="residentsearch">
171
    <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
192
    <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
172
        <label class="tip" for="value_anywhere">Enter any authority field:</label>
193
173
        <input type="hidden" name="op" value="do_search" />
194
        <select name="orderby" class="haut">
174
        <input type="hidden" name="type" value="intranet" />
175
        <select name="authtypecode" id="authtype_entire_record">
176
        [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
177
        [% FOREACH authority_type IN authority_types %]
178
            [% IF authority_type.authtypecode == authtypecode %]
179
            <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
180
            [% ELSE %]
181
            <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
182
            [% END %]
183
        [% END %]
184
        </select>
185
        <input type="hidden" name="marclist" value="all" />
186
        <input type="hidden" name="and_or" value="and" />
187
        <input type="hidden" name="excluding" value="" />
188
        <select name="operator">
189
            [% IF ( operator == 'contains' ) %]
190
            <option value="contains" selected="selected">contains</option>
191
            [% ELSE %]
192
            <option value="contains">contains</option>
193
            [% END %]
194
            [% IF ( operator == 'start' ) %]
195
            <option value="start" selected="selected">starts with</option>
196
            [% ELSE %]
197
            <option value="start">starts with</option>
198
            [% END %]
199
            [% IF ( operator == 'exact' ) %]
200
            <option value="exact" selected="selected">is exactly</option>
201
            [% ELSE %]
202
            <option value="exact">is exactly</option>
203
            [% END %]
204
        </select>
205
        <input id="value_anywhere" type="text" name="value" value="[% value | html %]" class="head-searchbox" />
206
        <select name="orderby">
207
            [% IF ( orderby == 'HeadingAsc' ) %]
195
            [% IF ( orderby == 'HeadingAsc' ) %]
208
            <option value="HeadingAsc" selected="selected">Heading A-Z</option>
196
            <option value="HeadingAsc" selected="selected">Heading A-Z</option>
209
            [% ELSE %]
197
            [% ELSE %]
Lines 220-234 Link Here
220
            <option value="">None</option>
208
            <option value="">None</option>
221
            [% END %]
209
            [% END %]
222
        </select>
210
        </select>
223
        <input type="submit" class="submit principal" value="Submit" />
211
212
        <p class="plusdessous" id="filters">
213
            <input type="hidden" name="op" value="do_search" />
214
            <input type="hidden" name="type" value="intranet" />
215
            <select name="authtypecode" id="authtype_entire_record">
216
            [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
217
            [% FOREACH authority_type IN authority_types %]
218
                [% IF authority_type.authtypecode == authtypecode %]
219
                <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
220
                [% ELSE %]
221
                <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
222
                [% END %]
223
            [% END %]
224
            </select>
225
226
            <input type="hidden" name="marclist" value="all" />
227
            <input type="hidden" name="and_or" value="and" />
228
            <input type="hidden" name="excluding" value="" />
229
            <select name="operator">
230
                [% IF ( operator == 'contains' ) %]
231
                <option value="contains" selected="selected">contains</option>
232
                [% ELSE %]
233
                <option value="contains">contains</option>
234
                [% END %]
235
                [% IF ( operator == 'start' ) %]
236
                <option value="start" selected="selected">starts with</option>
237
                [% ELSE %]
238
                <option value="start">starts with</option>
239
                [% END %]
240
                [% IF ( operator == 'exact' ) %]
241
                <option value="exact" selected="selected">is exactly</option>
242
                [% ELSE %]
243
                <option value="exact">is exactly</option>
244
                [% END %]
245
            </select>
246
247
            <input id="value_anywhere" type="text" name="value" value="[% value | html %]" placeholder="Enter any authority field" />
248
        </p>
249
250
        <input type="submit" class="submit" id="submit" value="" />
224
    </form>
251
    </form>
225
    </div>
252
    </div>
253
226
    <ul>
254
    <ul>
227
        <li><a class="keep_text" href="#mainmain_heading">Search main heading ($a only)</a></li>
255
        <li><a id="icon_1" title="Search main heading ($a only)" onclick="clique(this)" class="iconsearch" href="#mainmain_heading"><i style="font-weight:bold">$a</i></a></li>
228
        <li><a class="keep_text" href="#main_heading">Search main heading</a></li>
256
        <li><a id="icon_2" title="Search main heading" onclick="clique(this)" class="iconsearch" href="#main_heading"><i class="fa fa-upload"></i></a></li>
229
        <li><a class="keep_text" href="#matchheading_search">Search all headings</a></li>
257
        <li><a id="icon_3" title="Search all headings" onclick="clique(this)" class="iconsearch" href="#matchheading_search"><i class="fa fa-upload"></i></a></li>
230
        <li><a class="keep_text" href="#entire_record">Search entire record</a></li>
258
        <li><a id="icon_4" title="Search entire record" onclick="clique(this)" class="iconsearch" href="#entire_record"><i class="fa fa-upload"></i></a></li>
259
260
        <span id="button_1" class="buttonsearch active">Search main heading ($a only)</span>
261
        <span id="button_2" class="buttonsearch">Search main heading</span>
262
        <span id="button_3" class="buttonsearch">Search all headings</span>
263
        <span id="button_4" class="buttonsearch">Search entire record</span>
264
231
    </ul>
265
    </ul>
232
</div><!-- /header_search -->
266
</div><!-- /header_search -->
233
</div><!-- /gradient -->
267
268
<script type="text/javascript">
269
    function focusInput(){
270
        document.getElementsByClassName('head-searchbox').focus();
271
    }
272
273
    function toggle(elem){style="width: calc(301px);"
274
        var buttonssearch = document.getElementsByClassName('active');
275
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
276
            buttonssearch[i].classList.remove('active');
277
        }
278
279
        if(elem){
280
            elem.classList.add('active');
281
            fold();
282
        }else{//Back
283
            document.getElementById('button_1').classList.add('active');
284
            document.getElementById('header_search').classList.remove('fold');
285
            document.getElementsByClassName('head-searchbox').style = '';
286
        }
287
288
        focusInput();
289
    }
290
291
    function clique(elem){
292
        var buttonssearch = document.getElementsByClassName('buttonsearch');
293
        var iconssearch = document.getElementsByClassName('iconsearch');
294
        var inputssearch = document.getElementsByClassName('head-searchbox');
295
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
296
            buttonssearch[i].classList.remove('active');
297
            if (elem == iconssearch[i]){
298
                buttonssearch[i].classList.add('active');
299
            }
300
        }
301
302
        for (var i = inputssearch.length - 1; i >= 0; i--) {
303
            inputssearch[i].classList.remove('focus');
304
305
            if (elem == iconssearch[i]){
306
                inputssearch[i].classList.add('focus');
307
308
                taille(inputssearch[i])
309
            }
310
        }
311
312
        focusInput();
313
        fold();
314
    }
315
316
    function fold(){
317
        document.getElementById('header_search').classList.add('fold');
318
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
319
        setTimeout(
320
            function(){
321
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
322
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
323
            }
324
        , 250);
325
    }
326
327
    function taille(el){
328
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
329
        el.style = "width:calc(500px - "+offsetWidth+"px)";
330
    }
331
332
    $('.btn').click(function(){
333
    if($(this).hasClass('active')){
334
        $(this).removeClass('active')
335
    } else {
336
        $(this).addClass('active')
337
    }
338
});
339
340
</script>
234
<!-- End Authorities Resident Search Box -->
341
<!-- End Authorities Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc (-1 / +1 lines)
Lines 41-47 Link Here
41
            [% END %]
41
            [% END %]
42
42
43
            <div class="btn-group">
43
            <div class="btn-group">
44
                <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-download"></i> Save
44
                <a class="btn btn-default dropdown-toggle principal" data-toggle="dropdown" href="#"><i class="fa fa-download"></i> Save
45
                <span class="caret"></span>
45
                <span class="caret"></span>
46
                </a>
46
                </a>
47
                <ul class="dropdown-menu">
47
                <ul class="dropdown-menu">
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-search.inc (-3 / +3 lines)
Lines 4-13 Link Here
4
4
5
    <div id="budgets_search" class="residentsearch">
5
    <div id="budgets_search" class="residentsearch">
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" type="text" name="filter_budgetname" id="filter_budgetname" value="[% filter_budgetname | html %]" 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;">
9
            <select name="filter_budgetbranch" id="filter_budgetbranch" style="width:10em;position: relative;left: 170px;bottom: 3px;">
10
                <option value="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 %]
13
                        <option value="[% branchloo.branchcode | html %]" selected="selected">[% branchloo.branchname | html %]</option>
13
                        <option value="[% branchloo.branchcode | html %]" selected="selected">[% branchloo.branchname | html %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
<div id="header_search">
2
<div id="header_search" class="fold">
3
3
4
    [% INCLUDE 'patron-search-box.inc' %]
4
    [% INCLUDE 'patron-search-box.inc' %]
5
5
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc (-2 / +2 lines)
Lines 232-243 Link Here
232
            </fieldset>
232
            </fieldset>
233
        </div>
233
        </div>
234
        <div class="modal-footer">
234
        <div class="modal-footer">
235
            <button type="submit" class="pat">Export</button>
235
            <button type="submit" class="principal">Export</button>
236
            <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
236
            <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
237
        </div>
237
        </div>
238
        <input type="hidden" name="op" value="export" />
238
        <input type="hidden" name="op" value="export" />
239
        <input type="hidden" name="bib" value="[% biblionumber | html %]" />
239
        <input type="hidden" name="bib" value="[% biblionumber | html %]" />
240
        </form>
240
        </form>
241
        </div>
241
        </div>
242
        </div>
243
    </div>
242
    </div>
243
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cities-admin-search.inc (+75 lines)
Lines 21-24 Link Here
21
        <span id="button_3" class="buttonsearch">Search the catalog</span>
21
        <span id="button_3" class="buttonsearch">Search the catalog</span>
22
    </ul>
22
    </ul>
23
</div>
23
</div>
24
25
<script type="text/javascript">
26
    function focusInput(){
27
        document.getElementsByClassName('head-searchbox').focus();
28
    }
29
30
    function toggle(elem){style="width: calc(301px);"
31
        var buttonssearch = document.getElementsByClassName('active');
32
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
33
            buttonssearch[i].classList.remove('active');
34
        }
35
36
        if(elem){
37
            elem.classList.add('active');
38
            fold();
39
        }else{//Back
40
            document.getElementById('button_1').classList.add('active');
41
            document.getElementById('header_search').classList.remove('fold');
42
            document.getElementsByClassName('head-searchbox').style = '';
43
        }
44
45
        focusInput();
46
    }
47
48
    function clique(elem){
49
        var buttonssearch = document.getElementsByClassName('buttonsearch');
50
        var iconssearch = document.getElementsByClassName('iconsearch');
51
        var inputssearch = document.getElementsByClassName('head-searchbox');
52
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
53
            buttonssearch[i].classList.remove('active');
54
            if (elem == iconssearch[i]){
55
                buttonssearch[i].classList.add('active');
56
            }
57
        }
58
59
        for (var i = inputssearch.length - 1; i >= 0; i--) {
60
            inputssearch[i].classList.remove('focus');
61
62
            if (elem == iconssearch[i]){
63
                inputssearch[i].classList.add('focus');
64
65
                taille(inputssearch[i])
66
            }
67
        }
68
69
        focusInput();
70
        fold();
71
    }
72
73
    function fold(){
74
        document.getElementById('header_search').classList.add('fold');
75
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
76
        setTimeout(
77
            function(){
78
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
79
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
80
            }
81
        , 250);
82
    }
83
84
    function taille(el){
85
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
86
        el.style = "width:calc(500px - "+offsetWidth+"px)";
87
    }
88
89
    $('.btn').click(function(){
90
    if($(this).hasClass('active')){
91
        $(this).removeClass('active')
92
    } else {
93
        $(this).addClass('active')
94
    }
95
});
96
97
</script>
98
24
<!-- End Cities Resident Search Box -->
99
<!-- End Cities Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc (-5 / +5 lines)
Lines 75-81 Link Here
75
                            <a class="btn btn-default btn-xs dropdown-toggle lientype" id="clubactions[% c.id | html %]" role="button" data-toggle="dropdown" href="#">
75
                            <a class="btn btn-default btn-xs dropdown-toggle lientype" id="clubactions[% c.id | html %]" role="button" data-toggle="dropdown" href="#">
76
                                Actions <b class="caret"></b>
76
                                Actions <b class="caret"></b>
77
                            </a>
77
                            </a>
78
                            <ul class="dropdown-menu pull-right" id="lientype" role="menu" aria-labelledby="clubactions[% c.id | html %]">
78
                            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="clubactions[% c.id | html %]">
79
                                [% IF ( c.club_enrollments.count ) %]
79
                                [% IF ( c.club_enrollments.count ) %]
80
                                    <li>
80
                                    <li>
81
                                        <a href="club-enrollments.pl?id=[% c.id | uri %]">
81
                                        <a href="club-enrollments.pl?id=[% c.id | uri %]">
Lines 84-109 Link Here
84
                                    </li>
84
                                    </li>
85
                                [% ELSE %]
85
                                [% ELSE %]
86
                                    <li class="disabled">
86
                                    <li class="disabled">
87
                                        <a href="#" data-toggle="tooltip" data-placement="left" id="lientype" title="There are no enrollments for this club yet">
87
                                        <a href="#" data-toggle="tooltip" data-placement="left" title="There are no enrollments for this club yet">
88
                                            <i class="fa fa-list-ul"></i> Enrollments
88
                                            <i class="fa fa-list-ul"></i> Enrollments
89
                                        </a>
89
                                        </a>
90
                                    </li>
90
                                    </li>
91
                                [% END %]
91
                                [% END %]
92
                                [% IF CAN_user_clubs_edit_clubs %]
92
                                [% IF CAN_user_clubs_edit_clubs %]
93
                                    <li>
93
                                    <li>
94
                                        <a id="lientype" href="clubs-add-modify.pl?id=[% c.id | uri %]">
94
                                        <a href="clubs-add-modify.pl?id=[% c.id | uri %]">
95
                                            <i class="fa fa-pencil"></i> Edit
95
                                            <i class="fa fa-pencil"></i> Edit
96
                                        </a>
96
                                        </a>
97
                                    </li>
97
                                    </li>
98
                                    <li>
98
                                    <li>
99
                                        <a href="#" id="lientype" class="delete_club" data-id="[% c.id | html %]" data-name="[% c.name | html %]">
99
                                        <a href="#" class="delete_club" data-id="[% c.id | html %]" data-name="[% c.name | html %]">
100
                                            <i class="fa fa-trash"></i> Delete
100
                                            <i class="fa fa-trash"></i> Delete
101
                                        </a>
101
                                        </a>
102
                                    </li>
102
                                    </li>
103
                                [% END %]
103
                                [% END %]
104
                                [% IF ( c.club_enrollments.count ) %]
104
                                [% IF ( c.club_enrollments.count ) %]
105
                                    <li>
105
                                    <li>
106
                                        <a href="#" class="club_hold_search" id="lientype" data-id="[% c.id | html %]">
106
                                        <a href="#" class="club_hold_search" data-id="[% c.id | html %]">
107
                                            <i class="fa fa-search"></i> Search to hold
107
                                            <i class="fa fa-search"></i> Search to hold
108
                                        </a>
108
                                        </a>
109
                                    </li>
109
                                    </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/contracts-admin-search.inc (+74 lines)
Lines 22-25 Link Here
22
	</ul>
22
	</ul>
23
</div>
23
</div>
24
24
25
<script type="text/javascript">
26
    function focusInput(){
27
        document.getElementsByClassName('head-searchbox').focus();
28
    }
29
30
    function toggle(elem){style="width: calc(301px);"
31
        var buttonssearch = document.getElementsByClassName('active');
32
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
33
            buttonssearch[i].classList.remove('active');
34
        }
35
36
        if(elem){
37
            elem.classList.add('active');
38
            fold();
39
        }else{//Back
40
            document.getElementById('button_1').classList.add('active');
41
            document.getElementById('header_search').classList.remove('fold');
42
            document.getElementsByClassName('head-searchbox').style = '';
43
        }
44
45
        focusInput();
46
    }
47
48
    function clique(elem){
49
        var buttonssearch = document.getElementsByClassName('buttonsearch');
50
        var iconssearch = document.getElementsByClassName('iconsearch');
51
        var inputssearch = document.getElementsByClassName('head-searchbox');
52
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
53
            buttonssearch[i].classList.remove('active');
54
            if (elem == iconssearch[i]){
55
                buttonssearch[i].classList.add('active');
56
            }
57
        }
58
59
        for (var i = inputssearch.length - 1; i >= 0; i--) {
60
            inputssearch[i].classList.remove('focus');
61
62
            if (elem == iconssearch[i]){
63
                inputssearch[i].classList.add('focus');
64
65
                taille(inputssearch[i])
66
            }
67
        }
68
69
        focusInput();
70
        fold();
71
    }
72
73
    function fold(){
74
        document.getElementById('header_search').classList.add('fold');
75
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
76
        setTimeout(
77
            function(){
78
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
79
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
80
            }
81
        , 250);
82
    }
83
84
    function taille(el){
85
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
86
        el.style = "width:calc(500px - "+offsetWidth+"px)";
87
    }
88
89
    $('.btn').click(function(){
90
    if($(this).hasClass('active')){
91
        $(this).removeClass('active')
92
    } else {
93
        $(this).addClass('active')
94
    }
95
});
96
97
</script>
98
25
<!-- End Patrons Admin Resident Search Box -->
99
<!-- End Patrons Admin Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/currencies-admin-search.inc (-5 / +80 lines)
Lines 13-25 Link Here
13
    [% INCLUDE 'catalogue-search-box.inc' %]
13
    [% INCLUDE 'catalogue-search-box.inc' %]
14
14
15
    <ul id="taille">
15
    <ul id="taille">
16
        <li><a id="icon_1" title="Check out" onclick="clique(this)" class="iconsearch" href="#currency_search"><i class="fa fa-dollar"></i></a></li>
16
        <li><a id="icon_1" title="Search currencies" onclick="clique(this)" class="iconsearch" href="#currency_search"><i class="fa fa-dollar"></i></a></li>
17
        [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a id="icon_2" title="Check out" onclick="clique(this)" class="iconsearch" href="#circ_search"><i class="fa fa-upload"></i></a></li>[% END %]
17
        [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a id="icon_2" title="Check out" onclick="clique(this)" class="iconsearch" href="#circ_search"><i class="fa fa-upload"></i></a></li>[% END %]
18
        [% IF ( CAN_user_catalogue ) %]<li><a id="icon_3" title="Check out" onclick="clique(this)" class="iconsearch" href="#catalog_search"><i class="fa fa-upload"></i></a></li>[% END %]
18
        [% IF ( CAN_user_catalogue ) %]<li><a id="icon_3" title="Search catalog" onclick="clique(this)" class="iconsearch" href="#catalog_search"><i class="fa fa-fw fa-search"></i></a></li>[% END %]
19
19
20
        <span class="keep_text">Search currencies</span>
20
        <span id="button_1" class="buttonsearch active">Search currencies</span>
21
        <span class="keep_text">Check out</span>
21
        <span id="button_2" class="buttonsearch">Check out</span>
22
        <span class="keep_text">Search the catalog</span>
22
        <span id="button_3" class="buttonsearch">Search catalog</span>
23
    </ul>
23
    </ul>
24
</div>
24
</div>
25
26
<script type="text/javascript">
27
    function focusInput(){
28
        document.getElementsByClassName('head-searchbox').focus();
29
    }
30
31
    function toggle(elem){style="width: calc(301px);"
32
        var buttonssearch = document.getElementsByClassName('active');
33
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
34
            buttonssearch[i].classList.remove('active');
35
        }
36
37
        if(elem){
38
            elem.classList.add('active');
39
            fold();
40
        }else{//Back
41
            document.getElementById('button_1').classList.add('active');
42
            document.getElementById('header_search').classList.remove('fold');
43
            document.getElementsByClassName('head-searchbox').style = '';
44
        }
45
46
        focusInput();
47
    }
48
49
    function clique(elem){
50
        var buttonssearch = document.getElementsByClassName('buttonsearch');
51
        var iconssearch = document.getElementsByClassName('iconsearch');
52
        var inputssearch = document.getElementsByClassName('head-searchbox');
53
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
54
            buttonssearch[i].classList.remove('active');
55
            if (elem == iconssearch[i]){
56
                buttonssearch[i].classList.add('active');
57
            }
58
        }
59
60
        for (var i = inputssearch.length - 1; i >= 0; i--) {
61
            inputssearch[i].classList.remove('focus');
62
63
            if (elem == iconssearch[i]){
64
                inputssearch[i].classList.add('focus');
65
66
                taille(inputssearch[i])
67
            }
68
        }
69
70
        focusInput();
71
        fold();
72
    }
73
74
    function fold(){
75
        document.getElementById('header_search').classList.add('fold');
76
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
77
        setTimeout(
78
            function(){
79
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
80
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
81
            }
82
        , 250);
83
    }
84
85
    function taille(el){
86
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
87
        el.style = "width:calc(500px - "+offsetWidth+"px)";
88
    }
89
90
    $('.btn').click(function(){
91
    if($(this).hasClass('active')){
92
        $(this).removeClass('active')
93
    } else {
94
        $(this).addClass('active')
95
    }
96
});
97
98
</script>
99
25
<!-- End Currencies Resident Search Box -->
100
<!-- End Currencies Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/desks-admin-search.inc (+75 lines)
Lines 22-25 Link Here
22
        <span id="button_3" class="buttonsearch">Search catalog</span>
22
        <span id="button_3" class="buttonsearch">Search catalog</span>
23
    </ul>
23
    </ul>
24
</div>
24
</div>
25
26
<script type="text/javascript">
27
    function focusInput(){
28
        document.getElementsByClassName('head-searchbox').focus();
29
    }
30
31
    function toggle(elem){style="width: calc(301px);"
32
        var buttonssearch = document.getElementsByClassName('active');
33
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
34
            buttonssearch[i].classList.remove('active');
35
        }
36
37
        if(elem){
38
            elem.classList.add('active');
39
            fold();
40
        }else{//Back
41
            document.getElementById('button_1').classList.add('active');
42
            document.getElementById('header_search').classList.remove('fold');
43
            document.getElementsByClassName('head-searchbox').style = '';
44
        }
45
46
        focusInput();
47
    }
48
49
    function clique(elem){
50
        var buttonssearch = document.getElementsByClassName('buttonsearch');
51
        var iconssearch = document.getElementsByClassName('iconsearch');
52
        var inputssearch = document.getElementsByClassName('head-searchbox');
53
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
54
            buttonssearch[i].classList.remove('active');
55
            if (elem == iconssearch[i]){
56
                buttonssearch[i].classList.add('active');
57
            }
58
        }
59
60
        for (var i = inputssearch.length - 1; i >= 0; i--) {
61
            inputssearch[i].classList.remove('focus');
62
63
            if (elem == iconssearch[i]){
64
                inputssearch[i].classList.add('focus');
65
66
                taille(inputssearch[i])
67
            }
68
        }
69
70
        focusInput();
71
        fold();
72
    }
73
74
    function fold(){
75
        document.getElementById('header_search').classList.add('fold');
76
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
77
        setTimeout(
78
            function(){
79
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
80
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
81
            }
82
        , 250);
83
    }
84
85
    function taille(el){
86
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
87
        el.style = "width:calc(500px - "+offsetWidth+"px)";
88
    }
89
90
    $('.btn').click(function(){
91
    if($(this).hasClass('active')){
92
        $(this).removeClass('active')
93
    } else {
94
        $(this).addClass('active')
95
    }
96
});
97
98
</script>
99
25
<!-- End Desks Resident Search Box -->
100
<!-- End Desks Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/letters-search.inc (-1 / +76 lines)
Lines 3-9 Link Here
3
<div id="header_search" class="fold">
3
<div id="header_search" class="fold">
4
        <div id="notices_search" class="residentsearch">
4
        <div id="notices_search" class="residentsearch">
5
                <form action="/cgi-bin/koha/tools/letter.pl" method="post">
5
                <form action="/cgi-bin/koha/tools/letter.pl" method="post">
6
                        <input class="head-searchbox focus" type="text" name="searchfield" id="searchfield" value="" placeholder="Search existing notices:"/>
6
                        <input class="head-searchbox focus" type="text" name="searchfield" id="searchfield" value="" placeholder="Search existing notices"/>
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>
Lines 22-25 Link Here
22
                <span id="button_3" class="buttonsearch">Search the catalog</span>
22
                <span id="button_3" class="buttonsearch">Search the catalog</span>
23
	</ul>
23
	</ul>
24
</div>
24
</div>
25
26
<script type="text/javascript">
27
    function focusInput(){
28
        document.getElementsByClassName('head-searchbox').focus();
29
    }
30
31
    function toggle(elem){style="width: calc(301px);"
32
        var buttonssearch = document.getElementsByClassName('active');
33
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
34
            buttonssearch[i].classList.remove('active');
35
        }
36
37
        if(elem){
38
            elem.classList.add('active');
39
            fold();
40
        }else{//Back
41
            document.getElementById('button_1').classList.add('active');
42
            document.getElementById('header_search').classList.remove('fold');
43
            document.getElementsByClassName('head-searchbox').style = '';
44
        }
45
46
        focusInput();
47
    }
48
49
    function clique(elem){
50
        var buttonssearch = document.getElementsByClassName('buttonsearch');
51
        var iconssearch = document.getElementsByClassName('iconsearch');
52
        var inputssearch = document.getElementsByClassName('head-searchbox');
53
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
54
            buttonssearch[i].classList.remove('active');
55
            if (elem == iconssearch[i]){
56
                buttonssearch[i].classList.add('active');
57
            }
58
        }
59
60
        for (var i = inputssearch.length - 1; i >= 0; i--) {
61
            inputssearch[i].classList.remove('focus');
62
63
            if (elem == iconssearch[i]){
64
                inputssearch[i].classList.add('focus');
65
66
                taille(inputssearch[i])
67
            }
68
        }
69
70
        focusInput();
71
        fold();
72
    }
73
74
    function fold(){
75
        document.getElementById('header_search').classList.add('fold');
76
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
77
        setTimeout(
78
            function(){
79
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
80
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
81
            }
82
        , 250);
83
    }
84
85
    function taille(el){
86
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
87
        el.style = "width:calc(500px - "+offsetWidth+"px)";
88
    }
89
90
    $('.btn').click(function(){
91
    if($(this).hasClass('active')){
92
        $(this).removeClass('active')
93
    } else {
94
        $(this).addClass('active')
95
    }
96
});
97
98
</script>
99
25
<!-- End Notices Resident Search Box -->
100
<!-- End Notices Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-2 / +2 lines)
Lines 136-143 Link Here
136
                    <input type="hidden" name="branchcode" value="[% Branches.GetLoggedInBranchcode | html %]" />
136
                    <input type="hidden" name="branchcode" value="[% Branches.GetLoggedInBranchcode | html %]" />
137
                </div>
137
                </div>
138
                <div class="modal-footer">
138
                <div class="modal-footer">
139
                    <button class="pat" type="submit"><i class="fa fa-check"></i> Save</button>
139
                    <button class="principal" type="submit"><i class="fa fa-check"></i> Save</button>
140
                    <button class="pat" href="#" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> Cancel</button>
140
                    <button class="Cancel" href="#" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> Cancel</button>
141
                </div>
141
                </div>
142
            </form>
142
            </form>
143
        </div>
143
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-121 / +3 lines)
Lines 6-24 Link Here
6
[% USE To %]
6
[% USE To %]
7
[% PROCESS 'html_helpers.inc' %]
7
[% PROCESS 'html_helpers.inc' %]
8
[% PROCESS 'patronfields.inc' %]
8
[% PROCESS 'patronfields.inc' %]
9
<!-- Begin Patrons Resident Search Box -->
10
11
<div id="header_search" class="fold">
12
13
    <div id="patron_search" class="residentsearch">
14
        <form action="/cgi-bin/koha/members/member.pl" method="post">
15
            <div class="autocomplete">
16
                <input name="barcode" id="searchmember" class="head-searchbox focus" type="text" placeholder="Enter patron card number or partial name">
17
                <span class="filteraction" id="filteraction_off"> <a id="plus" href="#">[-]</a></span>
18
                <span class="filteraction" id="filteraction_on"> <a id="plus" href="#">[+]</a></span></input>
19
                <input value="" id="submitsearch" type="submit" />
20
                <input type="hidden" name="quicksearch" value="1" />
21
            </div>
22
9
23
[%# Display a simple form %]
10
[%# Display a simple form %]
24
[% BLOCK patron_search_filters_simple  %]
11
[% BLOCK patron_search_filters_simple  %]
Lines 106-113 Link Here
106
                [% END %]
93
                [% END %]
107
            </ol>
94
            </ol>
108
            <fieldset class="action">
95
            <fieldset class="action">
109
                <input type="submit" value="Search" />
96
                <input type="submit" class="principal" value="Search" />
110
                <input type="button" value="Clear" id="clear_search" />
97
                <input type="button" value="Clear" class="cancel" id="clear_search" />
111
            </fieldset>
98
            </fieldset>
112
        </fieldset>
99
        </fieldset>
113
    </form>
100
    </form>
Lines 182-203 Link Here
182
              </thead>
169
              </thead>
183
            <tbody></tbody>
170
            <tbody></tbody>
184
        </table>
171
        </table>
185
    [% INCLUDE 'patron-search-box.inc' %]
186
187
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
188
    <div id="checkin_search" class="residentsearch">
189
        <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
190
            <input name="barcode" id="ret_barcode" class="head-searchbox focus" accesskey="r" type="text" placeholder="Scan a barcode to check in" />
191
            <input value="" type="submit" id="submit" />
192
        </form>
193
    </div>
194
172
195
    <div id="renew_search" class="residentsearch">
173
196
        <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
197
            <input name="barcode" id="ren_barcode" class="head-searchbox focus"type="text" placeholder="Scan a barcode to renew" />
198
            <input value="" type="submit" id="submit" />
199
        </form>
200
    </div>
201
174
202
<!-- Patron preview modal -->
175
<!-- Patron preview modal -->
203
<div class="modal" id="patronPreview" tabindex="-1" role="dialog" aria-labelledby="patronPreviewLabel">
176
<div class="modal" id="patronPreview" tabindex="-1" role="dialog" aria-labelledby="patronPreviewLabel">
Lines 834-930 Link Here
834
807
835
            if ( setstate ) {
808
            if ( setstate ) {
836
                history.pushState( null, null, "?firstletter=" + letter );
809
                history.pushState( null, null, "?firstletter=" + letter );
837
    [% INCLUDE 'catalogue-search-box.inc' %]
838
839
    <ul id="taille">
840
        <li><a id="icon_1" title="Search patrons" onclick="clique(this)" class="iconsearch" href="#patron_search"><i class="fa fa-fw fa-id-card-o"></i></a></li>
841
        [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a id="icon_2" title="Check out" onclick="clique(this)" class="iconsearch" href="#circ_search"><i class="fa fa-upload"></i></a></li>[% END %]
842
        [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a id="icon_3" title="Check in" onclick="clique(this)" class="iconsearch" href="#checkin_search"><i class="fa fa-download"></i></a></li>[% END %]
843
        [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a id="icon_4" title="Renew" onclick="clique(this)" class="iconsearch" href="#renew_search"><i class="fa fa-retweet"></i></a></li>[% END %]
844
        [% IF ( CAN_user_catalogue ) %]<li><a id="icon_5" title="Search catalog" onclick="clique(this)" class="iconsearch" href="#catalog_search"><i class="fa fa-fw fa-search"></i></a></li>[% END %]
845
846
        <span id="button_1" class="buttonsearch active">Search patrons</span>
847
        <span id="button_2" class="buttonsearch">Check-out</span>
848
        <span id="button_3" class="buttonsearch">Check-in</span>
849
        <span id="button_4" class="buttonsearch">Renew</span>
850
        <span id="button_5" class="buttonsearch">Search catalog</span>
851
    </ul>
852
</div>
853
854
855
<script type="text/javascript">
856
    function focusInput(){
857
        document.getElementsByClassName('head-searchbox').focus();
858
    }
859
860
    function toggle(elem){style="width: calc(301px);"
861
        var buttonssearch = document.getElementsByClassName('active');
862
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
863
            buttonssearch[i].classList.remove('active');
864
        }
865
866
        if(elem){
867
            elem.classList.add('active');
868
            fold();
869
        }else{//Back
870
            document.getElementById('button_1').classList.add('active');
871
            document.getElementById('header_search').classList.remove('fold');
872
            document.getElementsByClassName('head-searchbox').style = '';
873
        }
874
875
        focusInput();
876
    }
877
878
    function clique(elem){
879
        var buttonssearch = document.getElementsByClassName('buttonsearch');
880
        var iconssearch = document.getElementsByClassName('iconsearch');
881
        var inputssearch = document.getElementsByClassName('head-searchbox');
882
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
883
            buttonssearch[i].classList.remove('active');
884
            if (elem == iconssearch[i]){
885
                buttonssearch[i].classList.add('active');
886
            }
887
        }
888
889
        for (var i = inputssearch.length - 1; i >= 0; i--) {
890
            inputssearch[i].classList.remove('focus');
891
892
            if (elem == iconssearch[i]){
893
                inputssearch[i].classList.add('focus');
894
895
                taille(inputssearch[i])
896
            }
897
        }
898
899
        focusInput();
900
        fold();
901
    }
902
903
    function fold(){
904
        document.getElementById('header_search').classList.add('fold');
905
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
906
        setTimeout(
907
            function(){
908
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
909
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
910
            }
911
912
    function taille(el){
913
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
914
        el.style = "width:calc(500px - "+offsetWidth+"px)";
915
    }
916
917
    $('.btn').click(function(){
918
    if($(this).hasClass('active')){
919
        $(this).removeClass('active')
920
    } else {
921
        $(this).addClass('active')
922
    }
923
});
924
925
926
927
</script>
928
810
929
        // modify parent window owner element
811
        // modify parent window owner element
930
        function add_user(borrowernumber, borrowername) {
812
        function add_user(borrowernumber, borrowername) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc (+2 lines)
Lines 2-7 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
    <h3>Attention</h3>
6
    <h3>Attention</h3>
6
    <ul>
7
    <ul>
7
        [% IF ( has_modifications ) %]
8
        [% IF ( has_modifications ) %]
Lines 126-131 Link Here
126
        [% END %]
127
        [% END %]
127
128
128
    </ul>
129
    </ul>
130
    </fieldset>
129
131
130
[% END # /F ( has_modifications || warndeparture... %]
132
[% END # /F ( has_modifications || warndeparture... %]
131
133
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc (+75 lines)
Lines 22-25 Link Here
22
        <span id="button_3" class="buttonsearch">Search the catalog</span>
22
        <span id="button_3" class="buttonsearch">Search the catalog</span>
23
	</ul>
23
	</ul>
24
</div>
24
</div>
25
26
<script type="text/javascript">
27
    function focusInput(){
28
        document.getElementsByClassName('head-searchbox').focus();
29
    }
30
31
    function toggle(elem){style="width: calc(301px);"
32
        var buttonssearch = document.getElementsByClassName('active');
33
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
34
            buttonssearch[i].classList.remove('active');
35
        }
36
37
        if(elem){
38
            elem.classList.add('active');
39
            fold();
40
        }else{//Back
41
            document.getElementById('button_1').classList.add('active');
42
            document.getElementById('header_search').classList.remove('fold');
43
            document.getElementsByClassName('head-searchbox').style = '';
44
        }
45
46
        focusInput();
47
    }
48
49
    function clique(elem){
50
        var buttonssearch = document.getElementsByClassName('buttonsearch');
51
        var iconssearch = document.getElementsByClassName('iconsearch');
52
        var inputssearch = document.getElementsByClassName('head-searchbox');
53
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
54
            buttonssearch[i].classList.remove('active');
55
            if (elem == iconssearch[i]){
56
                buttonssearch[i].classList.add('active');
57
            }
58
        }
59
60
        for (var i = inputssearch.length - 1; i >= 0; i--) {
61
            inputssearch[i].classList.remove('focus');
62
63
            if (elem == iconssearch[i]){
64
                inputssearch[i].classList.add('focus');
65
66
                taille(inputssearch[i])
67
            }
68
        }
69
70
        focusInput();
71
        fold();
72
    }
73
74
    function fold(){
75
        document.getElementById('header_search').classList.add('fold');
76
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
77
        setTimeout(
78
            function(){
79
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
80
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
81
            }
82
        , 250);
83
    }
84
85
    function taille(el){
86
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
87
        el.style = "width:calc(500px - "+offsetWidth+"px)";
88
    }
89
90
    $('.btn').click(function(){
91
    if($(this).hasClass('active')){
92
        $(this).removeClass('active')
93
    } else {
94
        $(this).addClass('active')
95
    }
96
});
97
98
</script>
99
25
<!-- End Patrons Admin Resident Search Box -->
100
<!-- End Patrons Admin Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-admin-search.inc (-9 / +46 lines)
Lines 28-37 Link Here
28
28
29
<script type="text/javascript">
29
<script type="text/javascript">
30
    function focusInput(){
30
    function focusInput(){
31
        document.getElementById('inputsearch').focus();
31
        document.getElementsByClassName('head-searchbox').focus();
32
    }
32
    }
33
33
34
    function toggle(elem){
34
    function toggle(elem){style="width: calc(301px);"
35
        var buttonssearch = document.getElementsByClassName('active');
35
        var buttonssearch = document.getElementsByClassName('active');
36
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
36
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
37
            buttonssearch[i].classList.remove('active');
37
            buttonssearch[i].classList.remove('active');
Lines 42-66 Link Here
42
            fold();
42
            fold();
43
        }else{//Back
43
        }else{//Back
44
            document.getElementById('button_1').classList.add('active');
44
            document.getElementById('button_1').classList.add('active');
45
            document.getElementById('containersearch').classList.remove('fold');
45
            document.getElementById('header_search').classList.remove('fold');
46
            document.getElementById('inputsearch').style = '';
46
            document.getElementsByClassName('head-searchbox').style = '';
47
        }
47
        }
48
48
49
        focusInput();
49
        focusInput();
50
    }
50
    }
51
51
52
    function fold(){
52
    function clique(elem){
53
        var buttonssearch = document.getElementsByClassName('buttonsearch');
54
        var iconssearch = document.getElementsByClassName('iconsearch');
55
        var inputssearch = document.getElementsByClassName('head-searchbox');
56
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
57
            buttonssearch[i].classList.remove('active');
58
            if (elem == iconssearch[i]){
59
                buttonssearch[i].classList.add('active');
60
            }
61
        }
62
63
        for (var i = inputssearch.length - 1; i >= 0; i--) {
64
            inputssearch[i].classList.remove('focus');
65
66
            if (elem == iconssearch[i]){
67
                inputssearch[i].classList.add('focus');
68
69
                taille(inputssearch[i])
70
            }
71
        }
53
72
54
        document.getElementById('containersearch').classList.add('fold');
73
        focusInput();
55
        // document.getElementById('inputsearch').style = "width:calc(500px - 100px)";
74
        fold();
75
    }
76
77
    function fold(){
78
        document.getElementById('header_search').classList.add('fold');
79
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
56
        setTimeout(
80
        setTimeout(
57
            function(){
81
            function(){
58
                var offsetWidth = document.getElementById('buttonssearch').offsetWidth +5;
82
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
59
                document.getElementById('inputsearch').style = "width:calc(500px - "+offsetWidth+"px)";
83
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
60
            }
84
            }
61
        , 250);
85
        , 250);
62
    }
86
    }
63
87
88
    function taille(el){
89
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
90
        el.style = "width:calc(500px - "+offsetWidth+"px)";
91
    }
92
93
    $('.btn').click(function(){
94
    if($(this).hasClass('active')){
95
        $(this).removeClass('active')
96
    } else {
97
        $(this).addClass('active')
98
    }
99
});
100
64
</script>
101
</script>
65
102
66
<!-- /header_search -->
103
<!-- /header_search -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc (-3 / +3 lines)
Lines 123-129 Link Here
123
                </ul>
123
                </ul>
124
            </div>
124
            </div>
125
            <div class="btn-group">
125
            <div class="btn-group">
126
                <button type="button" id="toggle_sql" class="btn btn-default toggle_sql" data-complete-text="<i class='fa fa-eye-slash'></i> [% t('Hide SQL code') | html %]" data-toggle="button" aria-pressed="false" autocomplete="off">
126
                <button type="button" id="toggle_sql pat" class="btn btn-default toggle_sql" data-complete-text="<i class='fa fa-eye-slash'></i> [% t('Hide SQL code') | html %]" data-toggle="button" aria-pressed="false" autocomplete="off">
127
                    <i class="fa fa-eye"></i> Show SQL code
127
                    <i class="fa fa-eye"></i> Show SQL code
128
                </button>
128
                </button>
129
            </div>
129
            </div>
Lines 163-169 Link Here
163
                            <p>
163
                            <p>
164
                                Search reports by keyword:
164
                                Search reports by keyword:
165
                                <input type="text" id="mana_search_field" />
165
                                <input type="text" id="mana_search_field" />
166
                                <input type="submit" class="mana_search_button" value="Search" />
166
                                <input type="submit" class="mana_search_button principal" value="Search" />
167
                                <span id="mana-loading" style="display:none"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </span>
167
                                <span id="mana-loading" style="display:none"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </span>
168
                            </p>
168
                            </p>
169
                        </fieldset>
169
                        </fieldset>
Lines 171-177 Link Here
171
                        </div>
171
                        </div>
172
                    </div>
172
                    </div>
173
                    <div class="modal-footer">
173
                    <div class="modal-footer">
174
                        <button type="button" class="pat" data-dismiss="modal">Cancel</button>
174
                        <button type="button" class="Cancel" data-dismiss="modal">Cancel</button>
175
                    </div>
175
                    </div>
176
                </div>
176
                </div>
177
            </form>
177
            </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc (-2 / +2 lines)
Lines 210-217 Link Here
210
                [% END %]
210
                [% END %]
211
            </div> <!-- /.modal-body -->
211
            </div> <!-- /.modal-body -->
212
            <div class="modal-footer">
212
            <div class="modal-footer">
213
                <button type="submit" form="mana_share_form" class="pat">Share</button>
213
                <button type="submit" form="mana_share_form" class="principal">Share</button>
214
                <button class="pat" data-dismiss="modal" aria-hidden="true">Cancel</button>
214
                <button class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</button>
215
            </div>
215
            </div>
216
        </div> <!-- /.modal-content -->
216
        </div> <!-- /.modal-content -->
217
    </div> <!-- /.modal-dialog -->
217
    </div> <!-- /.modal-dialog -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc (+75 lines)
Lines 25-28 Link Here
25
        <span id="button_3" class="buttonsearch">Search catalog</span>
25
        <span id="button_3" class="buttonsearch">Search catalog</span>
26
    </ul>
26
    </ul>
27
</div>
27
</div>
28
29
<script type="text/javascript">
30
    function focusInput(){
31
        document.getElementsByClassName('head-searchbox').focus();
32
    }
33
34
    function toggle(elem){style="width: calc(301px);"
35
        var buttonssearch = document.getElementsByClassName('active');
36
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
37
            buttonssearch[i].classList.remove('active');
38
        }
39
40
        if(elem){
41
            elem.classList.add('active');
42
            fold();
43
        }else{//Back
44
            document.getElementById('button_1').classList.add('active');
45
            document.getElementById('header_search').classList.remove('fold');
46
            document.getElementsByClassName('head-searchbox').style = '';
47
        }
48
49
        focusInput();
50
    }
51
52
    function clique(elem){
53
        var buttonssearch = document.getElementsByClassName('buttonsearch');
54
        var iconssearch = document.getElementsByClassName('iconsearch');
55
        var inputssearch = document.getElementsByClassName('head-searchbox');
56
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
57
            buttonssearch[i].classList.remove('active');
58
            if (elem == iconssearch[i]){
59
                buttonssearch[i].classList.add('active');
60
            }
61
        }
62
63
        for (var i = inputssearch.length - 1; i >= 0; i--) {
64
            inputssearch[i].classList.remove('focus');
65
66
            if (elem == iconssearch[i]){
67
                inputssearch[i].classList.add('focus');
68
69
                taille(inputssearch[i])
70
            }
71
        }
72
73
        focusInput();
74
        fold();
75
    }
76
77
    function fold(){
78
        document.getElementById('header_search').classList.add('fold');
79
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
80
        setTimeout(
81
            function(){
82
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
83
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
84
            }
85
        , 250);
86
    }
87
88
    function taille(el){
89
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
90
        el.style = "width:calc(500px - "+offsetWidth+"px)";
91
    }
92
93
    $('.btn').click(function(){
94
    if($(this).hasClass('active')){
95
        $(this).removeClass('active')
96
    } else {
97
        $(this).addClass('active')
98
    }
99
});
100
101
</script>
102
28
<!-- End Suggestions Resident Search Box -->
103
<!-- End Suggestions Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/z3950-admin-search.inc (-2 / +77 lines)
Lines 4-10 Link Here
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="Search" />
7
                <input type="submit" class="submit" id="submit" name="search" value="" />
8
        </form>
8
        </form>
9
	</div>
9
	</div>
10
10
Lines 13-19 Link Here
13
    [% INCLUDE 'catalogue-search-box.inc' %]
13
    [% INCLUDE 'catalogue-search-box.inc' %]
14
14
15
    <ul id="taille">
15
    <ul id="taille">
16
        <li><li><a id="icon_1" title="Search Z39.50/SRU servers" onclick="clique(this)" class="iconsearch" href="#z3950_search"><i class="fa fa-square-z"></i></a></li>
16
        <li><li><a id="icon_1" title="Search Z39.50/SRU servers" onclick="clique(this)" class="iconsearch" href="#z3950_search"><i style="font-weight:bold">Z39.50</i></a></li>
17
        [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><li><a id="icon_2" title="Check out" onclick="clique(this)" class="iconsearch" href="#circ_search"><i class="fa fa-upload"></i></a></li>[% END %]
17
        [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><li><a id="icon_2" title="Check out" onclick="clique(this)" class="iconsearch" href="#circ_search"><i class="fa fa-upload"></i></a></li>[% END %]
18
        [% IF ( CAN_user_catalogue ) %]<li><a id="icon_3" title="Search catalog" onclick="clique(this)" class="iconsearch" href="#catalog_search"><i class="fa fa-fw fa-search"></i></a></li>[% END %]
18
        [% IF ( CAN_user_catalogue ) %]<li><a id="icon_3" title="Search catalog" onclick="clique(this)" class="iconsearch" href="#catalog_search"><i class="fa fa-fw fa-search"></i></a></li>[% END %]
19
19
Lines 23-26 Link Here
23
        <span id="button_3" class="buttonsearch">Search the catalog</span>
23
        <span id="button_3" class="buttonsearch">Search the catalog</span>
24
    </ul>
24
    </ul>
25
</div>
25
</div>
26
27
<script type="text/javascript">
28
    function focusInput(){
29
        document.getElementsByClassName('head-searchbox').focus();
30
    }
31
32
    function toggle(elem){style="width: calc(301px);"
33
        var buttonssearch = document.getElementsByClassName('active');
34
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
35
            buttonssearch[i].classList.remove('active');
36
        }
37
38
        if(elem){
39
            elem.classList.add('active');
40
            fold();
41
        }else{//Back
42
            document.getElementById('button_1').classList.add('active');
43
            document.getElementById('header_search').classList.remove('fold');
44
            document.getElementsByClassName('head-searchbox').style = '';
45
        }
46
47
        focusInput();
48
    }
49
50
    function clique(elem){
51
        var buttonssearch = document.getElementsByClassName('buttonsearch');
52
        var iconssearch = document.getElementsByClassName('iconsearch');
53
        var inputssearch = document.getElementsByClassName('head-searchbox');
54
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
55
            buttonssearch[i].classList.remove('active');
56
            if (elem == iconssearch[i]){
57
                buttonssearch[i].classList.add('active');
58
            }
59
        }
60
61
        for (var i = inputssearch.length - 1; i >= 0; i--) {
62
            inputssearch[i].classList.remove('focus');
63
64
            if (elem == iconssearch[i]){
65
                inputssearch[i].classList.add('focus');
66
67
                taille(inputssearch[i])
68
            }
69
        }
70
71
        focusInput();
72
        fold();
73
    }
74
75
    function fold(){
76
        document.getElementById('header_search').classList.add('fold');
77
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
78
        setTimeout(
79
            function(){
80
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
81
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
82
            }
83
        , 250);
84
    }
85
86
    function taille(el){
87
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
88
        el.style = "width:calc(500px - "+offsetWidth+"px)";
89
    }
90
91
    $('.btn').click(function(){
92
    if($(this).hasClass('active')){
93
        $(this).removeClass('active')
94
    } else {
95
        $(this).addClass('active')
96
    }
97
});
98
99
</script>
100
26
<!-- End Members Resident Search Box -->
101
<!-- End Members Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-4 / +4 lines)
Lines 41-48 Link Here
41
            <main>
41
            <main>
42
42
43
43
44
<h2>Acquisitions</h2>
45
[% INCLUDE 'acquisitions-toolbar.inc' %]
44
[% INCLUDE 'acquisitions-toolbar.inc' %]
45
<h2>Acquisitions</h2>
46
    [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %]
46
    [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %]
47
    [% UNLESS ( loop_budget ) %]
47
    [% UNLESS ( loop_budget ) %]
48
        [% IF ( CAN_user_acquisition_period_manage ) %]
48
        [% IF ( CAN_user_acquisition_period_manage ) %]
Lines 58-64 Link Here
58
        <div class="col-sm-12">
58
        <div class="col-sm-12">
59
    [% END %]
59
    [% END %]
60
<div id="acqui_acqui_home_order">
60
<div id="acqui_acqui_home_order">
61
    <fieldset class="brief">
61
    <fieldset class="rows">
62
        <h3>Manage orders</h3>
62
        <h3>Manage orders</h3>
63
        <fieldset>
63
        <fieldset>
64
            <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
64
            <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
Lines 73-80 Link Here
73
[% IF ( CAN_user_suggestions_suggestions_manage && ( suggestions_count || all_pendingsuggestions ) ) %]
73
[% IF ( CAN_user_suggestions_suggestions_manage && ( suggestions_count || all_pendingsuggestions ) ) %]
74
<div class="col-sm-6">
74
<div class="col-sm-6">
75
    <div id="acqui_acqui_home_suggestions">
75
    <div id="acqui_acqui_home_suggestions">
76
        <fieldset>
76
        <fieldset class="rows">
77
        <legend>Pending suggestions</legend>
77
        <h3>Pending suggestions</h3>
78
        <p>
78
        <p>
79
            Manage suggestions:
79
            Manage suggestions:
80
            <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">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-11 / +11 lines)
Lines 4-11 Link Here
4
[% PROCESS 'i18n.inc' %]
4
[% PROCESS 'i18n.inc' %]
5
[% BLOCK csv_export %]
5
[% BLOCK csv_export %]
6
    <div class="btn-group">
6
    <div class="btn-group">
7
        <a id="exportbutton" class="btn btn-default" href="[% script_name | url %]?op=export&amp;basketno=[% basketno | uri %]&amp;booksellerid=[% booksellerid | uri %]"><i class="fa fa-download"></i> Export as CSV</a>
7
        <a id="exportbutton" class="btn btn-default pat" href="[% script_name | url %]?op=export&amp;basketno=[% basketno | uri %]&amp;booksellerid=[% booksellerid | uri %]"><i class="fa fa-download"></i> Export as CSV</a>
8
      <a class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
8
      <a class="btn btn-default dropdown-toggle pat" data-toggle="dropdown"><span class="caret"></span></a>
9
      <ul class="dropdown-menu" id="export-csv-menu">
9
      <ul class="dropdown-menu" id="export-csv-menu">
10
          <li><a href="#">Default</a></li>
10
          <li><a href="#">Default</a></li>
11
          [% IF csv_profiles.count %]
11
          [% IF csv_profiles.count %]
Lines 87-114 Link Here
87
            [% UNLESS ( delete_confirmed ) %]
87
            [% UNLESS ( delete_confirmed ) %]
88
                <div id="toolbar" class="btn-toolbar fh-fixedHeader">
88
                <div id="toolbar" class="btn-toolbar fh-fixedHeader">
89
                    [% IF active %]
89
                    [% IF active %]
90
                        <div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-default" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a></div>
90
                        <div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-default pat" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a></div>
91
                    [% END %]
91
                    [% END %]
92
                    <div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]&amp;op=add_form" class="btn btn-default" id="basketheadbutton"><i class="fa fa-pencil"></i> Edit basket</a></div>
92
                    <div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]&amp;op=add_form" class="btn btn-default pat" id="basketheadbutton"><i class="fa fa-pencil"></i> Edit basket</a></div>
93
                    [% IF CAN_user_acquisition_delete_baskets %]
93
                    [% IF CAN_user_acquisition_delete_baskets %]
94
                        <div class="btn-group"><a href="#deleteBasketModal" role="button" class="btn btn-default" data-toggle="modal" id="delbasketbutton"><i class="fa fa-trash"></i> Delete basket</a></div>
94
                        <div class="btn-group"><a href="#deleteBasketModal" role="button" class="btn btn-default pat" data-toggle="modal" id="delbasketbutton"><i class="fa fa-trash"></i> Delete basket</a></div>
95
                    [% END %]
95
                    [% END %]
96
                   [% IF ( unclosable ) %]
96
                   [% IF ( unclosable ) %]
97
                    [% ELSIF ( uncertainprices ) %]
97
                    [% ELSIF ( uncertainprices ) %]
98
                        <div class="btn-group"><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid | uri %]&amp;owner=1" class="btn btn-default" id="uncertpricesbutton"><i class="fa fa-usd"></i> Uncertain prices</a></div>
98
                        <div class="btn-group"><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid | uri %]&amp;owner=1" class="btn btn-default pat" id="uncertpricesbutton"><i class="fa fa-usd"></i> Uncertain prices</a></div>
99
                        <div title="Can not close baskets that have items with uncertain prices in them." class="btn-group">
99
                        <div title="Can not close baskets that have items with uncertain prices in them." class="btn-group">
100
                            <a href="" class="btn btn-default disabled" id="closebutton"><i class="fa fa-times-circle"></i> Close basket</a>
100
                            <a href="" class="btn btn-default disabled pat" id="closebutton"><i class="fa fa-times-circle"></i> Close basket</a>
101
                        </div>
101
                        </div>
102
                    [% ELSE %]
102
                    [% ELSE %]
103
                        <div class="btn-group">
103
                        <div class="btn-group">
104
                            <a href="/cgi-bin/koha/acqui/basket.pl?op=close&amp;basketno=[% basketno | uri %]&amp;booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="closebutton"><i class="fa fa-times-circle"></i> Close basket</a>
104
                            <a href="/cgi-bin/koha/acqui/basket.pl?op=close&amp;basketno=[% basketno | uri %]&amp;booksellerid=[% booksellerid | uri %]" class="btn btn-default pat" id="closebutton"><i class="fa fa-times-circle"></i> Close basket</a>
105
                        </div>
105
                        </div>
106
                    [% END %]
106
                    [% END %]
107
107
108
                    [% PROCESS csv_export %]
108
                    [% PROCESS csv_export %]
109
109
110
                        [% IF Koha.Preference('EDIFACT') && ediaccount %]
110
                        [% IF Koha.Preference('EDIFACT') && ediaccount %]
111
                        <div class="btn-group"><a href="/cgi-bin/koha/acqui/edi_ean.pl?op=ediorder&amp;basketno=[% basketno | uri %]&amp;booksellerid=[% booksellerid | uri %]" class="btn btn-default" id="ediorderbutton"><i class="fa fa-download"></i> Create EDIFACT order</a></div>
111
                        <div class="btn-group"><a href="/cgi-bin/koha/acqui/edi_ean.pl?op=ediorder&amp;basketno=[% basketno | uri %]&amp;booksellerid=[% booksellerid | uri %]" class="btn btn-default pat" id="ediorderbutton"><i class="fa fa-download"></i> Create EDIFACT order</a></div>
112
                        [% END %]
112
                        [% END %]
113
113
114
                        [% IF ( active && books_loop ) %]
114
                        [% IF ( active && books_loop ) %]
Lines 116-122 Link Here
116
                                <form action="/cgi-bin/koha/acqui/basket.pl" method="post">
116
                                <form action="/cgi-bin/koha/acqui/basket.pl" method="post">
117
                                    <input type="hidden" name="op" value="email" />
117
                                    <input type="hidden" name="op" value="email" />
118
                                    <input type="hidden" name="basketno" value="[% basketno | html %]" />
118
                                    <input type="hidden" name="basketno" value="[% basketno | html %]" />
119
                                    <button type="submit" class="btn btn-default" id="emailvendorbutton"><i class="fa fa-envelope"></i> E-mail order</button>
119
                                    <button type="submit" class="btn btn-default pat" id="emailvendorbutton"><i class="fa fa-envelope"></i> E-mail order</button>
120
                                </form>
120
                                </form>
121
                            </div>
121
                            </div>
122
                        [% END %]
122
                        [% END %]
Lines 264-270 Link Here
264
                                    </li>
264
                                    </li>
265
                                [% END %]
265
                                [% END %]
266
                                <li>
266
                                <li>
267
                                    <a href="#" id="add_user"><i class="fa fa-plus"></i> Add user</a>
267
                                    <a id="lientype" href="#" id="add_user"><i class="fa fa-plus"></i> Add user</a>
268
                                </li>
268
                                </li>
269
                                <li id="add_user_submit" style="display:none;">
269
                                <li id="add_user_submit" style="display:none;">
270
                                    <button type="submit" class="btn btn-default btn-xs">Save changes</button>
270
                                    <button type="submit" class="btn btn-default btn-xs">Save changes</button>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt (-3 lines)
Lines 77-85 Link Here
77
77
78
[% INCLUDE 'header.inc' form=formulaire %]
78
[% INCLUDE 'header.inc' form=formulaire %]
79
79
80
<!-- ################################################################################# -->
81
<!-- BREADCRUMBS -->
82
<!-- ################################################################################# -->
83
80
84
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
81
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
85
    <ol>
82
    <ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-9 / +9 lines)
Lines 110-115 Link Here
110
[% INCLUDE 'budgets-active-currency.inc' %]
110
[% INCLUDE 'budgets-active-currency.inc' %]
111
111
112
[% IF budgets %]
112
[% IF budgets %]
113
<fieldset id="searchresults">
113
114
114
    [% UNLESS budget_period_id %]
115
    [% UNLESS budget_period_id %]
115
        <div class="toolbar btn-toolbar">
116
        <div class="toolbar btn-toolbar">
Lines 220-226 Link Here
220
    [% ELSE %]
221
    [% ELSE %]
221
        <td>
222
        <td>
222
            <div class="btn-group dropup">
223
            <div class="btn-group dropup">
223
                <a class="btn btn-default btn-xs dropdown-toggle" id="budgetactions[% budget.budget_id | html %]_[% budget.budget_period_id | html %]" role="button" data-toggle="dropdown" href="#">
224
                <a class="btn btn-default btn-xs dropdown-toggle lientype" id="budgetactions[% budget.budget_id | html %]_[% budget.budget_period_id | html %]" role="button" data-toggle="dropdown" href="#">
224
                   Actions <b class="caret"></b>
225
                   Actions <b class="caret"></b>
225
                </a>
226
                </a>
226
                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetactions[% budget.budget_id | html %]_[% budget.budget_period_id | html %]">
227
                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetactions[% budget.budget_id | html %]_[% budget.budget_period_id | html %]">
Lines 240-246 Link Here
240
    </tbody>
241
    </tbody>
241
</table>
242
</table>
242
</div>
243
</div>
243
244
</fieldset
244
[% ELSE %]
245
[% ELSE %]
245
    <p>No fund found</p>
246
    <p>No fund found</p>
246
[% END %]
247
[% END %]
Lines 300-314 Link Here
300
        <span class="label">Owner: </span>
301
        <span class="label">Owner: </span>
301
        [% IF  budget_owner %]
302
        [% IF  budget_owner %]
302
            <span  id="budget_owner_name">
303
            <span  id="budget_owner_name">
303
                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% budget_owner.borrowernumber | uri %]">
304
                < href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% budget_owner.borrowernumber | uri %]">
304
                    [% budget_owner.firstname | html %] [% budget_owner.surname | html %]
305
                    [% budget_owner.firstname | html %] [% budget_owner.surname | html %]
305
                </a> |
306
                </a> |
306
            </span>
307
            </span>
307
        [% ELSE %]
308
        [% ELSE %]
308
            <span  id="budget_owner_name"></span>
309
            <span  id="budget_owner_name"></span>
309
        [% END %]
310
        [% END %]
310
        <a id="edit_owner" class="new_window" href="#"><i class="fa fa-search"></i> Select owner</a>
311
        <a id="edit_owner" class="new_window lientype" href="#"><i class="fa fa-search"></i> Select owner</a>
311
        <a id="remove_owner" href="#"><i class="fa fa-trash"></i> Remove owner</a>
312
        <a id="remove_owner" href="#" class="lientype"><i class="fa fa-trash lientype"></i> Remove owner</a>
312
        <input type="hidden" name="budget_owner_id" id="budget_owner_id"
313
        <input type="hidden" name="budget_owner_id" id="budget_owner_id"
313
            value="[% budget_owner.borrowernumber | html %]" />
314
            value="[% budget_owner.borrowernumber | html %]" />
314
    </li>
315
    </li>
Lines 332-341 Link Here
332
                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% user.borrowernumber | uri %]">
333
                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% user.borrowernumber | uri %]">
333
                        [% user.firstname | html %] [% user.surname | html %]
334
                        [% user.firstname | html %] [% user.surname | html %]
334
                    </a>
335
                    </a>
335
                    &bull; <a href="#" class="del_user" data-borrowernumber="[% user.borrowernumber | html %]"><i class="fa fa-trash"></i> Remove</a>
336
                    &bull; <a href="#" class="del_user" id="lientype" data-borrowernumber="[% user.borrowernumber | html %]"><i class="fa fa-trash"></i> Remove</a>
336
                </li>
337
                </li>
337
            [% END %]
338
            [% END %]
338
            <li><a href="#" id="add_user_button"><i class="fa fa-plus"></i> Add users</a></li>
339
            <li><a class="lientype" href="#" id="add_user_button"><i class="fa fa-plus"></i> Add users</a></li>
339
        </ul>
340
        </ul>
340
        <input type="hidden" name="budget_users_ids" id="budget_users_id" value="[% budget_users_ids | html %]" />
341
        <input type="hidden" name="budget_users_ids" id="budget_users_id" value="[% budget_users_ids | html %]" />
341
    </li>
342
    </li>
Lines 420-426 Link Here
420
421
421
[% IF op == 'delete_confirm' %]
422
[% IF op == 'delete_confirm' %]
422
    <div class="dialog alert">
423
    <div class="dialog alert">
423
        <h1>Delete fund [% budget_name | html %]?</h1>
424
        <h2>Delete fund [% budget_name | html %]?</h2>
424
        If you delete this fund, all orders linked to this fund will be deleted!
425
        If you delete this fund, all orders linked to this fund will be deleted!
425
        <table>
426
        <table>
426
            <tr>
427
            <tr>
Lines 450-456 Link Here
450
451
451
[% IF op == 'list' %]
452
[% IF op == 'list' %]
452
  <form action="/cgi-bin/koha/admin/aqbudgets.pl" method="get">
453
  <form action="/cgi-bin/koha/admin/aqbudgets.pl" method="get">
453
    <a href="#" id="filterbutton">Filters</a>
454
    <fieldset class="brief" id="fundfilters">
454
    <fieldset class="brief" id="fundfilters">
455
    <h4>Fund filters</h4>
455
    <h4>Fund filters</h4>
456
        <ol>
456
        <ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt (-1 / +4 lines)
Lines 49-55 Link Here
49
[% INCLUDE 'budgets-admin-toolbar.inc' %]
49
[% INCLUDE 'budgets-admin-toolbar.inc' %]
50
50
51
<form method="post" id="Aform" name="Aform"  action="/cgi-bin/koha/admin/aqplan.pl">
51
<form method="post" id="Aform" name="Aform"  action="/cgi-bin/koha/admin/aqplan.pl">
52
<h1>Planning for [% budget_period_description | html %] [% PROCESS planning plan=authcat %]</h1>
52
<h2>Planning for [% budget_period_description | html %] [% PROCESS planning plan=authcat %]</h2>
53
<input type="hidden" name="authcat" value="[% authcat | html %]" />
53
<input type="hidden" name="authcat" value="[% authcat | html %]" />
54
<!-- Budget Lines -->
54
<!-- Budget Lines -->
55
55
Lines 62-67 Link Here
62
            <p><strong>Cells contain estimated values only.</strong></p>
62
            <p><strong>Cells contain estimated values only.</strong></p>
63
        [% END %]
63
        [% END %]
64
64
65
    <fieldset id="searchresults">
66
65
    <p id="selections">
67
    <p id="selections">
66
        <strong>Show/hide columns:</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall"/><label for="showall">Show all columns</label></span> <span><input type="checkbox" id="hideall"/><label for="hideall">Hide all columns</label></span>
68
        <strong>Show/hide columns:</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall"/><label for="showall">Show all columns</label></span> <span><input type="checkbox" id="hideall"/><label for="hideall">Hide all columns</label></span>
67
        [% FOREACH authvals_ro IN authvals_row %]
69
        [% FOREACH authvals_ro IN authvals_row %]
Lines 176-181 Link Here
176
    [% ELSE %]
178
    [% ELSE %]
177
        <input type="hidden" name="op" class="principal" value="save" />
179
        <input type="hidden" name="op" class="principal" value="save" />
178
        <fieldset class="action"><input type="submit" class="principal" value="Save"/></fieldset>
180
        <fieldset class="action"><input type="submit" class="principal" value="Save"/></fieldset>
181
    </fieldset>
179
    [% END %]
182
    [% END %]
180
183
181
184
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/audio_alerts.tt (-2 / +1 lines)
Lines 46-52 Link Here
46
46
47
                <form id="new-alert-form" action="audio_alerts.pl" method="post" class="validated">
47
                <form id="new-alert-form" action="audio_alerts.pl" method="post" class="validated">
48
                    <fieldset class="rows">
48
                    <fieldset class="rows">
49
                        <legend><h1><span class="create-alert">Add new alert</span><span class="edit-alert">Edit alert</span></h1></legend>
50
                        <h3><span class="create-alert">Add new alert</span><span class="edit-alert">Edit alert</span></h3>
49
                        <h3><span class="create-alert">Add new alert</span><span class="edit-alert">Edit alert</span></h3>
51
50
52
                        <input id="id" name="id" type="hidden" value="" />
51
                        <input id="id" name="id" type="hidden" value="" />
Lines 100-106 Link Here
100
                        <div class="dialog alert">
99
                        <div class="dialog alert">
101
                            <h3>Audio alerts are disabled</h3>
100
                            <h3>Audio alerts are disabled</h3>
102
                            [% IF ( CAN_user_parameters_manage_sysprefs ) %]
101
                            [% IF ( CAN_user_parameters_manage_sysprefs ) %]
103
                                <p>Please enable system preference <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=AudioAlerts">AudioAlerts</a> to activate sounds.</p>
102
                                <p>Please enable system preference <a id="lientype" href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=AudioAlerts">AudioAlerts</a> to activate sounds.</p>
104
                            [% ELSE %]
103
                            [% ELSE %]
105
                                <p>The system preference <strong>AudioAlerts</strong> must be enabled to activate sounds.</p>
104
                                <p>The system preference <strong>AudioAlerts</strong> must be enabled to activate sounds.</p>
106
                            [% END %]
105
                            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt (-5 / +5 lines)
Lines 195-201 Authority types &rsaquo; Administration &rsaquo; Koha Link Here
195
                <td>[% authority_type.auth_tag_to_report | html %]</td>
195
                <td>[% authority_type.auth_tag_to_report | html %]</td>
196
                <td>
196
                <td>
197
                  <div class="btn-group dropup">
197
                  <div class="btn-group dropup">
198
                    <a class="btn btn-default btn-xs dropdown-toggle" id="authtypeactions[% authority_type.authtypecode | html %]" role="button" data-toggle="dropdown" href="#">
198
                    <a class="btn btn-default btn-xs dropdown-toggle lientype" id="authtypeactions[% authority_type.authtypecode | html %]" role="button" data-toggle="dropdown" href="#">
199
                      Actions <b class="caret"></b></a>
199
                      Actions <b class="caret"></b></a>
200
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtypeactions[% authority_type.authtypecode | html %]">
200
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtypeactions[% authority_type.authtypecode | html %]">
201
                      <li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode | uri %]" class="button parameters"><i class="fa fa-eye"></i> MARC structure</a></li>
201
                      <li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode | uri %]" class="button parameters"><i class="fa fa-eye"></i> MARC structure</a></li>
Lines 225-232 Authority types &rsaquo; Administration &rsaquo; Koha Link Here
225
                                      </fieldset>
225
                                      </fieldset>
226
                                  </div>
226
                                  </div>
227
                                  <div class="modal-footer">
227
                                  <div class="modal-footer">
228
                                      <button type="submit" class="btn btn-default">Export</button>
228
                                      <button type="submit" class="btn btn-default principal">Export</button>
229
                                      <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
229
                                      <button class="btn btn-link cancel" data-dismiss="modal" aria-hidden="true">Cancel</button>
230
                                  </div>
230
                                  </div>
231
                              </form>
231
                              </form>
232
                          </div>
232
                          </div>
Lines 249-256 Authority types &rsaquo; Administration &rsaquo; Koha Link Here
249
                                      <div id="importing_[% authority_type.authtypecode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/loading-small.gif" alt="" /><span class="importing_msg"></span></div>
249
                                      <div id="importing_[% authority_type.authtypecode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/loading-small.gif" alt="" /><span class="importing_msg"></span></div>
250
                                  </div>
250
                                  </div>
251
                                  <div class="modal-footer">
251
                                  <div class="modal-footer">
252
                                      <button type="submit" class="btn btn-default">Import</button>
252
                                      <button type="submit" class="btn btn-default principal">Import</button>
253
                                      <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button>
253
                                      <button class="btn btn-link cancel" data-dismiss="modal" aria-hidden="true">Close</button>
254
                                  </div>
254
                                  </div>
255
                              </form>
255
                              </form>
256
                          </div>
256
                          </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt (-1 / +1 lines)
Lines 162-168 Link Here
162
162
163
[% IF op == 'list' %]
163
[% IF op == 'list' %]
164
164
165
    <h1>Background jobs</h1>
165
    <h2>Background jobs</h2>
166
166
167
    [% IF jobs.count %]
167
    [% IF jobs.count %]
168
    <div id="searchresults">
168
    <div id="searchresults">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt (-9 / +9 lines)
Lines 150-156 MARC frameworks &rsaquo; Administration &rsaquo; Koha Link Here
150
            <p><strong><span class="ex">[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span></strong></p>
150
            <p><strong><span class="ex">[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span></strong></p>
151
            <p>The framework is used [% biblios_use_this_framework | html %] times.</p>
151
            <p>The framework is used [% biblios_use_this_framework | html %] times.</p>
152
            <form action="/cgi-bin/koha/admin/biblio_framework.pl" method="get">
152
            <form action="/cgi-bin/koha/admin/biblio_framework.pl" method="get">
153
                <button type="submit"><i class="fa fa-fw fa-arrow-left"></i> Return to frameworks</button>
153
                <button type="submit" id="lientype"><i class="fa fa-fw fa-arrow-left"></i> Return to frameworks</button>
154
            </form>
154
            </form>
155
        [% ELSE %]
155
        [% ELSE %]
156
            <h1>Delete framework for [% framework.frameworktext | html %] ([% framework.frameworkcode | html %])?</h1>
156
            <h1>Delete framework for [% framework.frameworktext | html %] ([% framework.frameworkcode | html %])?</h1>
Lines 212-219 MARC frameworks &rsaquo; Administration &rsaquo; Koha Link Here
212
                            </fieldset>
212
                            </fieldset>
213
                        </div> <!-- /.modal-body -->
213
                        </div> <!-- /.modal-body -->
214
                        <div class="modal-footer">
214
                        <div class="modal-footer">
215
                            <button type="submit" class="btn btn-default">Export</button>
215
                            <button type="submit" class="btn btn-default principal">Export</button>
216
                            <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
216
                            <button class="btn btn-link cancel" data-dismiss="modal" aria-hidden="true">Cancel</button>
217
                        </div> <!-- /.modal-footer -->
217
                        </div> <!-- /.modal-footer -->
218
                    </form> <!-- /.form_export -->
218
                    </form> <!-- /.form_export -->
219
                </div> <!-- /.modal-content -->
219
                </div> <!-- /.modal-content -->
Lines 236-243 MARC frameworks &rsaquo; Administration &rsaquo; Koha Link Here
236
                            <div id="importing_default" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div>
236
                            <div id="importing_default" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div>
237
                        </div> <!-- /.modal-body -->
237
                        </div> <!-- /.modal-body -->
238
                        <div class="modal-footer">
238
                        <div class="modal-footer">
239
                            <button type="submit" class="btn btn-default">Import</button>
239
                            <button type="submit" class="btn btn-default principal">Import</button>
240
                            <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button>
240
                            <button class="btn btn-link cancel" data-dismiss="modal" aria-hidden="true">Close</button>
241
                        </div> <!-- /.modal-footer -->
241
                        </div> <!-- /.modal-footer -->
242
                    </form> <!-- /.form_export -->
242
                    </form> <!-- /.form_export -->
243
                </div> <!-- /.modal-content -->
243
                </div> <!-- /.modal-content -->
Lines 282-289 MARC frameworks &rsaquo; Administration &rsaquo; Koha Link Here
282
                                </fieldset>
282
                                </fieldset>
283
                            </div> <!-- /.modal-body -->
283
                            </div> <!-- /.modal-body -->
284
                            <div class="modal-footer">
284
                            <div class="modal-footer">
285
                                <button type="submit" class="btn btn-default">Export</button>
285
                                <button type="submit" class="btn btn-default principal">Export</button>
286
                                <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
286
                                <button class="btn btn-link cancel" data-dismiss="modal" aria-hidden="true">Cancel</button>
287
                            </div> <!-- /.modal-footer -->
287
                            </div> <!-- /.modal-footer -->
288
                        </form> <!-- /.form_export -->
288
                        </form> <!-- /.form_export -->
289
                    </div> <!-- /.modal-content -->
289
                    </div> <!-- /.modal-content -->
Lines 306-313 MARC frameworks &rsaquo; Administration &rsaquo; Koha Link Here
306
                                <div id="importing_[% loo.frameworkcode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div>
306
                                <div id="importing_[% loo.frameworkcode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div>
307
                            </div> <!-- /.modal-body -->
307
                            </div> <!-- /.modal-body -->
308
                            <div class="modal-footer">
308
                            <div class="modal-footer">
309
                                <button type="submit" class="btn btn-default" title="[% loo.frameworkcode | html %]">Import</button>
309
                                <button type="submit" class="btn btn-default principal" title="[% loo.frameworkcode | html %]">Import</button>
310
                                <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button>
310
                                <button class="btn btn-link cancel" data-dismiss="modal" aria-hidden="true">Close</button>
311
                            </div> <!-- /.modal-footer -->
311
                            </div> <!-- /.modal-footer -->
312
                        </form> <!-- /.form_export -->
312
                        </form> <!-- /.form_export -->
313
                    </div> <!-- /.modal-content -->
313
                    </div> <!-- /.modal-content -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt (-3 / +3 lines)
Lines 54-62 Link Here
54
<div id="searchresults">
54
<div id="searchresults">
55
<fieldset>
55
<fieldset>
56
    [% IF ( limitType == 'ccode' ) %]<strong>For all collection codes: </strong>[% ELSE %]<strong>For all item types: </strong>[% END %]
56
    [% IF ( limitType == 'ccode' ) %]<strong>For all collection codes: </strong>[% ELSE %]<strong>For all item types: </strong>[% END %]
57
    <a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a>
57
    <a id="CheckAll" href="#" class="lientype"><i class="fa fa-check"></i> Select all</a>
58
    |
58
    |
59
    <a id="UncheckAll" href="#"><i class="fa fa-remove"></i> Clear all</a>
59
    <a id="UncheckAll" href="#" class="lientype"><i class="fa fa-remove"></i> Clear all</a>
60
    |
60
    |
61
    <a href="/cgi-bin/koha/admin/transfer_limits.pl" id="lientype">Switch to advanced editor</a>
61
    <a href="/cgi-bin/koha/admin/transfer_limits.pl" id="lientype">Switch to advanced editor</a>
62
</fieldset>
62
</fieldset>
Lines 77-83 Link Here
77
    <div role="tabpanel" class="tab-pane" id="[% codes_loo.code | html %]set">
77
    <div role="tabpanel" class="tab-pane" id="[% codes_loo.code | html %]set">
78
    <h4>Policy for [% codes_loo.limit_phrase | html %]: [% codes_loo.code | html %]</h4>
78
    <h4>Policy for [% codes_loo.limit_phrase | html %]: [% codes_loo.code | html %]</h4>
79
79
80
    <p><a id="CheckAll[% codes_loo.code | html %]table" data-cb="[% codes_loo.code | html %]" class="checkall" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="UncheckAll[% codes_loo.code | html %]table" data-cb="[% codes_loo.code | html %]" class="uncheckall" href="#"><i class="fa fa-remove"></i> Clear all</a></p>
80
    <p><a id="CheckAll[% codes_loo.code | html %]table" data-cb="[% codes_loo.code | html %]" class="checkall lientype" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="UncheckAll[% codes_loo.code | html %]table" data-cb="[% codes_loo.code | html %]" class="uncheckall lientype" href="#"><i class="fa fa-remove"></i> Clear all</a></p>
81
81
82
        <table id="[% codes_loo.code | html %]table" class="sorted">
82
        <table id="[% codes_loo.code | html %]table" class="sorted">
83
            <thead>
83
            <thead>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-3 / +3 lines)
Lines 147-153 Libraries &rsaquo; Administration &rsaquo; Koha Link Here
147
147
148
<div id="searchresults">
148
<div id="searchresults">
149
[% IF op == 'add_form' %]
149
[% IF op == 'add_form' %]
150
    <h1>[% IF library %]Modify library[% ELSE %]New library[% END %]</h1>
150
    <h2>[% IF library %]Modify library[% ELSE %]New library[% END %]</h2>
151
    <form action="/cgi-bin/koha/admin/branches.pl" id="Aform" name="Aform" class="validated" method="post">
151
    <form action="/cgi-bin/koha/admin/branches.pl" id="Aform" name="Aform" class="validated" method="post">
152
        <fieldset>
152
        <fieldset>
153
            <input type="hidden" name="op" value="add_validate" />
153
            <input type="hidden" name="op" value="add_validate" />
Lines 312-318 Libraries &rsaquo; Administration &rsaquo; Koha Link Here
312
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
312
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
313
    <div class="dialog alert">
313
    <div class="dialog alert">
314
        <form action="/cgi-bin/koha/admin/branches.pl" method="post">
314
        <form action="/cgi-bin/koha/admin/branches.pl" method="post">
315
            <h1>Are you sure you want to delete [% library.branchname | html %] ([% library.branchcode | html %])?</h1>
315
            <h2>Are you sure you want to delete [% library.branchname | html %] ([% library.branchcode | html %])?</h2>
316
            <input type="hidden" name="op" value="delete_confirmed" />
316
            <input type="hidden" name="op" value="delete_confirmed" />
317
            <input type="hidden" name="branchcode" value="[% library.branchcode | html %]" />
317
            <input type="hidden" name="branchcode" value="[% library.branchcode | html %]" />
318
            <input type="hidden" name="branchname" value="[% library.branchname | html %]">
318
            <input type="hidden" name="branchname" value="[% library.branchname | html %]">
Lines 325-331 Libraries &rsaquo; Administration &rsaquo; Koha Link Here
325
[% END %]
325
[% END %]
326
326
327
[% IF op == 'list' %]
327
[% IF op == 'list' %]
328
    <h1>Libraries</h1>
328
    <h2>Libraries</h2>
329
    [% IF libraries_count > 0 %]
329
    [% IF libraries_count > 0 %]
330
        <table id="libraries">
330
        <table id="libraries">
331
            <thead>
331
            <thead>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt (-10 / +12 lines)
Lines 159-167 Classification sources &rsaquo; Administration &rsaquo; Koha Link Here
159
159
160
[% IF op == 'add_source' %]
160
[% IF op == 'add_source' %]
161
  [% IF class_source %]
161
  [% IF class_source %]
162
<h1>Modify classification source</h1>
162
<h2>Modify classification source</h2>
163
  [% ELSE %]
163
  [% ELSE %]
164
<h1>Add classification source</h1>
164
<h2>Add classification source</h2>
165
  [% END %]
165
  [% END %]
166
<form action="[% script_name | html %]" name="Aform" class="validated" method="post">
166
<form action="[% script_name | html %]" name="Aform" class="validated" method="post">
167
  <input type="hidden" name="op" value="add_source_validate" />
167
  <input type="hidden" name="op" value="add_source_validate" />
Lines 223-231 Classification sources &rsaquo; Administration &rsaquo; Koha Link Here
223
223
224
[% IF op == 'add_sort_rule' %]
224
[% IF op == 'add_sort_rule' %]
225
  [% IF sort_rule %]
225
  [% IF sort_rule %]
226
<h1>Modify filing rule</h1>
226
<h2>Modify filing rule</h2>
227
  [% ELSE %]
227
  [% ELSE %]
228
<h1>Add filing rule</h1>
228
<h2>Add filing rule</h2>
229
  [% END %]
229
  [% END %]
230
<form action="[% script_name | html %]" name="Aform" class="validated" method="post">
230
<form action="[% script_name | html %]" name="Aform" class="validated" method="post">
231
  <input type="hidden" name="op" value="add_sort_rule_validate" />
231
  <input type="hidden" name="op" value="add_sort_rule_validate" />
Lines 261-277 Classification sources &rsaquo; Administration &rsaquo; Koha Link Here
261
    </ol>
261
    </ol>
262
    <fieldset class="action">
262
    <fieldset class="action">
263
        <input type="submit" class="principal" value="Save" />
263
        <input type="submit" class="principal" value="Save" />
264
        <a class="c
264
        <a class="cancel" href="/cgi-bin/koha/admin/classsources.pl">Cancel</a>
265
  </fieldset>ancel" href="/cgi-bin/koha/admin/classsources.pl">Cancel</a>
265
  </fieldset>
266
    </fieldset>
266
    </fieldset>
267
</form>
267
</form>
268
[% END %]
268
[% END %]
269
269
270
[% IF op == 'add_split_rule' %]
270
[% IF op == 'add_split_rule' %]
271
  [% IF split_rule %]
271
  [% IF split_rule %]
272
<h1>Modify splitting rule</h1>
272
<h2>Modify splitting rule</h2>
273
  [% ELSE %]
273
  [% ELSE %]
274
<h1>Add splitting rule</h1>
274
<h2>Add splitting rule</h2>
275
  [% END %]
275
  [% END %]
276
<form action="[% script_name | html %]" name="Aform" class="validated" method="post">
276
<form action="[% script_name | html %]" name="Aform" class="validated" method="post">
277
  <input type="hidden" name="op" value="add_split_rule_validate" />
277
  <input type="hidden" name="op" value="add_split_rule_validate" />
Lines 288-298 Classification sources &rsaquo; Administration &rsaquo; Koha Link Here
288
              <span class="required">Required</span>
288
              <span class="required">Required</span>
289
          [% END %]
289
          [% END %]
290
       </li>
290
       </li>
291
       <li><label for="description" class="required">Description: </label>
291
       <li>
292
            <label for="description" class="required">Description: </label>
292
           <input class="required" required="required" type="text" id="description" name="description" size="50" maxlength="250" value="[% split_rule.description | html %]" />
293
           <input class="required" required="required" type="text" id="description" name="description" size="50" maxlength="250" value="[% split_rule.description | html %]" />
293
           <span class="required">Required</span>
294
           <span class="required">Required</span>
294
       </li>
295
       </li>
295
       <li><label for="split_routine" class="required">Splitting routine: </label>
296
       <li>
297
            <label for="split_routine" class="required">Splitting routine: </label>
296
           <select class="required" required="required" id="split_routine" name="split_routine">
298
           <select class="required" required="required" id="split_routine" name="split_routine">
297
            [% FOREACH routine_name IN split_routines %]
299
            [% FOREACH routine_name IN split_routines %]
298
                [% IF routine_name == split_rule.split_routine %]
300
                [% IF routine_name == split_rule.split_routine %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt (-206 / +74 lines)
Lines 30-36 Link Here
30
                            <div class="datatable_config" id="[% table_id | html %]">
30
                            <div class="datatable_config" id="[% table_id | html %]">
31
                                <input type="hidden" name="table_id" value="[% table_id| html %]" />
31
                                <input type="hidden" name="table_id" value="[% table_id| html %]" />
32
                                [% IF pagename == 'additem' AND tablename == 'itemst' %]
32
                                [% IF pagename == 'additem' AND tablename == 'itemst' %]
33
                                    <div class="alert">Changes made below will only apply to item subfields that are mapped to the 'items' table. <a href="/cgi-bin/koha/admin/koha2marclinks.pl?tablename=items">Go to Koha to MARC mapping</a></div>
33
                                    <div class="alert">Changes made below will only apply to item subfields that are mapped to the 'items' table. <a id="lientype" href="/cgi-bin/koha/admin/koha2marclinks.pl?tablename=items">Go to Koha to MARC mapping</a></div>
34
                                [% END %]
34
                                [% END %]
35
                                <table>
35
                                <table>
36
                                    <caption>
36
                                    <caption>
Lines 208-437 Link Here
208
                <div class="col-sm-10 col-sm-push-2">
208
                <div class="col-sm-10 col-sm-push-2">
209
                        <main>
209
                        <main>
210
210
211
                            <h1>Table settings</h1>
211
                            <h2>Table settings</h2>
212
                            <div class="panel-group" id="modules" role="tablist" aria-multiselectable="true">
212
                            <div id="modules">
213
                                <div class="panel panel-default">
213
                                <div class="panel_header"><a href="#acqui">Acquisition</a></div>
214
                                    <div class="panel-heading" role="tab" id="acquiHeading">
214
                                <div id="acqui">
215
                                        <h2 class="panel-title">
215
                                    <h3>Acquisition tables</h3>
216
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#acqui" aria-expanded="false" aria-controls="collapseOne">
216
                                    [% PROCESS pagelist module=modules.acqui modulename="acqui" %]
217
                                                Acquisition
218
                                            </a>
219
                                        </h2>
220
                                    </div> <!-- /.panel-heading -->
221
                                    <div id="acqui" class="panel-collapse collapse" role="tabpanel" aria-labelledby="acquiHeading">
222
                                        <div class="panel-body">
223
                                            <h3>Acquisition tables</h3>
224
                                            [% PROCESS pagelist module=modules.acqui modulename="acqui" %]
225
                                        </div> <!-- /.panel-body -->
226
                                    </div> <!-- /.panel-collapse -->
227
                                </div>
217
                                </div>
228
218
229
                                <div class="panel panel-default">
219
                                <div class="panel_header"><a href="#admin">Administration</a></div>
230
                                    <div class="panel-heading" role="tab" id="adminHeading">
220
                                <div id="admin">
231
                                        <h2 class="panel-title">
221
                                    <h3>Administration tables</h3>
232
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#admin" aria-expanded="false" aria-controls="collapseOne">
222
                                    [% PROCESS pagelist module=modules.admin modulename="admin" %]
233
                                                Administration
234
                                            </a>
235
                                        </h2>
236
                                    </div> <!-- /.panel-heading -->
237
                                    <div id="admin" class="panel-collapse collapse" role="tabpanel" aria-labelledby="adminHeading">
238
                                        <div class="panel-body">
239
                                            <h3>Administration tables</h3>
240
                                            [% PROCESS pagelist module=modules.admin modulename="admin" %]
241
                                        </div> <!-- /.panel-body -->
242
                                    </div> <!-- /.panel-collapse -->
243
                                </div>
223
                                </div>
244
224
245
                                <div class="panel panel-default">
225
                                <div class="panel_header"><a href="#authorities">Authorities</a></div>
246
                                    <div class="panel-heading" role="tab" id="authoritiesHeading">
226
                                <div id="authorities">
247
                                        <h2 class="panel-title">
227
                                    <h3>Authorities tables</h3>
248
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#authorities" aria-expanded="false" aria-controls="collapseOne">
228
                                    [% PROCESS pagelist module=modules.authorities modulename="authorities" %]
249
                                                Authorities
250
                                            </a>
251
                                        </h2>
252
                                    </div> <!-- /.panel-heading -->
253
                                    <div id="authorities" class="panel-collapse collapse" role="tabpanel" aria-labelledby="authoritiesHeading">
254
                                        <div class="panel-body">
255
                                            <h3>Authorities tables</h3>
256
                                            [% PROCESS pagelist module=modules.authorities modulename="authorities" %]
257
                                        </div> <!-- /.panel-body -->
258
                                    </div> <!-- /.panel-collapse -->
259
                                </div>
229
                                </div>
260
230
261
                                <div class="panel panel-default">
231
                                <div class="panel_header"><a href="#catalog">Catalog</a></div>
262
                                    <div class="panel-heading" role="tab" id="catalogueHeading">
232
                                <div id="catalogue">
263
                                        <h2 class="panel-title">
233
                                    <h3>Catalogue tables</h3>
264
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#catalogue" aria-expanded="false" aria-controls="collapseOne">
234
                                    [% PROCESS pagelist module=modules.catalogue modulename="catalogue" %]
265
                                                Catalog
266
                                            </a>
267
                                        </h2>
268
                                    </div> <!-- /.panel-heading -->
269
                                    <div id="catalogue" class="panel-collapse collapse" role="tabpanel" aria-labelledby="catalogueHeading">
270
                                        <div class="panel-body">
271
                                            <h3>Catalogue tables</h3>
272
                                            [% PROCESS pagelist module=modules.catalogue modulename="catalogue" %]
273
                                        </div> <!-- /.panel-body -->
274
                                    </div> <!-- /.panel-collapse -->
275
                                </div>
235
                                </div>
276
236
277
                                <div class="panel panel-default">
237
                                <div class="panel_header"><a href="#cataloguing">Cataloging</a></div>
278
                                    <div class="panel-heading" role="tab" id="cataloguingHeading">
238
                                <div id="cataloguing">
279
                                        <h2 class="panel-title">
239
                                    <h3>Cataloguing tables</h3>
280
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#cataloguing" aria-expanded="false" aria-controls="collapseOne">
240
                                    [% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %]
281
                                                Cataloging
282
                                            </a>
283
                                        </h2>
284
                                    </div> <!-- /.panel-heading -->
285
                                    <div id="cataloguing" class="panel-collapse collapse" role="tabpanel" aria-labelledby="cataloguingHeading">
286
                                        <div class="panel-body">
287
                                            <h3>Cataloguing tables</h3>
288
                                            [% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %]
289
                                        </div> <!-- /.panel-body -->
290
                                    </div> <!-- /.panel-collapse -->
291
                                </div>
241
                                </div>
292
242
293
                                <div class="panel panel-default">
243
                                <div class="panel_header"><a href="#circulation">Circulation</a></div>
294
                                    <div class="panel-heading" role="tab" id="circulationHeading">
244
                                <div id="circulation">
295
                                        <h2 class="panel-title">
245
                                    <h3>Circulation tables</h3>
296
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#circulation" aria-expanded="false" aria-controls="collapseOne">
246
                                    [% PROCESS pagelist module=modules.circ modulename="circ" %]
297
                                                Circulation
298
                                            </a>
299
                                        </h2>
300
                                    </div> <!-- /.panel-heading -->
301
                                    <div id="circulation" class="panel-collapse collapse" role="tabpanel" aria-labelledby="circulationHeading">
302
                                        <div class="panel-body">
303
                                            <h3>Circulation tables</h3>
304
                                            [% PROCESS pagelist module=modules.circ modulename="circ" %]
305
                                        </div> <!-- /.panel-body -->
306
                                    </div> <!-- /.panel-collapse -->
307
                                </div>
247
                                </div>
308
248
309
                                <div class="panel panel-default">
249
                                <div class="panel_header"><a href="#coursereserves">Course reserves</a></div>
310
                                    <div class="panel-heading" role="tab" id="coursereservesHeading">
250
                                <div id="coursereserves">
311
                                        <h2 class="panel-title">
251
                                    <h3>Course reserves tables</h3>
312
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#coursereserves" aria-expanded="false" aria-controls="collapseOne">
252
                                    [% PROCESS pagelist module=modules.coursereserves modulename="coursereserves" %]
313
                                                Course reserves
314
                                            </a>
315
                                        </h2>
316
                                    </div> <!-- /.panel-heading -->
317
                                    <div id="coursereserves" class="panel-collapse collapse" role="tabpanel" aria-labelledby="coursereservesHeading">
318
                                        <div class="panel-body">
319
                                            <h3>Course reserves tables</h3>
320
                                            [% PROCESS pagelist module=modules.coursereserves modulename="coursereserves" %]
321
                                        </div> <!-- /.panel-body -->
322
                                    </div> <!-- /.panel-collapse -->
323
                                </div>
253
                                </div>
324
254
325
                                <div class="panel panel-default">
255
                                <div class="panel_header"><a href="#ill">Interlibrary loans</a></div>
326
                                    <div class="panel-heading" role="tab" id="illHeading">
256
                                <div id="ill">
327
                                        <h2 class="panel-title">
257
                                    <h3>Interlibrary loans tables</h3>
328
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#ill" aria-expanded="false" aria-controls="collapseOne">
258
                                    [% PROCESS pagelist module=modules.illrequests modulename="illrequests" %]
329
                                                Interlibrary loans
330
                                            </a>
331
                                        </h2>
332
                                    </div> <!-- /.panel-heading -->
333
                                    <div id="ill" class="panel-collapse collapse" role="tabpanel" aria-labelledby="illHeading">
334
                                        <div class="panel-body">
335
                                            <h3>Interlibrary loans tables</h3>
336
                                            [% PROCESS pagelist module=modules.illrequests modulename="illrequests" %]
337
                                        </div> <!-- /.panel-body -->
338
                                    </div> <!-- /.panel-collapse -->
339
                                </div>
259
                                </div>
340
260
341
                                <div class="panel panel-default">
261
                                <div class="panel_header"><a href="#members">Patrons</a></div>
342
                                    <div class="panel-heading" role="tab" id="membersHeading">
262
                                <div id="members">
343
                                        <h2 class="panel-title">
263
                                    <h3>Patrons tables</h3>
344
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#members" aria-expanded="false" aria-controls="collapseOne">
264
                                    [% PROCESS pagelist module=modules.members modulename="members" %]
345
                                                Patrons
346
                                            </a>
347
                                        </h2>
348
                                    </div> <!-- /.panel-heading -->
349
                                    <div id="members" class="panel-collapse collapse" role="tabpanel" aria-labelledby="membersHeading">
350
                                        <div class="panel-body">
351
                                            <h3>Patrons tables</h3>
352
                                            [% PROCESS pagelist module=modules.members modulename="members" %]
353
                                        </div> <!-- /.panel-body -->
354
                                    </div> <!-- /.panel-collapse -->
355
                                </div>
265
                                </div>
356
266
357
                                <div class="panel panel-default">
267
                                <div class="panel_header"><a href="#pos">Point of sale</a></div>
358
                                    <div class="panel-heading" role="tab" id="posHeading">
268
                                <div id="pos">
359
                                        <h2 class="panel-title">
269
                                    <h3>Point of sale tables</h3>
360
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#pos" aria-expanded="false" aria-controls="collapseOne">
270
                                    [% PROCESS pagelist module=modules.pos modulename="pos" %]
361
                                                Point of sale
362
                                            </a>
363
                                        </h2>
364
                                    </div> <!-- /.panel-heading -->
365
                                    <div id="pos" class="panel-collapse collapse" role="tabpanel" aria-labelledby="posHeading">
366
                                        <div class="panel-body">
367
                                            <h3>Point of sale tables</h3>
368
                                            [% PROCESS pagelist module=modules.pos modulename="pos" %]
369
                                        </div> <!-- /.panel-body -->
370
                                    </div> <!-- /.panel-collapse -->
371
                                </div>
271
                                </div>
372
272
373
                                <div class="panel panel-default">
273
                                <div class="panel_header"><a href="#tools">Tools</a></div>
374
                                    <div class="panel-heading" role="tab" id="toolsHeading">
274
                                <div id="tools">
375
                                        <h2 class="panel-title">
275
                                    <h3>Tools tables</h3>
376
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#tools" aria-expanded="false" aria-controls="collapseOne">
276
                                    [% PROCESS pagelist module=modules.tools modulename="tools" %]
377
                                                Tools
378
                                            </a>
379
                                        </h2>
380
                                    </div> <!-- /.panel-heading -->
381
                                    <div id="tools" class="panel-collapse collapse" role="tabpanel" aria-labelledby="toolsHeading">
382
                                        <div class="panel-body">
383
                                            <h3>Tools tables</h3>
384
                                            [% PROCESS pagelist module=modules.tools modulename="tools" %]
385
                                        </div> <!-- /.panel-body -->
386
                                    </div> <!-- /.panel-collapse -->
387
                                </div>
277
                                </div>
388
278
389
                                <div class="panel panel-default">
279
                                <div class="panel_header"><a href="#opac">OPAC</a></div>
390
                                    <div class="panel-heading" role="tab" id="opacHeading">
280
                                <div id="opac">
391
                                        <h2 class="panel-title">
281
                                    <h3>OPAC tables</h3>
392
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#opac" aria-expanded="false" aria-controls="collapseOne">
282
                                    [% PROCESS pagelist module=modules.opac modulename="opac" %]
393
                                                OPAC
394
                                            </a>
395
                                        </h2>
396
                                    </div> <!-- /.panel-heading -->
397
                                    <div id="opac" class="panel-collapse collapse" role="tabpanel" aria-labelledby="opacHeading">
398
                                        <div class="panel-body">
399
                                            <h3>OPAC tables</h3>
400
                                            [% PROCESS pagelist module=modules.opac modulename="opac" %]
401
                                        </div> <!-- /.panel-body -->
402
                                    </div> <!-- /.panel-collapse -->
403
                                </div>
283
                                </div>
404
284
405
                                <div class="panel panel-default">
285
                                <div class="panel_header"><a href="#reports">Reports</a></div>
406
                                    <div class="panel-heading" role="tab" id="reportsHeading">
286
                                <div id="reports">
407
                                        <h2 class="panel-title">
287
                                    <h3>Reports tables</h3>
408
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#reports" aria-expanded="false" aria-controls="collapseOne">
288
                                    [% PROCESS pagelist module=modules.reports modulename="reports" %]
409
                                                Reports
410
                                            </a>
411
                                        </h2>
412
                                    </div> <!-- /.panel-heading -->
413
                                    <div id="reports" class="panel-collapse collapse" role="tabpanel" aria-labelledby="reportsHeading">
414
                                        <div class="panel-body">
415
                                            <h3>Reports tables</h3>
416
                                            [% PROCESS pagelist module=modules.reports modulename="reports" %]
417
                                        </div> <!-- /.panel-body -->
418
                                    </div> <!-- /.panel-collapse -->
419
                                </div>
289
                                </div>
420
290
421
                                <div class="panel panel-default">
291
                                <div class="panel_header"><a href="#serials">Serials</a></div>
422
                                    <div class="panel-heading" role="tab" id="serialsHeading">
292
                                <div id="serials">
423
                                        <h2 class="panel-title">
293
                                    <h3>Serials tables</h3>
424
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#serials" aria-expanded="false" aria-controls="collapseOne">
294
                                    [% PROCESS pagelist module=modules.serials modulename="serials" %]
425
                                                Serials
426
                                            </a>
427
                                        </h2>
428
                                    </div> <!-- /.panel-heading -->
429
                                    <div id="serials" class="panel-collapse collapse" role="tabpanel" aria-labelledby="serialsHeading">
430
                                        <div class="panel-body">
431
                                            <h3>Serials tables</h3>
432
                                            [% PROCESS pagelist module=modules.serials modulename="serials" %]
433
                                        </div> <!-- /.panel-body -->
434
                                    </div> <!-- /.panel-collapse -->
435
                                </div>
295
                                </div>
436
296
437
                            </div>
297
                            </div>
Lines 445-459 Link Here
445
                </div> <!-- /.col-sm-2.col-sm-pull-10 -->
305
                </div> <!-- /.col-sm-2.col-sm-pull-10 -->
446
        </div> <!-- /.row -->
306
        </div> <!-- /.row -->
447
307
308
448
[% MACRO jsinclude BLOCK %]
309
[% MACRO jsinclude BLOCK %]
449
    [% Asset.js("js/admin-menu.js") | $raw %]
310
    [% Asset.js("js/admin-menu.js") | $raw %]
450
311
    <script>
451
    [%- IF ( panel.defined && panel >= 0 ) -%]
312
        $(document).ready( function() {
452
        <script>
313
            var accordion = $( "#modules" ).accordion({
453
            $(document).ready( function() {
314
                    collapsible: true,
454
                $("#modules a.collapsed:eq(" + Number( [% panel | html %] ) + ")").click();
315
                    heightStyle: "content",
316
                    header: ".panel_header",
317
                [%- IF panel -%]
318
                    [%# we were asked to show a specific panel, usually on update %]
319
                    active: [%- panel | html -%]
320
                [%- ELSE -%]
321
                    active: false
322
                [%- END -%]
455
            });
323
            });
456
        </script>
324
        });
457
    [%- END -%]
325
    </script>
458
[% END %]
326
[% END %]
459
[% INCLUDE 'intranet-bottom.inc' %]
327
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt (-3 / +3 lines)
Lines 87-95 Link Here
87
87
88
                [% IF op == 'add_form' %]
88
                [% IF op == 'add_form' %]
89
                    [% IF credit_type %]
89
                    [% IF credit_type %]
90
                        <h1>Modify a credit type</h1>
90
                        <h2>Modify a credit type</h2>
91
                    [% ELSE %]
91
                    [% ELSE %]
92
                        <h1>New credit type</h1>
92
                        <h2>New credit type</h2>
93
                    [% END %]
93
                    [% END %]
94
94
95
                    <form action="/cgi-bin/koha/admin/credit_types.pl" name="Aform" method="post" class="validated">
95
                    <form action="/cgi-bin/koha/admin/credit_types.pl" name="Aform" method="post" class="validated">
Lines 166-172 Link Here
166
                        <a class="pat" id="newcredittype" href="/cgi-bin/koha/admin/credit_types.pl?op=add_form"><i class="fa fa-plus"></i> New credit type</a>
166
                        <a class="pat" id="newcredittype" href="/cgi-bin/koha/admin/credit_types.pl?op=add_form"><i class="fa fa-plus"></i> New credit type</a>
167
                    </div></div>
167
                    </div></div>
168
168
169
                    <h1>Account credit types</h1>
169
                    <h2>Account credit types</h2>
170
                    [% IF credit_types.count %]
170
                    [% IF credit_types.count %]
171
                    <div id="searchresults">
171
                    <div id="searchresults">
172
                        <table id="table_credit_types">
172
                        <table id="table_credit_types">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-2 / +2 lines)
Lines 169-175 Link Here
169
[% IF op =='delete_confirm' %]
169
[% IF op =='delete_confirm' %]
170
    [% IF nb_of_orders or nb_of_vendors %]
170
    [% IF nb_of_orders or nb_of_vendors %]
171
    <div class="dialog alert">
171
    <div class="dialog alert">
172
        <h1>Cannot delete currency [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %]</h1>
172
        <h2>Cannot delete currency [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %]</h2>
173
        <p>
173
        <p>
174
            [% IF nb_of_orders %]
174
            [% IF nb_of_orders %]
175
                <span>This currency is used by [% nb_of_orders | html %] orders.</span>
175
                <span>This currency is used by [% nb_of_orders | html %] orders.</span>
Lines 209-215 Link Here
209
209
210
[% IF op == 'list' %]
210
[% IF op == 'list' %]
211
211
212
<h1>Currencies and exchange rates</h1>
212
<h2>Currencies and exchange rates</h2>
213
213
214
    [% IF currencies and no_active_currency %]
214
    [% IF currencies and no_active_currency %]
215
        <div class="dialog alert"><h3>No active currency is defined</h3><p>Please edit one currency and mark it as active.</p></div>
215
        <div class="dialog alert"><h3>No active currency is defined</h3><p>Please edit one currency and mark it as active.</p></div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt (-4 / +4 lines)
Lines 85-93 Link Here
85
85
86
                [% IF op == 'add_form' %]
86
                [% IF op == 'add_form' %]
87
                    [% IF debit_type %]
87
                    [% IF debit_type %]
88
                        <h1>Modify a debit type</h1>
88
                        <h2>Modify a debit type</h2>
89
                    [% ELSE %]
89
                    [% ELSE %]
90
                        <h1>New debit type</h1>
90
                        <h2>New debit type</h2>
91
                    [% END %]
91
                    [% END %]
92
92
93
                    <form action="/cgi-bin/koha/admin/debit_types.pl" name="Aform" method="post" class="validated">
93
                    <form action="/cgi-bin/koha/admin/debit_types.pl" name="Aform" method="post" class="validated">
Lines 157-163 Link Here
157
                        <a class="pat" id="newdebittype" href="/cgi-bin/koha/admin/debit_types.pl?op=add_form"><i class="fa fa-plus"></i> New debit type</a>
157
                        <a class="pat" id="newdebittype" href="/cgi-bin/koha/admin/debit_types.pl?op=add_form"><i class="fa fa-plus"></i> New debit type</a>
158
                    </div></div>
158
                    </div></div>
159
159
160
                    <h1>Account debit types</h1>
160
                    <h2>Account debit types</h2>
161
                    [% IF debit_types.count %]
161
                    [% IF debit_types.count %]
162
                    <div id="searchresults">
162
                    <div id="searchresults">
163
                        <table id="table_debit_types">
163
                        <table id="table_debit_types">
Lines 222-228 Link Here
222
                    </div>
222
                    </div>
223
                    [% ELSE %]
223
                    [% ELSE %]
224
                        <div class="dialog message">
224
                        <div class="dialog message">
225
                            There are no account debit types defined. <a href="/cgi-bin/koha/admin/debit_types.pl?op=add_form">Create new debit type</a>
225
                            There are no account debit types defined. <a href="/cgi-bin/koha/admin/debit_types.pl?op=add_form" id="lientype">Create new debit type</a>
226
                        </div>
226
                        </div>
227
                    [% END %]
227
                    [% END %]
228
                [% END %]
228
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt (-4 / +4 lines)
Lines 265-280 EDI accounts &rsaquo; Administration &rsaquo; Koha Link Here
265
  </ol>
265
  </ol>
266
  <fieldset class="action">
266
  <fieldset class="action">
267
    <input type="submit" class="principal" value="Submit" />
267
    <input type="submit" class="principal" value="Submit" />
268
    <a href="/
268
    <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
269
  </fieldset>
269
  </fieldset>
270
cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
270
271
  </fieldset>
271
  </fieldset>
272
</form>
272
</form>
273
273
274
[% END %]
274
[% END %]
275
[% IF delete_confirm %]
275
[% IF delete_confirm %]
276
<div class="dialog alert">
276
<div class="dialog alert">
277
<h1>Delete this account?</h1>
277
<h2>Delete this account?</h2>
278
<table>
278
<table>
279
    <tr>
279
    <tr>
280
    <th>Vendor</th>
280
    <th>Vendor</th>
Lines 303-309 cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a> Link Here
303
[% END %]
303
[% END %]
304
[% IF display %]
304
[% IF display %]
305
[% IF ( ediaccounts ) %]
305
[% IF ( ediaccounts ) %]
306
<h1>Vendor EDI accounts</h1>
306
<h2>Vendor EDI accounts</h2>
307
307
308
<div id="searchresults">
308
<div id="searchresults">
309
309
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_ean_accounts.tt (-2 / +1 lines)
Lines 148-154 Library EANs &rsaquo; Administration &rsaquo; Koha Link Here
148
148
149
[% IF delete_confirm %]
149
[% IF delete_confirm %]
150
<div class="dialog alert">
150
<div class="dialog alert">
151
<h1>Delete EAN [% ean.ean | html %] for [% ean.branch.branchname | html %]?</h1>
151
<h2>Delete EAN [% ean.ean | html %] for [% ean.branch.branchname | html %]?</h2>
152
<form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" method="post">
152
<form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" method="post">
153
    <input type="hidden" name="op" value="delete_confirmed" />
153
    <input type="hidden" name="op" value="delete_confirmed" />
154
    <input type="hidden" name="id" value="[% ean.id | html %]" />
154
    <input type="hidden" name="id" value="[% ean.id | html %]" />
Lines 161-167 Library EANs &rsaquo; Administration &rsaquo; Koha Link Here
161
[% END %]
161
[% END %]
162
162
163
[% IF display %]
163
[% IF display %]
164
    <h1>Library EANs</h1>
165
[% IF ( eans ) %]
164
[% IF ( eans ) %]
166
    <h2>Library EANs</h2>
165
    <h2>Library EANs</h2>
167
    <div id="searchresults">
166
    <div id="searchresults">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_fields.tt (-6 / +3 lines)
Lines 75-81 Link Here
75
          [% END %]
75
          [% END %]
76
          [% IF fields.size %]
76
          [% IF fields.size %]
77
              <div id="search_fields_list">
77
              <div id="search_fields_list">
78
                  <h1>Item search fields</h1>
78
                  <h2>Item search fields</h2>
79
79
80
                  <div id="searchresults">
80
                  <div id="searchresults">
81
81
Lines 108-114 Link Here
108
                  </table>
108
                  </table>
109
              </div></div>
109
              </div></div>
110
          [% ELSE %]
110
          [% ELSE %]
111
                <h1>Item search fields</h1>
111
                <h2>Item search fields</h2>
112
              <div class="dialog message">
112
              <div class="dialog message">
113
                  There are no item search fields defined.
113
                  There are no item search fields defined.
114
              </div>
114
              </div>
Lines 116-130 Link Here
116
116
117
          <form id="add_field_form" action="/cgi-bin/koha/admin/items_search_fields.pl" method="POST">
117
          <form id="add_field_form" action="/cgi-bin/koha/admin/items_search_fields.pl" method="POST">
118
            <fieldset class="rows">
118
            <fieldset class="rows">
119
                <legend><h1>Add a new field</h1></legend>
120
              <h3>Add a new field</h3>
119
              <h3>Add a new field</h3>
121
              [% INCLUDE 'admin-items-search-field-form.inc' field=undef %]
120
              [% INCLUDE 'admin-items-search-field-form.inc' field=undef %]
122
              <input type="hidden" name="op" value="add" />
121
              <input type="hidden" name="op" value="add" />
123
            <fieldset class="action">
122
            <fieldset class="action">
124
              <input type="submit" value="Submit" />
125
              <a href="#" class="cancel hide_form">Cancel</a>
126
              <input type="submit" class="principal" value="Submit" />
123
              <input type="submit" class="principal" value="Submit" />
127
              <a href="#" class="cancel">Cancel</a>
124
              <a href="#" class="cancel hide_form">Cancel</a>
128
            </fieldset>
125
            </fieldset>
129
            </fieldset>
126
            </fieldset>
130
          </form>
127
          </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt (-14 / +14 lines)
Lines 74-86 Link Here
74
74
75
                    <div id="toolbar" class="btn-toolbar">
75
                    <div id="toolbar" class="btn-toolbar">
76
                        <div class="btn-group">
76
                        <div class="btn-group">
77
                            <a id="add-group-root" class="btn btn-default add-group" href="#">
77
                            <a id="add-group-root" class="btn btn-default add-group pat" href="#">
78
                                <i class="fa fa-plus"></i> Add group
78
                                <i class="fa fa-plus"></i> Add group
79
                            </a>
79
                            </a>
80
                        </div>
80
                        </div>
81
                    </div>
81
                    </div>
82
82
83
                <h1>Library groups</h1>
83
                <h2>Library groups</h2>
84
84
85
                [% FOREACH root_group IN root_groups %]
85
                [% FOREACH root_group IN root_groups %]
86
                    <table class="library-groups">
86
                    <table class="library-groups">
Lines 112-118 Link Here
112
                        <h3 id="add-group-modal-label">Add group</h3>
112
                        <h3 id="add-group-modal-label">Add group</h3>
113
                    </div>
113
                    </div>
114
                    <div class="modal-body">
114
                    <div class="modal-body">
115
                        <fieldset class="rows">
115
                        <fieldset>
116
                            <input type="hidden" id="add-group-modal-parent-id" name="parent_id" value="" />
116
                            <input type="hidden" id="add-group-modal-parent-id" name="parent_id" value="" />
117
                            <input type="hidden" id="add-group-modal-action" name="action" value="add">
117
                            <input type="hidden" id="add-group-modal-action" name="action" value="add">
118
                            <ol>
118
                            <ol>
Lines 159-165 Link Here
159
                        </div>
159
                        </div>
160
                    </div>
160
                    </div>
161
                    <div class="modal-footer">
161
                    <div class="modal-footer">
162
                        <button type="submit" class="btn btn-default">Save</button>
162
                        <button type="submit" class="btn btn-default principal">Save</button>
163
                        <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
163
                        <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
164
                    </div>
164
                    </div>
165
                </div>
165
                </div>
Lines 177-183 Link Here
177
                    <div class="modal-body">
177
                    <div class="modal-body">
178
                        <input type="hidden" id="edit-group-modal-id" name="id" value="" />
178
                        <input type="hidden" id="edit-group-modal-id" name="id" value="" />
179
                        <input type="hidden" id="edit-group-modal-action" name="action" value="edit" />
179
                        <input type="hidden" id="edit-group-modal-action" name="action" value="edit" />
180
                        <fieldset class="rows">
180
                        <fieldset>
181
                            <ol>
181
                            <ol>
182
                                <li>
182
                                <li>
183
                                    <label for="edit-group-modal-title">Title: </label>
183
                                    <label for="edit-group-modal-title">Title: </label>
Lines 223-229 Link Here
223
                        </div>
223
                        </div>
224
                    </div>
224
                    </div>
225
                    <div class="modal-footer">
225
                    <div class="modal-footer">
226
                        <button type="submit" class="btn btn-default">Update</button>
226
                        <button type="submit" class="btn btn-default principal">Update</button>
227
                        <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
227
                        <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
228
                    </div>
228
                    </div>
229
                </div>
229
                </div>
Lines 244-250 Link Here
244
                        Are you sure you want to delete <span id="delete-group-modal-title" class="name"></span>?
244
                        Are you sure you want to delete <span id="delete-group-modal-title" class="name"></span>?
245
                    </div>
245
                    </div>
246
                    <div class="modal-footer">
246
                    <div class="modal-footer">
247
                        <button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> Delete</button>
247
                        <button type="submit" class="btn btn-danger principal"><i class="fa fa-trash"></i> Delete</button>
248
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
248
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
249
                    </div>
249
                    </div>
250
                </div>
250
                </div>
Lines 265-271 Link Here
265
                        Are you sure you want to remove <span id="remove-library-modal-library" class="name"></span> from <span id="remove-library-modal-group" class="name"></span>?
265
                        Are you sure you want to remove <span id="remove-library-modal-library" class="name"></span> from <span id="remove-library-modal-group" class="name"></span>?
266
                    </div>
266
                    </div>
267
                    <div class="modal-footer">
267
                    <div class="modal-footer">
268
                        <button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> Remove</button>
268
                        <button type="submit" class="btn btn-danger principal"><i class="fa fa-trash"></i> Remove</button>
269
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
269
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
270
                    </div>
270
                    </div>
271
                </div>
271
                </div>
Lines 420-444 Link Here
420
        </td>
420
        </td>
421
        <td>
421
        <td>
422
            [% IF group.branchcode %]
422
            [% IF group.branchcode %]
423
                <button class="btn btn-default btn-xs remove-library" data-group-id="[% group.id | html %]" data-group-library="[% group.library.branchname | html %]" data-group-parent-title="[% group.parent.title | html %]" ><i class="fa fa-trash"></i> Remove from group</button>
423
                <button id="lientype" class="btn btn-default btn-xs remove-library" data-group-id="[% group.id | html %]" data-group-library="[% group.library.branchname | html %]" data-group-parent-title="[% group.parent.title | html %]" ><i class="fa fa-trash"></i> Remove from group</button>
424
            [% ELSE %]
424
            [% ELSE %]
425
                <div class="btn-group">
425
                <div class="btn-group">
426
                    <button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i> Actions <span class="caret"></span></button>
426
                    <button id="lientype" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i> Actions <span class="caret"></span></button>
427
                    <ul class="dropdown-menu">
427
                    <ul class="dropdown-menu">
428
                        <li>
428
                        <li>
429
                            <a id="add-group-[% group.id | html %]" href="#" class="add-group" data-group-id="[% group.id | html %]">
429
                            <a id="add-group-[% group.id | html %]" href="#" class="add-group lientype" data-group-id="[% group.id | html %]">
430
                                <i class="fa fa-plus"></i> Add sub-group
430
                                <i class="fa fa-plus"></i> Add sub-group
431
                            </a>
431
                            </a>
432
                       </li>
432
                       </li>
433
433
434
                        <li>
434
                        <li>
435
                            <a class="edit-group" id="edit-group-[% group.id | html %]" href="#" data-group-id="[% group.id | html %]" data-group-parent-id="[% group.parent_id | html %]" data-group-title="[% group.title | html %]" data-group-description="[% group.description | html %]" data-group-ft_hide_patron_info="[% group.ft_hide_patron_info | html %]" data-group-ft_search_groups_opac="[% group.ft_search_groups_opac | html %]" data-group-ft_search_groups_staff="[% group.ft_search_groups_staff | html %]" data-group-ft_local_hold_group="[% group.ft_local_hold_group | html %]" >
435
                            <a class="edit-group lientype" id="edit-group-[% group.id | html %]" href="#" data-group-id="[% group.id | html %]" data-group-parent-id="[% group.parent_id | html %]" data-group-title="[% group.title | html %]" data-group-description="[% group.description | html %]" data-group-ft_hide_patron_info="[% group.ft_hide_patron_info | html %]" data-group-ft_search_groups_opac="[% group.ft_search_groups_opac | html %]" data-group-ft_search_groups_staff="[% group.ft_search_groups_staff | html %]" data-group-ft_local_hold_group="[% group.ft_local_hold_group | html %]" >
436
                                <i class="fa fa-pencil"></i> Edit
436
                                <i class="fa fa-pencil"></i> Edit
437
                            </a>
437
                            </a>
438
                       </li>
438
                       </li>
439
439
440
                        <li>
440
                        <li>
441
                            <a class="delete-group" id="delete-group-[% group.id | html %]" href="#" data-group-id="[% group.id | html %]" data-group-title="[% group.title | html %]">
441
                            <a class="delete-group lientype" id="delete-group-[% group.id | html %]" href="#" data-group-id="[% group.id | html %]" data-group-title="[% group.title | html %]">
442
                                <i class="fa fa-trash"></i> Delete
442
                                <i class="fa fa-trash"></i> Delete
443
                            </a>
443
                            </a>
444
                       </li>
444
                       </li>
Lines 446-452 Link Here
446
                </div>
446
                </div>
447
447
448
                <div class="btn-group">
448
                <div class="btn-group">
449
                    <button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> Add library <span class="caret"></span></button>
449
                    <button class="btn btn-default btn-xs dropdown-toggle" id="lientype" data-toggle="dropdown"><i class="fa fa-plus"></i> Add library <span class="caret"></span></button>
450
                    <ul class="dropdown-menu">
450
                    <ul class="dropdown-menu">
451
                        [% FOREACH library IN group.libraries_not_direct_children %]
451
                        [% FOREACH library IN group.libraries_not_direct_children %]
452
                            <li>
452
                            <li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt (-7 / +8 lines)
Lines 46-52 Link Here
46
        <div class="row">
46
        <div class="row">
47
            <div class="col-sm-10 col-sm-push-2">
47
            <div class="col-sm-10 col-sm-push-2">
48
48
49
                <h1>Manage MARC overlay rules</h1>
49
                <h2>Manage MARC overlay rules</h2>
50
50
51
                [% FOR m IN messages %]
51
                [% FOR m IN messages %]
52
                <div class="dialog [% m.type | html %]">
52
                <div class="dialog [% m.type | html %]">
Lines 62-68 Link Here
62
                [% END %]
62
                [% END %]
63
63
64
                [% UNLESS Koha.Preference( 'MARCOverlayRules' ) %]
64
                [% UNLESS Koha.Preference( 'MARCOverlayRules' ) %]
65
                [% SET pref_MARCOverlayRules_link = '<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=MARCOverlayRules">MARCOverlayRules</a>' %]
65
                [% SET pref_MARCOverlayRules_link = '<a id="lientype" href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=MARCOverlayRules">MARCOverlayRules</a>' %]
66
                <div class="dialog message">
66
                <div class="dialog message">
67
                    The [%  pref_MARCOverlayRules_link | $raw | $KohaSpan %] preference is not set, don't forget to enable it for rules to take effect.
67
                    The [%  pref_MARCOverlayRules_link | $raw | $KohaSpan %] preference is not set, don't forget to enable it for rules to take effect.
68
                </div>
68
                </div>
Lines 78-84 Link Here
78
                    <button type="button" class="approve" id="doremove"><i class="fa fa-fw fa-check"></i> Yes, remove</button>
78
                    <button type="button" class="approve" id="doremove"><i class="fa fa-fw fa-check"></i> Yes, remove</button>
79
                </div>
79
                </div>
80
                [% END %]
80
                [% END %]
81
81
                <fieldset id="searchresults">
82
                <form action="/cgi-bin/koha/admin/marc-overlay-rules.pl" method="POST" id="marc-overlay-rules-form">
82
                <form action="/cgi-bin/koha/admin/marc-overlay-rules.pl" method="POST" id="marc-overlay-rules-form">
83
                    <table id="marc-overlay-rules">
83
                    <table id="marc-overlay-rules">
84
                        <thead><tr>
84
                        <thead><tr>
Lines 142-148 Link Here
142
                                    </select>
142
                                    </select>
143
                                </th>
143
                                </th>
144
                                <th><button class="btn btn-default btn-xs" title="Add" id="add"><i class="fa fa-plus"></i> Add rule</button></th>
144
                                <th><button class="btn btn-default btn-xs" title="Add" id="add"><i class="fa fa-plus"></i> Add rule</button></th>
145
                                <th><button id="btn_batchremove" disabled="disabled" class="btn btn-default btn-xs" title="Batch remove"><i class="fa fa-trash"></i> Delete selected</button></th>
145
                                <th><button id="btn_batchremove" disabled="disabled" class=" btn btn-default btn-xs " title="Batch remove"><i class="fa fa-trash"></i> Delete selected</button></th>
146
                            </tr>
146
                            </tr>
147
                        </tfoot>
147
                        </tfoot>
148
                        [% END %]
148
                        [% END %]
Lines 228-234 Link Here
228
                                    </td>
228
                                    </td>
229
                                    <td class="actions">
229
                                    <td class="actions">
230
                                        <button class="btn btn-default btn-xs" title="Save" id="doedit" value="[% rule.id | html %]"><i class="fa fa-check"></i> Save</button>
230
                                        <button class="btn btn-default btn-xs" title="Save" id="doedit" value="[% rule.id | html %]"><i class="fa fa-check"></i> Save</button>
231
                                        <button type="submit" class="btn btn-default btn-xs" title="Cancel" ><i class="fa fa-times"></i> Cancel</button>
231
                                        <button type="submit" class="btn btn-default btn-xs" id="lientype" title="Cancel" ><i class="fa fa-times"></i> Cancel</button>
232
                                    </td>
232
                                    </td>
233
                                    <td></td>
233
                                    <td></td>
234
                                [% ELSE %]
234
                                [% ELSE %]
Lines 242-249 Link Here
242
                                    <td class="rule-operation-action" data-operation="remove">[% IF rule.remove %]Remove[% ELSE %]Skip[% END %]</td>
242
                                    <td class="rule-operation-action" data-operation="remove">[% IF rule.remove %]Remove[% ELSE %]Skip[% END %]</td>
243
                                    <td class="rule-operation-action" data-operation="delete">[% IF rule.delete %]Delete[% ELSE %]Skip[% END %]</td>
243
                                    <td class="rule-operation-action" data-operation="delete">[% IF rule.delete %]Delete[% ELSE %]Skip[% END %]</td>
244
                                    <td class="actions">
244
                                    <td class="actions">
245
                                        <a href="?op=remove&id=[% rule.id | uri %]" title="Delete" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a>
245
                                        <a id="lientype" href="?op=remove&id=[% rule.id | uri %]" title="Delete" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a>
246
                                        <a href="?op=edit&id=[% rule.id | uri %]" title="Edit" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
246
                                        <a id="lientype" href="?op=edit&id=[% rule.id | uri %]" title="Edit" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
247
                                    </td>
247
                                    </td>
248
                                    <td>
248
                                    <td>
249
                                        [% IF rule.removemarked %]
249
                                        [% IF rule.removemarked %]
Lines 258-263 Link Here
258
                        </tbody>
258
                        </tbody>
259
                    </table>
259
                    </table>
260
                </form>
260
                </form>
261
                </fieldset>
261
262
262
                <form action="/cgi-bin/koha/admin/marc-overlay-rules.pl" method="post">
263
                <form action="/cgi-bin/koha/admin/marc-overlay-rules.pl" method="post">
263
                    <input type="hidden" name="op" value="redo-matching" />
264
                    <input type="hidden" name="op" value="redo-matching" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-16 / +18 lines)
Lines 119-131 Link Here
119
                <main>
119
                <main>
120
120
121
                    [% IF ( add_form ) %]
121
                    [% IF ( add_form ) %]
122
                        <h1>
122
                        <h2>
123
                            [% IF ( use_heading_flags_p ) %]
123
                            [% IF ( use_heading_flags_p ) %]
124
                                [% IF ( heading_edit_subfields_p ) %]<span>Tag</span> [% tagfield | html %] <span>Subfield constraints</span>[% END %]
124
                                [% IF ( heading_edit_subfields_p ) %]<span>Tag</span> [% tagfield | html %] <span>Subfield constraints</span>[% END %]
125
                            [% ELSE %]
125
                            [% ELSE %]
126
                                [% action | html %]
126
                                [% action | html %]
127
                            [% END %]
127
                            [% END %]
128
                        </h1>
128
                        </h2>
129
129
130
                        <form action="[% script_name | html %]" name="Aform" method="post">
130
                        <form action="[% script_name | html %]" name="Aform" method="post">
131
                            <input type="hidden" name="op" value="add_validate" />
131
                            <input type="hidden" name="op" value="add_validate" />
Lines 144-149 Link Here
144
                            [% END %][% END %]
144
                            [% END %][% END %]
145
145
146
                            <div id="subfieldtabs" class="toptabs numbered">
146
                            <div id="subfieldtabs" class="toptabs numbered">
147
                            <fieldset id="searchresults">
147
                                 <ul class="nav nav-tabs" role="tablist">
148
                                 <ul class="nav nav-tabs" role="tablist">
148
                                    [% FOREACH loo IN loop %]
149
                                    [% FOREACH loo IN loop %]
149
                                        <li id="tab_subfield_[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="tab-item" role="presentation">
150
                                        <li id="tab_subfield_[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="tab-item" role="presentation">
Lines 163-170 Link Here
163
                                    [% FOREACH loo IN loop %]
164
                                    [% FOREACH loo IN loop %]
164
                                        <div class="constraints tab-pane" role="tabpanel" id="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field">
165
                                        <div class="constraints tab-pane" role="tabpanel" id="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field">
165
                                            <div id="basic[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="contraints">
166
                                            <div id="basic[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="contraints">
166
                                                <fieldset class="rows">
167
                                                <fieldset>
167
                                                    <legend>Basic constraints</legend>
168
                                                    <h3>Basic constraints</h3>
168
                                                    <ol>
169
                                                    <ol>
169
                                                        [% IF ( subfieldcode == 0 || subfieldcode ) %]
170
                                                        [% IF ( subfieldcode == 0 || subfieldcode ) %]
170
                                                            <li>
171
                                                            <li>
Lines 236-243 Link Here
236
                                            </div> <!-- /#basic[%- PROCESS outputsubfield subfieldanchor = subfieldcode -%] -->
237
                                            </div> <!-- /#basic[%- PROCESS outputsubfield subfieldanchor = subfieldcode -%] -->
237
238
238
                                            <div id="advanced[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="contraints">
239
                                            <div id="advanced[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="contraints">
239
                                                <fieldset class="rows">
240
                                                <fieldset>
240
                                                    <legend>Advanced constraints</legend>
241
                                                    <h3>Advanced constraints</h3>
241
                                                    <ol>
242
                                                    <ol>
242
                                                        <li>
243
                                                        <li>
243
                                                            <label for="defaultvalue[% loo.row | html %]">Default value:</label>
244
                                                            <label for="defaultvalue[% loo.row | html %]">Default value:</label>
Lines 299-306 Link Here
299
                                            </div> <!-- /#advanced[%- PROCESS outputsubfield subfieldanchor = subfieldcode -%] -->
300
                                            </div> <!-- /#advanced[%- PROCESS outputsubfield subfieldanchor = subfieldcode -%] -->
300
301
301
                                            <div id="oth[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="constraints">
302
                                            <div id="oth[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="constraints">
302
                                                <fieldset class="rows">
303
                                                <fieldset>
303
                                                    <legend>Other options (choose one)</legend>
304
                                                    <h3>Other options (choose one)</h3>
304
                                                    <ol>
305
                                                    <ol>
305
                                                        <li>
306
                                                        <li>
306
                                                            <label for="authorised_value[% loo.row | html %]">Authorized value:</label>
307
                                                            <label for="authorised_value[% loo.row | html %]">Authorized value:</label>
Lines 345-361 Link Here
345
                                        </div><!-- /constraints -->
346
                                        </div><!-- /constraints -->
346
                                    [% END # /FOREACH loo %]
347
                                    [% END # /FOREACH loo %]
347
                                </div> <!-- /.tab-content -->
348
                                </div> <!-- /.tab-content -->
348
                            </div><!-- /subfieldtabs -->
349
349
350
                            <fieldset class="action">
350
                                <input type="submit" class="principal" value="Save changes" /> <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield  | uri %]&amp;frameworkcode=[% frameworkcode | uri %]" class="cancel">Cancel</a>
351
                                <input type="submit" value="Save changes" /> <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield  | uri %]&amp;frameworkcode=[% frameworkcode | uri %]" class="cancel">Cancel</a>
352
                            </fieldset>
351
                            </fieldset>
352
                            </div><!-- /subfieldtabs -->
353
                        </form>
353
                        </form>
354
                    [% END # /IF ( add_form ) %]
354
                    [% END # /IF ( add_form ) %]
355
355
356
                    [% IF ( delete_confirm ) %]
356
                    [% IF ( delete_confirm ) %]
357
                        <div class="dialog alert">
357
                        <div class="dialog alert">
358
                            <h1>Confirm deletion of subfield [% mss.tagsubfield | html %]?</h1>
358
                            <h3>Confirm deletion of subfield [% mss.tagsubfield | html %]?</h3>
359
                            <p>Subfield: [% mss.tagsubfield | html %]</p>
359
                            <p>Subfield: [% mss.tagsubfield | html %]</p>
360
                            <p>Description: [% mss.liblibrarian | html_entity %]</p>
360
                            <p>Description: [% mss.liblibrarian | html_entity %]</p>
361
361
Lines 377-387 Link Here
377
                    [% END # /IF ( delete_confirm ) %]
377
                    [% END # /IF ( delete_confirm ) %]
378
378
379
                    [% IF ( else ) %]
379
                    [% IF ( else ) %]
380
                        <h1>MARC subfield structure admin for [% tagfield | html %] [% IF ( frameworkcode ) %](framework [% frameworkcode | html %])[% ELSE %](default framework)[% END %]</h1>
380
                        <h2>MARC subfield structure admin for [% tagfield | html %] [% IF ( frameworkcode ) %](framework [% frameworkcode | html %])[% ELSE %](default framework)[% END %]</h2>
381
381
382
                        <p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.</p>
382
                        <p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.</p>
383
                        <p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p>
383
                        <p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p>
384
384
385
                        <div id="searchresults">
385
                        <table id="table_marcsubfieldstructure">
386
                        <table id="table_marcsubfieldstructure">
386
                            <thead>
387
                            <thead>
387
                                <tr>
388
                                <tr>
Lines 421-428 Link Here
421
                                            [% END %]
422
                                            [% END %]
422
                                        </td>
423
                                        </td>
423
                                        <td class="actions">
424
                                        <td class="actions">
424
                                            <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&amp;tagfield=[% loo.tagfield | uri %]&tagsubfield=[% loo.tagsubfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]#sub[% loo.tagsubfield | uri %]field" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
425
                                            <a id="lientype" href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&amp;tagfield=[% loo.tagfield | uri %]&tagsubfield=[% loo.tagsubfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]#sub[% loo.tagsubfield | uri %]field" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
425
                                            <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&amp;tagfield=[% loo.tagfield | uri %]&amp;tagsubfield=[% loo.tagsubfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a>
426
                                            <a id="lientype" href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&amp;tagfield=[% loo.tagfield | uri %]&amp;tagsubfield=[% loo.tagsubfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a>
426
                                        </td>
427
                                        </td>
427
                                    </tr>
428
                                    </tr>
428
                                [% END %]
429
                                [% END %]
Lines 433-442 Link Here
433
                            <fieldset class="action"><input type="hidden" name="op" value="add_form" />
434
                            <fieldset class="action"><input type="hidden" name="op" value="add_form" />
434
                                <input type="hidden" name="tagfield" value="[% edit_tagfield | html %]" />
435
                                <input type="hidden" name="tagfield" value="[% edit_tagfield | html %]" />
435
                                <input type="hidden" name="frameworkcode" value="[% edit_frameworkcode | html %]" />
436
                                <input type="hidden" name="frameworkcode" value="[% edit_frameworkcode | html %]" />
436
                                <input type="submit" value="Edit subfields" />
437
                                <input type="submit" class="principal" value="Edit subfields" />
437
                                <a class="cancel" href="marctagstructure.pl?searchfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode | html %]">Cancel</a>
438
                                <a class="cancel" href="marctagstructure.pl?searchfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode | html %]">Cancel</a>
438
                            </fieldset>
439
                            </fieldset>
439
                        </form>
440
                        </form>
441
                        </div>
440
442
441
                    [% END # /IF else %]
443
                    [% END # /IF else %]
442
444
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt (-4 / +5 lines)
Lines 128-140 MARC frameworks &rsaquo; Administration &rsaquo; Koha Link Here
128
    <form action="[% script_name | html %]" name="Aform" method="post" class="validated">
128
    <form action="[% script_name | html %]" name="Aform" method="post" class="validated">
129
129
130
      <fieldset class="rows">
130
      <fieldset class="rows">
131
            <legend>
131
            <h3>
132
                [% IF heading_add_tag_p %]
132
                [% IF heading_add_tag_p %]
133
                    <span>Add tag</span>
133
                    <span>Add tag</span>
134
                [% ELSE %]
134
                [% ELSE %]
135
                    <span>Modify tag</span> <input type="hidden" name="modif" value="1" />[% searchfield | html %]
135
                    <span>Modify tag</span> <input type="hidden" name="modif" value="1" />[% searchfield | html %]
136
                [% END %]
136
                [% END %]
137
            </legend>
137
            </h3>
138
            <input type="hidden" name="op" value="add_validate" />
138
            <input type="hidden" name="op" value="add_validate" />
139
            <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" />
139
            <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" />
140
        <ol>
140
        <ol>
Lines 184-191 MARC frameworks &rsaquo; Administration &rsaquo; Koha Link Here
184
            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
184
            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
185
        </select>
185
        </select>
186
        (if you select a value here, the indicators will be limited to the authorized value list)</li>
186
        (if you select a value here, the indicators will be limited to the authorized value list)</li>
187
</ol></fieldset> 
187
</ol>
188
    <fieldset class="action">
189
        <input type="submit" value="Save changes" class="principal"/>
188
        <input type="submit" value="Save changes" class="principal"/>
190
        <a class="cancel" href="[% script_name | url %]?frameworkcode=[% framework.frameworkcode | uri %]">Cancel</a>
189
        <a class="cancel" href="[% script_name | url %]?frameworkcode=[% framework.frameworkcode | uri %]">Cancel</a>
191
    </fieldset>
190
    </fieldset>
Lines 261-266 MARC frameworks &rsaquo; Administration &rsaquo; Koha Link Here
261
</fieldset>
260
</fieldset>
262
</form>
261
</form>
263
262
263
<div id="searchresults">
264
    <table id="table_marctagstructure">
264
    <table id="table_marctagstructure">
265
    <thead>
265
    <thead>
266
        <tr>
266
        <tr>
Lines 312-317 MARC frameworks &rsaquo; Administration &rsaquo; Koha Link Here
312
    [% END %]
312
    [% END %]
313
    </tbody>
313
    </tbody>
314
    </table>
314
    </table>
315
    </div>
315
[% END %]
316
[% END %]
316
317
317
            </main>
318
            </main>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt (-14 / +14 lines)
Lines 120-128 Link Here
120
120
121
                [% IF ( matching_rule_form ) %]
121
                [% IF ( matching_rule_form ) %]
122
                    [% IF ( edit_matching_rule ) %]
122
                    [% IF ( edit_matching_rule ) %]
123
                        <h1>Modify record matching rule</h1>
123
                        <h2>Modify record matching rule</h2>
124
                    [% ELSE %]
124
                    [% ELSE %]
125
                        <h1>Add record matching rule</h1>
125
                        <h2>Add record matching rule</h2>
126
                    [% END %]
126
                    [% END %]
127
                    <form action="[% script_name | html %]" name="Aform" method="post">
127
                    <form action="[% script_name | html %]" name="Aform" method="post">
128
                        <input type="hidden" name="op" value="[% confirm_op | html %]" />
128
                        <input type="hidden" name="op" value="[% confirm_op | html %]" />
Lines 170-179 Link Here
170
                                [% ELSE %]
170
                                [% ELSE %]
171
                                    <p id="addMatchPoint">
171
                                    <p id="addMatchPoint">
172
                                [% END %]
172
                                [% END %]
173
                                    <a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">Add match point</a>
173
                                    <a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;" id="lientype">Add match point</a>
174
                                </p>
174
                                </p>
175
                            [% ELSE %]
175
                            [% ELSE %]
176
                                <p id="addMatchPoint" style="display:none;"><a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">
176
                                <p id="addMatchPoint" style="display:none;"><a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;" id="lientype">
177
                                    Add match point</a>
177
                                    Add match point</a>
178
                                </p>
178
                                </p>
179
                            [% END %]
179
                            [% END %]
Lines 182-188 Link Here
182
                                [% FOREACH matchpoint IN matchpoints %]
182
                                [% FOREACH matchpoint IN matchpoints %]
183
                                    <div id="mp_[% matchpoint.mp_num | html %]" class="matchgroup">
183
                                    <div id="mp_[% matchpoint.mp_num | html %]" class="matchgroup">
184
                                        <fieldset>
184
                                        <fieldset>
185
                                            <h3>Match point [% matchpoint.mp_num | html %] | <a href="#" class="button" onclick="InsertMatchpoint('mp_[% matchpoint.mp_num | html %]', 'mp_template'); return false;">Add match point</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></h3>
185
                                            <h3>Match point [% matchpoint.mp_num | html %] | <a href="#" id="lientype" class="button" onclick="InsertMatchpoint('mp_[% matchpoint.mp_num | html %]', 'mp_template'); return false;">Add match point</a> | <a href="#" id="lientype" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></h3>
186
                                            <ol>
186
                                            <ol>
187
                                                <li>
187
                                                <li>
188
                                                    <label for="mp_[% matchpoint.mp_num | html %]_search_index">Search index: </label>
188
                                                    <label for="mp_[% matchpoint.mp_num | html %]_search_index">Search index: </label>
Lines 233-239 Link Here
233
                            [% ELSE # IF ( edit_matching_rule ) %]
233
                            [% ELSE # IF ( edit_matching_rule ) %]
234
                                <div id="mp_1" class="matchgroup">
234
                                <div id="mp_1" class="matchgroup">
235
                                    <fieldset>
235
                                    <fieldset>
236
                                        <h3>Match point 1 | <a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">Add match point</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></h3>
236
                                        <h3>Match point 1 | <a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;" id="lientype">Add match point</a> | <a href="#" id="lientype" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></h3>
237
                                        <ol>
237
                                        <ol>
238
                                            <li>
238
                                            <li>
239
                                                <label for="mp_1_search_index">Search index: </label>
239
                                                <label for="mp_1_search_index">Search index: </label>
Lines 283-298 Link Here
283
                                [% ELSE %]
283
                                [% ELSE %]
284
                                    <p id="addMatchCheck">
284
                                    <p id="addMatchCheck">
285
                                [% END %]
285
                                [% END %]
286
                                <a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">  Add match check</a></p>
286
                                <a id="lientype" href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">  Add match check</a></p>
287
                            [% ELSE %]
287
                            [% ELSE %]
288
                                <p id="addMatchCheck" style="display:none;"><a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">  Add match check</a></p>
288
                                <p id="addMatchCheck" style="display:none;"><a id="lientype" href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">  Add match check</a></p>
289
                            [% END %]
289
                            [% END %]
290
290
291
                            [% IF ( edit_matching_rule ) %]
291
                            [% IF ( edit_matching_rule ) %]
292
                                [% FOREACH matchcheck IN matchchecks %]
292
                                [% FOREACH matchcheck IN matchchecks %]
293
                                    <div id="mc_[% matchcheck.mc_num | html %]" class="matchgroup">
293
                                    <div id="mc_[% matchcheck.mc_num | html %]" class="matchgroup">
294
                                        <fieldset>
294
                                        <fieldset>
295
                                            <h3>Match check [% matchcheck.mc_num | html %]<a href="#" class="button" onclick="InsertMatchcheck('mc_[% matchcheck.mc_num | html %]', 'mc_template'); return false;">  Add match check</a> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></h3>
295
                                            <h3>Match check [% matchcheck.mc_num | html %]<a id="lientype" href="#" class="button" onclick="InsertMatchcheck('mc_[% matchcheck.mc_num | html %]', 'mc_template'); return false;">  Add match check</a> | <a id="lientype" href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></h3>
296
                                            <input type="hidden" id="mc_[% matchcheck.mc_num | html %]_id" name="mc_[% matchcheck.mc_num | html %]_id" value="1" />
296
                                            <input type="hidden" id="mc_[% matchcheck.mc_num | html %]_id" name="mc_[% matchcheck.mc_num | html %]_id" value="1" />
297
                                            [% FOREACH src_component IN matchcheck.src_components %]
297
                                            [% FOREACH src_component IN matchcheck.src_components %]
298
                                                <fieldset id="mc_[% src_component.mc_num | html %]_src_c_[% src_component.comp_num | html %]">
298
                                                <fieldset id="mc_[% src_component.mc_num | html %]_src_c_[% src_component.comp_num | html %]">
Lines 362-368 Link Here
362
                            [% ELSE # IF ( edit_matching_rule ) %]
362
                            [% ELSE # IF ( edit_matching_rule ) %]
363
                                <div id="mc_1" class="matchgroup">
363
                                <div id="mc_1" class="matchgroup">
364
                                    <fieldset>
364
                                    <fieldset>
365
                                        <h3>Match check 1 | <a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">Add match check</a> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></h3>
365
                                        <h3>Match check 1 | <a id="lientype" href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">Add match check</a> | <a id="lientype" href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></h3>
366
                                        <input type="hidden" id="mc_1_id" name="mc_1_id" value="1" />
366
                                        <input type="hidden" id="mc_1_id" name="mc_1_id" value="1" />
367
                                        <fieldset id="mc_1_src_c_1">
367
                                        <fieldset id="mc_1_src_c_1">
368
                                            <h3>Source (incoming) record check field</h3>
368
                                            <h3>Source (incoming) record check field</h3>
Lines 433-439 Link Here
433
433
434
                [% IF ( delete_matching_rule_form ) %]
434
                [% IF ( delete_matching_rule_form ) %]
435
                    <div class="dialog alert">
435
                    <div class="dialog alert">
436
                        <h1>Confirm deletion of record matching rule <span class="ex">'[% code | html %]' ([% description | html %])</span>?</h1>
436
                        <h2>Confirm deletion of record matching rule <span class="ex">'[% code | html %]' ([% description | html %])</span>?</h2>
437
                        <form action="[% script_name | html %]" name="Aform" method="post">
437
                        <form action="[% script_name | html %]" name="Aform" method="post">
438
                            <input type="hidden" name="op" value="[% confirm_op | html %]" />
438
                            <input type="hidden" name="op" value="[% confirm_op | html %]" />
439
                            <input type="hidden" name="matcher_id" value="[% matcher_id | html %]" />
439
                            <input type="hidden" name="matcher_id" value="[% matcher_id | html %]" />
Lines 452-458 Link Here
452
                        <a class="pat" id="newrule" href="[% script_name | url %]?op=add_matching_rule"><i class="fa fa-plus"></i> New record matching rule</a>
452
                        <a class="pat" id="newrule" href="[% script_name | url %]?op=add_matching_rule"><i class="fa fa-plus"></i> New record matching rule</a>
453
                    </div></div>
453
                    </div></div>
454
454
455
                    <h1>Record matching rules</h1>
455
                    <h2>Record matching rules</h2>
456
456
457
                    [% IF ( added_matching_rule ) %]
457
                    [% IF ( added_matching_rule ) %]
458
                        <div class="dialog message">Added record matching rule &quot;[% added_matching_rule | html %]&quot;</div>
458
                        <div class="dialog message">Added record matching rule &quot;[% added_matching_rule | html %]&quot;</div>
Lines 495-501 Link Here
495
                [% IF ( matching_rule_form ) %]
495
                [% IF ( matching_rule_form ) %]
496
                    <div id="mp_template" class="matchgroup" style="display:none;">
496
                    <div id="mp_template" class="matchgroup" style="display:none;">
497
                        <fieldset>
497
                        <fieldset>
498
                            <h3>Match point <span class="counter"></span> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></h3>
498
                            <h3>Match point <span class="counter"></span> | <a id="lientype" href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></h3>
499
                            <ol>
499
                            <ol>
500
                                <li>
500
                                <li>
501
                                    <label for="mp_num_search_index">Search index: </label>
501
                                    <label for="mp_num_search_index">Search index: </label>
Lines 537-543 Link Here
537
537
538
                    <div id="mc_template" class="matchgroup" style="display:none">
538
                    <div id="mc_template" class="matchgroup" style="display:none">
539
                        <fieldset>
539
                        <fieldset>
540
                            <h3>Match check <span class="counter"></span> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></h3>
540
                            <h3>Match check <span class="counter"></span> | <a id="lientype" href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></h3>
541
                            <input type="hidden" id="mc_num_id" name="mc_num_id" value="1" />
541
                            <input type="hidden" id="mc_num_id" name="mc_num_id" value="1" />
542
                            <fieldset id="mc_num_src_c_1">
542
                            <fieldset id="mc_num_src_c_1">
543
                                <h3>Source (incoming) record check field</h3>
543
                                <h3>Source (incoming) record check field</h3>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt (-6 / +8 lines)
Lines 69-78 Link Here
69
        [% IF ( op_new || op_mod ) %]
69
        [% IF ( op_new || op_mod ) %]
70
            <form method="post" action="/cgi-bin/koha/admin/oai_sets.pl" class="validated">
70
            <form method="post" action="/cgi-bin/koha/admin/oai_sets.pl" class="validated">
71
            [% IF ( op_new ) %]
71
            [% IF ( op_new ) %]
72
                <h1>Add a new OAI set</h1>
72
                <h2>Add a new OAI set</h2>
73
                <input type="hidden" name="op" value="savenew" />
73
                <input type="hidden" name="op" value="savenew" />
74
            [% ELSIF ( op_mod ) %]
74
            [% ELSIF ( op_mod ) %]
75
                <h1>Edit OAI set '[% spec | html %]'</h1>
75
                <h2>Edit OAI set '[% spec | html %]'</h2>
76
                    <input type="hidden" name="op" value="savemod" />
76
                    <input type="hidden" name="op" value="savemod" />
77
                    <input type="hidden" name="id" value="[% id | html %]" />
77
                    <input type="hidden" name="id" value="[% id | html %]" />
78
            [% END %]
78
            [% END %]
Lines 92-101 Link Here
92
                            <li>
92
                            <li>
93
                                <label>setDescription: </label>
93
                                <label>setDescription: </label>
94
                                <textarea style="vertical-align:middle" rows="2" cols="30" name="description">[% desc.description | html %]</textarea>
94
                                <textarea style="vertical-align:middle" rows="2" cols="30" name="description">[% desc.description | html %]</textarea>
95
                                <a class="remove_description" href="#"><i class="fa fa-fw fa-trash"></i> Remove</a>
95
                                <a class="remove_description" href="#" id="lientype"><i class="fa fa-fw fa-trash"></i> Remove</a>
96
                            </li>
96
                            </li>
97
                        [% END %]
97
                        [% END %]
98
                        <li id="adddescription"><span class="label">&nbsp;</span><a href="#" class="add_description"><i class="fa fa-fw fa-plus"></i> Add description</a></li>
98
                        <li id="adddescription"><span class="label">&nbsp;</span><a href="#" class="add_description" id="lientype"><i class="fa fa-fw fa-plus"></i> Add description</a></li>
99
99
100
                    </ol>
100
                    </ol>
101
                <fieldset class="action">
101
                <fieldset class="action">
Lines 110-118 Link Here
110
            <a class="pat" id="newoaiset" href="/cgi-bin/koha/admin/oai_sets.pl?op=new"><i class="fa fa-plus"></i> New set</a>
110
            <a class="pat" id="newoaiset" href="/cgi-bin/koha/admin/oai_sets.pl?op=new"><i class="fa fa-plus"></i> New set</a>
111
        </div></div>
111
        </div></div>
112
112
113
        <h1>OAI sets</h1>
113
        <h2>OAI sets</h2>
114
        [% IF sets_loop %]
114
        [% IF sets_loop %]
115
        <div id="searchresults">
115
        <div id="searchresults">
116
        <div>
116
            <table>
117
            <table>
117
                <thead>
118
                <thead>
118
                    <tr>
119
                    <tr>
Lines 140-146 Link Here
140
                            </td>
141
                            </td>
141
                            <td>
142
                            <td>
142
                              <div class="btn-group dropup">
143
                              <div class="btn-group dropup">
143
                                <a class="btn btn-default btn-xs dropdown-toggle" id="oaisetsactions[% set.id | html %]" role="button" data-toggle="dropdown" href="#">
144
                                <a class="btn btn-default btn-xs dropdown-toggle lientype" id="oaisetsactions[% set.id | html %]" role="button" data-toggle="dropdown" href="#">
144
                                  Actions <b class="caret"></b></a>
145
                                  Actions <b class="caret"></b></a>
145
                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="oaisetsactions[% set.id | html %]">
146
                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="oaisetsactions[% set.id | html %]">
146
                                  <li><a href="/cgi-bin/koha/admin/oai_sets.pl?op=mod&amp;id=[% set.id | uri %]" id="lientype"><i class="fa fa-fw fa-pencil"></i> Edit</a></li>
147
                                  <li><a href="/cgi-bin/koha/admin/oai_sets.pl?op=mod&amp;id=[% set.id | uri %]" id="lientype"><i class="fa fa-fw fa-pencil"></i> Edit</a></li>
Lines 154-159 Link Here
154
                </tbody>
155
                </tbody>
155
            </table>
156
            </table>
156
            </div>
157
            </div>
158
            </div>
157
        [% ELSE %]
159
        [% ELSE %]
158
            <div class="dialog message"><p>There are no sets defined.</p></div>
160
            <div class="dialog message"><p>There are no sets defined.</p></div>
159
        [% END %]
161
        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-4 / +4 lines)
Lines 87-95 Patron attribute types &rsaquo; Administration &rsaquo; Koha Link Here
87
87
88
[% IF ( attribute_type_form ) %]
88
[% IF ( attribute_type_form ) %]
89
  [% IF ( edit_attribute_type ) %]
89
  [% IF ( edit_attribute_type ) %]
90
<h1>Modify patron attribute type</h1>
90
<h2>Modify patron attribute type</h2>
91
  [% ELSE %]
91
  [% ELSE %]
92
<h1>Add patron attribute type</h1>
92
<h2>Add patron attribute type</h2>
93
  [% END %]
93
  [% END %]
94
[% IF ( duplicate_code_error ) %]
94
[% IF ( duplicate_code_error ) %]
95
<div class="dialog message">Could not add patron attribute type &quot;[% duplicate_code_error | html %]&quot; 
95
<div class="dialog message">Could not add patron attribute type &quot;[% duplicate_code_error | html %]&quot; 
Lines 259-265 Patron attribute types &rsaquo; Administration &rsaquo; Koha Link Here
259
259
260
[% IF ( delete_attribute_type_form ) %]
260
[% IF ( delete_attribute_type_form ) %]
261
    <div class="dialog alert">
261
    <div class="dialog alert">
262
        <h1>Confirm deletion of patron attribute type <span class="ex">'[% code | html %]' ([% description | html %])</span>?</h1>
262
        <h2>Confirm deletion of patron attribute type <span class="ex">'[% code | html %]' ([% description | html %])</span>?</h2>
263
        <form action="[% script_name | html %]" name="Aform" method="post">
263
        <form action="[% script_name | html %]" name="Aform" method="post">
264
            <input type="hidden" name="op" value="[% confirm_op | html %]" />
264
            <input type="hidden" name="op" value="[% confirm_op | html %]" />
265
            <input type="hidden" name="code" value="[% code | html %]" />
265
            <input type="hidden" name="code" value="[% code | html %]" />
Lines 279-285 Patron attribute types &rsaquo; Administration &rsaquo; Koha Link Here
279
</div></div>
279
</div></div>
280
280
281
281
282
<h1>Patron attribute types</h1>
282
<h2>Patron attribute types</h2>
283
[% IF ( added_attribute_type ) %]
283
[% IF ( added_attribute_type ) %]
284
<div class="dialog message">Added patron attribute type &quot;[% added_attribute_type | html %]&quot;</div>
284
<div class="dialog message">Added patron attribute type &quot;[% added_attribute_type | html %]&quot;</div>
285
[% END %]
285
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt (-4 / +4 lines)
Lines 38-44 Link Here
38
<div class="main container-fluid">
38
<div class="main container-fluid">
39
    <div class="row">
39
    <div class="row">
40
        <div class="col-sm-10 col-sm-push-2">
40
        <div class="col-sm-10 col-sm-push-2">
41
            <div class="col-sm-6">
41
            <div class="col-sm-12">
42
                [% IF result.code != 201 && result.msg %]
42
                [% IF result.code != 201 && result.msg %]
43
                    <div class="dialog alert" role="alert">
43
                    <div class="dialog alert" role="alert">
44
                        [% result.msg | html %]
44
                        [% result.msg | html %]
Lines 110-116 Link Here
110
                            </ol>
110
                            </ol>
111
                            <fieldset class="action">
111
                            <fieldset class="action">
112
                                <input type="hidden" name="op" value="save" />
112
                                <input type="hidden" name="op" value="save" />
113
                                <input type="submit" value="Save" />
113
                                <input type="submit" class="principal" value="Save" />
114
                            </fieldset>
114
                            </fieldset>
115
                        </fieldset>
115
                        </fieldset>
116
                    </form>
116
                    </form>
Lines 134-140 Link Here
134
                                </ol>
134
                                </ol>
135
                                <fieldset class="action">
135
                                <fieldset class="action">
136
                                    <input type="hidden" name="op" value="reset" />
136
                                    <input type="hidden" name="op" value="reset" />
137
                                    <input type="submit" value="Reset your token" />
137
                                    <input type="submit" class="principal" value="Reset your token" />
138
                                </fieldset>
138
                                </fieldset>
139
                            </fieldset>
139
                            </fieldset>
140
                        </form>
140
                        </form>
Lines 154-160 Link Here
154
                                </ol>
154
                                </ol>
155
                                <fieldset class="action">
155
                                <fieldset class="action">
156
                                    <input type="hidden" name="op" value="send" />
156
                                    <input type="hidden" name="op" value="send" />
157
                                    <input type="submit" value="Send to Mana KB" />
157
                                    <input type="submit" class="principal" value="Send to Mana KB" />
158
                                </fieldset>
158
                                </fieldset>
159
                            </fieldset>
159
                            </fieldset>
160
                        </form>
160
                        </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transfer_limits.tt (-3 / +3 lines)
Lines 76-87 Link Here
76
                </p>
76
                </p>
77
77
78
                <p class="help">Check the boxes for the libraries you allow your items to be transferred to.</p>
78
                <p class="help">Check the boxes for the libraries you allow your items to be transferred to.</p>
79
                <fieldset>
79
                <fieldset class="rows">
80
                    <a id="check-all" class="limit-action" href="#"><i class="fa fa-check"></i> Check all</a>
80
                    <a id="check-all" class="limit-action" href="#"><i class="fa fa-check"></i> Check all</a>
81
                    |
81
                    |
82
                    <a id="uncheck-all" class="limit-action" href="#"><i class="fa fa-remove"></i> Uncheck all</a>
82
                    <a id="uncheck-all" class="limit-action lientype" href="#"><i class="fa fa-remove"></i> Uncheck all</a>
83
                    |
83
                    |
84
                    <a href="/cgi-bin/koha/admin/branch_transfer_limits.pl">Switch to basic editor</a>
84
                    <a href="/cgi-bin/koha/admin/branch_transfer_limits.pl" id="lientype">Switch to basic editor</a>
85
                </fieldset>
85
                </fieldset>
86
86
87
                <table id="transfer_limits" class="table table-striped table-bordered table-hover table-condensed">
87
                <table id="transfer_limits" class="table table-striped table-bordered table-hover table-condensed">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt (-3 / +3 lines)
Lines 71-77 Link Here
71
[% END %]
71
[% END %]
72
72
73
    <form id="category_form" action="/cgi-bin/koha/admin/usage_statistics.pl" method="post">
73
    <form id="category_form" action="/cgi-bin/koha/admin/usage_statistics.pl" method="post">
74
        <h1>Modify the statistics you share with the Koha community</h1>
74
        <h2>Modify the statistics you share with the Koha community</h2>
75
        <div class="row">
75
        <div class="row">
76
            <div class="col-xs-12 col-sm-6">
76
            <div class="col-xs-12 col-sm-6">
77
                <fieldset class="rows">
77
                <fieldset class="rows">
Lines 212-218 Link Here
212
212
213
                        <li id="libraries_info">
213
                        <li id="libraries_info">
214
                            <fieldset class="rows">
214
                            <fieldset class="rows">
215
                            <legend>Libraries</legend>
215
                            <h3>Libraries</h3>
216
                            <ol>
216
                            <ol>
217
                                [% FOR l IN libraries %]
217
                                [% FOR l IN libraries %]
218
                                <li>
218
                                <li>
Lines 253-259 Link Here
253
253
254
        <fieldset class="action">
254
        <fieldset class="action">
255
            <input type="hidden" name="op" value="update" />
255
            <input type="hidden" name="op" value="update" />
256
            <input type="submit" value="Update your statistics usage" />
256
            <input type="submit" class="principal" value="Update your statistics usage" />
257
            <a class="cancel" href="/cgi-bin/koha/admin/usage_statistics.pl">Cancel</a>
257
            <a class="cancel" href="/cgi-bin/koha/admin/usage_statistics.pl">Cancel</a>
258
        </fieldset>
258
        </fieldset>
259
    </form>
259
    </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt (-1 / +1 lines)
Lines 241-247 Link Here
241
            <td>[% loo.attributes | html %]</td>
241
            <td>[% loo.attributes | html %]</td>
242
            <td>
242
            <td>
243
                <div class="btn-group dropup">
243
                <div class="btn-group dropup">
244
                    <a class="btn btn-default btn-xs dropdown-toggle" id="reportactions[% savedreport.id | html %]" role="button" data-toggle="dropdown" href="#">
244
                    <a class="btn btn-default btn-xs dropdown-toggle lientype" id="reportactions[% savedreport.id | html %]" role="button" data-toggle="dropdown" href="#">
245
                        Actions <b class="caret"></b>
245
                        Actions <b class="caret"></b>
246
                    </a>
246
                    </a>
247
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reportactions[% savedreport.id | html %]">
247
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reportactions[% savedreport.id | html %]">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt (-1 / +1 lines)
Lines 43-49 Link Here
43
43
44
    [% INCLUDE 'authorities-toolbar.inc' %]
44
    [% INCLUDE 'authorities-toolbar.inc' %]
45
45
46
    <h1>Authorities</h1>
46
    <h2>Authorities</h2>
47
47
48
    <div id="merge_in_progress"></div>
48
    <div id="merge_in_progress"></div>
49
49
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt (-2 / +5 lines)
Lines 64-74 Link Here
64
64
65
65
66
            [% IF ( unknownauthid ) %]
66
            [% IF ( unknownauthid ) %]
67
                <h1>Authority does not exist</h1>
67
                <h2>Authority does not exist</h2>
68
                <div class="dialog message">The authority record you requested does not exist ([% errauthid | html %]).</div>
68
                <div class="dialog message">The authority record you requested does not exist ([% errauthid | html %]).</div>
69
            [% ELSE %]
69
            [% ELSE %]
70
70
71
                <h1>Authority #[% authid | html %] ([% authtypetext | html %])</h1>
71
                <h2>Authority #[% authid | html %] ([% authtypetext | html %])</h2>
72
72
73
                <div id="action">
73
                <div id="action">
74
                    [% IF count %]
74
                    [% IF count %]
Lines 129-134 Link Here
129
                            </div> <!-- /.tab-pane -->
129
                            </div> <!-- /.tab-pane -->
130
                        [% END # /FOREACH BIG_LOO %]
130
                        [% END # /FOREACH BIG_LOO %]
131
                    </div> <!-- /.tab-content -->
131
                    </div> <!-- /.tab-content -->
132
            </fieldset>
133
            </div>
134
            </div>
132
                </div> <!-- /#authoritiestabs -->
135
                </div> <!-- /#authoritiestabs -->
133
            [% END # /IF ( unknownauthid ) %]
136
            [% END # /IF ( unknownauthid ) %]
134
        </div> <!-- /.col-md-8 col-md-offset-2 -->
137
        </div> <!-- /.col-md-8 col-md-offset-2 -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-1 / +1 lines)
Lines 105-111 Link Here
105
    [% IF ( CAN_user_editauthorities ) %]
105
    [% IF ( CAN_user_editauthorities ) %]
106
      <td>
106
      <td>
107
      <div class="btn-group dropup">
107
      <div class="btn-group dropup">
108
        <a class="btn btn-default btn-xs dropdown-toggle" id="authactions[% resul.authid | html %]" role="button" data-toggle="dropdown" href="#">
108
        <a class="btn btn-default btn-xs dropdown-toggle lientype" id="authactions[% resul.authid | html %]" role="button" data-toggle="dropdown" href="#">
109
        Actions <b class="caret"></b></a>
109
        Actions <b class="caret"></b></a>
110
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid | html %]">
110
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid | html %]">
111
          <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
111
          <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt (-3 / +3 lines)
Lines 58-76 Link Here
58
        <div class="col-sm-10 col-sm-push-2">
58
        <div class="col-sm-10 col-sm-push-2">
59
            <main>
59
            <main>
60
60
61
                <h1>
61
	[% INCLUDE 'cat-toolbar.inc' %]
62
                <h2>
62
                    [% IF ( unknownbiblionumber ) %]
63
                    [% IF ( unknownbiblionumber ) %]
63
                        Unknown record
64
                        Unknown record
64
                    [% ELSE %]
65
                    [% ELSE %]
65
                        ISBD details for [% INCLUDE 'biblio-title-head.inc' %]
66
                        ISBD details for [% INCLUDE 'biblio-title-head.inc' %]
66
                    [% END %]
67
                    [% END %]
67
                </h1>
68
                </h2>
68
69
69
[% IF ( unknownbiblionumber ) %]
70
[% IF ( unknownbiblionumber ) %]
70
    <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
71
    <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
71
[% ELSE %]
72
[% ELSE %]
72
73
73
	[% INCLUDE 'cat-toolbar.inc' %]
74
    [% IF ( ocoins ) %]
74
    [% IF ( ocoins ) %]
75
    <!-- COinS / OpenURL -->
75
    <!-- COinS / OpenURL -->
76
    <span class="Z3988" title="[% ocoins | html %]"></span>
76
    <span class="Z3988" title="[% ocoins | html %]"></span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt (-2 / +4 lines)
Lines 60-73 Link Here
60
            <main>
60
            <main>
61
61
62
[% IF ( unknownbiblionumber ) %]
62
[% IF ( unknownbiblionumber ) %]
63
    <h1>Unknown record</h1>
63
    <h2>Unknown record</h2>
64
  <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
64
  <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
65
[% ELSE %]
65
[% ELSE %]
66
66
67
[% INCLUDE 'cat-toolbar.inc' %]
67
[% INCLUDE 'cat-toolbar.inc' %]
68
68
69
[% UNLESS ( popup ) %]
69
[% UNLESS ( popup ) %]
70
    <h1>MARC record: [% biblionumber | html %]  ( [% bibliotitle | html %] )</h1>
70
    <h2>MARC record: [% biblionumber | html %]  ( [% bibliotitle | html %] )</h2>
71
[% END %]
71
[% END %]
72
72
73
    <p><strong>With framework : <select name="Frameworks" id="Frameworks">
73
    <p><strong>With framework : <select name="Frameworks" id="Frameworks">
Lines 125-130 Link Here
125
[% END %]
125
[% END %]
126
126
127
    <div id="bibliotabs" class="toptabs">
127
    <div id="bibliotabs" class="toptabs">
128
    <fieldset id="searchresults">
128
        <ul class="nav nav-tabs" role="tablist">
129
        <ul class="nav nav-tabs" role="tablist">
129
            [% IF ( tab0XX ) %]
130
            [% IF ( tab0XX ) %]
130
                <li role="presentation"><a href="#tab0XX" aria-controls="tab0XX" role="tab" data-toggle="tab">&#48;</a></li>
131
                <li role="presentation"><a href="#tab0XX" aria-controls="tab0XX" role="tab" data-toggle="tab">&#48;</a></li>
Lines 200-205 Link Here
200
                </div>
201
                </div>
201
            [% END %]
202
            [% END %]
202
        </div> <!-- /.tab-content -->
203
        </div> <!-- /.tab-content -->
204
        </fieldset>
203
    </div> <!-- /#bibliotabs -->
205
    </div> <!-- /#bibliotabs -->
204
206
205
            </main>
207
            </main>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +3 lines)
Lines 277-282 Link Here
277
</div>
277
</div>
278
278
279
<div id="bibliodetails" class="toptabs">
279
<div id="bibliodetails" class="toptabs">
280
<fieldset id="searchresults">
280
281
281
<ul class="nav nav-tabs" role="tablist">
282
<ul class="nav nav-tabs" role="tablist">
282
    [% IF (SeparateHoldings) %]
283
    [% IF (SeparateHoldings) %]
Lines 1017-1022 Note that permanent location is a code, and location may be an authval. Link Here
1017
[% END %]
1018
[% END %]
1018
1019
1019
</div><!-- /tab-content -->
1020
</div><!-- /tab-content -->
1021
</fieldset>
1020
</div><!-- /bibliodetails -->
1022
</div><!-- /bibliodetails -->
1021
1023
1022
<div id="export" style="margin-top: 1em;">
1024
<div id="export" style="margin-top: 1em;">
Lines 1029-1035 Note that permanent location is a code, and location may be an authval. Link Here
1029
        <option value="marcxml">MARCXML</option>
1031
        <option value="marcxml">MARCXML</option>
1030
        <option value="marc8">MARC (non-Unicode/MARC-8)</option>
1032
        <option value="marc8">MARC (non-Unicode/MARC-8)</option>
1031
        <option value="utf8">MARC (Unicode/UTF-8)</option>    </select>
1033
        <option value="utf8">MARC (Unicode/UTF-8)</option>    </select>
1032
        <input type="submit" name="save" value="Download record" /></td>
1034
        <input type="submit" class="principal" name="save" value="Download record" /></td>
1033
  </tr>
1035
  </tr>
1034
  <tr><td>
1036
  <tr><td>
1035
    <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
1037
    <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt (-1 / +1 lines)
Lines 47-53 Link Here
47
        <div class="col-sm-10 col-sm-push-2">
47
        <div class="col-sm-10 col-sm-push-2">
48
            <main>
48
            <main>
49
49
50
<h1>Checkout history for [% INCLUDE 'biblio-title.inc' %]</h1>
50
<h2>Checkout history for [% INCLUDE 'biblio-title.inc' %]</h2>
51
[% IF biblio.author %]<h3>by [% biblio.author | html %]</h3>[% END %]
51
[% IF biblio.author %]<h3>by [% biblio.author | html %]</h3>[% END %]
52
52
53
[% SET show_patron_column = Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
53
[% SET show_patron_column = Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-2 / +2 lines)
Lines 444-450 Link Here
444
              .append(exportButton);
444
              .append(exportButton);
445
445
446
            var results_heading = $('<div>').addClass('results-heading')
446
            var results_heading = $('<div>').addClass('results-heading')
447
                .append("<h1>" + _("Item search results") + "</h1>")
447
                .append("<h2>" + _("Item search results") + "</h2>")
448
                .append($('<p>').append(advSearchLink))
448
                .append($('<p>').append(advSearchLink))
449
                .append($('<p>').append(editSearchLink))
449
                .append($('<p>').append(editSearchLink))
450
                .append(exportLinks);
450
                .append(exportLinks);
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" title="Add a new field"><i class="fa fa-plus"></i> ' + NEW_FIELD + '</a>');
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>');
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/catalogue/moredetail.tt (-2 / +2 lines)
Lines 47-55 Link Here
47
        <div class="col-sm-10 col-sm-push-2">
47
        <div class="col-sm-10 col-sm-push-2">
48
            <main>
48
            <main>
49
49
50
            <h1>Item details for [% INCLUDE 'biblio-title-head.inc' %]</h1>
51
52
[% INCLUDE 'cat-toolbar.inc' %]
50
[% INCLUDE 'cat-toolbar.inc' %]
51
            <h2>Item details for [% INCLUDE 'biblio-title-head.inc' %]</h2>
52
53
53
54
<div id="catalogue_detail_biblio">
54
<div id="catalogue_detail_biblio">
55
55
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-16 / +16 lines)
Lines 52-58 Link Here
52
        <div class="col-sm-10 col-sm-push-2">
52
        <div class="col-sm-10 col-sm-push-2">
53
            <main>
53
            <main>
54
54
55
            <h1>Search results</h1>
55
            <h2>Search results</h2>
56
56
57
                [% IF ( outer_sup_results_loop ) %]
57
                [% IF ( outer_sup_results_loop ) %]
58
                    <div class="row">
58
                    <div class="row">
Lines 76-82 Link Here
76
                    <h3>
76
                    <h3>
77
                        [% total | html %] result(s) found [% IF ( query_desc ) %]for <span class="results_query_desc">'[% query_desc | html %]'</span>[% END %][% IF limit_desc  %]&nbsp;with limit(s): <span class="results_limit_desc">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].
77
                        [% total | html %] result(s) found [% IF ( query_desc ) %]for <span class="results_query_desc">'[% query_desc | html %]'</span>[% END %][% IF limit_desc  %]&nbsp;with limit(s): <span class="results_limit_desc">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].
78
                    </h3>
78
                    </h3>
79
                    <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | $raw %]">Edit this search</a>
79
                    <a id="lientype" href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | $raw %]">Edit this search</a>
80
80
81
                    <div class="searchheader" id="searchheader">
81
                    <div class="searchheader" id="searchheader">
82
                        <div id="selection_ops">
82
                        <div id="selection_ops">
Lines 130-140 Link Here
130
                                        <li role="separator" class="divider"></li>
130
                                        <li role="separator" class="divider"></li>
131
                                        [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %]
131
                                        [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %]
132
                                            <li>
132
                                            <li>
133
                                                <a href="#" class="addtolist morelists">More lists</a>
133
                                                <a  id="lientype" href="#" class="addtolist morelists">More lists</a>
134
                                            </li>
134
                                            </li>
135
                                        [% END %]
135
                                        [% END %]
136
                                        <li>
136
                                        <li>
137
                                            <a href="#" class="addtolist newlist">New list</a>
137
                                            <a  id="lientype" href="#" class="addtolist newlist">New list</a>
138
                                        </li>
138
                                        </li>
139
                                    </ul>
139
                                    </ul>
140
                                </div>
140
                                </div>
Lines 144-150 Link Here
144
                                [% IF ( holdfor or holdforclub ) %]
144
                                [% IF ( holdfor or holdforclub ) %]
145
                                    <div id="placeholdc" class="btn-group">
145
                                    <div id="placeholdc" class="btn-group">
146
                                        <button class="btn btn-default btn-xs placehold" id="lientype"><i class="fa fa-sticky-note-o"></i> Place hold</button>
146
                                        <button class="btn btn-default btn-xs placehold" id="lientype"><i class="fa fa-sticky-note-o"></i> Place hold</button>
147
                                        <button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
147
                                        <button class="btn btn-default btn-xs dropdown-toggle" id="lientype" data-toggle="dropdown">
148
                                        <span class="caret"></span>
148
                                        <span class="caret"></span>
149
                                        </button>
149
                                        </button>
150
                                        <ul class="dropdown-menu">
150
                                        <ul class="dropdown-menu">
Lines 311-317 Link Here
311
                                                [% END %] Library default: [% Koha.Preference('numSearchResults') | html %]
311
                                                [% END %] Library default: [% Koha.Preference('numSearchResults') | html %]
312
                                            </a></li>
312
                                            </a></li>
313
                                        [% END %]
313
                                        [% END %]
314
                                        <li><a href="/cgi-bin/koha/catalogue/search.pl?count=20[% PROCESS sort_search_query %]">[% IF results_per_page == '20' %]<i class="fa fa-check"></i>[% END %] 20</a></li>
314
                                        <li><a results_batch_opshref="/cgi-bin/koha/catalogue/search.pl?count=20[% PROCESS sort_search_query %]">[% IF results_per_page == '20' %]<i class="fa fa-check"></i>[% END %] 20</a></li>
315
                                        <li><a href="/cgi-bin/koha/catalogue/search.pl?count=40[% PROCESS sort_search_query %]" id="resultsperpage-40">[% IF results_per_page == '40' %]<i class="fa fa-check"></i>[% END %] 40</a></li>
315
                                        <li><a href="/cgi-bin/koha/catalogue/search.pl?count=40[% PROCESS sort_search_query %]" id="resultsperpage-40">[% IF results_per_page == '40' %]<i class="fa fa-check"></i>[% END %] 40</a></li>
316
                                        <li><a href="/cgi-bin/koha/catalogue/search.pl?count=60[% PROCESS sort_search_query %]" id="resultsperpage-60">[% IF results_per_page == '60' %]<i class="fa fa-check"></i>[% END %] 60</a></li>
316
                                        <li><a href="/cgi-bin/koha/catalogue/search.pl?count=60[% PROCESS sort_search_query %]" id="resultsperpage-60">[% IF results_per_page == '60' %]<i class="fa fa-check"></i>[% END %] 60</a></li>
317
                                        <li><a href="/cgi-bin/koha/catalogue/search.pl?count=80[% PROCESS sort_search_query %]" id="resultsperpage-80">[% IF results_per_page == '80' %]<i class="fa fa-check"></i>[% END %] 80</a></li>
317
                                        <li><a href="/cgi-bin/koha/catalogue/search.pl?count=80[% PROCESS sort_search_query %]" id="resultsperpage-80">[% IF results_per_page == '80' %]<i class="fa fa-check"></i>[% END %] 80</a></li>
Lines 335-343 Link Here
335
                                No results match your search [% IF ( query_desc ) %]for <span style="font-weight: bold;">'[% query_desc | html %]'</span>[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s): <span style="font-weight: bold;">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].
335
                                No results match your search [% IF ( query_desc ) %]for <span style="font-weight: bold;">'[% query_desc | html %]'</span>[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s): <span style="font-weight: bold;">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].
336
                            </p>
336
                            </p>
337
                            [% IF CAN_user_acquisition_order_manage && searchtoorder_basketno && searchtoorder_vendorid %][%# Coming from the basket or vendor view %]
337
                            [% IF CAN_user_acquisition_order_manage && searchtoorder_basketno && searchtoorder_vendorid %][%# Coming from the basket or vendor view %]
338
                                <p><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% searchtoorder_basketno | uri %]">View basket<a></p>
338
                                <p><a id="lientype" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% searchtoorder_basketno | uri %]">View basket<a></p>
339
                            [% END %]
339
                            [% END %]
340
                            <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | $raw %]">Edit this search</a>
340
                            <a id="lientype" href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | $raw %]">Edit this search</a>
341
                        [% ELSE %]
341
                        [% ELSE %]
342
                            <p>You did not specify any search criteria.</p>
342
                            <p>You did not specify any search criteria.</p>
343
                        [% END %]
343
                        [% END %]
Lines 352-358 Link Here
352
                <!-- Search Results Table -->
352
                <!-- Search Results Table -->
353
                [% IF ( total ) %]
353
                [% IF ( total ) %]
354
                    [% IF ( scan ) %]
354
                    [% IF ( scan ) %]
355
                        <h1>Scan index:</h1>
355
                        <h2>Scan index:</h2>
356
                        <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
356
                        <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
357
                            <table>
357
                            <table>
358
                                <tr>
358
                                <tr>
Lines 539-570 Link Here
539
539
540
                                                    [% IF Koha.Preference('intranetbookbag') == 1 %]
540
                                                    [% IF Koha.Preference('intranetbookbag') == 1 %]
541
                                                        [% IF ( SEARCH_RESULT.incart ) %]
541
                                                        [% IF ( SEARCH_RESULT.incart ) %]
542
                                                            | <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber | html %]" href="#">In your cart</a> <a class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a>
542
                                                            | <a id="lientype" class="addtocart" id="cart[% SEARCH_RESULT.biblionumber | html %]" href="#">In your cart</a> <a class="cartRemove lientype" id="cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a>
543
                                                        [% ELSE %]
543
                                                        [% ELSE %]
544
                                                            | <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber | html %]" href="#">Add to cart</a> <a style="display:none;" class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a>
544
                                                            | <a id="lientype" class="addtocart" id="cart[% SEARCH_RESULT.biblionumber | html %]" href="#">Add to cart</a> <a style="display:none;" class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a>
545
                                                        [% END %]
545
                                                        [% END %]
546
                                                    [% END # / IF intranetbookbag %]
546
                                                    [% END # / IF intranetbookbag %]
547
547
548
                                                    [% IF Koha.Preference('ArticleRequests') %]
548
                                                    [% IF Koha.Preference('ArticleRequests') %]
549
                                                        | <a id="requst_article_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Request article</a>
549
                                                        | <a class="lientype" id="requst_article_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Request article</a>
550
                                                    [% END %]
550
                                                    [% END %]
551
551
552
                                                    [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
552
                                                    [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
553
                                                        | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Edit record</a>
553
                                                        | <a id="lientype" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Edit record</a>
554
                                                    [% END %]
554
                                                    [% END %]
555
                                                    [% IF ( CAN_user_editcatalogue_edit_items ) %]
555
                                                    [% IF ( CAN_user_editcatalogue_edit_items ) %]
556
                                                        | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Edit items</a>
556
                                                        | <a id="lientype" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Edit items</a>
557
                                                    [% END %]
557
                                                    [% END %]
558
558
559
                                                    [% IF ( CAN_user_acquisition_order_manage ) %]
559
                                                    [% IF ( CAN_user_acquisition_order_manage ) %]
560
                                                        [% IF ( searchtoorder_basketno && searchtoorder_vendorid ) %]
560
                                                        [% IF ( searchtoorder_basketno && searchtoorder_vendorid ) %]
561
                                                            | <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% searchtoorder_vendorid | uri %]&amp;basketno=[% searchtoorder_basketno | uri %]&amp;biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Add order</a>
561
                                                            | <a id="lientype" href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% searchtoorder_vendorid | uri %]&amp;basketno=[% searchtoorder_basketno | uri %]&amp;biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Add order</a>
562
                                                        [% END %]
562
                                                        [% END %]
563
                                                    [% END %]
563
                                                    [% END %]
564
564
565
                                                    [% IF ( OPACBaseURL ) %]
565
                                                    [% IF ( OPACBaseURL ) %]
566
                                                        <span class="view-in-opac">
566
                                                        <span class="view-in-opac">
567
                                                            | <a href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" target="_blank">OPAC view</a>
567
                                                            | <a id="lientype" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" target="_blank">OPAC view</a>
568
                                                        </span>
568
                                                        </span>
569
                                                    [% END %]
569
                                                    [% END %]
570
                                                </p> <!-- /.holds -->
570
                                                </p> <!-- /.holds -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt (-1 / +1 lines)
Lines 45-51 Link Here
45
        <div class="col-sm-10 col-sm-push-2">
45
        <div class="col-sm-10 col-sm-push-2">
46
            <main>
46
            <main>
47
47
48
                <h1>Club enrollments for <em>[% club.name | html %]</em></h1>
48
                <h2>Club enrollments for <em>[% club.name | html %]</em></h2>
49
49
50
                <table id="enrollments-table">
50
                <table id="enrollments-table">
51
                    <thead>
51
                    <thead>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt (-7 / +7 lines)
Lines 57-73 Link Here
57
                <input type="hidden" name="id" value="[% club.id | html %]" />
57
                <input type="hidden" name="id" value="[% club.id | html %]" />
58
                <input type="hidden" name="club_template_id" value="[% club_template.id | html %]" />
58
                <input type="hidden" name="club_template_id" value="[% club_template.id | html %]" />
59
59
60
                <fieldset class="rows">
60
                        <h2>
61
62
                    <legend>
63
                        <h1>
64
                            [% IF club %]
61
                            [% IF club %]
65
                                Modify club <em>[% club.name | html %]</em>
62
                                Modify club <em>[% club.name | html %]</em>
66
                            [% ELSE %]
63
                            [% ELSE %]
67
                                Create a new <em>[% club_template.name | html %]</em> club
64
                                Create a new <em>[% club_template.name | html %]</em> club
68
                            [% END %]
65
                            [% END %]
69
                        </h1>
66
                        </h2>
70
                    </legend>
67
68
                <fieldset class="rows">
69
70
71
71
72
                    <ol>
72
                    <ol>
73
                        <li>
73
                        <li>
Lines 145-151 Link Here
145
                </fieldset>
145
                </fieldset>
146
146
147
                <fieldset class="action">
147
                <fieldset class="action">
148
                    <input type="submit" value="Save" />
148
                    <input type="submit" class="principal" value="Save" />
149
                    <a href="clubs.pl" class="cancel">Cancel</a>
149
                    <a href="clubs.pl" class="cancel">Cancel</a>
150
                </fieldset>
150
                </fieldset>
151
            </form>
151
            </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (-28 / +31 lines)
Lines 43-49 Link Here
43
        <div class="col-sm-10 col-sm-push-2">
43
        <div class="col-sm-10 col-sm-push-2">
44
            <main>
44
            <main>
45
45
46
                <h1>Patron clubs</h1>
46
                <div id="toolbar" class="btn-toolbar">
47
                    [% IF CAN_user_clubs_edit_templates %]
48
                    <div class="btn-group">
49
                            <a class="btn btn-default pat" href="templates-add-modify.pl"><i class="fa fa-plus"></i> New club template</a>
50
                    </div>
51
                    [% END %]
52
53
                    [% IF CAN_user_clubs_edit_clubs %]
54
                        <div class="btn-group">
55
                            [% IF club_templates.count %]
56
                                <button class="btn btn-default dropdown-toggle pat" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button>
57
                            [% ELSE %]
58
                                <button disabled="disabled" class="btn btn-default dropdown-toggle pat" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button>
59
                            [% END %]
60
                            <ul class="dropdown-menu">
61
                                [% FOREACH t IN club_templates %]
62
                                    <li><a href="/cgi-bin/koha/clubs/clubs-add-modify.pl?club_template_id=[% t.id | uri %]">[% t.name | html %]</a></li>
63
                                [% END %]
64
                            </ul>
65
                        </div>
66
                    [% END %]
67
                </div>
68
69
70
                <h2>Patron clubs</h2>
47
71
48
                [% IF club_template %]
72
                [% IF club_template %]
49
                    <div class="dialog message">
73
                    <div class="dialog message">
Lines 63-78 Link Here
63
                    </div>
87
                    </div>
64
                [% END %]
88
                [% END %]
65
89
90
            <fieldset id="rows">
66
                <h3>Club templates</h3>
91
                <h3>Club templates</h3>
67
92
68
                [% IF CAN_user_clubs_edit_templates %]
69
                    <div class="btn-toolbar">
70
                        <div class="btn-group">
71
                            <a class="btn btn-default" href="templates-add-modify.pl"><i class="fa fa-plus"></i> New club template</a>
72
                        </div>
73
                    </div>
74
                [% END %]
75
76
                [% IF club_templates.count %]
93
                [% IF club_templates.count %]
77
                    <table id="club-templates-table">
94
                    <table id="club-templates-table">
78
                        <thead>
95
                        <thead>
Lines 107-116 Link Here
107
                                    <td>[% Branches.GetName( t.branchcode ) | html %]</td>
124
                                    <td>[% Branches.GetName( t.branchcode ) | html %]</td>
108
                                    <td class="actions">
125
                                    <td class="actions">
109
                                        [% IF CAN_user_clubs_edit_templates %]
126
                                        [% IF CAN_user_clubs_edit_templates %]
110
                                            <a class="btn btn-xs btn-default" style="white-space:nowrap"  href="/cgi-bin/koha/clubs/templates-add-modify.pl?id=[% t.id | html %]">
127
                                            <a id="lientype" class="btn btn-xs btn-default" style="white-space:nowrap"  href="/cgi-bin/koha/clubs/templates-add-modify.pl?id=[% t.id | html %]">
111
                                                <i class="fa fa-pencil"></i> Edit
128
                                                <i class="fa fa-pencil"></i> Edit
112
                                            </a>
129
                                            </a>
113
                                            <a class="btn btn-xs btn-default delete_template" href="#" data-id="[% t.id | html %]" data-name="[% t.name | html %]">
130
                                            <a id="lientype" class="btn btn-xs btn-default delete_template" href="#" data-id="[% t.id | html %]" data-name="[% t.name | html %]">
114
                                                <i class="fa fa-trash"></i> Delete
131
                                                <i class="fa fa-trash"></i> Delete
115
                                            </a>
132
                                            </a>
116
                                        [% END %]
133
                                        [% END %]
Lines 122-147 Link Here
122
                [% ELSE %]
139
                [% ELSE %]
123
                    <div class="dialog message">No club templates defined.</div>
140
                    <div class="dialog message">No club templates defined.</div>
124
                [% END %]
141
                [% END %]
142
            </fieldset>
125
143
144
            <fieldset id="rows">
126
                <h3>Clubs</h3>
145
                <h3>Clubs</h3>
127
146
128
                [% IF CAN_user_clubs_edit_clubs %]
129
                    <div class="btn-toolbar">
130
                        <div class="btn-group">
131
                            [% IF club_templates.count %]
132
                                <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button>
133
                            [% ELSE %]
134
                                <button disabled="disabled" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button>
135
                            [% END %]
136
                            <ul class="dropdown-menu">
137
                                [% FOREACH t IN club_templates %]
138
                                    <li><a href="/cgi-bin/koha/clubs/clubs-add-modify.pl?club_template_id=[% t.id | uri %]">[% t.name | html %]</a></li>
139
                                [% END %]
140
                            </ul>
141
                        </div>
142
                    </div>
143
                [% END %]
144
145
                [% IF clubs.count %]
147
                [% IF clubs.count %]
146
                    [% INCLUDE 'clubs-table.inc' %]
148
                    [% INCLUDE 'clubs-table.inc' %]
147
                [% ELSE %]
149
                [% ELSE %]
Lines 151-156 Link Here
151
                        <div class="dialog message">No clubs defined. A club template must be defined before a club can be defined.</div>
153
                        <div class="dialog message">No clubs defined. A club template must be defined before a club can be defined.</div>
152
                    [% END %]
154
                    [% END %]
153
                [% END %]
155
                [% END %]
156
            </fieldset>
154
157
155
            </main>
158
            </main>
156
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
159
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt (-2 / +2 lines)
Lines 21-27 Link Here
21
                    <td>[% e.date_enrolled | $KohaDates %]</td>
21
                    <td>[% e.date_enrolled | $KohaDates %]</td>
22
                    [% IF CAN_user_clubs_enroll %]
22
                    [% IF CAN_user_clubs_enroll %]
23
                        <td>
23
                        <td>
24
                            <button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id | html %] )">
24
                            <button id="lientype" class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id | html %] )">
25
                                <i class="fa fa-remove"></i> Cancel enrollment
25
                                <i class="fa fa-remove"></i> Cancel enrollment
26
                            </button>
26
                            </button>
27
                        </td>
27
                        </td>
Lines 52-58 Link Here
52
                    <td>[% c.description | html %]</td>
52
                    <td>[% c.description | html %]</td>
53
                    [% IF CAN_user_clubs_enroll %]
53
                    [% IF CAN_user_clubs_enroll %]
54
                        <td class="action">
54
                        <td class="action">
55
                            <button class="btn btn-xs btn-default" onclick="loadEnrollmentForm([% c.id | html %])">
55
                            <button class="btn btn-xs btn-default" id="lientype" onclick="loadEnrollmentForm([% c.id | html %])">
56
                                <i class="fa fa-plus"></i> Enroll
56
                                <i class="fa fa-plus"></i> Enroll
57
                            </button>
57
                            </button>
58
                        </td>
58
                        </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt (-3 / +3 lines)
Lines 1-9 Link Here
1
[% USE AuthorisedValues %]
1
[% USE AuthorisedValues %]
2
[% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
2
[% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
3
3
4
<h1>
4
<h2>
5
    Enroll in <em>[% club.name | html %]</em>
5
    Enroll in <em>[% club.name | html %]</em>
6
</h1>
6
</h2>
7
7
8
<div class="container">
8
<div class="container">
9
    <form id="patron-enrollment-form">
9
    <form id="patron-enrollment-form">
Lines 28-34 Link Here
28
                [% END %]
28
                [% END %]
29
29
30
                <li>
30
                <li>
31
                    <a href="#" class="btn btn-sm btn-default" onclick="addEnrollment(); return false;">Finish enrollment</a>
31
                    <a href="#" class="btn btn-sm btn-default principal" onclick="addEnrollment(); return false;">Finish enrollment</a>
32
                    <a class="cancel" href="#" onclick="showClubs(); return false;">Cancel</a>
32
                    <a class="cancel" href="#" onclick="showClubs(); return false;">Cancel</a>
33
                </li>
33
                </li>
34
            </ol>
34
            </ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt (-9 / +9 lines)
Lines 60-72 Link Here
60
            <form method="post" class="validated">
60
            <form method="post" class="validated">
61
                <input type="hidden" name="id" value="[% club_template.id | html %]" />
61
                <input type="hidden" name="id" value="[% club_template.id | html %]" />
62
62
63
                <h1>
63
                <h2>
64
                    [% IF club_template %]
64
                    [% IF club_template %]
65
                        Modify club template <em>[% club_template.name | html %]</em>
65
                        Modify club template <em>[% club_template.name | html %]</em>
66
                    [% ELSE %]
66
                    [% ELSE %]
67
                        Create a new club template
67
                        Create a new club template
68
                    [% END %]
68
                    [% END %]
69
                </h1>
69
                </h2>
70
70
71
71
72
                <fieldset class="rows">
72
                <fieldset class="rows">
Lines 115-121 Link Here
115
                </fieldset>
115
                </fieldset>
116
116
117
                <fieldset class="rows">
117
                <fieldset class="rows">
118
                    <legend>Club fields:</legend>
118
                    <h3>Club fields</h3>
119
                    <p><span class="hint">These fields will be used in the creation of clubs based on this template</span></p>
119
                    <p><span class="hint">These fields will be used in the creation of clubs based on this template</span></p>
120
                    <div id="club-template-fields">
120
                    <div id="club-template-fields">
121
                        [% FOREACH f IN club_template.club_template_fields %]
121
                        [% FOREACH f IN club_template.club_template_fields %]
Lines 149-162 Link Here
149
                        [% END %]
149
                        [% END %]
150
                    </div>
150
                    </div>
151
                    <fieldset class="action">
151
                    <fieldset class="action">
152
                        <a href="#" class="add_club_field">
152
                         <a id="lientype" href="#" class="add_club_field">
153
                            <i class="fa fa-plus"></i> Add new field
153
                            <i class="fa fa-plus"></i> Add new field
154
                        </a>
154
                        </a>
155
                    </fieldset>
155
                    </fieldset>
156
                </fieldset>
156
                </fieldset>
157
157
158
                <fieldset class="rows">
158
                <fieldset class="rows">
159
                    <legend>Enrollment fields</legend>
159
                    <h3>Enrollment fields</h3>
160
                    <p><span class="hint">These fields will be used when enrolling a patron in a club based on this template</span></p>
160
                    <p><span class="hint">These fields will be used when enrolling a patron in a club based on this template</span></p>
161
                    <div id="club-template-enrollment-fields">
161
                    <div id="club-template-enrollment-fields">
162
                        [% FOREACH f IN club_template.club_template_enrollment_fields %]
162
                        [% FOREACH f IN club_template.club_template_enrollment_fields %]
Lines 194-200 Link Here
194
                        [% END %]
194
                        [% END %]
195
                    </div>
195
                    </div>
196
                    <fieldset class="action">
196
                    <fieldset class="action">
197
                        <a href="#" class="add_enrollment_field">
197
                        <a id="lientype" href="#" class="add_enrollment_field">
198
                            <i class="fa fa-plus"></i> Add new field
198
                            <i class="fa fa-plus"></i> Add new field
199
                        </a>
199
                        </a>
200
                    </fieldset>
200
                    </fieldset>
Lines 202-208 Link Here
202
202
203
                <fieldset class="action">
203
                <fieldset class="action">
204
                    <input type="hidden" name="id" value="[% club_template.id | html %]" />
204
                    <input type="hidden" name="id" value="[% club_template.id | html %]" />
205
                    <input type="submit" value="Save" />
205
                    <input type="submit" class="principal" value="Save" />
206
                    <a href="clubs.pl" class="cancel">Cancel</a>
206
                    <a href="clubs.pl" class="cancel">Cancel</a>
207
                </fieldset>
207
                </fieldset>
208
            </form>
208
            </form>
Lines 234-240 Link Here
234
            </select>
234
            </select>
235
        </li>
235
        </li>
236
    </ol>
236
    </ol>
237
    <fieldset class="action"><a href="#" class="delete_club_field"><i class="fa fa-trash"></i> Delete field</a></fieldset>
237
    <fieldset class="action"><a id="lientype" href="#" class="delete_club_field"><i class="fa fa-trash"></i> Delete field</a></fieldset>
238
    <hr/>
238
    <hr/>
239
</div>
239
</div>
240
240
Lines 261-267 Link Here
261
            </select>
261
            </select>
262
        </li>
262
        </li>
263
    </ol>
263
    </ol>
264
    <fieldset class="action"><a href="#" class="delete_enrollment_field"><i class="fa fa-trash"></i> Delete field</a></fieldset>
264
    <fieldset class="action"><a id="lientype" href="#" class="delete_enrollment_field"><i class="fa fa-trash"></i> Delete field</a></fieldset>
265
</div>
265
</div>
266
266
267
267
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/barcode-print.tt (-3 / +5 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
4
[% formulaire = BLOCK %]
5
    [% INCLUDE 'cat-search.inc' %]
6
[% END %]
4
[% INCLUDE 'doc-head-open.inc' %]<title>Barcode image generator &rsaquo; Tools &rsaquo; Koha</title>
7
[% INCLUDE 'doc-head-open.inc' %]<title>Barcode image generator &rsaquo; Tools &rsaquo; Koha</title>
5
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
6
[% Asset.css("css/humanmsg.css") | $raw %]
9
[% Asset.css("css/humanmsg.css") | $raw %]
Lines 40-47 Link Here
40
</head>
43
</head>
41
44
42
<body id="labels_spinelabel-home" class="tools labels">
45
<body id="labels_spinelabel-home" class="tools labels">
43
[% INCLUDE 'header.inc' %]
46
[% INCLUDE 'header.inc' form=formulaire %]
44
[% INCLUDE 'cat-search.inc' %]
45
47
46
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
48
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
47
    <ol>
49
    <ol>
Lines 109-115 Link Here
109
                                    </li>
111
                                    </li>
110
                                </ol>
112
                                </ol>
111
                                <fieldset class="action">
113
                                <fieldset class="action">
112
                                    <input type="submit" value="Show barcode" />
114
                                    <input type="submit" class="principal" value="Show barcode" />
113
                                </fieldset>
115
                                </fieldset>
114
                            </div>
116
                            </div>
115
                            <div class="col-sm-6">
117
                            <div class="col-sm-6">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-bib-search.tt (-3 / +3 lines)
Lines 3-15 Link Here
3
<body id="labels_label-bib-search" class="tools labels">
3
<body id="labels_label-bib-search" class="tools labels">
4
<div id="main-compact">
4
<div id="main-compact">
5
5
6
<h1>Search</h1>
6
<h2>Search</h2>
7
7
8
<form name="f" method="post">
8
<form name="f" method="post">
9
	<input type="hidden" name="op" value="do_search" />
9
	<input type="hidden" name="op" value="do_search" />
10
	<input type="hidden" name="type" value="intranet" />
10
	<input type="hidden" name="type" value="intranet" />
11
	<div class="details">
11
	<div class="details">
12
		<h2>Search on</h2>
12
		<h3>Search on</h3>
13
		<p>
13
		<p>
14
			<label for="category">Name or ISSN: </label>
14
			<label for="category">Name or ISSN: </label>
15
			[% category | html %]
15
			[% category | html %]
Lines 25-31 Link Here
25
			<input type="hidden" id="index" name="index" value="[% index | html %]" />
25
			<input type="hidden" id="index" name="index" value="[% index | html %]" />
26
		</p>
26
		</p>
27
		<p>
27
		<p>
28
			<input type="submit" value="Start search" class="submit" />
28
			<input type="submit" value="Start search" class="submit principal" />
29
		</p>
29
		</p>
30
	</div>
30
	</div>
31
</form>
31
</form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt (-8 / +7 lines)
Lines 52-64 Link Here
52
                    [% INCLUDE 'labels-toolbar.inc' %]
52
                    [% INCLUDE 'labels-toolbar.inc' %]
53
53
54
                    [% IF ( profile_id ) %]
54
                    [% IF ( profile_id ) %]
55
                        <h1>Edit printer profile [% profile_id | html %]</h1>
55
                        <h2>Edit printer profile [% profile_id | html %]</h2>
56
                    [% ELSE %]
56
                    [% ELSE %]
57
                        <h1>New printer profile</h1>
57
                        <h2>New printer profile</h2>
58
                    [% END%]
58
                    [% END%]
59
59
60
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
60
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
61
                                    <fieldset class="rows"><legend>Profile settings</legend>
61
                                    <fieldset class="rows"><h3>Profile settings</h3>
62
                                        <ol>
62
                                        <ol>
63
                                            <li>
63
                                            <li>
64
                                                [% IF ( profile_id ) %]
64
                                                [% IF ( profile_id ) %]
Lines 111-117 Link Here
111
                                         </ol>
111
                                         </ol>
112
										</fieldset>
112
										</fieldset>
113
113
114
										<fieldset class="rows"><legend>Offset:</legend>
114
										<fieldset class="rows"><h3>Offset:</h3>
115
										<ol>
115
										<ol>
116
                                            <li>
116
                                            <li>
117
                                                <label for="offset_horz">Horizontal: </label><input type="text"  size="4" name="offset_horz" id="offset_horz" value="[% offset_horz | html %]" />
117
                                                <label for="offset_horz">Horizontal: </label><input type="text"  size="4" name="offset_horz" id="offset_horz" value="[% offset_horz | html %]" />
Lines 122-128 Link Here
122
                                         </ol>
122
                                         </ol>
123
										</fieldset>
123
										</fieldset>
124
124
125
										<fieldset class="rows"><legend>Creep:</legend>
125
										<fieldset class="rows"><h3>Creep:</h3>
126
										<ol>
126
										<ol>
127
                                            <li>
127
                                            <li>
128
                                                <label for="creep_horz">Horizontal: </label><input type="text"  size="4" name="creep_horz" id="creep_horz" value="[% creep_horz | html %]" />
128
                                                <label for="creep_horz">Horizontal: </label><input type="text"  size="4" name="creep_horz" id="creep_horz" value="[% creep_horz | html %]" />
Lines 131-139 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
                                    </fieldset>
134
135
                                    <fieldset class="action">
135
                                        <input type="submit" value="Save" class="princip"/>
136
                                        <input type="submit" value="Save" />
137
                                        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
136
                                        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
138
                                        <input type="hidden" name="op" value="save" />
137
                                        <input type="hidden" name="op" value="save" />
139
                                        <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
138
                                        <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt (-1 / +1 lines)
Lines 40-46 Link Here
40
            <div class="col-sm-10 col-sm-push-2">
40
            <div class="col-sm-10 col-sm-push-2">
41
                <main>
41
                <main>
42
                    [% INCLUDE 'labels-toolbar.inc' %]
42
                    [% INCLUDE 'labels-toolbar.inc' %]
43
                    <h1>Print barcode range</h1>
43
                    <h2>Print barcode range</h2>
44
                    <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
44
                    <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
45
                        <input type="hidden" name="op" value="add" />
45
                        <input type="hidden" name="op" value="add" />
46
                        <fieldset class="rows">
46
                        <fieldset class="rows">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt (-4 / +4 lines)
Lines 50-58 Link Here
50
                    [% INCLUDE 'labels-toolbar.inc' %]
50
                    [% INCLUDE 'labels-toolbar.inc' %]
51
51
52
                    [% IF ( template_id ) %]
52
                    [% IF ( template_id ) %]
53
                        <h1>Edit label template [% template_id | html %]</h1>
53
                        <h2>Edit label template [% template_id | html %]</h2>
54
                    [% ELSE %]
54
                    [% ELSE %]
55
                        <h1>New label template</h1>
55
                        <h2>New label template</h2>
56
                    [% END %]
56
                    [% END %]
57
57
58
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-template.pl" method="get">
58
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-template.pl" method="get">
Lines 169-175 Link Here
169
                                        [% END %]
169
                                        [% END %]
170
                                        [% IF ( profile_list.size == 1 ) %]
170
                                        [% IF ( profile_list.size == 1 ) %]
171
                                        <br>
171
                                        <br>
172
                                        <a href="/cgi-bin/koha/labels/label-edit-profile.pl?op=new">Make a new printer profile.</a>
172
                                        <a href="/cgi-bin/koha/labels/label-edit-profile.pl?op=new" id="lientype">Make a new printer profile.</a>
173
                                        [% END %]
173
                                        [% END %]
174
                                    </li>
174
                                    </li>
175
                                </ol>
175
                                </ol>
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" value="Save" /><a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Cancel</a>
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>
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 (-5 / +5 lines)
Lines 56-62 Link Here
56
                <main>
56
                <main>
57
57
58
                    [% INCLUDE 'labels-toolbar.inc' %]
58
                    [% INCLUDE 'labels-toolbar.inc' %]
59
                    <h1>Manage labels</h1>
59
                    <h2>Manage labels</h2>
60
60
61
                        [% IF ( error ) %]
61
                        [% IF ( error ) %]
62
                            <div class="dialog alert">
62
                            <div class="dialog alert">
Lines 68-80 Link Here
68
                            [% IF ( table_loop ) %]
68
                            [% IF ( table_loop ) %]
69
                            <form name="layouts" action="/cgi-bin/koha/label-manage.pl?label_element=[% label_element | html %]">
69
                            <form name="layouts" action="/cgi-bin/koha/label-manage.pl?label_element=[% label_element | html %]">
70
                            [% IF    ( label_element == 'layout' ) %]
70
                            [% IF    ( label_element == 'layout' ) %]
71
                            <h2>Currently available layouts</h2>
71
                            <h3>Currently available layouts</h3>
72
                            [% ELSIF ( label_element == 'template' ) %]
72
                            [% ELSIF ( label_element == 'template' ) %]
73
                            <h2>Currently available templates</h2>
73
                            <h3>Currently available templates</h3>
74
                            [% ELSIF ( label_element == 'profile' ) %]
74
                            [% ELSIF ( label_element == 'profile' ) %]
75
                            <h2>Currently available profiles</h2>
75
                            <h3>Currently available profiles</h3>
76
                            [% ELSIF ( label_element == 'batch' ) %]
76
                            [% ELSIF ( label_element == 'batch' ) %]
77
                            <h2>Currently available batches</h2>
77
                            <h3>Currently available batches</h3>
78
                            [% END %]
78
                            [% END %]
79
                            <table id="labels-table">
79
                            <table id="labels-table">
80
                                [% FOREACH table_loo IN table_loop %]
80
                                [% FOREACH table_loo IN table_loop %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-print.tt (-15 / +15 lines)
Lines 8-14 Link Here
8
8
9
<body id="labels_label-print" class="tools labels">
9
<body id="labels_label-print" class="tools labels">
10
    <div class="main container-fluid">
10
    <div class="main container-fluid">
11
        <h1>Label printing/exporting</h1>
11
        <h2>Label printing/exporting</h2>
12
        [% IF ( batches ) %]
12
        [% IF ( batches ) %]
13
            <form>
13
            <form>
14
                <h3>Click on the following links to download the exported batch(es).</h3>
14
                <h3>Click on the following links to download the exported batch(es).</h3>
Lines 21-52 Link Here
21
                        [% FOREACH batche IN batches %]
21
                        [% FOREACH batche IN batches %]
22
                        <fieldset>
22
                        <fieldset>
23
                            [% IF ( batche.label_ids ) %]
23
                            [% IF ( batche.label_ids ) %]
24
                                <legend>[% IF ( batche.label_count == 1 ) %][% batche.label_count | html %] single label[% ELSE %][% batche.label_count | html %] single labels[% END %]</legend>
24
                                <h3>[% IF ( batche.label_count == 1 ) %][% batche.label_count | html %] single label[% ELSE %][% batche.label_count | html %] single labels[% END %]</h3>
25
                                <a class="document pdf" href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=0&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;start_label=[% batche.start_label | html %]&amp;from=[% batche.from | html %]&amp;to=[% batche.to | html %]&amp;barcode_length=[% batche.barcode_length| html %]">Download as PDF</a>
25
                                <a class="document pdf" href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=0&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;start_label=[% batche.start_label | html %]&amp;from=[% batche.from | html %]&amp;to=[% batche.to | html %]&amp;barcode_length=[% batche.barcode_length| html %]">Download as PDF</a>
26
26
27
                                    <p><a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %][% batche.label_ids | html %]">Download as CSV</a></p>
27
                                    <p><a id="lientype" class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %][% batche.label_ids | html %]">Download as CSV</a></p>
28
28
29
                                    <p><a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %][% batche.label_ids | html %]">Download as XML</a></p>
29
                                    <p><a id="lientype" class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %][% batche.label_ids | html %]">Download as XML</a></p>
30
                            [% ELSIF ( batche.item_numbers ) %]
30
                            [% ELSIF ( batche.item_numbers ) %]
31
                            <legend>[% IF ( batche.label_count == 1 ) %][% batche.label_count | html %] single label[% ELSE %][% batche.label_count | html %] single labels[% END %]</legend>
31
                            <h3>[% IF ( batche.label_count == 1 ) %][% batche.label_count | html %] single label[% ELSE %][% batche.label_count | html %] single labels[% END %]</h3>
32
                                    <p><a class="document pdf" href="/cgi-bin/koha/labels/[% batche.create_script | html %]?template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;start_label=[% batche.start_label | html %][% batche.item_numbers | html %]">Download as PDF</a></p>
32
                                    <p><a id="lientype" class="document pdf" href="/cgi-bin/koha/labels/[% batche.create_script | html %]?template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;start_label=[% batche.start_label | html %][% batche.item_numbers | html %]">Download as PDF</a></p>
33
33
34
                                    <p><a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %][% batche.item_numbers | html %]">Download as CSV</a></p>
34
                                    <p><a id="lientype" class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %][% batche.item_numbers | html %]">Download as CSV</a></p>
35
35
36
                                    <p><a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %][% batche.item_numbers | html %]">Download as XML</a></p>
36
                                    <p><a id="lientype" class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %][% batche.item_numbers | html %]">Download as XML</a></p>
37
                            [% ELSIF ( batche.batch_id) %]
37
                            [% ELSIF ( batche.batch_id) %]
38
                            <legend>Label batch number [% batche.batch_id | html %]</legend>
38
                            <h3>Label batch number [% batche.batch_id | html %]</h3>
39
                                    <p><a class="document pdf" href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;start_label=[% batche.start_label | html %]">Download as PDF</a>
39
                                    <p><a id="lientype" class="document pdf" href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;start_label=[% batche.start_label | html %]">Download as PDF</a>
40
                                </p>
40
                                </p>
41
                                <p>
41
                                <p>
42
                                    <a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]">Download as CSV</a>
42
                                    <a id="lientype" class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]">Download as CSV</a>
43
                                </p>
43
                                </p>
44
                                <p>
44
                                <p>
45
                                    <a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]">Download as XML</a></p>
45
                                    <a id="lientype" class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]">Download as XML</a></p>
46
                            [% ELSIF (batche.from && batche.to) %]
46
                            [% ELSIF (batche.from && batche.to) %]
47
                            <legend>Barcodes from [% batche.from | html %] to [% batche.to | html %]</legend>
47
                            <h3>Barcodes from [% batche.from | html %] to [% batche.to | html %]</h3>
48
                            <p>
48
                            <p>
49
                                <a class="document pdf" href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=0&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;start_label=[% batche.start_label | html %]&amp;from=[% batche.from | html %]&amp;to=[% batche.to | html %]&amp;barcode_length=[% batche.barcode_length | html %]">Download as PDF</a>
49
                                <a id="lientype" class="document pdf" href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=0&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;start_label=[% batche.start_label | html %]&amp;from=[% batche.from | html %]&amp;to=[% batche.to | html %]&amp;barcode_length=[% batche.barcode_length | html %]">Download as PDF</a>
50
                            </p>
50
                            </p>
51
                            [% END %]
51
                            [% END %]
52
                        </fieldset>
52
                        </fieldset>
Lines 105-111 Link Here
105
                    </ol>
105
                    </ol>
106
                </fieldset>
106
                </fieldset>
107
                <fieldset class="action">
107
                <fieldset class="action">
108
                    <input type="submit" value="Export" />
108
                    <input type="submit" class="principal" value="Export" />
109
                    <a href="#" class="cancel gb-close">Cancel</a>
109
                    <a href="#" class="cancel gb-close">Cancel</a>
110
                </fieldset>
110
                </fieldset>
111
            </form>
111
            </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt (-3 / +3 lines)
Lines 29-35 Link Here
29
29
30
<body id="labels_result" class="tools labels">
30
<body id="labels_result" class="tools labels">
31
    <div class="main container-fluid">
31
    <div class="main container-fluid">
32
            <h1>Search results</h1>
32
            <h2>Search results</h2>
33
        <div class="results">
33
        <div class="results">
34
            [% PROCESS pagination %]
34
            [% PROCESS pagination %]
35
                [% IF ( results ) %]
35
                [% IF ( results ) %]
Lines 83-89 Link Here
83
                        <td><input type="checkbox" name="action" value="[% text_field.field_value | html %]"></td>
83
                        <td><input type="checkbox" name="action" value="[% text_field.field_value | html %]"></td>
84
                    [% ELSIF ( text_field.link_field ) %]
84
                    [% ELSIF ( text_field.link_field ) %]
85
                        <td>
85
                        <td>
86
                            <a class="btn btn-default btn-xs select_item" data-item-number="[% text_field.field_value | html %]" data-batch-id="[% batch_id | html %]" data-field-type="[% text_field.type | html %]"><i class="fa fa-plus"></i> Add</a>
86
                            <a id="lientype" class="btn btn-default btn-xs select_item" data-item-number="[% text_field.field_value | html %]" data-batch-id="[% batch_id | html %]" data-field-type="[% text_field.type | html %]"><i class="fa fa-plus"></i> Add</a>
87
                        </td>
87
                        </td>
88
                    [% ELSE %]
88
                    [% ELSE %]
89
                        <td>[% text_field.field_value | html %]</td>
89
                        <td>[% text_field.field_value | html %]</td>
Lines 99-105 Link Here
99
            </form>
99
            </form>
100
        </div>
100
        </div>
101
        [% PROCESS pagination %]
101
        [% PROCESS pagination %]
102
        <div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div>
102
        <div id="closewindow"><a href="#" class="btn btn-default btn-default close cancel">Close</a></div>
103
    </div>
103
    </div>
104
104
105
[% MACRO jsinclude BLOCK %]
105
[% MACRO jsinclude BLOCK %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt (-4 / +4 lines)
Lines 7-17 Link Here
7
<body id="labels_search" class="tools labels">
7
<body id="labels_search" class="tools labels">
8
    <div class="main container-fluid">
8
    <div class="main container-fluid">
9
9
10
<h1>Search for items
10
<h2>Search for items
11
[% IF ( batch_id ) %]
11
[% IF ( batch_id ) %]
12
to add to Batch [% batch_id | html %]
12
to add to Batch [% batch_id | html %]
13
[% END %]
13
[% END %]
14
</h1>
14
</h2>
15
15
16
<form name="f" method="post" action="/cgi-bin/koha/labels/label-item-search.pl">
16
<form name="f" method="post" action="/cgi-bin/koha/labels/label-item-search.pl">
17
	<input type="hidden" name="op" value="do_search" />
17
	<input type="hidden" name="op" value="do_search" />
Lines 71-77 to add to Batch [% batch_id | html %] Link Here
71
</fieldset>
71
</fieldset>
72
72
73
[% IF ( sort_by_loop ) %]
73
[% IF ( sort_by_loop ) %]
74
<fieldset><legend>Sort by: </legend>
74
<fieldset><h3>Sort by: </h3>
75
    <p><select id="sort_by" name="sort_by">
75
    <p><select id="sort_by" name="sort_by">
76
        <option value="">Field-weighted, relevance ranked</option>
76
        <option value="">Field-weighted, relevance ranked</option>
77
        [% FOREACH sort_by_loo IN sort_by_loop %]
77
        [% FOREACH sort_by_loo IN sort_by_loop %]
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" /> <a class="cancel close" href="#">Cancel</a></fieldset>
104
<fieldset class="action"><input type="submit" value="Search" class="submit 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/labels/spinelabel-home.tt (-1 / +1 lines)
Lines 38-46 Link Here
38
        <div class="col-sm-10 col-sm-push-2">
38
        <div class="col-sm-10 col-sm-push-2">
39
            <main>
39
            <main>
40
40
41
<h1>Quick spine label creator</h1>
42
                <form action="/cgi-bin/koha/labels/spinelabel-print.pl" method="post" id="spinelabelprint">
41
                <form action="/cgi-bin/koha/labels/spinelabel-print.pl" method="post" id="spinelabelprint">
43
				<fieldset class="brief">
42
				<fieldset class="brief">
43
<h3>Quick spine label creator</h3>
44
				<ol>
44
				<ol>
45
					<li><label for="barcode">Barcode: </label>
45
					<li><label for="barcode">Barcode: </label>
46
                        <input type="text" name="barcode" id="barcode" class="focus" required="required" />
46
                        <input type="text" name="barcode" id="barcode" class="focus" required="required" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-130 / +391 lines)
Lines 9-25 Link Here
9
    [% INCLUDE 'patron-search-header.inc' %]
9
    [% INCLUDE 'patron-search-header.inc' %]
10
[% END %]
10
[% END %]
11
[% PROCESS 'patronfields.inc' %]
11
[% PROCESS 'patronfields.inc' %]
12
[% SET libraries = Branches.all %]
13
[% SET categories = Categories.all.unblessed %]
14
[% SET columns = ['cardnumber', 'name-address', 'dateofbirth', 'branch', 'category', 'dateexpiry', 'checkouts', 'account_balance', 'borrowernotes', 'action'] %]
15
[% PROCESS 'patron-search.inc' %]
16
[% INCLUDE 'doc-head-open.inc' %]
12
[% INCLUDE 'doc-head-open.inc' %]
17
<title>Patrons[% IF ( searching ) %] &rsaquo; Search results[% END %] &rsaquo; Koha</title>
13
<title>Patrons[% IF ( searching ) %] &rsaquo; Search results[% END %] &rsaquo; Koha</title>
18
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
19
</head>
15
</head>
20
16
21
<body id="pat_member">
17
<body id="pat_member">
22
[% INCLUDE 'header.inc' form= formulaire %]
18
[% INCLUDE 'header.inc' %]
23
19
24
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
20
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
25
    <ol>
21
    <ol>
Lines 43-56 Link Here
43
            </li>
39
            </li>
44
        [% END %]
40
        [% END %]
45
    </ol>
41
    </ol>
46
42
        <ol>
47
    <ol>
43
            [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
48
        [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
44
        </ol>
49
    </ol>
45
        <ol>
50
46
            <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
51
    <ol>
47
        </ol>
52
        <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
53
    </ol>
54
</nav>
48
</nav>
55
49
56
<div class="main container-fluid">
50
<div class="main container-fluid">
Lines 59-65 Link Here
59
            <main>
53
            <main>
60
54
61
          [% IF CAN_user_tools_manage_patron_lists %]
55
          [% IF CAN_user_tools_manage_patron_lists %]
62
            <div id="patron_list_dialog" class="dialog message">
56
            <div id="patron_list_dialog" class="dialog message lientype">
63
              Added <span class="patrons-length"></span> patrons to <a></a>.
57
              Added <span class="patrons-length"></span> patrons to <a></a>.
64
            </div>
58
            </div>
65
          [% END %]
59
          [% END %]
Lines 67-72 Link Here
67
          [% INCLUDE 'patron-toolbar.inc' %]
61
          [% INCLUDE 'patron-toolbar.inc' %]
68
          [% INCLUDE 'noadd-warnings.inc' %]
62
          [% INCLUDE 'noadd-warnings.inc' %]
69
63
64
          <div class="browse">
65
            Browse by last name:
66
            [% FOREACH letter IN alphabet.split(' ') %]
67
                <a href="#" class="filterByLetter">[% letter | html %]</a>
68
            [% END %]
69
          </div>
70
70
          [% IF CAN_user_borrowers_edit_borrowers && pending_borrower_modifications %]
71
          [% IF CAN_user_borrowers_edit_borrowers && pending_borrower_modifications %]
71
            <div class="pending-info" id="patron_updates_pending">
72
            <div class="pending-info" id="patron_updates_pending">
72
              <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
73
              <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
Lines 76-121 Link Here
76
77
77
          <div id="searchresults">
78
          <div id="searchresults">
78
            <h3>Patrons found for: <span id="searchpattern">[% IF searchmember %] for '[% searchmember | html %]'[% END %]</span></h3>
79
            <h3>Patrons found for: <span id="searchpattern">[% IF searchmember %] for '[% searchmember | html %]'[% END %]</span></h3>
79
80
81
            [% IF CAN_user_tools_manage_patron_lists || CAN_user_borrowers_edit_borrowers %]
80
            [% IF CAN_user_tools_manage_patron_lists || CAN_user_borrowers_edit_borrowers %]
82
              <div class="searchheader fh-fixedHeader" id="searchheader" style="display:none;">
81
              <div class="searchheader fh-fixedHeader" id="searchheader">
83
                  <div>
82
                  <div>
84
                      <a href="#" class="btn btn-link" id="select_all"><i class="fa fa-check"></i> Select all</a>
83
                      <a href="#" class="btn btn-link" id="select_all"><i class="fa fa-check"></i> Select all</a>
84
                      |
85
                      <a href="#" class="btn btn-link" id="clear_all"><i class="fa fa-remove"></i> Clear all</a>
85
                      <a href="#" class="btn btn-link" id="clear_all"><i class="fa fa-remove"></i> Clear all</a>
86
                    [% IF CAN_user_tools_manage_patron_lists %]
86
                    [% IF CAN_user_tools_manage_patron_lists %]
87
87
88
                    [% END %]
88
                    [% END %]
89
89
90
                    [% IF CAN_user_tools_manage_patron_lists %]
90
                    [% IF CAN_user_tools_manage_patron_lists %]
91
                        Add selected patrons to:
91
                        <div id="patronlist-dropdown" class="btn-group">
92
                        <select name="searchfieldstype" id="searchfieldstype_filter">
92
                            <button id="patronlist-menu" type="button" class="btn btn-sm btn-default dropdown-toggle patron-edits disabled" disabled="disabled" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
93
                            <option selected="selected" value=""> [New list] </option>
93
                                Add to patron list <span class="caret"></span>
94
                            [% IF patron_lists %]
94
                            </button>
95
                                [% FOREACH pl IN patron_lists %]
95
                            <ul class="dropdown-menu">
96
                                    <option>[% pl.name | html %]</option>
96
                                [% IF patron_lists %]
97
                                    [% FOREACH pl IN patron_lists %]
98
                                        <li><a href="#" class="patron-list-add" data-listid="[% pl.patron_list_id | html %]">[% pl.name | html %]</a></li>
99
                                    [% END %]
97
                                [% END %]
100
                                [% END %]
98
                            [% END %]
101
                                <li role="separator" class="divider"></li>
99
                        </select>
102
                                <li><a id="lientype" href="#" class="patron-list-add" data-listid="new">New list</a></li>
100
103
                            </ul>
101
                         <input type="text" name="new_list_name" id="mini_inp"/>
104
                        </div>
102
103
                        <button type="submit" id="add_to_patron_list_submit" class="btn btn-link">Save</button>
104
105
106
                    [% END %]
105
                    [% END %]
107
106
108
                    [% IF CAN_user_borrowers_edit_borrowers %]
107
                    [% IF CAN_user_borrowers_edit_borrowers %]
109
                          | <button id="merge-patrons" class="btn btn-sm btn-default disabled" disabled="disabled" type="submit"><i class="fa fa-compress" aria-hidden="true"></i> Merge selected patrons</button>
108
                          <button id="merge-patrons" class="btn btn-sm btn-default disabled" disabled="disabled" type="submit"><i class="fa fa-compress" aria-hidden="true"></i> Merge selected patrons</button>
110
                    [% END %]
109
                    [% END %]
111
                  </div>
110
                  </div>
112
                </div>
111
                </div>
113
            [% END %]
112
            [% END %]
114
113
115
            [% IF CAN_user_borrowers_edit_borrowers || CAN_user_tools_manage_patron_lists %]
114
            <table id="memberresultst">
116
                [% columns.unshift('checkbox') | html %]
115
              <thead>
117
            [% END %]
116
                <tr>
118
            [% PROCESS patron_search_table table_id => 'memberresultst' columns => columns %]
117
                [% IF CAN_user_borrowers_edit_borrowers || CAN_user_tools_manage_patron_lists %]
118
                  <th>&nbsp;</th>
119
                [% END %]
120
                  <th>Card</th>
121
                  <th>Name</th>
122
                  <th>Date of birth</th>
123
                  <th>Category</th>
124
                  <th>Library</th>
125
                  <th>Expires on</th>
126
                  <th>OD/Checkouts</th>
127
                  <th>Fines</th>
128
                  <th>Circ note</th>
129
                  <th>&nbsp;</th>
130
                </tr>
131
              </thead>
132
              <tbody></tbody>
133
            </table>
119
          </div>
134
          </div>
120
135
121
            </main>
136
            </main>
Lines 123-215 Link Here
123
138
124
        <div class="col-sm-2 col-sm-pull-10">
139
        <div class="col-sm-2 col-sm-pull-10">
125
            <aside>
140
            <aside>
126
                [% PROCESS patron_search_filters categories => categories, libraries => libraries, filters => ['search_field', 'search_type', 'category', 'branch'], search_filter => searchmember %]
141
            <div id="filters">
127
                <div id="filters">
142
                <form method="get" id="searchform">
128
                    <form method="get" id="searchform">
143
                  <input type="hidden" id="firstletter_filter" value="" />
129
                        <input type="hidden" id="firstletter_filter" value="" />
144
                  <fieldset class="brief">
130
                        <fieldset class="brief">
145
                    <h3>Search patrons</h3>
131
                            <h4>Search patrons</h4>
146
                    <ol>
132
147
                      <li>
133
                            <fieldset>
148
                        <p for="searchmember_filter">Search for:
134
                                <ol>
149
                        <input type="text" id="searchmember_filter" value="[% searchmember | html %]"/>
135
                                    <li>
150
                      </p></li>
136
                                        <p>Search:
151
                      <li>
137
                                        <input type="text" id="searchmember_filter" value="[% searchmember | html %]"/></p>
152
                        <p for="searchfieldstype_filter">Search field:
138
                                    </li>
153
                        <select name="searchfieldstype" id="searchfieldstype_filter">
139
                                    <li>
154
                            [% pref_fields = Koha.Preference('DefaultPatronSearchFields').split(',') %]
140
                                        <p>Search field:
155
                            [% default_fields = [ 'standard', 'surname', 'cardnumber', 'email', 'borrowernumber', 'userid', 'phone', 'address', 'dateofbirth', 'sort1', 'sort2' ] %]
141
                                        <select name="searchfieldstype" id="searchfieldstype_filter">
156
                            [% search_options = default_fields.merge(pref_fields).unique %]
142
                                            [% pref_fields = Koha.Preference('DefaultPatronSearchFields').split(',') %]
157
                            [% FOREACH s_o IN search_options %]
143
                                            [% default_fields = [ 'standard', 'surname', 'cardnumber', 'email', 'borrowernumber', 'userid', 'phone', 'address', 'dateofbirth', 'sort1', 'sort2' ] %]
158
                                [% display_name = PROCESS patron_fields name=s_o %]
144
                                            [% search_options = default_fields.merge(pref_fields).unique %]
159
                                [% NEXT IF !display_name %]
145
                                            [% FOREACH s_o IN search_options %]
160
                                [% IF searchfieldstype == s_o %]
146
                                                [% display_name = PROCESS patron_fields name=s_o %]
161
                                    <option selected="selected" value=[% s_o | html %]>[% display_name | $raw %]</option>
147
                                                [% NEXT IF !display_name %]
162
                                [% ELSE %]
148
                                                [% IF searchfieldstype == s_o %]
163
                                    <option value=[% s_o | html %]>[% display_name | $raw %]</option>
149
                                                    <option selected="selected" value=[% s_o | html %]>[% display_name | $raw %]</option>
164
                                [% END %]
150
                                                [% ELSE %]
165
                            [% END %]
151
                                                    <option value=[% s_o | html %]>[% display_name | $raw %]</option>
166
                        </select></p>
152
                                                [% END %]
167
                      </li>
153
                                            [% END %]
168
                      <li>
154
                                        </select></p>
169
                        <p for="searchtype_filter">Search type:
155
                                    </li>
170
                        <select name="searchtype" id="searchtype_filter">
156
                                    <li>
171
                          [% IF searchtype == "start_with" %]
157
                                        <p>Search type:
172
                            <option value='start_with' selected="selected">Starts with</option>
158
                                        <select name="searchtype" id="searchtype_filter">
173
                            <option value="contain">Contains</option>
159
                                        [% IF searchtype == "start_with" %]
174
                          [% ELSE %]
160
                                            <option value='start_with' selected="selected">Starts with</option>
175
                            <option value='start_with'>Starts with</option>
161
                                            <option value="contain">Contains</option>
176
                            <option value="contain" selected="selected">Contains</option>
162
                                        [% ELSE %]
177
                          [% END %]
163
                                            <option value='start_with'>Starts with</option>
178
                        </select></p>
164
                                            <option value="contain" selected="selected">Contains</option>
179
                      </li>
165
                                        [% END %]
180
                      <li>
166
                                        </select></p>
181
                        <p for="categorycode_filter">Patron category:
167
                                    </li>
182
                        [% SET categories = Categories.all() %]
168
                                    <li>
183
                        <select id="categorycode_filter">
169
                                        <p>Patron category:
184
                          <option value="">Any</option>
170
                                        [% SET categories = Categories.all() %]
185
                          [% FOREACH cat IN categories %]
171
                                        <select id="categorycode_filter">
186
                            [% IF cat.categorycode == categorycode_filter %]
172
                                        <option value="">Any</option>
187
                    <option selected="selected" value="[% cat.categorycode | html %]">[% cat.description | html %]</option>
173
                                        [% FOREACH cat IN categories %]
188
                            [% ELSE %]
174
                                            [% IF cat.categorycode == categorycode_filter %]
189
                    <option value="[% cat.categorycode | html %]">[% cat.description | html %]</option>
175
                                    <option selected="selected" value="[% cat.categorycode | html %]">[% cat.description | html %]</option>
190
176
                                            [% ELSE %]
191
                            [% END %]
177
                                    <option value="[% cat.categorycode | html %]">[% cat.description | html %]</option>
192
                          [% END %]
178
193
                        </select></p>
179
                                            [% END %]
194
                      </li>
180
                                        [% END %]
195
                      <li>
181
                                        </select></p>
196
                        <p for="branchcode_filter">Library:
182
                                    </li>
197
                        [% SET branches = Branches.all( selected => branchcode_filter, only_from_group => 1 ) %]
183
                                    <li>
198
                        <select id="branchcode_filter">
184
                                        <p>Library:
199
                          [% IF branches.size != 1 %]
185
                                        [% SET branches = Branches.all( selected => branchcode_filter, only_from_group => 1 ) %]
200
                            <option value="">Any</option>
186
                                        <select id="branchcode_filter">
201
                          [% END %]
187
                                        [% IF branches.size != 1 %]
202
                          [% PROCESS options_for_libraries libraries => branches %]
188
                                            <option value="">Any</option>
203
                        </select></p>
189
                                        [% END %]
204
                      </li>
190
                                        [% PROCESS options_for_libraries libraries => branches %]
205
                    </ol>
191
                                        </select></p>
206
                    <fieldset class="action">
192
                                    </li>
207
                      <input type="submit" class="principal" value="Search" />
193
                                </ol>
208
                      <a href="/cgi-bin/koha/members/members-home.pl" class="cancel">Clear</a>
194
                                <ol>
209
                    </fieldset>
195
                                    <button class="submit" id="principal" type="submit">Search</button>
210
                  </fieldset>
196
                                    <a class="cancel" id="cancel_set_library" href="[% referer or '/cgi-bin/koha/circ/circulation.pl' %]">Cancel</a>
211
                </form>
197
                                </ol>
198
                            </fieldset>
199
                        </fieldset>
200
                    </form>
201
                </div>
212
                </div>
202
            </aside>
213
            </aside>
203
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
214
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
204
    </div> <!-- /.row -->
215
    </div> <!-- /.row -->
205
216
217
    <!-- New Patron List Modal -->
218
    <div class="modal" id="new-patron-list" tabindex="-1" role="dialog" aria-labelledby="new-patron-listLabel">
219
        <div class="modal-dialog" role="document">
220
            <div class="modal-content">
221
                <div class="modal-header">
222
                    <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
223
                    <h4 class="modal-title" id="new-patron-listLabel">Add patrons to a new patron list</h4>
224
                </div>
225
                <form id="new-patron-list_form">
226
                    <div class="modal-body">
227
                        <div class="form-group">
228
                            <label for="new_patron_list" class="required">Patron list name: </label>
229
                            <input class="form-control required" type="text" name="new_patron_list" id="new_patron_list" required="required" />
230
                            <input type="hidden" name="add_to_patron_list" id="add_to_patron_list" />
231
                            <span class="required">Required</span>
232
                        </div>
233
                    </div> <!-- /.modal-body -->
234
                    <div class="modal-footer">
235
                        <button type="submit" id="add_to_patron_list_submit" class="btn btn-default approve">Submit</button>
236
                        <button type="button" class="btn btn-default deny" data-dismiss="modal">Cancel</button>
237
                    </div> <!-- /.modal-footer -->
238
                </form> <!-- /#new-patron-list_form -->
239
            </div> <!-- /.modal-content -->
240
        </div> <!-- /.modal-dialog -->
241
    </div> <!-- /#new-patron-list -->
206
242
207
[% MACRO jsinclude BLOCK %]
243
[% MACRO jsinclude BLOCK %]
208
    [% INCLUDE 'datatables.inc' %]
244
    [% INCLUDE 'datatables.inc' %]
209
    [% INCLUDE 'columns_settings.inc' %]
245
    [% INCLUDE 'columns_settings.inc' %]
210
    [% INCLUDE 'str/members-menu.inc' %]
246
    [% INCLUDE 'str/members-menu.inc' %]
247
    [% Asset.js("lib/hc-sticky.js") | $raw %]
211
    [% Asset.js("js/members-menu.js") | $raw %]
248
    [% Asset.js("js/members-menu.js") | $raw %]
212
    <script>
249
    <script>
250
        var singleBranchMode = '[% singleBranchMode | html %]';
251
        var dtMemberResults;
252
        var search = 1;
253
        /* popstate event triggered by forward and back button. Need to refresh search */
254
        window.addEventListener('popstate', (event) => {
255
            getSearchByLocation( false );
256
        });
213
257
214
        $(document).ready(function() {
258
        $(document).ready(function() {
215
            $('#merge-patrons').prop('disabled', true);
259
            $('#merge-patrons').prop('disabled', true);
Lines 279-284 Link Here
279
                patronListAdd();
323
                patronListAdd();
280
            });
324
            });
281
325
326
            $(".filterByLetter").on("click",function(e){
327
                e.preventDefault();
328
                filterByFirstLetterSurname( $(this).text(), true );
329
            });
282
            $("#select_all").on("click",function(e){
330
            $("#select_all").on("click",function(e){
283
                e.preventDefault();
331
                e.preventDefault();
284
                $(".selection").prop("checked", true).change();
332
                $(".selection").prop("checked", true).change();
Lines 287-292 Link Here
287
                e.preventDefault();
335
                e.preventDefault();
288
                $(".selection").prop("checked", false).change();
336
                $(".selection").prop("checked", false).change();
289
            });
337
            });
338
            $("#clear_search").on("click",function(e){
339
                e.preventDefault();
340
                clearFilters(true);
341
            });
342
            $("#searchform").on("submit", filter);
290
343
291
            [% IF searchmember %]
344
            [% IF searchmember %]
292
                $("#searchmember_filter").val("[% searchmember | html %]");
345
                $("#searchmember_filter").val("[% searchmember | html %]");
Lines 304-312 Link Here
304
                $("#branchcode_filter").val("[% branchcode_filter | html %]");
357
                $("#branchcode_filter").val("[% branchcode_filter | html %]");
305
            [% END %]
358
            [% END %]
306
359
307
            $("#searchheader").hide();
360
            [% IF view != "show_results" %]
308
            $("#patron_search_form").on('submit', function(){$("#searchheader").show();});
361
                search = 0;
309
            $("#clear_search").on("click",function(e){$("#searchheader").hide();});
362
            [% ELSE %]
363
                $("#searchresults").show();
364
            [% END %]
365
366
            // Build the aLengthMenu
367
            var aLengthMenu = [
368
                [% PatronsPerPage | html %], 10, 20, 50, 100, -1
369
            ];
370
            jQuery.unique(aLengthMenu);
371
            aLengthMenu.sort(function( a, b ){
372
                // Put "All" at the end
373
                if ( a == -1 ) {
374
                    return 1;
375
                } else if ( b == -1 ) {
376
                    return -1;
377
                }
378
                return parseInt(a) < parseInt(b) ? -1 : 1;}
379
            );
380
            var aLengthMenuLabel = [];
381
            $(aLengthMenu).each(function(){
382
                if ( this == -1 ) {
383
                    // Label for -1 is "All"
384
                    aLengthMenuLabel.push(_("All"));
385
                } else {
386
                    aLengthMenuLabel.push(this);
387
                }
388
            });
389
390
            // Apply DataTables on the results table
391
            var columns_settings = [% TablesSettings.GetColumns( 'members', 'member', 'memberresultst', 'json' ) | $raw %];
392
            [% UNLESS CAN_user_borrowers_edit_borrowers OR CAN_user_tools_manage_patron_lists %]
393
                [%# Remove the first column if we do not display the checkbox %]
394
                columns_settings.splice(0, 1);
395
            [% END %]
396
            dtMemberResults = KohaTable("memberresultst", {
397
                'bServerSide': true,
398
                'sAjaxSource': "/cgi-bin/koha/svc/members/search",
399
                'fnServerData': function(sSource, aoData, fnCallback) {
400
                    if ( ! search ) {
401
                        return;
402
                    }
403
                    aoData.push({
404
                        'name': 'searchmember',
405
                        'value': $("#searchmember_filter").val()
406
                    },{
407
                        'name': 'firstletter',
408
                        'value': $("#firstletter_filter").val()
409
                    },{
410
                        'name': 'searchfieldstype',
411
                        'value': $("#searchfieldstype_filter").val()
412
                    },{
413
                        'name': 'searchtype',
414
                        'value': $("#searchtype_filter").val()
415
                    },{
416
                        'name': 'categorycode',
417
                        'value': $("#categorycode_filter").val()
418
                    },{
419
                        'name': 'branchcode',
420
                        'value': $("#branchcode_filter").val()
421
                    },{
422
                        'name': 'name_sorton',
423
                        'value': 'borrowers.surname borrowers.firstname'
424
                    },{
425
                        'name': 'cardnumber_sorton',
426
                        'value': 'borrowers.cardnumber',
427
                    },{
428
                        'name': 'dateofbirth_sorton',
429
                        'value': 'borrowers.dateofbirth',
430
                    },{
431
                        'name': 'dateexpiry_sorton',
432
                        'value': 'borrowers.dateexpiry',
433
                    },{
434
                        'name': 'category_sorton',
435
                        'value': 'categories.description',
436
                    },{
437
                        'name': 'branch_sorton',
438
                        'value': 'branches.branchname'
439
                    },{
440
                        'name': 'borrowernotes_sorton',
441
                        'value': 'borrowers.borrowernotes'
442
                    },{
443
                        'name': 'template_path',
444
                        'value': 'members/tables/members_results.tt',
445
                    });
446
                    $.ajax({
447
                        'dataType': 'json',
448
                        'type': 'POST',
449
                        'url': sSource,
450
                        'data': aoData,
451
                        'success': function(json){
452
                            // redirect if there is only 1 result.
453
                            if ( json.aaData.length == 1 ) {
454
                                var borrowernumber = json.aaData[0].borrowernumber;
455
                                /* Overwrite history state of firstletter search since only one result was returned; This prevents a loop upon clicking back */
456
                                history.replaceState( {}, null, window.location.href.split("?" )[0]);
457
                                [% IF circsearch == 1 %]
458
                                    [% SET redirect = "circ/circulation" %]
459
                                [% ELSE %]
460
                                    [% SET redirect = "members/moremember" %]
461
                                [% END %]
462
                                document.location.href="/cgi-bin/koha/[% redirect | $raw %].pl?borrowernumber="+borrowernumber;
463
                                return false;
464
                            }
465
                            fnCallback(json);
466
                        }
467
                    });
468
                },
469
                'aoColumns':[
470
                    [% IF CAN_user_borrowers_edit_borrowers || CAN_user_tools_manage_patron_lists %]
471
                      { 'mDataProp': 'dt_borrowernumber', 'bSortable': false },
472
                    [% END %]
473
                    { 'mDataProp': 'dt_cardnumber' },
474
                    { 'mDataProp': 'dt_name' },
475
                    { 'mDataProp': 'dt_dateofbirth' },
476
                    { 'mDataProp': 'dt_category' },
477
                    {
478
                        'mDataProp': function ( oObj ) {
479
                            if( !singleBranchMode &&  oObj.dt_branch == "[% Branches.GetLoggedInBranchname | html %]" ){
480
                                return "<span class=\"currentlibrary\">" + oObj.dt_branch + "</span>";
481
                            } else {
482
                                return oObj.dt_branch;
483
                            }
484
                        }
485
                    },
486
                    { 'mDataProp': 'dt_dateexpiry' },
487
                    { 'mDataProp': 'dt_od_checkouts', 'bSortable': false },
488
                    { 'mDataProp': 'dt_fines', 'bSortable': false },
489
                    { 'mDataProp': 'dt_borrowernotes' },
490
                    { 'mDataProp': 'dt_action', 'bSortable': false, 'sClass': 'actions' }
491
                ],
492
                'bFilter': false,
493
                'bAutoWidth': false,
494
                [% IF CAN_user_borrowers_edit_borrowers || CAN_user_tools_manage_patron_lists %]
495
                    'aaSorting': [[2, 'asc']],
496
                [% ELSE %]
497
                    'aaSorting': [[1, 'asc']],
498
                [% END %]
499
                "aLengthMenu": [aLengthMenu, aLengthMenuLabel],
500
                'sPaginationType': 'full_numbers',
501
                "iDisplayLength": [% PatronsPerPage | html %],
502
                "bProcessing": true,
503
                "initComplete": function(settings, json) {
504
                    Sticky = $("#searchheader");
505
                    Sticky.hcSticky({
506
                        stickTo: "#searchresults",
507
                        stickyClass: "floating"
508
                    });
509
                }
510
            }, columns_settings);
511
            update_searched();
512
            /* Initial page load doesn't trigger the popstate event, so we explicitly call this */
513
            getSearchByLocation( false );
514
310
        });
515
        });
311
516
312
        function patronListAdd(){
517
        function patronListAdd(){
Lines 341-346 Link Here
341
            return true;
546
            return true;
342
        }
547
        }
343
548
549
        function getSearchByLocation( setstate ){
550
            /* Check to see if the URL contains a search parameter */
551
            if( location.search != ""){
552
                var params = new URLSearchParams( location.search );
553
                var firstletter = params.get("firstletter");
554
                /* Check to see if search is a first letter param */
555
                if( firstletter ){
556
                    /* Trigger function to return search results by letter */
557
                    filterByFirstLetterSurname( firstletter, setstate );
558
                }
559
            }
560
        }
561
562
        // Update the string "Results found ..."
563
        function update_searched(){
564
            var searched = $("#searchfieldstype_filter").find("option:selected").text();
565
            if ( $("#searchmember_filter").val() ) {
566
                if ( $("#searchtype_filter").val() == 'start_with' ) {
567
                    searched += _(" starting with ");
568
                } else {
569
                    searched += _(" containing ");
570
                }
571
                searched += "'" + $("#searchmember_filter").val() + "'";
572
            }
573
            if ( $("#firstletter_filter").val() ) {
574
                searched += _(" begins with ") + "'" + $("#firstletter_filter").val() +"'";
575
            }
576
            if ( $("#categorycode_filter").val() ) {
577
                searched += _(" with category ") + "'" + $("#categorycode_filter").find("option:selected").text() + "'";
578
            }
579
            if ( $("#branchcode_filter").val() ) {
580
                searched += _(" in library ") + $("#branchcode_filter").find("option:selected").text();
581
            }
582
            $("#searchpattern").text(searched);
583
        }
584
585
        // Redraw the table
586
        function filter() {
587
            $("#firstletter_filter").val('');
588
            update_searched();
589
            search = 1;
590
            $("#searchresults").show();
591
            dtMemberResults.fnDraw();
592
            return false;
593
        }
594
344
        $('#memberresultst tbody').on('click','td',function(e){
595
        $('#memberresultst tbody').on('click','td',function(e){
345
            var $checkbox = $(this).find("input[type=checkbox]");
596
            var $checkbox = $(this).find("input[type=checkbox]");
346
            if (e.target.type != "checkbox") {
597
            if (e.target.type != "checkbox") {
Lines 349-372 Link Here
349
            }
600
            }
350
        });
601
        });
351
602
352
    </script>
603
        // User has clicked on the Clear button
604
        function clearFilters(redraw) {
605
            $("#searchform select").val('');
606
            $("#firstletter_filter").val('');
607
            $("#searchmember_filter").val('');
608
            if(redraw) {
609
                /* remove any search string added by firstletter search */
610
                history.pushState( {}, null, window.location.href.split("?" )[0]);
611
                update_searched();
612
                search = 0;
613
                $("#searchresults").hide();
614
                dtMemberResults.fnDraw();
615
            }
616
        }
353
617
354
    <script>
618
        // User has clicked on a letter
355
        // Apply DataTables on the results table
619
        function filterByFirstLetterSurname( letter, setstate ) {
356
        var table_settings = [% TablesSettings.GetColumns( 'members', 'member', 'memberresultst', 'json' ) | $raw %];
620
            clearFilters(false);
357
        [% UNLESS CAN_user_borrowers_edit_borrowers OR CAN_user_tools_manage_patron_lists %]
621
            $("#firstletter_filter").val(letter);
358
            [%# Remove the first column if we do not display the checkbox %]
622
            if( setstate ){
359
            table_settings['columns'].splice(0, 1);
623
                history.pushState( null, null, "?firstletter=" + letter );
360
        [% END %]
624
            }
625
            update_searched();
626
            search = 1;
627
            $("#searchresults").show();
628
            dtMemberResults.fnDraw();
629
        }
361
    </script>
630
    </script>
362
363
    [% IF circsearch == 1 %]
364
        [% SET redirect_url = '/cgi-bin/koha/circ/circulation.pl' %]
365
    [% ELSE %]
366
        [% SET redirect_url = '/cgi-bin/koha/members/moremember.pl' %]
367
    [% END %]
368
    [% PROCESS patron_search_js table_id => 'memberresultst', categories => categories, libraries => libraries, extended_attribute_types => attribute_type_codes, columns => columns,actions => ['edit', 'checkout'], redirect_if_one_result => 1, redirect_url => redirect_url, sticky_header => "searchheader", sticky_to => "searchresults", default_sort_column => 'name-address', display_search_description => 1 %]
369
370
[% END %]
631
[% END %]
371
632
372
[% INCLUDE 'intranet-bottom.inc' %]
633
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt (-1 / +1 lines)
Lines 6-12 Link Here
6
[% USE KohaDates %]
6
[% USE KohaDates %]
7
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
8
[% formulaire = BLOCK %]
8
[% formulaire = BLOCK %]
9
    [% INCLUDE 'patron-search.inc' %]
9
    [% INCLUDE 'patron-search-header.inc' %]
10
[% END %]
10
[% END %]
11
[% INCLUDE 'doc-head-open.inc' %]
11
[% INCLUDE 'doc-head-open.inc' %]
12
<title>Update patron records &rsaquo; Patrons &rsaquo; Koha</title>
12
<title>Update patron records &rsaquo; Patrons &rsaquo; Koha</title>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-9 / +2 lines)
Lines 93-116 Link Here
93
93
94
                    <div>
94
                    <div>
95
95
96
                        <h2>
97
                            [% UNLESS ( I ) %]
98
                                [% patron.title | html %] [% patron.firstname | html %]
99
                            [% END %]
100
                            [% patron.surname | html %] ([% patron.cardnumber | html %])
101
                        </h2>
102
103
                        <fieldset id="searchresults">
104
                            [% IF ( was_renewed ) %]
96
                            [% IF ( was_renewed ) %]
97
                            <fieldset id="searchresults">
105
                            <div class="dialog message">
98
                            <div class="dialog message">
106
                                Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]
99
                                Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]
107
                            </div>
100
                            </div>
101
                        </fieldset>
108
                            [% END %]
102
                            [% END %]
109
103
110
                            <div id="patron_messages" class="circmessage attention">
104
                            <div id="patron_messages" class="circmessage attention">
111
                                [% INCLUDE 'patron_messages.inc' %]
105
                                [% INCLUDE 'patron_messages.inc' %]
112
                            </div>
106
                            </div>
113
                        </fieldset>
114
107
115
                        <h1>[% INCLUDE 'patron-title.inc' no_html = 1 %]</h1>
108
                        <h1>[% INCLUDE 'patron-title.inc' no_html = 1 %]</h1>
116
                        <div class="col-sm-6">
109
                        <div class="col-sm-6">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt (-12 / +14 lines)
Lines 53-62 Link Here
53
53
54
                    [% INCLUDE 'patroncards-toolbar.inc' %]
54
                    [% INCLUDE 'patroncards-toolbar.inc' %]
55
55
56
                    <h1>[% IF description %]<span>Edit</span> [% description | html %]
56
                    <h2>[% IF description %]<span>Edit</span> [% description | html %]
57
                        [% ELSIF batch_id %]<span>Edit patron card batch</span> [% batch_id | html %]
57
                        [% ELSIF batch_id %]<span>Edit patron card batch</span> [% batch_id | html %]
58
                        [% ELSE %]<span>New patron card batch</span>[% END %]
58
                        [% ELSE %]<span>New patron card batch</span>[% END %]
59
                    </h1>
59
                    </h2>
60
60
61
                [% IF ( duplicate_message ) %]
61
                [% IF ( duplicate_message ) %]
62
                    <div class="dialog message">
62
                    <div class="dialog message">
Lines 84-100 Link Here
84
                                </div>
84
                                </div>
85
                            </form>
85
                            </form>
86
                            <div id="batch-manage" class="action">
86
                            <div id="batch-manage" class="action">
87
                                <a id="additems" href="#"><i class="fa fa-plus"></i> Add patron(s)</a>[% IF ( table_loop ) %]
87
                                <a class="lientype" id="additems" href="#"><i class="fa fa-plus"></i> Add patron(s)</a>[% IF ( table_loop ) %]
88
                                <a id="savedesc" href="#" data-batch_id="[% batch_id | html %]"><i class="fa fa-save"></i> Save description</a>
88
                                <a class="lientype" id="savedesc" href="#" data-batch_id="[% batch_id | html %]"><i class="fa fa-save"></i> Save description</a>
89
                                <a id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected patrons</a>
89
                                <a class="lientype" id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected patrons</a>
90
                                <a ="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a>
90
                                <a class="lientype" ="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a>
91
                                <a id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a>
91
                                <a class="lientype" id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a>
92
                                <a id="exportitems" href="#"><i class="fa fa-share-square-o"></i> Export selected card(s)</a>
92
                                <a class="lientype" id="exportitems" href="#"><i class="fa fa-share-square-o"></i> Export selected card(s)</a>
93
                                <a id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> Export card batch</a>[% END %]
93
                                <a class="lientype" id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> Export card batch</a>[% END %]
94
                            </div>
94
                            </div>
95
                            [% IF ( table_loop ) %]
95
                            [% IF ( table_loop ) %]
96
                            <fieldset id="searchresults">
96
                            <form name="items">
97
                            <form name="items">
97
                                <h2>Patrons in batch number [% batch_id | html %]</h2>
98
                                <h3>Patrons in batch number [% batch_id | html %]</h3>
98
                                <table id="batcht">
99
                                <table id="batcht">
99
                                    [% FOREACH table_loo IN table_loop %]
100
                                    [% FOREACH table_loo IN table_loop %]
100
                                        [% IF ( table_loo.header_fields ) %]
101
                                        [% IF ( table_loo.header_fields ) %]
Lines 122-129 Link Here
122
                                                [% FOREACH text_field IN table_loo.text_fields %]
123
                                                [% FOREACH text_field IN table_loo.text_fields %]
123
                                                    [% IF ( text_field.select_field ) %]
124
                                                    [% IF ( text_field.select_field ) %]
124
                                                        <td>
125
                                                        <td>
125
                                                            <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/edit-batch.pl?op=remove&amp;batch_id=[% batch_id | html %]&amp;label_id=[% text_field.field_value | html %]"><i class="fa fa-trash"></i> Delete</a>
126
                                                            <a id="lientype" class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/edit-batch.pl?op=remove&amp;batch_id=[% batch_id | html %]&amp;label_id=[% text_field.field_value | html %]"><i class="fa fa-trash"></i> Delete</a>
126
                                                            <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>
127
                                                            <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>
127
                                                        </td>
128
                                                        </td>
128
                                                        <td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>
129
                                                        <td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>
129
                                                    [% ELSE %]
130
                                                    [% ELSE %]
Lines 136-141 Link Here
136
                                    </tbody>
137
                                    </tbody>
137
                                </table>
138
                                </table>
138
                            </form>
139
                            </form>
140
                            </fieldset>
139
                            [% ELSE %]
141
                            [% ELSE %]
140
                                <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
142
                                <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
141
                                <ol><li>
143
                                <ol><li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt (-2 / +2 lines)
Lines 49-57 Link Here
49
49
50
                    [% INCLUDE 'patroncards-toolbar.inc' %]
50
                    [% INCLUDE 'patroncards-toolbar.inc' %]
51
51
52
                    <h1>[% IF ( layout_id ) %]<span>Edit patron card layout</span> [% layout_id | html %]
52
                    <h2>[% IF ( layout_id ) %]<span>Edit patron card layout</span> [% layout_id | html %]
53
                        [% ELSE %]<span>Create patron card layout</span>[% END %]
53
                        [% ELSE %]<span>Create patron card layout</span>[% END %]
54
                    </h1>
54
                    </h2>
55
55
56
                <!-- NOTE: The order of the elements on this form is crictical to correct processing. You've been warned...  -->
56
                <!-- NOTE: The order of the elements on this form is crictical to correct processing. You've been warned...  -->
57
                <form name="input" action="/cgi-bin/koha/patroncards/edit-layout.pl" method="get">
57
                <form name="input" action="/cgi-bin/koha/patroncards/edit-layout.pl" method="get">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt (-2 / +1 lines)
Lines 50-58 Link Here
50
                <main>
50
                <main>
51
51
52
                    [% INCLUDE 'patroncards-toolbar.inc' %]
52
                    [% INCLUDE 'patroncards-toolbar.inc' %]
53
                    <h1>[% IF (template_id) %]Edit[% ELSE %]Create[% END %] patron card template[% IF (template_id) %] ([% template_id | html %])[% END %]</h1>
53
                    <h2>[% IF (template_id) %]Edit[% ELSE %]Create[% END %] patron card template[% IF (template_id) %] ([% template_id | html %])[% END %]</h2>
54
                    <form name="input" action="/cgi-bin/koha/patroncards/edit-template.pl" method="get">
54
                    <form name="input" action="/cgi-bin/koha/patroncards/edit-template.pl" method="get">
55
                        <h2>[% IF (template_id) %]Edit[% ELSE %]Create[% END %] patron card template[% IF (template_id) %] ([% template_id | html %])[% END %]</h2>
56
                        <div class="row">
55
                        <div class="row">
57
                        <div class="col-sm-6">
56
                        <div class="col-sm-6">
58
                            <fieldset class="rows">
57
                            <fieldset class="rows">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/home.tt (-1 / +1 lines)
Lines 37-43 Link Here
37
37
38
                [% INCLUDE 'patroncards-toolbar.inc' %]
38
                [% INCLUDE 'patroncards-toolbar.inc' %]
39
39
40
                <h1>Patron card creator</h1>
40
                <h2>Patron card creator</h2>
41
41
42
            </main>
42
            </main>
43
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
43
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt (-16 / +17 lines)
Lines 40-54 Link Here
40
            <main>
40
            <main>
41
41
42
                [% INCLUDE 'patroncards-toolbar.inc' %]
42
                [% INCLUDE 'patroncards-toolbar.inc' %]
43
                <h1>Image manager</h1>
43
                <h2>Image manager</h2>
44
                [% INCLUDE 'patroncards-errors.inc' %]
44
                [% INCLUDE 'patroncards-errors.inc' %]
45
                <div class="row">
45
                <div class="row">
46
                    <div class="col-sm-6">
46
                    <div class="col-sm-6">
47
                        <h2>Upload additional images for patron cards</h2>
47
                    <fieldset class="rows">
48
                        <h3>Upload additional images for patron cards</h3>
48
                        <p>Manage additional images to use as logo, decoration or background on a patron card layout.</p>
49
                        <p>Manage additional images to use as logo, decoration or background on a patron card layout.</p>
49
                        <form name="upload_images" method="post" action="/cgi-bin/koha/patroncards/image-manage.pl" enctype="multipart/form-data">
50
                        <form name="upload_images" method="post" action="/cgi-bin/koha/patroncards/image-manage.pl" enctype="multipart/form-data">
50
                            <fieldset class="brief">
51
                            <div class="hint">Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 2MB.</div>
51
                                <div class="hint">Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 2MB.</div>
52
                                <ol>
52
                                <ol>
53
                                <li>
53
                                <li>
54
                                    <label for="uploadfile">Select the file to upload: </label>
54
                                    <label for="uploadfile">Select the file to upload: </label>
Lines 57-70 Link Here
57
                                </li>
57
                                </li>
58
                                <li>
58
                                <li>
59
                                    <label for="image_name">Image name: </label>
59
                                    <label for="image_name">Image name: </label>
60
61
                                    <input type="text" id="image_name" name="image_name" size="20" />
62
60
                                    <div class="hint">
63
                                    <div class="hint">
61
                                        This will be the name by which you will refer to this image in the patron card layout editor.
64
                                        This will be the name by which you will refer to this image in the patron card layout editor.
62
                                    </div>
65
                                    </div>
63
                                    <div class="hint">
66
                                    <div class="hint">
64
                                        To replace an image, delete it, upload a new file and give it the same image name.
67
                                        To replace an image, delete it, upload a new file and give it the same image name.
65
                                    </div>
68
                                    </div>
66
67
                                    <input type="text" id="image_name" name="image_name" size="20" />
68
                                </li>
69
                                </li>
69
                                </ol>
70
                                </ol>
70
                                <div class="action">
71
                                <div class="action">
Lines 78-92 Link Here
78
                                    <li>Image name: [% IMAGE_NAME | html %]</li></ul>
79
                                    <li>Image name: [% IMAGE_NAME | html %]</li></ul>
79
                                    </div>
80
                                    </div>
80
                                [% END %]
81
                                [% END %]
81
                            </fieldset>
82
83
                        </form>
82
                        </form>
83
                        </fieldset>
84
                    </div>
84
                    </div>
85
85
                    <div class="col-sm-6">
86
                    <div class="col-sm-6">
86
                    <h2>Delete images</h2>
87
                    <fieldset class="rows">
87
                        [% IF ( TABLE ) %]
88
                        <h3>Delete images</h3>
88
                        <form name="delete_images" method="post" action="/cgi-bin/koha/patroncards/image-manage.pl" enctype="multipart/form-data">
89
                            [% IF ( TABLE ) %]
89
                            <fieldset class="brief">
90
                            <form name="delete_images" method="post" action="/cgi-bin/koha/patroncards/image-manage.pl" enctype="multipart/form-data">
90
                                <div class="hint">
91
                                <div class="hint">
91
                                    Select one or more images to delete.
92
                                    Select one or more images to delete.
92
                                </div>
93
                                </div>
Lines 114-120 Link Here
114
                                    [% FOREACH text_field IN TABL.text_fields %]
115
                                    [% FOREACH text_field IN TABL.text_fields %]
115
                                    [% IF ( text_field.select_field ) %]
116
                                    [% IF ( text_field.select_field ) %]
116
                                        <td>
117
                                        <td>
117
                                            <a class="delete_image btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/image-manage.pl?op=delete&image_id=[% text_field.field_value | html %]"><i class="fa fa-trash"></i> Delete</a>
118
                                            <a class="delete_image btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/image-manage.pl?op=delete&image_id=[% text_field.field_value | html %]" id="lientype"><i class="fa fa-trash"></i> Delete</a>
118
                                        </td>
119
                                        </td>
119
                                        <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>
120
                                        <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>
120
                                    [% ELSIF ( text_field.field_value ) %]
121
                                    [% ELSIF ( text_field.field_value ) %]
Lines 129-145 Link Here
129
                                </table>
130
                                </table>
130
                                <div class="action">
131
                                <div class="action">
131
                                    <input type="hidden" name="op" value="delete" />
132
                                    <input type="hidden" name="op" value="delete" />
132
                                    <input class="btn btn-default btn-default" type="button" id="delete" value="Delete selected" />
133
                                    <input class="btn btn-default btn-default lientype" type="button" id="delete" value="Delete selected" />
133
                                </div>
134
                                </div>
134
                                [% IF ( DELETE_SUCCESSFULL ) %]
135
                                [% IF ( DELETE_SUCCESSFULL ) %]
135
                                <div id="dialog" class="dialog message">
136
                                <div id="dialog" class="dialog message">
136
                                    <h3>Image(s) successfully deleted</h3>
137
                                    <h3>Image(s) successfully deleted</h3>
137
                                </div>
138
                                </div>
138
                                [% END %]
139
                                [% END %]
139
                            </fieldset>
140
                        </form>
140
                        </form>
141
                            </fieldset>
141
                        [% ELSE %]
142
                        [% ELSE %]
142
                        <fieldset class="brief">
143
143
                            <div class="hint">
144
                            <div class="hint">
144
                                No images are currently available.
145
                                No images are currently available.
145
                            </div>
146
                            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt (-8 / +8 lines)
Lines 66-78 Link Here
66
66
67
                    [% INCLUDE 'patroncards-toolbar.inc' %]
67
                    [% INCLUDE 'patroncards-toolbar.inc' %]
68
68
69
                    <h1>Patron card templates</h1>
69
                    <h2>Patron card templates</h2>
70
70
71
                    [% INCLUDE 'patroncards-errors.inc' %]
71
                    [% INCLUDE 'patroncards-errors.inc' %]
72
                        <div id="manage-patroncards-layouts">
72
                        <div id="manage-patroncards-layouts">
73
                            [% IF ( table_loop ) %]
73
                            [% IF ( table_loop ) %]
74
                            <form name="layouts" action="/cgi-bin/koha/manage.pl?card_element=[% card_element | html %]">
74
                            <form name="layouts" action="/cgi-bin/koha/manage.pl?card_element=[% card_element | html %]">
75
                            <h2>Currently available [% PROCESS translate_card_element element=card_element_title FILTER lower %]</h2>
75
                            <fieldset id="rows">
76
                            <h3>Currently available [% PROCESS translate_card_element element=card_element_title FILTER lower %]</h3>
76
                            <table>
77
                            <table>
77
                                [% FOREACH table_loo IN table_loop %]
78
                                [% FOREACH table_loo IN table_loop %]
78
                                [% IF ( table_loo.header_fields ) %]
79
                                [% IF ( table_loo.header_fields ) %]
Lines 102-108 Link Here
102
                                [% IF ( text_field.select_field ) %]
103
                                [% IF ( text_field.select_field ) %]
103
                                    <td>
104
                                    <td>
104
                                      <a id="lientype" class="btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/edit-[% card_element | html %].pl?op=edit&element_id=[% text_field.field_value | html %]"><i class="fa fa-edit"></i> Edit</a>
105
                                      <a id="lientype" class="btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/edit-[% card_element | html %].pl?op=edit&element_id=[% text_field.field_value | html %]"><i class="fa fa-edit"></i> Edit</a>
105
                                      [% IF ( print ) %]<a class="btn btn-default btn-xs export" data-batch-id="[% text_field.field_value |url %]" href="/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]"><i class="fa fa-share-square-o"></i> Export</a>[% END %]
106
                                      [% IF ( print ) %]<a id="lientype" class="btn btn-default btn-xs export" data-batch-id="[% text_field.field_value |url %]" href="/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]"><i class="fa fa-share-square-o"></i> Export</a>[% END %]
106
                                      <a id="lientype" class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element | html %]&element_id=[% text_field.field_value | html %]"><i class="fa fa-trash"></i> Delete</a>
107
                                      <a id="lientype" class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element | html %]&element_id=[% text_field.field_value | html %]"><i class="fa fa-trash"></i> Delete</a>
107
                                    </td>
108
                                    </td>
108
                                    [% IF ( print ) %]<td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>[% END %]
109
                                    [% IF ( print ) %]<td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>[% END %]
Lines 117-127 Link Here
117
                                [% END %]
118
                                [% END %]
118
                            </table>
119
                            </table>
119
                            <fieldset class="action">
120
                            <fieldset class="action">
120
                                [% IF ( print ) %]<input type="button" id="print" value="Export selected batches" />[% END %]
121
                                [% IF ( print ) %]<input type="button" id="print" class="principal" value="Export selected batches" />[% END %]
122
                            </fieldset>
121
                            </fieldset>
123
                            </fieldset>
122
                            [% IF patron_lists %]
124
                            [% IF patron_lists %]
123
                            <fieldset class="rows">
125
                            <fieldset class="rows">
124
                                <legend>Or use a patron list</legend>
126
                                <h3>Or use a patron list</h3>
125
                                <ol>
127
                                <ol>
126
                                    <li>
128
                                    <li>
127
                                        <label for="patron_list_id">Patron list: </label>
129
                                        <label for="patron_list_id">Patron list: </label>
Lines 133-141 Link Here
133
                                        </select>
135
                                        </select>
134
                                    </li>
136
                                    </li>
135
                                </ol>
137
                                </ol>
136
                            </fieldset>
138
                                <input type="button" id="printlist" class="principal" value="Export from patron list" />
137
                            <fieldset class="action">
138
                                <input type="button" id="printlist" value="Export from patron list" />
139
                            </fieldset>
139
                            </fieldset>
140
                            [% END %]
140
                            [% END %]
141
                            </form>
141
                            </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt (-12 / +21 lines)
Lines 7-47 Link Here
7
7
8
<body id="pcard_print" class="tools pcard">
8
<body id="pcard_print" class="tools pcard">
9
    <div class="container-fluid">
9
    <div class="container-fluid">
10
        <h1>Patron card printing/exporting</h1>
10
        <h2>Patron card printing/exporting</h2>
11
            [% IF ( batches ) %]
11
            [% IF ( batches ) %]
12
            <form>
12
            <form>
13
                <h3>Click on the following link(s) to download the exported batch(es).</h3>
14
                    <fieldset>
13
                    <fieldset>
15
                    [% FOREACH batche IN batches %]
14
                    [% FOREACH batche IN batches %]
16
                        [% IF ( batche.label_ids ) %]
15
                        [% IF ( batche.label_ids ) %]
17
                        <legend>[% batche.card_count | html %] Single patron cards</legend>
16
                        <h3>[% batche.card_count | html %] Single patron cards</h3>
18
                        <p>
17
                        <p>
19
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script | html %]?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %][% batche.label_ids | html %]">label_single_[% batche.card_count | html %].pdf</a>
18
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script | html %]?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %][% batche.label_ids | html %]">label_single_[% batche.card_count | html %].pdf</a>
20
                        </p>
19
                        </p>
21
                        [% ELSIF ( batche.borrower_numbers ) %]
20
                        [% ELSIF ( batche.borrower_numbers ) %]
22
                        <legend>[% batche.card_count | html %] Single patron cards</legend>
21
                        <h3>[% batche.card_count | html %] Single patron cards</h3>
23
                        <p>
22
                        <p>
24
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script | html %]?template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %][% batche.borrower_numbers | html %]">label_single_[% batche.card_count | html %].pdf</a>
23
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script | html %]?template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %][% batche.borrower_numbers | html %]">label_single_[% batche.card_count | html %].pdf</a>
25
                        </p>
24
                        </p>
26
                        [% ELSE %]
25
                        [% ELSE %]
27
                        <legend>Card batch number [% batche.batch_id | html %]</legend>
26
                        <h3>Card batch number [% batche.batch_id | html %]</h3>
28
                        <p>
27
                        <p>
29
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %]">label_batch_[% batche.batch_id | html %].pdf</a>
28
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;layout_back_id=[% batche.layout_back_id | html %]&amp;start_card=[% batche.start_card | html %]">label_batch_[% batche.batch_id | html %].pdf</a>
30
                        </p>
29
                        </p>
31
                        [% END %]
30
                        [% END %]
32
                    [% END %]
31
                    [% END %]
33
                    </fieldset>
32
                <p>Click on the link(s) to download the exported batch(es).</p>
34
33
35
                <fieldset class="action">
34
                    <input type="button" class="gb-close principal" value="Done" />
36
                    <input type="button" class="gb-close" value="Done" />
37
                </fieldset>
35
                </fieldset>
38
            </form>
36
            </form>
39
            [% ELSIF ( patronlist_id && template_id && layout_id ) %]
37
            [% ELSIF ( patronlist_id && template_id && layout_id ) %]
40
                <div id="export_patron_list">
38
                <div id="export_patron_list">
41
                    <h3>Click on the link to download the patron cards from the patron list.</h3>
39
                <fieldset>
40
                    <h3>Click on the link to download the patron cards from the patron list</h3>
42
                    <p>
41
                    <p>
43
                        <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?patronlist_id=[% patronlist_id | html %]&amp;template_id=[% template_id | html %]&amp;layout_id=[% layout_id | html %]&amp;layout_back_id=[% layout_back_id | html %]&amp;start_card=[% start_card | html %]">label_patronlist_[% patronlist_id | html %].pdf</a>
42
                        <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?patronlist_id=[% patronlist_id | html %]&amp;template_id=[% template_id | html %]&amp;layout_id=[% layout_id | html %]&amp;layout_back_id=[% layout_back_id | html %]&amp;start_card=[% start_card | html %]">label_patronlist_[% patronlist_id | html %].pdf</a>
44
                    </p>
43
                    </p>
44
                </fieldset>
45
                </div>
45
                </div>
46
            [% ELSE %]
46
            [% ELSE %]
47
            <h3>
47
            <h3>
Lines 68-73 Link Here
68
                [% END %]
68
                [% END %]
69
                [% IF (patronlist_id) %] <input type="hidden" name="patronlist_id" value="[% patronlist_id | html %]" /> [% END %]
69
                [% IF (patronlist_id) %] <input type="hidden" name="patronlist_id" value="[% patronlist_id | html %]" /> [% END %]
70
                <fieldset class="rows">
70
                <fieldset class="rows">
71
            <h3>
72
                    [% IF ( label_ids ) %]
73
                        [% IF ( card_count == 1 ) %]Exporting [% card_count | html %] patron card[% ELSE %]Exporting [% card_count | html %] patron cards[% END %]
74
                    [% ELSIF ( borrower_numbers ) %]
75
                        [% IF ( borrower_count == 1 ) %]Exporting [% borrower_count | html %] patron card[% ELSE %]Exporting [% borrower_count | html %] patron cards[% END %]
76
                    [% ELSIF ( patronlist_id ) %] Exporting from patron list
77
                    [% ELSE %]
78
                        [% IF ( multi_batch_count == 1 ) %][% multi_batch_count | html %] batch to export[% ELSE %][% multi_batch_count | html %] batches to export[% END %]
79
                    [% END %]
80
            </h3>
71
                    <ol>
81
                    <ol>
72
                        <li>
82
                        <li>
73
                            <label style="width:9em" for="template_id">Select a template to be applied: </label>
83
                            <label style="width:9em" for="template_id">Select a template to be applied: </label>
Lines 101-109 Link Here
101
                            <input type="text" size="5" id="start_card" name="start_card" class="focus" title="Starting card number" value="1" />
111
                            <input type="text" size="5" id="start_card" name="start_card" class="focus" title="Starting card number" value="1" />
102
                        </li>
112
                        </li>
103
                    </ol>
113
                    </ol>
104
                </fieldset>
114
105
                <fieldset class="action">
115
                    <input type="submit" class="principal" value="Export" />
106
                    <input type="submit" value="Export" />
107
                    <a href="#" class="cancel gb-close">Cancel</a>
116
                    <a href="#" class="cancel gb-close">Cancel</a>
108
                </fieldset>
117
                </fieldset>
109
            </form>
118
            </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-disabled.tt (-1 / +1 lines)
Lines 36-42 Link Here
36
    <div class="container-fluid">
36
    <div class="container-fluid">
37
        <div class="row">
37
        <div class="row">
38
            <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
38
            <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
39
                <h1>Plugins disabled!</h1>
39
                <h2>Plugins disabled!</h2>
40
40
41
                <p>To enable Koha plugins, the flag enable_plugins must be set in the Koha configuration file</p>
41
                <p>To enable Koha plugins, the flag enable_plugins must be set in the Koha configuration file</p>
42
            </div>
42
            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt (-2 / +2 lines)
Lines 41-47 Link Here
41
    <div class="row">
41
    <div class="row">
42
        <div class="col-sm-10 col-sm-push-2">
42
        <div class="col-sm-10 col-sm-push-2">
43
            <main>
43
            <main>
44
                    <h1>Plugins</h1>
44
                    <h2>Plugins</h2>
45
45
46
                <div class="details">
46
                <div class="details">
47
47
Lines 185-191 Link Here
185
                                    [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
185
                                    [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
186
                                        <td class="actions">
186
                                        <td class="actions">
187
                                            <div class="btn-group dropup">
187
                                            <div class="btn-group dropup">
188
                                                <a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% plugin.class | html %]" role="button" data-toggle="dropdown" href="#">
188
                                                <a class="btn btn-default btn-xs dropdown-toggle lientype" id="pluginactions[% plugin.class | html %]" role="button" data-toggle="dropdown" href="#">
189
                                                   Actions <b class="caret"></b>
189
                                                   Actions <b class="caret"></b>
190
                                                </a>
190
                                                </a>
191
                                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]">
191
                                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt (-3 / +2 lines)
Lines 51-65 Link Here
51
                </div>
51
                </div>
52
                [% END %]
52
                [% END %]
53
                <form method="post" action="/cgi-bin/koha/plugins/plugins-upload.pl" enctype="multipart/form-data">
53
                <form method="post" action="/cgi-bin/koha/plugins/plugins-upload.pl" enctype="multipart/form-data">
54
                    <fieldset class="brief">
54
                    <fieldset class="rows">
55
                         <div class="hint"><strong>NOTE:</strong> Only KPZ file format is supported.</div>
55
                         <div class="hint"><strong>NOTE:</strong> Only KPZ file format is supported.</div>
56
                        <ol>
56
                        <ol>
57
                            <li>
57
                            <li>
58
                                <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
58
                                <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
59
                            </li>
59
                            </li>
60
                        </ol>
60
                        </ol>
61
                    </fieldset>
61
62
                    <fieldset class="action">
63
                        <input type="hidden" name="op" value="Upload" />
62
                        <input type="hidden" name="op" value="Upload" />
64
                        <input  class="principal" type="submit" value="Upload" class="submit" />
63
                        <input  class="principal" type="submit" value="Upload" class="submit" />
65
                    </fieldset>
64
                    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tt (-4 / +1 lines)
Lines 50-59 Link Here
50
        <div class="col-sm-10 col-sm-push-2">
50
        <div class="col-sm-10 col-sm-push-2">
51
            <main>
51
            <main>
52
52
53
<h1>Acquisitions statistics </h1>
53
<h2>Acquisitions statistics </h2>
54
[% IF ( do_it ) %]
54
[% IF ( do_it ) %]
55
	[% FOREACH mainloo IN mainloop %]
55
	[% FOREACH mainloo IN mainloop %]
56
		<h2>Acquisitions statistics </h2>
57
        [% IF ( mainloo.loopfilter.size ) %]
56
        [% IF ( mainloo.loopfilter.size ) %]
58
            <p><strong>Filtered on:</strong></p>
57
            <p><strong>Filtered on:</strong></p>
59
            [% FOREACH loopfilte IN mainloo.loopfilter %]
58
            [% FOREACH loopfilte IN mainloo.loopfilter %]
Lines 328-336 Link Here
328
            </select>
327
            </select>
329
        </li>
328
        </li>
330
    </ol>
329
    </ol>
331
	</fieldset>
332
330
333
	<fieldset class="action">
334
	<input type="submit" class="principal" value="Submit" />
331
	<input type="submit" class="principal" value="Submit" />
335
	<input type="hidden" name="report_name" value="[% report_name | html %]" />
332
	<input type="hidden" name="report_name" value="[% report_name | html %]" />
336
	<input type="hidden" name="do_it" value="1" />
333
	<input type="hidden" name="do_it" value="1" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tt (-1 / +1 lines)
Lines 54-61 Link Here
54
            <main>
54
            <main>
55
55
56
[% IF ( do_it ) %]
56
[% IF ( do_it ) %]
57
    <h2>Patrons with the most checkouts</h2>
57
	[% FOREACH mainloo IN mainloop %]
58
	[% FOREACH mainloo IN mainloop %]
58
        <h2>Patrons with the most checkouts</h2>
59
		[% IF ( mainloo.loopfilter ) %]
59
		[% IF ( mainloo.loopfilter ) %]
60
            [% IF mainloo.loopfilter.size %]
60
            [% IF mainloo.loopfilter.size %]
61
                <p>Filtered on:</p>
61
                <p>Filtered on:</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tt (-1 / +1 lines)
Lines 40-47 Link Here
40
            <main>
40
            <main>
41
41
42
[% IF ( do_it ) %]
42
[% IF ( do_it ) %]
43
    <h2>Patrons with no checkouts</h2>
43
    [% FOREACH mainloo IN mainloop %]
44
    [% FOREACH mainloo IN mainloop %]
44
        <h2>Patrons with no checkouts</h2>
45
        [% IF ( mainloo.loopfilter ) %]
45
        [% IF ( mainloo.loopfilter ) %]
46
            <p>Filtered on:</p>
46
            <p>Filtered on:</p>
47
            [% FOREACH loopfilte IN mainloo.loopfilter %]
47
            [% FOREACH loopfilte IN mainloo.loopfilter %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_stats.tt (-4 / +1 lines)
Lines 58-67 Link Here
58
        <div class="col-sm-10 col-sm-push-2">
58
        <div class="col-sm-10 col-sm-push-2">
59
            <main>
59
            <main>
60
60
61
<h1>Patrons statistics</h1>
61
<h2>Patrons statistics</h2>
62
[% IF ( do_it ) %]
62
[% IF ( do_it ) %]
63
	[% FOREACH mainloo IN mainloop %]
63
	[% FOREACH mainloo IN mainloop %]
64
		<h2>Patrons statistics</h2>
65
        [% IF ( mainloo.loopfilter.size>0 ) %]
64
        [% IF ( mainloo.loopfilter.size>0 ) %]
66
            <p>Filtered on:</p>
65
            <p>Filtered on:</p>
67
			[% FOREACH loopfilte IN mainloo.loopfilter %]
66
			[% FOREACH loopfilte IN mainloo.loopfilter %]
Lines 319-327 Link Here
319
            </select>
318
            </select>
320
        </li>
319
        </li>
321
    </ol>
320
    </ol>
322
	</fieldset>
323
321
324
	<fieldset class="action">
325
	<input type="submit" class="principal" value="Submit" />
322
	<input type="submit" class="principal" value="Submit" />
326
	<input type="hidden" name="report_name" value="[% report_name | html %]" />
323
	<input type="hidden" name="report_name" value="[% report_name | html %]" />
327
	<input type="hidden" name="do_it" value="1" />
324
	<input type="hidden" name="do_it" value="1" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt (-46 / +49 lines)
Lines 61-66 Link Here
61
            <main>
61
            <main>
62
62
63
    <h2>Cash register statistics</h2>
63
    <h2>Cash register statistics</h2>
64
65
[% IF ( do_it ) %]
66
    <div>&nbsp;</div>
67
    <table id="tbl_cash_register_stats">
68
        <thead>
69
        <tr>
70
            <th>Manager name</th>
71
            <th>Patron card number</th>
72
            <th>Patron name</th>
73
            <th>Transaction library</th>
74
            <th>Transaction date</th>
75
            <th>Updated</th>
76
            <th>Transaction type</th>
77
            <th>Notes</th>
78
            <th>Amount</th>
79
            <th>Bibliographic record title</th>
80
            <th>Barcode</th>
81
            <th>Item type</th>
82
        </tr>
83
        </thead>
84
        [% FOREACH loopresul IN loopresult %]
85
            <tr>
86
                <td>[% loopresul.mfirstname | html %] [% loopresul.msurname | html %]</td>
87
                <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopresul.borrowernumber | uri %]">[% loopresul.cardnumber | html %]</a></td>
88
                <td>[% loopresul.bfirstname | html %] [% loopresul.bsurname | html %]</td>
89
                <td>[% loopresul.branchname | html %]</td>
90
                <td>[% loopresul.date | $KohaDates %]</td>
91
                <td>[% loopresul.timestamp | $KohaDates with_hours = 1 %]</td>
92
                <td>[% loopresul.type_description | html %]</td>
93
                <td>[% loopresul.note | html %]</td>
94
                <td style="text-align:right;">[% loopresul.amount | $Price %]</td>
95
                <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopresul.biblionumber | uri %]">[% loopresul.title | html %]</a></td>
96
                <td>[% loopresul.barcode | html %]</td>
97
                <td>[% ItemTypes.GetDescription(loopresul.itype) | html %]</td>
98
            </tr>
99
        [% END %]
100
        <tfoot>
101
        <tr>
102
            [% IF transaction_type == "ACT" %]
103
            <th colspan="8" style="text-align:right;">TOTAL</th>
104
            <th style="text-align:right;">[% total  | $Price %]</th>
105
            <th colspan="3">&nbsp;</th>
106
            [% END %]
107
        </tr>
108
        </tfoot>
109
    </table>
110
111
    [% ELSE %]
112
64
    <form method="post" action="/cgi-bin/koha/reports/cash_register_stats.pl" id="frmCashRegister">
113
    <form method="post" action="/cgi-bin/koha/reports/cash_register_stats.pl" id="frmCashRegister">
65
        <fieldset class="rows">
114
        <fieldset class="rows">
66
            <h3>Cash register statistics [% beginDate | $KohaDates %] to [% endDate | $KohaDates %]</h3>
115
            <h3>Cash register statistics [% beginDate | $KohaDates %] to [% endDate | $KohaDates %]</h3>
Lines 161-212 Link Here
161
        </fieldset>
210
        </fieldset>
162
    </form>
211
    </form>
163
212
164
    [% IF ( do_it ) %]
165
    <div>&nbsp;</div>
166
    <table id="tbl_cash_register_stats">
167
        <thead>
168
        <tr>
169
            <th>Manager name</th>
170
            <th>Patron card number</th>
171
            <th>Patron name</th>
172
            <th>Transaction library</th>
173
            <th>Transaction date</th>
174
            <th>Updated</th>
175
            <th>Transaction type</th>
176
            <th>Notes</th>
177
            <th>Amount</th>
178
            <th>Bibliographic record title</th>
179
            <th>Barcode</th>
180
            <th>Item type</th>
181
        </tr>
182
        </thead>
183
        [% FOREACH loopresul IN loopresult %]
184
            <tr>
185
                <td>[% loopresul.mfirstname | html %] [% loopresul.msurname | html %]</td>
186
                <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopresul.borrowernumber | uri %]">[% loopresul.cardnumber | html %]</a></td>
187
                <td>[% loopresul.bfirstname | html %] [% loopresul.bsurname | html %]</td>
188
                <td>[% loopresul.branchname | html %]</td>
189
                <td>[% loopresul.date | $KohaDates %]</td>
190
                <td>[% loopresul.timestamp | $KohaDates with_hours = 1 %]</td>
191
                <td>[% loopresul.type_description | html %]</td>
192
                <td>[% loopresul.note | html %]</td>
193
                <td style="text-align:right;">[% loopresul.amount | $Price %]</td>
194
                <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopresul.biblionumber | uri %]">[% loopresul.title | html %]</a></td>
195
                <td>[% loopresul.barcode | html %]</td>
196
                <td>[% ItemTypes.GetDescription(loopresul.itype) | html %]</td>
197
            </tr>
198
        [% END %]
199
        <tfoot>
200
        <tr>
201
            [% IF transaction_type == "ACT" %]
202
            <th colspan="8" style="text-align:right;">TOTAL</th>
203
            <th style="text-align:right;">[% total  | $Price %]</th>
204
            <th colspan="3">&nbsp;</th>
205
            [% END %]
206
        </tr>
207
        </tfoot>
208
    </table>
209
210
    [% END %] [%# do_it %]
213
    [% END %] [%# do_it %]
211
214
212
            </main>
215
            </main>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tt (-1 / +1 lines)
Lines 53-60 Link Here
53
53
54
[% IF ( do_it ) %]
54
[% IF ( do_it ) %]
55
55
56
    <h2>Top [% mainloo.limit | html %] Most-circulated items</h2>
56
	[% FOREACH mainloo IN mainloop %]
57
	[% FOREACH mainloo IN mainloop %]
57
        <h2>Top [% mainloo.limit | html %] Most-circulated items</h2>
58
		[% IF ( mainloo.loopfilter ) %]
58
		[% IF ( mainloo.loopfilter ) %]
59
            <p>Filtered on:</p>
59
            <p>Filtered on:</p>
60
			[% FOREACH loopfilte IN mainloo.loopfilter %]
60
			[% FOREACH loopfilte IN mainloo.loopfilter %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt (-5 / +1 lines)
Lines 51-60 Link Here
51
        <div class="col-sm-10 col-sm-push-2">
51
        <div class="col-sm-10 col-sm-push-2">
52
            <main>
52
            <main>
53
53
54
<h1>Catalog statistics</h1>
54
<h2>Catalog statistics</h2>
55
[% IF ( do_it ) %]
55
[% IF ( do_it ) %]
56
	[% FOREACH mainloo IN mainloop %]
56
	[% FOREACH mainloo IN mainloop %]
57
		<h2>Catalog statistics</h2>
58
		[% IF ( mainloo.loopfilter ) %]
57
		[% IF ( mainloo.loopfilter ) %]
59
            <p>Filtered on:</p>
58
            <p>Filtered on:</p>
60
			[% FOREACH loopfilte IN mainloo.loopfilter %]
59
			[% FOREACH loopfilte IN mainloo.loopfilter %]
Lines 325-333 Link Here
325
            </select>
324
            </select>
326
		</li>
325
		</li>
327
	</ol>
326
	</ol>
328
	</fieldset>
329
330
	<fieldset class="action">
331
	<input type="submit" class="principal" value="Submit" />
327
	<input type="submit" class="principal" value="Submit" />
332
	<input type="hidden" name="report_name" value="[% report_name | html %]" />
328
	<input type="hidden" name="report_name" value="[% report_name | html %]" />
333
	<input type="hidden" name="do_it" value="1" />
329
	<input type="hidden" name="do_it" value="1" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt (-17 / +11 lines)
Lines 166-172 Link Here
166
            [% END %]
166
            [% END %]
167
        </table>
167
        </table>
168
                [% ELSE %]
168
                [% ELSE %]
169
                <div class="dialog message">There are no saved definitions. <a id="newdictionary" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition">Add a definition to the dictionary.</a></div>
169
                <div class="dialog message">There are no saved definitions. <a class="lientype" id="newdictionary" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition">Add a definition to the dictionary.</a></div>
170
		[% END %]
170
		[% END %]
171
[% END %]
171
[% END %]
172
172
Lines 182-196 Link Here
182
<label for="definition_description">Definition description:</label>
182
<label for="definition_description">Definition description:</label>
183
<textarea name="definition_description" id="definition_description" rows="3" cols="20"></textarea>
183
<textarea name="definition_description" id="definition_description" rows="3" cols="20"></textarea>
184
</li>
184
</li>
185
</ol></fieldset>
185
</ol>
186
186
<input type="hidden" name="phase" value="New Term step 2" />
187
<fieldset class="action"><input type="hidden" name="phase" value="New Term step 2" />
188
<input name="submit" class="principal" value="Next" type="submit" /></fieldset>
187
<input name="submit" class="principal" value="Next" type="submit" /></fieldset>
189
</form>
188
</form>
190
[% END %]
189
[% END %]
191
190
192
[%- IF ( step_2 ) -%]
191
[%- IF ( step_2 ) -%]
193
<h3>Add new definition</h3>
192
<h2>Add new definition</h2>
194
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
193
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
195
  <fieldset class="rows">
194
  <fieldset class="rows">
196
    <h3>Step 2 of 5: Choose the area</h3>
195
    <h3>Step 2 of 5: Choose the area</h3>
Lines 206-218 Link Here
206
        </select>
205
        </select>
207
      </li>
206
      </li>
208
    </ol>
207
    </ol>
209
  </fieldset>
208
<input name="submit" class="principal" value="Next" type="submit" /></fieldset>
210
  <fieldset class="action"><input name="submit" class="principal" value="Next" type="submit" /></fieldset>
211
</form>
209
</form>
212
[%- END -%]
210
[%- END -%]
213
211
214
[% IF ( step_3 ) %]
212
[% IF ( step_3 ) %]
215
<h3>Add new definition</h3>
213
<h2>Add new definition</h2>
216
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">      
214
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">      
217
<fieldset class="rows">
215
<fieldset class="rows">
218
<h3>Step 3 of 5: Choose a column</h3>
216
<h3>Step 3 of 5: Choose a column</h3>
Lines 242-254 Link Here
242
</select>
240
</select>
243
241
244
<input type="hidden" name="phase" value="New Term step 4" />
242
<input type="hidden" name="phase" value="New Term step 4" />
245
</fieldset>
243
<input type="submit" class="principal" name="submit" value="Next" /></fieldset>
246
<fieldset class="action"><input type="submit" class="principal" name="submit" value="Next" /></fieldset>
247
</form>
244
</form>
248
[% END %]
245
[% END %]
249
246
250
[% IF ( step_4 ) %]
247
[% IF ( step_4 ) %]
251
<h3>Add new definition</h3>
248
<h2>Add new definition</h2>
252
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
249
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
253
<fieldset class="rows">
250
<fieldset class="rows">
254
<h3>Step 4 of 5: Specify a value</h3>
251
<h3>Step 4 of 5: Specify a value</h3>
Lines 290-297 Link Here
290
[% END %]
287
[% END %]
291
</ol>
288
</ol>
292
<input type="hidden" name="phase" value="New Term step 5" />
289
<input type="hidden" name="phase" value="New Term step 5" />
293
</fieldset>
290
294
<fieldset class="action">
295
<input type="submit" class="principal" name="submit" value="Next" />
291
<input type="submit" class="principal" name="submit" value="Next" />
296
</fieldset>
292
</fieldset>
297
</form>
293
</form>
Lines 304-310 Link Here
304
<input type="hidden" name="definition_description" value="[% definition_description | html %]" />
300
<input type="hidden" name="definition_description" value="[% definition_description | html %]" />
305
<input type="hidden" name="columnstring" value="[% columnstring | html %]" />
301
<input type="hidden" name="columnstring" value="[% columnstring | html %]" />
306
302
307
<h3>Add new definition</h3>
303
<h2>Add new definition</h2>
308
304
309
<fieldset class="rows">
305
<fieldset class="rows">
310
  <h3>Step 5 of 5: Confirm details</h3>
306
  <h3>Step 5 of 5: Confirm details</h3>
Lines 334-342 Link Here
334
      </table>
330
      </table>
335
    </li>
331
    </li>
336
  </ol>
332
  </ol>
337
</fieldset>
333
<input type="hidden" name="sql" value="[% query | html %]" />
338
339
<fieldset class="action"><input type="hidden" name="sql" value="[% query | html %]" />
340
<input type="hidden" name="phase" value="New Term step 6" />
334
<input type="hidden" name="phase" value="New Term step 6" />
341
<input type="submit" class="principal" name="submit" value="Save" />         </fieldset>
335
<input type="submit" class="principal" name="submit" value="Save" />         </fieldset>
342
336
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-27 / +27 lines)
Lines 168-174 Link Here
168
                <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
168
                <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
169
            </div>
169
            </div>
170
            <div class="modal-footer">
170
            <div class="modal-footer">
171
                <a href="#" class="btn btn-default" id="update_sql_button" role="button" data-toggle="modal">Update</a>
171
                <a href="#" class="btn btn-default lientype" id="update_sql_button" role="button" data-toggle="modal">Update</a>
172
                <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
172
                <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
173
            </div>
173
            </div>
174
        </div> <!-- /.modal-content -->
174
        </div> <!-- /.modal-content -->
Lines 183-189 Link Here
183
                [% INCLUDE "reports-toolbar.inc" %]
183
                [% INCLUDE "reports-toolbar.inc" %]
184
184
185
                [% IF ( start ) %]
185
                [% IF ( start ) %]
186
                    <h1>Guided reports</h1>
186
                    <h2>Guided reports</h2>
187
                    <p>Use the guided reports engine to create non standard reports. This feature aims to provide some middle ground between the built in canned reports and writing custom SQL reports.</p>
187
                    <p>Use the guided reports engine to create non standard reports. This feature aims to provide some middle ground between the built in canned reports and writing custom SQL reports.</p>
188
188
189
                    <h3>Build and run reports</h3>
189
                    <h3>Build and run reports</h3>
Lines 245-251 Link Here
245
                                    [% IF ( filters.keyword ) %]
245
                                    [% IF ( filters.keyword ) %]
246
                                        <span class="filter_keyword"><strong>Keyword:</strong> [% filters.keyword | html %]</span>
246
                                        <span class="filter_keyword"><strong>Keyword:</strong> [% filters.keyword | html %]</span>
247
                                    [% END %]
247
                                    [% END %]
248
                                    <a class="clear_filter" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved&clear_filters=1"><i class="fa fa-remove"></i> Clear</a>
248
                                    <a class="clear_filter" id="lientype" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved&clear_filters=1"><i class="fa fa-remove"></i> Clear</a>
249
                                </span>
249
                                </span>
250
                            </p>
250
                            </p>
251
                        [% END %]
251
                        [% END %]
Lines 382-397 Link Here
382
                                                        <td>
382
                                                        <td>
383
                                                            [% IF savedreport.seems_obsolete %]
383
                                                            [% IF savedreport.seems_obsolete %]
384
                                                                This report seems obsolete, it uses biblioitems.marcxml field.
384
                                                                This report seems obsolete, it uses biblioitems.marcxml field.
385
                                                                <a href="/cgi-bin/koha/svc/convert_report?report_id=[% savedreport.id | uri %]" data-report_id="[% savedreport.id | html %]" class="update_sql btn btn-default btn-xs" title="Update SQL"><i class="fa fa-eye"></i> Update SQL</a>
385
                                                                <a href="/cgi-bin/koha/svc/convert_report?report_id=[% savedreport.id | uri %]" data-report_id="[% savedreport.id | html %]" class="update_sql btn btn-default btn-xs" id="lientype" title="Update SQL"><i class="fa fa-eye"></i> Update SQL</a>
386
                                                            [% END %]
386
                                                            [% END %]
387
                                                        </td>
387
                                                        </td>
388
                                                        <td>
388
                                                        <td>
389
                                                            <div class="btn-group dropup">
389
                                                            <div class="btn-group dropup">
390
                                                                [%# There should be no space between these two buttons, it would render badly %]
390
                                                                [%# There should be no space between these two buttons, it would render badly %]
391
                                                                <a class="btn btn-default btn-xs" role="button"
391
                                                                <a class="btn btn-default btn-xs lientype" role="button"
392
                                                                href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id | html %]&amp;phase=Run%20this%20report"><i
392
                                                                href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id | html %]&amp;phase=Run%20this%20report"><i
393
                                                                class="fa fa-play"></i> Run</a><a
393
                                                                class="fa fa-play"></i> Run</a><a
394
                                                                class="btn btn-default btn-xs dropdown-toggle" id="reportactions[% savedreport.id | html %]" role="button" data-toggle="dropdown"
394
                                                                class="btn btn-default btn-xs dropdown-toggle lientype" id="reportactions[% savedreport.id | html %]" role="button" data-toggle="dropdown"
395
                                                                href="#"><b class="caret"></b></a>
395
                                                                href="#"><b class="caret"></b></a>
396
                                                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reportactions[% savedreport.id | html %]">
396
                                                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reportactions[% savedreport.id | html %]">
397
                                                                    <li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id | uri %]&amp;phase=Show%20SQL"><i class="fa fa-search"></i> View</a></li>
397
                                                                    <li><a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id | uri %]&amp;phase=Show%20SQL"><i class="fa fa-search"></i> View</a></li>
Lines 448-460 Link Here
448
                                        <input type="hidden" name="phase" value="Use saved" />
448
                                        <input type="hidden" name="phase" value="Use saved" />
449
                                        <input type="hidden" name="filter_set" value="1" />
449
                                        <input type="hidden" name="filter_set" value="1" />
450
                                        <input type="hidden" name="filter_keyword" value="" />
450
                                        <input type="hidden" name="filter_keyword" value="" />
451
                                        <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> Cancel filter</button>
451
                                        <button type="submit" class="deny cancel"><i class="fa fa-fw fa-remove"></i> Cancel filter</button>
452
                                    </form>
452
                                    </form>
453
                                [% END %]
453
                                [% END %]
454
                            [% ELSE %]
454
                            [% ELSE %]
455
                                <h4>There are no saved reports. </h4>
455
                                <h4>There are no saved reports. </h4>
456
                                [% IF ( CAN_user_reports_create_reports ) %]
456
                                [% IF ( CAN_user_reports_create_reports ) %]
457
                                    <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">Build a new report?</a>
457
                                    <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new" id="lientype">Build a new report?</a>
458
                                [% END %]
458
                                [% END %]
459
                            [% END # IF (filter_set || filters.date || filters.author || filters.keyword) %]
459
                            [% END # IF (filter_set || filters.date || filters.author || filters.keyword) %]
460
                        </div> <!-- /.dialog.message -->
460
                        </div> <!-- /.dialog.message -->
Lines 564-570 Link Here
564
                            <div class="row">
564
                            <div class="row">
565
                                <div class="col-sm-6">
565
                                <div class="col-sm-6">
566
                                    <div style="float: left;">
566
                                    <div style="float: left;">
567
                                        <select id="availableColumns" name="oldcolumns2" multiple="multiple" size="25" style="min-width: 200px;height:300px;">
567
                                        <select id="availableColumns" name="oldcolumns2" multiple="multiple" size="25" style="min-width: 200px; width: 100%; overflow: auto; height:300px;">
568
                                            [% FOREACH column IN columns %]
568
                                            [% FOREACH column IN columns %]
569
                                                [% IF ( column.table ) %]
569
                                                [% IF ( column.table ) %]
570
                                                    [% IF ( loop.first ) %]
570
                                                    [% IF ( loop.first ) %]
Lines 935-942 Link Here
935
                    </div>
935
                    </div>
936
936
937
                    <div>
937
                    <div>
938
                        <a href="#" id="toggle_chart_settings_hid" class="toggle_chart_settings" style="display:none"><i class="fa fa-eye-slash"></i> Hide chart</a>
938
                        <a href="#" id="toggle_chart_settings_hid" class="toggle_chart_settings lientype" style="display:none"><i class="fa fa-eye-slash"></i> Hide chart</a>
939
                        <a href="#" id="toggle_chart_settings_vis" class="toggle_chart_settings" style="display:none"><i class="fa fa fa-eye"></i> Show chart</a>
939
                        <a href="#" id="toggle_chart_settings_vis" class="toggle_chart_settings lientype" style="display:none"><i class="fa fa fa-eye"></i> Show chart</a>
940
                    </div>
940
                    </div>
941
                    <div id="chart" class="clearfix"></div>
941
                    <div id="chart" class="clearfix"></div>
942
942
Lines 1040-1046 Link Here
1040
                                <div id="toolbar" class="btn-toolbar">
1040
                                <div id="toolbar" class="btn-toolbar">
1041
                                    [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %]
1041
                                    [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %]
1042
                                        <div class="btn-group">
1042
                                        <div class="btn-group">
1043
                                            <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="batch_mod_menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
1043
                                            <button class="btn btn-default btn-sm dropdown-toggle pat" type="button" id="batch_mod_menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
1044
                                                Batch operations with [% IF unlimited_total >= limit %][% limit | html %][% ELSE %][% unlimited_total | html %][% END %] visible records
1044
                                                Batch operations with [% IF unlimited_total >= limit %][% limit | html %][% ELSE %][% unlimited_total | html %][% END %] visible records
1045
                                                <span class="caret"></span>
1045
                                                <span class="caret"></span>
1046
                                            </button>
1046
                                            </button>
Lines 1080-1086 Link Here
1080
1080
1081
                                    [% IF ( unlimited_total > 10 && limit <= 1000 ) %]
1081
                                    [% IF ( unlimited_total > 10 && limit <= 1000 ) %]
1082
                                        <div class="btn-group">
1082
                                        <div class="btn-group">
1083
                                            <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
1083
                                            <button type="button" class="btn btn-default btn-sm dropdown-toggle pat" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
1084
                                                [% IF ( limit ) %]
1084
                                                [% IF ( limit ) %]
1085
                                                    Rows per page: <strong>[% limit | html %]</strong>
1085
                                                    Rows per page: <strong>[% limit | html %]</strong>
1086
                                                [% ELSE %]
1086
                                                [% ELSE %]
Lines 1106-1112 Link Here
1106
                                    [% END # /IF ( unlimited_total > 10 && limit <= 1000 ) %]
1106
                                    [% END # /IF ( unlimited_total > 10 && limit <= 1000 ) %]
1107
1107
1108
                                    [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %]
1108
                                    [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %]
1109
                                        <a href="#" class="btn btn-link" id="toggle_auto_links">
1109
                                        <a href="#" class="btn btn-link pat" id="toggle_auto_links">
1110
                                            <i class="fa fa-eye autolink" style="display:none"></i>
1110
                                            <i class="fa fa-eye autolink" style="display:none"></i>
1111
                                            <i class="fa fa-eye-slash autolink"></i>
1111
                                            <i class="fa fa-eye-slash autolink"></i>
1112
                                            <span class="autolink" style="display:none">Show data menus</span>
1112
                                            <span class="autolink" style="display:none">Show data menus</span>
Lines 1152-1160 Link Here
1152
                                                    <span class="data-plain">[% cells.cell | $raw %]</span>
1152
                                                    <span class="data-plain">[% cells.cell | $raw %]</span>
1153
                                                    <div id="itemnumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a>
1153
                                                    <div id="itemnumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a>
1154
                                                        <ul class="dropdown-menu pull-right" role="menu">
1154
                                                        <ul class="dropdown-menu pull-right" role="menu">
1155
                                                            <li><a target="_blank" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&itemnumber=[% cells.cell | $raw %]"><i class="fa fa-fw fa-pencil"></i> Edit record</a></li>
1155
                                                            <li><a id="lientype" target="_blank" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&itemnumber=[% cells.cell | $raw %]"><i class="fa fa-fw fa-pencil"></i> Edit record</a></li>
1156
                                                            <li role="separator" class="divider"></li>
1156
                                                            <li role="separator" class="divider"></li>
1157
                                                            <li><a target="_blank" href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cells.cell | $raw %]"><i class="fa fa-fw fa-eye"></i> View record</a></li>
1157
                                                            <li><a id="lientype" target="_blank" href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cells.cell | $raw %]"><i class="fa fa-fw fa-eye"></i> View record</a></li>
1158
                                                        </ul>
1158
                                                        </ul>
1159
                                                    </div>
1159
                                                    </div>
1160
                                                </td>
1160
                                                </td>
Lines 1163-1171 Link Here
1163
                                                    <span class="data-plain">[% cells.cell | $raw %]</span>
1163
                                                    <span class="data-plain">[% cells.cell | $raw %]</span>
1164
                                                    <div id="biblionumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a>
1164
                                                    <div id="biblionumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a>
1165
                                                        <ul class="dropdown-menu pull-right" role="menu">
1165
                                                        <ul class="dropdown-menu pull-right" role="menu">
1166
                                                            <li><a target="_blank" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% cells.cell | $raw %]"><i class="fa fa-pencil"></i> Edit record</a></li>
1166
                                                            <li><a id="lientype" target="_blank" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% cells.cell | $raw %]"><i class="fa fa-pencil"></i> Edit record</a></li>
1167
                                                            <li role="separator" class="divider"></li>
1167
                                                            <li role="separator" class="divider"></li>
1168
                                                            <li><a target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cells.cell | $raw %]"><i class="fa fa-eye"></i> View record</a></li>
1168
                                                            <li><a id="lientype" target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cells.cell | $raw %]"><i class="fa fa-eye"></i> View record</a></li>
1169
                                                        </ul>
1169
                                                        </ul>
1170
                                                    </div>
1170
                                                    </div>
1171
                                                </td>
1171
                                                </td>
Lines 1174-1184 Link Here
1174
                                                    <span class="data-plain">[% cells.cell | $raw %]</span>
1174
                                                    <span class="data-plain">[% cells.cell | $raw %]</span>
1175
                                                    <div id="borrowernumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a>
1175
                                                    <div id="borrowernumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a>
1176
                                                        <ul class="dropdown-menu pull-right" role="menu">
1176
                                                        <ul class="dropdown-menu pull-right" role="menu">
1177
                                                            <li><a target="_blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% cells.cell | $raw %]"><i class="fa fa-eye"></i> View patron</a></li>
1177
                                                            <li><a id="lientype" target="_blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% cells.cell | $raw %]"><i class="fa fa-eye"></i> View patron</a></li>
1178
                                                            <li role="separator" class="divider"></li>
1178
                                                            <li role="separator" class="divider"></li>
1179
                                                            <li><a target="_blank" href="/cgi-bin/koha/members/memberentry.pl?op=modify&borrowernumber=[% cells.cell | $raw %]"><i class="fa fa-pencil"></i> Edit patron</a></li>
1179
                                                            <li><a id="lientype" target="_blank" href="/cgi-bin/koha/members/memberentry.pl?op=modify&borrowernumber=[% cells.cell | $raw %]"><i class="fa fa-pencil"></i> Edit patron</a></li>
1180
                                                            <li role="separator" class="divider"></li>
1180
                                                            <li role="separator" class="divider"></li>
1181
                                                            <li><a target="_blank" href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% cells.cell | $raw %]"><i class="fa fa-barcode"></i> Check out</a></li>
1181
                                                            <li><a id="lientype" target="_blank" href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% cells.cell | $raw %]"><i class="fa fa-barcode"></i> Check out</a></li>
1182
                                                        </ul>
1182
                                                        </ul>
1183
                                                    </div>
1183
                                                    </div>
1184
                                                </td>
1184
                                                </td>
Lines 1187-1193 Link Here
1187
                                                    <span class="data-plain">[% cells.cell | $raw %]</span>
1187
                                                    <span class="data-plain">[% cells.cell | $raw %]</span>
1188
                                                    <div id="cardnumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a>
1188
                                                    <div id="cardnumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a>
1189
                                                        <ul class="dropdown-menu pull-right" role="menu">
1189
                                                        <ul class="dropdown-menu pull-right" role="menu">
1190
                                                            <li><a target="_blank" href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cells.cell | $raw %]"><i class="fa fa-barcode"></i> Check out</a></li>
1190
                                                            <li><a id="lientype" target="_blank" href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cells.cell | $raw %]"><i class="fa fa-barcode"></i> Check out</a></li>
1191
                                                        </ul>
1191
                                                        </ul>
1192
                                                    </div>
1192
                                                    </div>
1193
                                                </td>
1193
                                                </td>
Lines 1209-1215 Link Here
1209
                [% END #/IF ( execute ) %]
1209
                [% END #/IF ( execute ) %]
1210
1210
1211
                [% IF ( create ) %]
1211
                [% IF ( create ) %]
1212
                    <h1>Create from SQL</h1>
1212
                    <h2>Create from SQL</h2>
1213
                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" id="sql_report_form">
1213
                    <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" id="sql_report_form">
1214
                        <fieldset class="rows">
1214
                        <fieldset class="rows">
1215
                            <h3>Create report from SQL</h3>
1215
                            <h3>Create report from SQL</h3>
Lines 1295-1301 Link Here
1295
                [% END # /IF saved_results %]
1295
                [% END # /IF saved_results %]
1296
1296
1297
                [% IF ( showsql ) %]
1297
                [% IF ( showsql ) %]
1298
                <h1>Saved reports - SQL</h1>
1298
                <h2>Saved reports - SQL</h2>
1299
                    <fieldset class="rows">
1299
                    <fieldset class="rows">
1300
                        <h3>[% reportname | html %]</h3>
1300
                        <h3>[% reportname | html %]</h3>
1301
                        <ol>
1301
                        <ol>
Lines 1405-1411 Link Here
1405
                                [% ELSE %]
1405
                                [% ELSE %]
1406
                                [% END %]
1406
                                [% END %]
1407
                                <div id="onerror_actions">
1407
                                <div id="onerror_actions">
1408
                                    <a href="#" class="button goback">Return to previous page</a>
1408
                                    <a id="lientype" href="#" class="button goback">Return to previous page</a>
1409
                                </div>
1409
                                </div>
1410
                            [% END %]
1410
                            [% END %]
1411
                        </div>
1411
                        </div>
Lines 1446-1452 Link Here
1446
                                </ol>
1446
                                </ol>
1447
                            <fieldset class="action">
1447
                            <fieldset class="action">
1448
                                <input type="submit" class="principal" value="Apply filter" />
1448
                                <input type="submit" class="principal" value="Apply filter" />
1449
                                <a id="resetReportsFilter" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved&clear_filters=1">Clear</a>
1449
                                <a id="resetReportsFilter" class="lientype" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved&clear_filters=1">Clear</a>
1450
                            </fieldset>
1450
                            </fieldset>
1451
                            </fieldset> <!-- /.brief -->
1451
                            </fieldset> <!-- /.brief -->
1452
                        </form>
1452
                        </form>
Lines 1485-1491 Link Here
1485
                    </div> <!-- /.modal-body -->
1485
                    </div> <!-- /.modal-body -->
1486
                    <div class="modal-footer">
1486
                    <div class="modal-footer">
1487
                        <button type="submit" id="sendParam" class="btn btn-default approve">Insert parameter</button>
1487
                        <button type="submit" id="sendParam" class="btn btn-default approve">Insert parameter</button>
1488
                        <button type="button" class="btn btn-default deny" data-dismiss="modal">Cancel</button>
1488
                        <button type="button" class="btn btn-default deny cancel" data-dismiss="modal">Cancel</button>
1489
                    </div> <!-- /.modal-footer -->
1489
                    </div> <!-- /.modal-footer -->
1490
                </form> <!-- /#send_runtime_parameter -->
1490
                </form> <!-- /#send_runtime_parameter -->
1491
            </div> <!-- /.modal-content -->
1491
            </div> <!-- /.modal-content -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_avg_stats.tt (-2 / +1 lines)
Lines 51-60 Link Here
51
        <div class="col-sm-10 col-sm-push-2">
51
        <div class="col-sm-10 col-sm-push-2">
52
            <main>
52
            <main>
53
53
54
<h1>Average checkout period</h1>
54
<h2>Average checkout period</h2>
55
[% IF ( do_it ) %]
55
[% IF ( do_it ) %]
56
	[% FOREACH mainloo IN mainloop %]
56
	[% FOREACH mainloo IN mainloop %]
57
        <h2>Average checkout period</h2>
58
		[% IF ( mainloo.loopfilter ) %]
57
		[% IF ( mainloo.loopfilter ) %]
59
            <p>Filtered on:</p>
58
            <p>Filtered on:</p>
60
			[% FOREACH loopfilte IN mainloo.loopfilter %]
59
			[% FOREACH loopfilte IN mainloo.loopfilter %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt (-2 / +1 lines)
Lines 54-63 Link Here
54
        <div class="col-sm-10 col-sm-push-2">
54
        <div class="col-sm-10 col-sm-push-2">
55
            <main>
55
            <main>
56
56
57
<h1>Circulation statistics</h1>
57
<h2>Circulation statistics</h2>
58
[% IF ( do_it ) %]
58
[% IF ( do_it ) %]
59
    [% FOREACH mainloo IN mainloop %]
59
    [% FOREACH mainloo IN mainloop %]
60
        <h2>Circulation statistics</h2>
61
        [% IF ( mainloo.loopfilter ) %]
60
        [% IF ( mainloo.loopfilter ) %]
62
            <p>Filtered on:</p>
61
            <p>Filtered on:</p>
63
            <ul>
62
            <ul>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt (-1 / +1 lines)
Lines 58-65 Link Here
58
58
59
59
60
[% IF ( do_it ) %]
60
[% IF ( do_it ) %]
61
[% FOREACH mainloo IN mainloop %]
62
    <h2>Reports on item types [% IF branch %] held at [% Branches.GetName( branch ) | html %][% END %]</h2>
61
    <h2>Reports on item types [% IF branch %] held at [% Branches.GetName( branch ) | html %][% END %]</h2>
62
[% FOREACH mainloo IN mainloop %]
63
	<table id="itemtypest">
63
	<table id="itemtypest">
64
		<thead>
64
		<thead>
65
		<tr>
65
		<tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt (-1 / +1 lines)
Lines 40-46 Link Here
40
40
41
                    [% IF ( CAN_user_reports_execute_reports || CAN_user_reports_create_reports ) %]
41
                    [% IF ( CAN_user_reports_execute_reports || CAN_user_reports_create_reports ) %]
42
                        <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
42
                        <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
43
                            <fieldset class="brief">
43
                            <fieldset>
44
                                <h2>Guided reports</h2>
44
                                <h2>Guided reports</h2>
45
                                <input name="phase" value="Use saved" type="hidden">
45
                                <input name="phase" value="Use saved" type="hidden">
46
                                <input name="filter_set" value="1" type="hidden">
46
                                <input name="filter_set" value="1" type="hidden">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reserves_stats.tt (-2 / +1 lines)
Lines 55-64 Link Here
55
            <main>
55
            <main>
56
56
57
57
58
<h1>Holds statistics</h1>
58
<h2>Holds statistics</h2>
59
[% IF ( do_it ) %]
59
[% IF ( do_it ) %]
60
    [% IF ( mainloop ) %]
60
    [% IF ( mainloop ) %]
61
        <h2>Holds statistics</h2>
62
        [% IF ( loopfilter ) %]
61
        [% IF ( loopfilter ) %]
63
            <p>Filtered on:</p>
62
            <p>Filtered on:</p>
64
            <ul>
63
            <ul>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/serials_stats.tt (-2 / +2 lines)
Lines 87-93 Link Here
87
[% ELSE %]
87
[% ELSE %]
88
	<form method="post" action="/cgi-bin/koha/reports/serials_stats.pl">
88
	<form method="post" action="/cgi-bin/koha/reports/serials_stats.pl">
89
89
90
	<fieldset class="brief">
90
	<fieldset class="rows">
91
		<ol>
91
		<ol>
92
			<li>
92
			<li>
93
93
Lines 118-124 Link Here
118
	</fieldset>
118
	</fieldset>
119
119
120
120
121
	<fieldset class="brief">
121
	<fieldset class="rows">
122
	<h3>Output</h3>
122
	<h3>Output</h3>
123
    <ol>
123
    <ol>
124
        <li>
124
        <li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt (-1 / +1 lines)
Lines 45-51 Link Here
45
        <div class="col-sm-10 col-sm-push-2">
45
        <div class="col-sm-10 col-sm-push-2">
46
            <main>
46
            <main>
47
47
48
<h1>Comments</h1>
48
<h2>Comments</h2>
49
49
50
<!-- The manual invoice and credit buttons -->
50
<!-- The manual invoice and credit buttons -->
51
<div class="statictabs">
51
<div class="statictabs">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt (-5 / +6 lines)
Lines 44-58 Link Here
44
    <div class="row">
44
    <div class="row">
45
        <div class="col-sm-10 col-sm-push-2">
45
        <div class="col-sm-10 col-sm-push-2">
46
            <main>
46
            <main>
47
                <h1>Add/remove items from collection</h1>
48
47
49
              [% IF ( ! colId ) %]
48
              [% IF ( ! colId ) %]
49
              <h1>Add/remove items from collection</h1>
50
                <div class="dialog message">
50
                <div class="dialog message">
51
                    <p>Invalid collection id</p>
51
                    <p>Invalid collection id</p>
52
                    <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
52
                    <p><a id="lientype" href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
53
                </div>
53
                </div>
54
              [% ELSE %]
54
              [% ELSE %]
55
              [% INCLUDE 'rotating-collections-toolbar.inc' %]
55
              [% INCLUDE 'rotating-collections-toolbar.inc' %]
56
              <h1>Add/remove items from collection</h1>
56
              <h2>Collection <em>[% colTitle | html %]</em></h2>
57
              <h2>Collection <em>[% colTitle | html %]</em></h2>
57
58
58
              [% IF ( previousActionAdd ) %]
59
              [% IF ( previousActionAdd ) %]
Lines 98-104 Link Here
98
              <div>
99
              <div>
99
                <form action="addItems.pl" method="post">
100
                <form action="addItems.pl" method="post">
100
                    <fieldset class="brief">
101
                    <fieldset class="brief">
101
                        <legend>Add or remove items</legend>
102
                        <h3>Add or remove items</h3>
102
                        <ol>
103
                        <ol>
103
                            <li>
104
                            <li>
104
                                <label for="barcode">Barcode: </label>
105
                                <label for="barcode">Barcode: </label>
Lines 113-119 Link Here
113
                        <p>
114
                        <p>
114
                            <input type="hidden" id="colId" name="colId" value="[% colId | html %]" />
115
                            <input type="hidden" id="colId" name="colId" value="[% colId | html %]" />
115
                            <input type="hidden" name="action" value="addItem" />
116
                            <input type="hidden" name="action" value="addItem" />
116
                            <input type="submit" value="Submit" />
117
                            <input type="submit" class="principal" value="Submit" />
117
                        </p>
118
                        </p>
118
                    </fieldset>
119
                    </fieldset>
119
120
Lines 136-142 Link Here
136
                        <td>[% INCLUDE 'biblio-title.inc' biblio=collectionItemsLoo link = 1 %]</td>
137
                        <td>[% INCLUDE 'biblio-title.inc' biblio=collectionItemsLoo link = 1 %]</td>
137
                        <td>[% collectionItemsLoo.itemcallnumber | html %]</td>
138
                        <td>[% collectionItemsLoo.itemcallnumber | html %]</td>
138
                        <td>[% collectionItemsLoo.barcode | html %]</td>
139
                        <td>[% collectionItemsLoo.barcode | html %]</td>
139
                        <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]&amp;barcode=[% collectionItemsLoo.barcode | uri %]&amp;removeItem=1&amp;action=addItem">Remove</a></td>
140
                        <td><a id="lientype" href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]&amp;barcode=[% collectionItemsLoo.barcode | uri %]&amp;removeItem=1&amp;action=addItem">Remove</a></td>
140
                      </tr>
141
                      </tr>
141
                    [% END %]
142
                    [% END %]
142
                  </table>
143
                  </table>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt (-6 / +5 lines)
Lines 63-69 Link Here
63
                [% IF ( createSuccess ) %]
63
                [% IF ( createSuccess ) %]
64
                    <div class="dialog message">
64
                    <div class="dialog message">
65
                        <p>Collection <em>[% createdTitle | html %]</em> added successfully</p>
65
                        <p>Collection <em>[% createdTitle | html %]</em> added successfully</p>
66
                        <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
66
                        <p><a id="lientype" href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
67
                    </div>
67
                    </div>
68
                [% ELSE %]
68
                [% ELSE %]
69
                  <div class="dialog alert">
69
                  <div class="dialog alert">
Lines 120-128 Link Here
120
120
121
                [% IF action == "new" || action == "edit" %]
121
                [% IF action == "new" || action == "edit" %]
122
                    [% IF ( previousActionEdit ) %]
122
                    [% IF ( previousActionEdit ) %]
123
                      <h1>Edit collection <em>[% editColTitle | html %]</em></h1>
123
                      <h2>Edit collection <em>[% editColTitle | html %]</em></h2>
124
                    [% ELSE %]
124
                    [% ELSE %]
125
                      <h1>Add new collection</h1>
125
                      <h2>Add new collection</h2>
126
                    [% END %]
126
                    [% END %]
127
127
128
                    <form action="editCollections.pl" method="post" class="validated">
128
                    <form action="editCollections.pl" method="post" class="validated">
Lines 154-162 Link Here
154
                                    [% END %]
154
                                    [% END %]
155
                                </li>
155
                                </li>
156
                            </ol>
156
                            </ol>
157
                        </fieldset>
157
158
                        <fieldset class="action">
158
                            <p><input type="submit" class="principal" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a></p>
159
                            <p><input type="submit" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a></p>
160
                        </fieldset>
159
                        </fieldset>
161
                    </form>
160
                    </form>
162
                [% END %]
161
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt (-2 / +4 lines)
Lines 42-50 Link Here
42
42
43
                [% INCLUDE 'rotating-collections-toolbar.inc' %]
43
                [% INCLUDE 'rotating-collections-toolbar.inc' %]
44
44
45
                <h1>Rotating collections</h1>
45
                <h2>Rotating collections</h2>
46
                <div>
46
                <div>
47
                    [% IF ( collectionsLoop ) %]
47
                    [% IF ( collectionsLoop ) %]
48
                    <fieldset id="searchresults">
48
                        <table id="rotating-collections-table">
49
                        <table id="rotating-collections-table">
49
                            <thead>
50
                            <thead>
50
                                <tr>
51
                                <tr>
Lines 62-68 Link Here
62
                                    <td>[% Branches.GetName( collectionsLoo.colBranchcode ) | html %]</td>
63
                                    <td>[% Branches.GetName( collectionsLoo.colBranchcode ) | html %]</td>
63
                                    <td>
64
                                    <td>
64
                                    <div class="btn-group dropup">
65
                                    <div class="btn-group dropup">
65
                                        <a class="btn btn-default btn-xs" dropdown-toggle" id="collectionsactions[% collectionsLoo.colId | html %]" role="button" data-toggle="dropdown" href="#">
66
                                        <a class="btn btn-default btn-xs" id="lientype" dropdown-toggle" id="collectionsactions[% collectionsLoo.colId | html %]" role="button" data-toggle="dropdown" href="#">
66
                                        Actions <b class="caret"></b></a>
67
                                        Actions <b class="caret"></b></a>
67
                                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="collectionsactions[% collectionsLoo.colId | html %]">
68
                                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="collectionsactions[% collectionsLoo.colId | html %]">
68
                                            <li><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId | uri %]"><i class="fa fa-plus"></i> Add or remove items</a></li>
69
                                            <li><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId | uri %]"><i class="fa fa-plus"></i> Add or remove items</a></li>
Lines 76-81 Link Here
76
                            [% END %]
77
                            [% END %]
77
                            </tbody>
78
                            </tbody>
78
                        </table>
79
                        </table>
80
                        </fieldset>
79
                    [% ELSE %]
81
                    [% ELSE %]
80
                        <div class="dialog message">There are no collections currently defined.</div>
82
                        <div class="dialog message">There are no collections currently defined.</div>
81
                    [% END %]
83
                    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt (-6 / +5 lines)
Lines 45-51 Link Here
45
        <div class="col-sm-10 col-sm-push-2">
45
        <div class="col-sm-10 col-sm-push-2">
46
            <main>
46
            <main>
47
47
48
                <h1>Transfer collection <em>[% colTitle | html %]</em></h1>
48
                <h2>Transfer collection <em>[% colTitle | html %]</em></h2>
49
49
50
                [% IF ( messages ) %]
50
                [% IF ( messages ) %]
51
                    [% FOREACH message IN messages %]
51
                    [% FOREACH message IN messages %]
Lines 63-74 Link Here
63
                [% IF ( transferSuccess ) %]
63
                [% IF ( transferSuccess ) %]
64
                    <div class="dialog message">
64
                    <div class="dialog message">
65
                        <p>Collection transferred successfully</p>
65
                        <p>Collection transferred successfully</p>
66
                        <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
66
                        <p><a id="lientype" href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
67
                    </div>
67
                    </div>
68
                [% ELSIF ( transferFailure ) %]
68
                [% ELSIF ( transferFailure ) %]
69
                    <div class="dialog alert">
69
                    <div class="dialog alert">
70
                        <p>Failed to transfer collection</p>
70
                        <p>Failed to transfer collection</p>
71
                        <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
71
                        <p><a id="lientype" href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
72
                    </div>
72
                    </div>
73
                [% END %]
73
                [% END %]
74
74
Lines 86-94 Link Here
86
                                        </select>
86
                                        </select>
87
                                    </li>
87
                                    </li>
88
                                </ol>
88
                                </ol>
89
                            </fieldset>
89
90
                            <fieldset class="action">
90
                                <input type="submit" class="principal" value="Transfer collection"> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a>
91
                                <input type="submit" value="Transfer collection"> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a>
92
                            </fieldset>
91
                            </fieldset>
93
                        </form>
92
                        </form>
94
                    </div>
93
                    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-100 / +139 lines)
Lines 8-14 Link Here
8
[% USE TablesSettings %]
8
[% USE TablesSettings %]
9
[% SET footerjs = 1 %]
9
[% SET footerjs = 1 %]
10
[% formulaire = BLOCK %]
10
[% formulaire = BLOCK %]
11
    [% INCLUDE 'circ-search.inc' %]
11
    [% INCLUDE 'cat-search.inc' %]
12
[% END %]
12
[% END %]
13
[% INCLUDE 'doc-head-open.inc' %]
13
[% INCLUDE 'doc-head-open.inc' %]
14
<title>
14
<title>
Lines 118-126 Link Here
118
                <div class="col-md-8 col-md-offset-2">
118
                <div class="col-md-8 col-md-offset-2">
119
119
120
                    <div id="toolbar" class="btn-toolbar">
120
                    <div id="toolbar" class="btn-toolbar">
121
                        <a class="btn btn-default" id="editsuggestion" href="suggestion.pl?op=edit&amp;suggestionid=[% suggestionid | html %]"><i class="fa fa-pencil"></i> Edit</a>
121
                    <div>
122
                        <a class="btn btn-default deletesuggestion" href="suggestion.pl?op=delete&amp;suggestionid=[% suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a>
122
                        <a class="btn btn-default pat" id="editsuggestion" href="suggestion.pl?op=edit&amp;suggestionid=[% suggestionid | html %]"><i class="fa fa-pencil"></i> Edit</a>
123
                    </div>
123
                        <a class="btn btn-default deletesuggestion pat" href="suggestion.pl?op=delete&amp;suggestionid=[% suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a>
124
                    </div></div>
124
125
125
                    <fieldset class="rows">
126
                    <fieldset class="rows">
126
                        <h3>Bibliographic information</h3>
127
                        <h3>Bibliographic information</h3>
Lines 203-224 Link Here
203
                                <span class="label">Status:</span>
204
                                <span class="label">Status:</span>
204
                                [% SET status_found = 0 %]
205
                                [% SET status_found = 0 %]
205
                                [% IF ( STATUS == 'ASKED' ) %]
206
                                [% IF ( STATUS == 'ASKED' ) %]
206
                                    <span>Pending</span>
207
                                    Pending
207
                                    [% SET status_found = 1 %]
208
                                    [% SET status_found = 1 %]
208
                                [% ELSIF ( STATUS == 'ACCEPTED' ) %]
209
                                [% ELSIF ( STATUS == 'ACCEPTED' ) %]
209
                                    <span>Accepted</span>
210
                                    Accepted
210
                                    [% SET status_found = 1 %]
211
                                    [% SET status_found = 1 %]
211
                                [% ELSIF ( STATUS == 'CHECKED' ) %]
212
                                [% ELSIF ( STATUS == 'CHECKED' ) %]
212
                                    <span>Checked</span>
213
                                    Checked
213
                                    [% SET status_found = 1 %]
214
                                    [% SET status_found = 1 %]
214
                                [% ELSIF ( STATUS == 'REJECTED' ) %]
215
                                [% ELSIF ( STATUS == 'REJECTED' ) %]
215
                                    <span>Rejected</span>
216
                                    Rejected
216
                                    [% SET status_found = 1 %]
217
                                    [% SET status_found = 1 %]
217
                                [% ELSIF ( STATUS == 'ORDERED' ) %]
218
                                [% ELSIF ( STATUS == 'ORDERED' ) %]
218
                                    <span>Ordered</span>
219
                                    Ordered
219
                                    [% SET status_found = 1 %]
220
                                    [% SET status_found = 1 %]
220
                                [% ELSIF ( STATUS == 'AVAILABLE' ) %]
221
                                [% ELSIF ( STATUS == 'AVAILABLE' ) %]
221
                                    <span>Available</span>
222
                                    Available
222
                                    [% SET status_found = 1 %]
223
                                    [% SET status_found = 1 %]
223
                                [% ELSE %]
224
                                [% ELSE %]
224
                                    [% FOREACH s IN SuggestionStatuses %]
225
                                    [% FOREACH s IN SuggestionStatuses %]
Lines 321-327 Link Here
321
                    </fieldset>
322
                    </fieldset>
322
323
323
                    <fieldset class="action">
324
                    <fieldset class="action">
324
                        <a href="suggestion.pl">&lt;&lt; Back to suggestions</a>
325
                        <a href="suggestion.pl" id="lientype">&lt;&lt; Back to suggestions</a>
325
                    </fieldset>
326
                    </fieldset>
326
327
327
                </div> <!-- /.col-md-8 col-md-offset-2 -->
328
                </div> <!-- /.col-md-8 col-md-offset-2 -->
Lines 343-353 Link Here
343
                <div class="dialog [% m.type | html %]">
344
                <div class="dialog [% m.type | html %]">
344
                    [% SWITCH m.code %]
345
                    [% SWITCH m.code %]
345
                    [% CASE 'biblio_exists' %]
346
                    [% CASE 'biblio_exists' %]
346
                        <span>A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.</span>
347
                        A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.
347
                    [%  CASE 'manager_not_enough_permissions' %]
348
                    [%  CASE 'manager_not_enough_permissions' %]
348
                        <span>The manager you selected does not have sufficient permissions.</span>
349
                        The manager you selected does not have sufficient permissions.
349
                    [% CASE %]
350
                    [% CASE %]
350
                        <span>[% m.code | html %]</span>
351
                        [% m.code | html %]
351
                    [% END %]
352
                    [% END %]
352
                </div> <!-- /.dialog -->
353
                </div> <!-- /.dialog -->
353
            [% END %]
354
            [% END %]
Lines 488-494 Link Here
488
                                    [% ELSE %]
489
                                    [% ELSE %]
489
                                        <input type="text" size="31" id="select-other_reason" name="other_reason" placeholder="please note your reason here..." />
490
                                        <input type="text" size="31" id="select-other_reason" name="other_reason" placeholder="please note your reason here..." />
490
                                    [% END %]
491
                                    [% END %]
491
                                    <a href="#back">Cancel</a>
492
                                    <a class="cancel" href="#back">Cancel</a>
492
                                </span>
493
                                </span>
493
                            </li>
494
                            </li>
494
                        [% END %]
495
                        [% END %]
Lines 517-523 Link Here
517
                                            [% END %]
518
                                            [% END %]
518
                                        </td>
519
                                        </td>
519
                                        <td>
520
                                        <td>
520
                                            <a href="#" id="edit_suggester" class="btn btn-default">Set to patron</a>
521
                                            <a href="#" id="edit_suggester" class="btn btn-default lientype">Set to patron</a>
521
                                        </td>
522
                                        </td>
522
                                    </tr>
523
                                    </tr>
523
                                    <tr>
524
                                    <tr>
Lines 567-575 Link Here
567
                                    | Previously was [% INCLUDE 'patron-title.inc' patron=managedby_patron hide_patron_infos_if_needed=1 %] [% Branches.GetName( managedby_patron.branchcode ) | html %] ([% managedby_patron.category.description | html %])
568
                                    | Previously was [% INCLUDE 'patron-title.inc' patron=managedby_patron hide_patron_infos_if_needed=1 %] [% Branches.GetName( managedby_patron.branchcode ) | html %] ([% managedby_patron.category.description | html %])
568
                                [% END %]
569
                                [% END %]
569
                                <br />
570
                                <br />
570
                                <a id="edit_manager" class="new_window" href="#"><i class="fa fa-search"></i> Select manager</a>
571
                                <a id="edit_manager" class="new_window lientype" href="#"><i class="fa fa-search"></i> Select manager</a>
571
                                [% IF managedby_patron.borrowernumber && logged_in_user.borrowernumber != managedby_patron.borrowernumber %]
572
                                [% IF managedby_patron.borrowernumber && logged_in_user.borrowernumber != managedby_patron.borrowernumber %]
572
                                    <a id="restore_previous_manager" href="#"><i class="fa fa-trash"></i> Keep existing manager</a>
573
                                    <a id="restore_previous_manager" class="lientype" href="#"><i class="fa fa-trash"></i> Keep existing manager</a>
573
                                [% END %]
574
                                [% END %]
574
                                <input type="hidden" name="managedby" id="managedby" value="[% logged_in_user.borrowernumber | html %]" />
575
                                <input type="hidden" name="managedby" id="managedby" value="[% logged_in_user.borrowernumber | html %]" />
575
576
Lines 646-652 Link Here
646
                    [% IF ( suggestionid ) %]
647
                    [% IF ( suggestionid ) %]
647
                        [% IF ( need_confirm ) %]
648
                        [% IF ( need_confirm ) %]
648
                            <input type="hidden" name="save_confirmed" value="1" />
649
                            <input type="hidden" name="save_confirmed" value="1" />
649
                            <input onclick="this.form.op.value = 'save'; this.form.submit();" type="submit" value="Confirm your suggestion" />
650
                            <input onclick="this.form.op.value = 'save'; this.form.submit();" type="submit" class="principal" value="Confirm your suggestion" />
650
                        [% ELSE %]
651
                        [% ELSE %]
651
                            <input type="submit" class="principal" value="Save" />
652
                            <input type="submit" class="principal" value="Save" />
652
                        [% END %]
653
                        [% END %]
Lines 654-660 Link Here
654
                    [% ELSE %]
655
                    [% ELSE %]
655
                        [% IF ( need_confirm ) %]
656
                        [% IF ( need_confirm ) %]
656
                            <input type="hidden" name="save_confirmed" value="1" />
657
                            <input type="hidden" name="save_confirmed" value="1" />
657
                            <input onclick="this.form.op.value = 'save'; this.form.submit();" type="submit" value="Confirm your suggestion" />
658
                            <input onclick="this.form.op.value = 'save'; this.form.submit();" class="principal" type="submit" value="Confirm your suggestion" />
658
                        [% ELSE %]
659
                        [% ELSE %]
659
                            <input type="submit" class="principal" value="Submit your suggestion" />
660
                            <input type="submit" class="principal" value="Submit your suggestion" />
660
                        [% END %]
661
                        [% END %]
Lines 666-675 Link Here
666
667
667
        [% IF op == 'else' %]
668
        [% IF op == 'else' %]
668
            <div id="toolbar" class="btn-toolbar">
669
            <div id="toolbar" class="btn-toolbar">
669
                <div>
670
            <div>
670
                    <a class="pat" id="newsuggestion" href="suggestion.pl?op=add&branchcode=[% branchcode | uri %]"><i class="fa fa-plus"></i> New purchase suggestion</a>
671
                <a class="btn btn-default pat" id="newsuggestion" href="suggestion.pl?op=add&branchcode=[% branchcode | uri %]"><i class="fa fa-plus"></i> New purchase suggestion</a>
671
                </div>
672
            </div></div>
672
            </div>
673
673
674
            <h2>Suggestions management</h2>
674
            <h2>Suggestions management</h2>
675
675
Lines 685-721 Link Here
685
                <div class="dialog [% m.type | html %]">
685
                <div class="dialog [% m.type | html %]">
686
                    [% SWITCH m.code %]
686
                    [% SWITCH m.code %]
687
                    [% CASE 'already_exists' %]
687
                    [% CASE 'already_exists' %]
688
                        <span>The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id | html %]&op=show'>suggestion #[% m.id | html %]</a>)</span>
688
                        The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id | html %]&op=show'>suggestion #[% m.id | html %]</a>)
689
                    [% CASE 'biblio_exists' %]
689
                    [% CASE 'biblio_exists' %]
690
                        <span>A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.</span>
690
                        A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.
691
                    [% CASE %]
691
                    [% CASE %]
692
                        <span>[% m.code | html %]</span>
692
                        [% m.code | html %]
693
                    [% END %]
693
                    [% END %]
694
                </div> <!-- /.dialog -->
694
                </div> <!-- /.dialog -->
695
            [% END # /FOR m %]
695
            [% END # /FOR m %]
696
696
697
            [% UNLESS ( notabs ) %]
697
            [% UNLESS ( notabs ) %]
698
                <div id="suggestiontabs" class="toptabs">
698
                <div id="suggestiontabs" class="toptabs">
699
                <fieldset id="searchresults">
699
                <div id="searchresults">
700
                    <ul class="ui-tabs-nav" role="tablist">
700
                    <ul class="ui-tabs-nav">
701
                        [% FOREACH suggestion IN suggestions %]
701
                        [% FOREACH suggestion IN suggestions %]
702
                            <li role="presentation">
702
                                <li>
703
                            <a href="#[% suggestion.suggestiontype | uri %]" aria-controls="[% suggestion.suggestiontype | uri %]" role="tab" data-toggle="tab">
703
                            <a href="#[% suggestion.suggestiontype | uri %]">
704
                            [% IF ( suggestion.suggestiontypelabel ) %]
704
                            [% IF ( suggestion.suggestiontypelabel ) %]
705
                                [% IF (suggestion.suggestiontypelabel == "Pending") %]<span>Pending</span>
705
                                [% IF (suggestion.suggestiontypelabel == "Pending") %]Pending
706
                                [% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]<span>Accepted</span>
706
                                [% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted
707
                                [% ELSIF (suggestion.suggestiontypelabel == "Checked") %]<span>Checked</span>
707
                                [% ELSIF (suggestion.suggestiontypelabel == "Checked") %]Checked
708
                                [% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]<span>Rejected</span>
708
                                [% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]Rejected
709
                                [% ELSIF (suggestion.suggestiontypelabel == "Available") %]<span>Available</span>
709
                                [% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available
710
                                [% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]<span>Ordered</span>
710
                                [% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]Ordered
711
                                [% ELSIF (suggestion.suggestiontypelabel == "Unknown") %]<span>Status unknown</span>
711
                                [% ELSIF (suggestion.suggestiontypelabel == "Unknown") %]Status unknown
712
                                [% ELSIF (suggestion.suggestiontypelabel == "__ANY__") %]<span>Any</span>
712
                                [% ELSIF (suggestion.suggestiontypelabel == "__ANY__") %]Any
713
                                [% ELSE %][% suggestion.suggestiontypelabel | html %][% END %]
713
                                [% ELSE %][% suggestion.suggestiontypelabel | html %][% END %]
714
                            [% ELSE %]
714
                            [% ELSE %]
715
                                [% IF ( suggestion.suggestiontype ) %]
715
                                [% IF ( suggestion.suggestiontype ) %]
716
                                    [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.suggestiontype ) | html %]
716
                                    [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.suggestiontype ) | html %]
717
                                [% ELSE %]
717
                                [% ELSE %]
718
                                    <span>No name</span>
718
                                    No name
719
                                [% END %]
719
                                [% END %]
720
                            [% END %]
720
                            [% END %]
721
                            ([% suggestion.suggestions.size| html %])
721
                            ([% suggestion.suggestions.size| html %])
Lines 723-729 Link Here
723
723
724
                        [% END # /FOREACH suggestion %]
724
                        [% END # /FOREACH suggestion %]
725
                    </ul> <!-- /.ui-tabs-nav -->
725
                    </ul> <!-- /.ui-tabs-nav -->
726
                    <div class="tab-content">
727
            [% END # /UNLESS notabs %]
726
            [% END # /UNLESS notabs %]
728
727
729
                [% FOREACH suggestion IN suggestions %]
728
                [% FOREACH suggestion IN suggestions %]
Lines 736-746 Link Here
736
735
737
                            [% IF suggestion.suggestions.size %]
736
                            [% IF suggestion.suggestions.size %]
738
                                <p>
737
                                <p>
739
                                    <a class="checkall" id="lientype" href="#">Check all</a> | <a class="uncheckall" id="lientype" href="#">Uncheck all</a>
738
                                    <a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a>
740
                                </p>
739
                                </p>
741
740
742
                                <table id="table_[% loop.count | html %]" class="sorted">
741
                            <table id="table_[% loop.count | html %]" class="sorted">
743
                                    <thead>
742
                                <thead>
743
                                    <tr>
744
                                        <th class="NoSort noExport">&nbsp;</th>
745
                                        <th class="anti-the">Suggestion</th>
746
                                        <th>Suggested by</th>
747
                                        <th>Suggested on</th>
748
                                        <th>Managed by</th>
749
                                        <th>Managed on</th>
750
                                        <th>Last modification by</th>
751
                                        <th>Last modification on</th>
752
                                        <th>Last updated</th>
753
                                        <th>Library</th>
754
                                        <th>Fund</th>
755
                                        <th>Status</th>
756
                                        <th class="NoSort noExport">&nbsp;</th>
757
                                    </tr>
758
                                </thead>
759
                                <tbody>
760
                                    [% FOREACH suggestions_loo IN suggestion.suggestions_loop %]
744
                                        <tr>
761
                                        <tr>
745
                                            <td>
762
                                            <td>
746
                                                <input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" />
763
                                                <input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" />
Lines 834-840 Link Here
834
                                            </td>
851
                                            </td>
835
                                            <td class="actions">
852
                                            <td class="actions">
836
                                                <div class="btn-group dropup">
853
                                                <div class="btn-group dropup">
837
                                                    <a class="btn btn-default btn-xs" role="button" id="lientype" href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | html %]&amp;op=edit"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle"  id="lientype"  sid="more_actions_[% suggestions_loo.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a>
854
                                                    <a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | html %]&amp;op=edit" id="lientype"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle lientype" id="more_actions_[% suggestions_loo.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a>
838
                                                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]">
855
                                                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]">
839
                                                        <li><a class="deletesuggestion" href="suggestion.pl?op=delete&amp;suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li>
856
                                                        <li><a class="deletesuggestion" href="suggestion.pl?op=delete&amp;suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li>
840
                                                        [% UNLESS suggestions_loo.archived %]
857
                                                        [% UNLESS suggestions_loo.archived %]
Lines 946-952 Link Here
946
                                                </td>
963
                                                </td>
947
                                                <td class="actions">
964
                                                <td class="actions">
948
                                                    <div class="btn-group dropup">
965
                                                    <div class="btn-group dropup">
949
                                                        <a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% s.suggestionid | html %]&amp;op=edit"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" id="more_actions_[% s.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a>
966
                                                        <a class="btn btn-default btn-xs" id="lientype" role="button" href="suggestion.pl?suggestionid=[% s.suggestionid | html %]&amp;op=edit"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" id="lientype" id="more_actions_[% s.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a>
950
                                                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]">
967
                                                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]">
951
                                                            <li><a class="deletesuggestion" href="suggestion.pl?op=delete&amp;suggestionid=[% s.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li>
968
                                                            <li><a class="deletesuggestion" href="suggestion.pl?op=delete&amp;suggestionid=[% s.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li>
952
                                                            [% UNLESS s.archived %]
969
                                                            [% UNLESS s.archived %]
Lines 977-1015 Link Here
977
                                                        <option value="ASKED">Pending</option>
994
                                                        <option value="ASKED">Pending</option>
978
                                                    [% END %]
995
                                                    [% END %]
979
996
980
                                                    [% IF (statusselected_ACCEPTED ) %]
997
                                                [% IF ( statusselected_REJECTED ) %]
981
                                                        <option value="ACCEPTED" selected="selected">Accepted</option>
998
                                                    <option value="REJECTED" selected="selected">Rejected</option>
982
                                                    [% ELSE %]
999
                                                [% ELSE %]
983
                                                        <option value="ACCEPTED">Accepted</option>
1000
                                                    <option value="REJECTED">Rejected</option>
984
                                                    [% END %]
1001
                                                [% END %]
985
1002
986
                                                    [% IF (statusselected_CHECKED ) %]
1003
                                                [% IF ( statusselected_ORDERED ) %]
987
                                                        <option value="CHECKED" selected="selected">Checked</option>
1004
                                                    <option value="ORDERED" selected="selected">Ordered</option>
988
                                                    [% ELSE %]
1005
                                                [% ELSE %]
989
                                                        <option value="CHECKED">Checked</option>
1006
                                                    <option value="ORDERED">Ordered</option>
990
                                                    [% END %]
1007
                                                [% END %]
991
1008
992
                                                    [% IF ( statusselected_REJECTED ) %]
1009
                                                [% FOREACH s IN SuggestionStatuses %]
993
                                                        <option value="REJECTED" selected="selected">Rejected</option>
1010
                                                    <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option>
994
                                                    [% ELSE %]
1011
                                                [% END %]
995
                                                        <option value="REJECTED">Rejected</option>
1012
                                            </select>
996
                                                    [% END %]
997
1013
998
                                                    [% IF ( statusselected_ORDERED ) %]
1014
                                            <label for="choosereason[% loop.index | html %]">with this reason:</label>
999
                                                        <option value="ORDERED" selected="selected">Ordered</option>
1015
                                            <select name="reason" id="choosereason[% loop.index | html %]">
1000
                                                    [% ELSE %]
1016
                                                <option value=""> -- Choose a reason -- </option>
1001
                                                        <option value="ORDERED">Ordered</option>
1017
                                                [% FOREACH reasonsloo IN suggestion.reasonsloop %]
1002
                                                    [% END %]
1018
                                                    <option value="[% reasonsloo.lib | html %]">[% reasonsloo.lib | html %]</option>
1019
                                                [% END %]
1020
                                                <option value="other">Others...</option>
1021
                                            </select>
1003
1022
1004
                                                    [% FOREACH s IN SuggestionStatuses %]
1023
                                            <span class="other_reason">
1005
                                                        <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option>
1024
                                                <input type="text" size="31" name="other_reason" placeholder="please note your reason here..." />
1006
                                                    [% END %]
1025
                                                <a href="#" class="cancel_note">Cancel</a>
1007
                                                </select>
1026
                                            </span>
1027
                                        </div>
1008
1028
1009
                                        <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
1029
                                        <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
1010
                                        <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />
1030
                                        <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />
1011
                                        <fieldset class="action">
1031
                                        <fieldset class="action">
1012
                                            <button type="submit" class="btn btn-default btn-xs" id="lientype" value="update_status">Submit</button>
1032
                                            <button type="submit" class="btn btn-default btn-xs principal" value="update_status">Submit</button>
1013
                                        </fieldset>
1033
                                        </fieldset>
1014
                                    </fieldset>
1034
                                    </fieldset>
1015
                                </div> <!-- /.col-sm-4 -->
1035
                                </div> <!-- /.col-sm-4 -->
Lines 1023-1029 Link Here
1023
                                        <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
1043
                                        <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
1024
                                        <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />
1044
                                        <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />
1025
                                        <fieldset class="action">
1045
                                        <fieldset class="action">
1026
                                            <button type="submit" class="btn btn-default btn-xs" id="lientype" value="update_itemtype">Submit</button>
1046
                                            <button type="submit" class="btn btn-default btn-xs principal" value="update_itemtype">Submit</button>
1027
                                        </fieldset>
1047
                                        </fieldset>
1028
                                    </fieldset>
1048
                                    </fieldset>
1029
                                </div> <!-- /.col-sm-4 -->
1049
                                </div> <!-- /.col-sm-4 -->
Lines 1031-1043 Link Here
1031
                                <div class="col-sm-2">
1051
                                <div class="col-sm-2">
1032
                                    <fieldset>
1052
                                    <fieldset>
1033
                                        <span class="label">Update manager</span><br/>
1053
                                        <span class="label">Update manager</span><br/>
1034
                                        <a id="set_manager_[% loop.count | html %]" data-tab="[% loop.count | html %]" class="set_manager" href="#"><i class="fa fa-search"></i> Select manager</a>
1054
                                        <a id="set_manager_[% loop.count | html %]" data-tab="[% loop.count | html %]" class="set_manager lientype" href="#"><i class="fa fa-search"></i> Select manager</a>
1035
                                        <span id="managedby_name[% loop.count | html %]"></span>
1055
                                        <span id="managedby_name[% loop.count | html %]"></span>
1036
                                        <input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" />
1056
                                        <input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" />
1037
                                        <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
1057
                                        <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
1038
                                        <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />
1058
                                        <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />
1039
                                        <fieldset class="action">
1059
                                        <fieldset class="action">
1040
                                            <button type="submit" class="btn btn-default btn-xs" id="lientype" value="update_manager">Submit</button>
1060
                                            <button type="submit" class="btn btn-default btn-xs principal" value="update_manager">Submit</button>
1041
                                        </fieldset>
1061
                                        </fieldset>
1042
                                    </fieldset>
1062
                                    </fieldset>
1043
                                </div> <!-- /.col-sm-2 -->
1063
                                </div> <!-- /.col-sm-2 -->
Lines 1048-1069 Link Here
1048
                                        <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
1068
                                        <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
1049
                                        <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />
1069
                                        <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />
1050
                                        <fieldset class="action">
1070
                                        <fieldset class="action">
1071
<<<<<<< HEAD
1051
                                            <button type="submit" class="btn btn-default btn-xs" id="lientype" value="delete">Delete</button>
1072
                                            <button type="submit" class="btn btn-default btn-xs" id="lientype" value="delete">Delete</button>
1052
                                        </fieldset>
1073
                                        </fieldset>
1053
                                    </div> <!-- /.col-sm-2 -->
1074
                                    </div> <!-- /.col-sm-2 -->
1054
                                </div> <!-- /.row -->
1075
                                </div> <!-- /.row -->
1076
=======
1077
                                            <button type="submit" class="btn btn-default btn-xs cancel" value="delete">Delete</button>
1078
                                        </fieldset>
1079
                                    </fieldset>
1080
                                </div> <!-- /.col-sm-2 -->
1081
                            </div> <!-- /.row -->
1082
>>>>>>> Bug 30952: update patron and suggestion
1055
1083
1056
                            [% ELSE %]
1084
                        [% ELSE %]
1057
                                <strong>No results.</strong>
1085
                            <strong>No results.</strong>
1058
                            [% END # /IF ( suggestion.suggestions_loop ) %]
1086
                        [% END # /IF ( suggestion.suggestions_loop ) %]
1059
                        </form> <!-- /.update_suggestions -->
1087
                    </form> <!-- /.update_suggestions -->
1060
                    </div> <!-- /#[% suggestion.suggestiontype | html %] -->
1088
                </div> <!-- /#[% suggestion.suggestiontype | html %] -->
1061
                [% END # /FOREACH suggestion %]
1089
            [% END # /FOREACH suggestion %]
1062
            [% UNLESS ( notabs ) %]
1090
            [% UNLESS ( notabs ) %]
1063
            </fieldset>
1064
                </div> <!-- /.notabs -->
1091
                </div> <!-- /.notabs -->
1065
            [% END # /UNLESS notabs %]
1092
            [% END # /UNLESS notabs %]
1066
        [% END # /IF op == 'else' %]
1093
        [% END # /IF op == 'else' %]
1094
        </div>
1067
1095
1068
        [% UNLESS op == 'save' %]
1096
        [% UNLESS op == 'save' %]
1069
            [% UNLESS ( op == 'show' ) %]
1097
            [% UNLESS ( op == 'show' ) %]
Lines 1071-1077 Link Here
1071
1099
1072
                <div class="col-sm-2 col-sm-pull-10">
1100
                <div class="col-sm-2 col-sm-pull-10">
1073
                    <aside>
1101
                    <aside>
1074
                    <div id="filters">
1075
                        <form name="suggestionfilter" action="suggestion.pl" method="get">
1102
                        <form name="suggestionfilter" action="suggestion.pl" method="get">
1076
                            <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
1103
                            <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />
1077
                            <fieldset class="brief">
1104
                            <fieldset class="brief">
Lines 1104-1111 Link Here
1104
                                            [% ELSE %]
1131
                                            [% ELSE %]
1105
                                                <option value="acceptedby">Accepted by</option>
1132
                                                <option value="acceptedby">Accepted by</option>
1106
                                            [% END %]
1133
                                            [% END %]
1107
                                        </select>
1134
                                        </select></p>
1108
                                        <input class="principal" type="submit" value="Go" /></p>
1135
                                        <input type="submit" class="principal" value="Go" />
1109
                                    </li>
1136
                                    </li>
1110
                                </ol>
1137
                                </ol>
1111
                            </fieldset> <!-- /.brief -->
1138
                            </fieldset> <!-- /.brief -->
Lines 1114-1120 Link Here
1114
1141
1115
                            <div id="limits">
1142
                            <div id="limits">
1116
                                <fieldset class="brief">
1143
                                <fieldset class="brief">
1117
                                    <h4 class="local_collapse"><a href="#">Bibliographic information <span class="caret"></span></a></h4>
1144
                                    <h4 class="local_collapse"><a href="#">Bibliographic information</a></h4>
1118
                                    <ol>
1145
                                    <ol>
1119
                                        <li>
1146
                                        <li>
1120
                                            <p for="title"> Title:
1147
                                            <p for="title"> Title:
Lines 1138-1159 Link Here
1138
                                        </li>
1165
                                        </li>
1139
                                        <li>
1166
                                        <li>
1140
                                            <p for="collectiontitle"> Collection title:
1167
                                            <p for="collectiontitle"> Collection title:
1141
                                            <input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle | html %]" /></li><li><input class="principal" type="submit" value="Go" />
1168
                                            <input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle | html %]" /></li><li><input type="submit" class="principal" value="Go" />
1142
                                        </p></li>
1169
                                        </p></li>
1143
                                    </ol>
1170
                                    </ol>
1144
                                </fieldset> <!-- /.brief -->
1171
                                </fieldset> <!-- /.brief -->
1145
1172
1146
                                <fieldset class="brief">
1173
                                <fieldset class="brief">
1147
                                    <h4 class="local_collapse"><a href="#">Suggestion information <span class="caret"></span></a></h4>
1174
                                    <h4 class="local_collapse"><a href="#">Suggestion information</a></h4>
1148
                                    <ol>
1175
                                    <ol>
1149
                                        <li>
1176
                                        <li>
1150
                                            <p for="archived" style="display: inline;">Include archived:
1177
                                            <p for="archived" style="display: inline;">Include archived:
1151
                                            [% IF filter_archived %]
1178
                                            [% IF filter_archived %]
1152
                                                <input type="checkbox" id="archived" value="1" name="filter_archived" checked="checked" title="Include archived suggestions in the search" />
1179
                                                <input type="checkbox" id="archived" value="1" name="filter_archived" checked="checked" title="Include archived suggestions in the search" />
1153
                                            [% ELSE %]
1180
                                            [% ELSE %]
1181
<<<<<<< HEAD
1154
                                                <input type="checkbox" id="archived" value="1" name="filter_archived" title="Include archived suggestions in the search" />
1182
                                                <input type="checkbox" id="archived" value="1" name="filter_archived" title="Include archived suggestions in the search" />
1155
                                            [% END %]
1183
                                            [% END %]
1156
                                        </li>
1184
                                        </li>
1185
=======
1186
                                                <input type="checkbox" id="archived" name="filter_archived" title="Include archived suggestions in the search" />
1187
                                            [% END %]
1188
                                        </p></li>
1189
>>>>>>> Bug 30952: update patron and suggestion
1157
                                        <li>
1190
                                        <li>
1158
                                            <p for="STATUS[% loop.index | html %]"> Status:
1191
                                            <p for="STATUS[% loop.index | html %]"> Status:
1159
                                            <select name="STATUS" id="STATUS[% loop.index | html %]">
1192
                                            <select name="STATUS" id="STATUS[% loop.index | html %]">
Lines 1209-1216 Link Here
1209
                                                        <option value="[% suggestedby_loo.code | html %]">[% suggestedby_loo.desc | html %]</option>
1242
                                                        <option value="[% suggestedby_loo.code | html %]">[% suggestedby_loo.desc | html %]</option>
1210
                                                    [% END %]
1243
                                                    [% END %]
1211
                                                [% END %]
1244
                                                [% END %]
1212
                                            </select></p>
1245
                                            </select>
1213
                                        </li>
1246
                                        </p></li>
1214
                                        <li>
1247
                                        <li>
1215
                                            <p for="suggesteddate_from">Suggested date from:
1248
                                            <p for="suggesteddate_from">Suggested date from:
1216
                                            <input type="text" id="suggesteddate_from" size="10" name="suggesteddate_from" value="[% suggesteddate_from | html %]" data-date_to="suggesteddate_to" class="flatpickr" />
1249
                                            <input type="text" id="suggesteddate_from" size="10" name="suggesteddate_from" value="[% suggesteddate_from | html %]" data-date_to="suggesteddate_to" class="flatpickr" />
Lines 1251-1258 Link Here
1251
                                                        <option value="[% acceptedby_loo.code | html %]">[% acceptedby_loo.desc | html %]</option>
1284
                                                        <option value="[% acceptedby_loo.code | html %]">[% acceptedby_loo.desc | html %]</option>
1252
                                                    [% END %]
1285
                                                    [% END %]
1253
                                                [% END %]
1286
                                                [% END %]
1254
                                            </select>
1287
                                            </select></p>
1255
                                        </p></li>
1288
                                        </li>
1256
                                        <li>
1289
                                        <li>
1257
                                            <p for="accepteddate_from">Accepted date from:
1290
                                            <p for="accepteddate_from">Accepted date from:
1258
                                            <input type="text" id="accepteddate_from" size="10" name="accepteddate_from" value="[% accepteddate_from | html %]" data-date_to="accepteddate_to" class="flatpickr" />
1291
                                            <input type="text" id="accepteddate_from" size="10" name="accepteddate_from" value="[% accepteddate_from | html %]" data-date_to="accepteddate_to" class="flatpickr" />
Lines 1262-1275 Link Here
1262
                                            <input type="text" id="accepteddate_to" size="10" name="accepteddate_to" value="[% accepteddate_to | html %]" class="flatpickr" />
1295
                                            <input type="text" id="accepteddate_to" size="10" name="accepteddate_to" value="[% accepteddate_to | html %]" class="flatpickr" />
1263
                                        </p></li>
1296
                                        </p></li>
1264
                                        <li>
1297
                                        <li>
1265
                                            <input class="principal" type="submit" value="Go" />
1298
                                            <input type="submit" class="principal" value="Go" />
1266
                                        </li>
1299
                                        </li>
1267
                                    </ol>
1300
                                    </ol>
1268
                                </fieldset>
1301
                                </fieldset>
1269
1302
1270
                                <fieldset class="brief">
1303
                                <fieldset class="brief">
1271
                                    <h4 class="local_collapse">
1304
                                    <h4 class="local_collapse">
1272
                                        <a href="#">Acquisition information <span class="caret"></span></a>
1305
                                        <a href="#">Acquisition information</a>
1273
                                    </h4>
1306
                                    </h4>
1274
                                    <ol>
1307
                                    <ol>
1275
                                        <li>
1308
                                        <li>
Lines 1291-1297 Link Here
1291
                                            </select></p>
1324
                                            </select></p>
1292
                                        </li>
1325
                                        </li>
1293
                                        <li>
1326
                                        <li>
1294
                                            <input class="principal" type="submit" value="Go" />
1327
                                            <input type="submit" class="principal"  value="Go" />
1295
                                        </li>
1328
                                        </li>
1296
                                    </ol>
1329
                                    </ol>
1297
                                </fieldset>
1330
                                </fieldset>
Lines 1299-1305 Link Here
1299
                        </form> <!-- /suggestionsfilter -->
1332
                        </form> <!-- /suggestionsfilter -->
1300
1333
1301
                        [% INCLUDE 'acquisitions-menu.inc' %]
1334
                        [% INCLUDE 'acquisitions-menu.inc' %]
1302
                    </div>
1335
1303
                    </aside>
1336
                    </aside>
1304
                </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1337
                </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1305
            [% END # /UNLESS ( op == 'show' ) %]
1338
            [% END # /UNLESS ( op == 'show' ) %]
Lines 1315-1323 Link Here
1315
        var tab = '';
1348
        var tab = '';
1316
        function editManagerPopup(selected_tab) {
1349
        function editManagerPopup(selected_tab) {
1317
            tab = selected_tab;
1350
            tab = selected_tab;
1318
            window.open("/cgi-bin/koha/members/search.pl?columns=cardnumber,name,branch,category,action&selection_type=select&callback=select_manager&filter=suggestions_managers",
1351
            window.open("/cgi-bin/koha/suggestion/add_user_search.pl?selection_type=select&callback=select_manager&permissions=suggestions.suggestions_manage",
1319
                'PatronPopup',
1352
                'PatronPopup',
1320
                'width=1024,height=768,scrollbars=yes,toolbar=no,'
1353
                'width=740,height=450,location=yes,toolbar=no,'
1321
                + 'scrollbars=yes,resize=yes'
1354
                + 'scrollbars=yes,resize=yes'
1322
            );
1355
            );
1323
        }
1356
        }
Lines 1352-1360 Link Here
1352
        }
1385
        }
1353
1386
1354
        function editSuggesterPopup() {
1387
        function editSuggesterPopup() {
1355
            window.open("/cgi-bin/koha/members/search.pl?columns=cardnumber,name,branch,category,action&selection_type=select&callback=select_suggester",
1388
            window.open("/cgi-bin/koha/suggestion/add_user_search.pl?selection_type=select&callback=select_suggester",
1356
                'PatronPopup',
1389
                'PatronPopup',
1357
                'width=1024,height=768,scrollbars=yes,toolbar=no,'
1390
                'width=740,height=450,location=yes,toolbar=no,'
1358
                + 'scrollbars=yes,resize=yes'
1391
                + 'scrollbars=yes,resize=yes'
1359
            );
1392
            );
1360
        }
1393
        }
Lines 1400-1416 Link Here
1400
        [% INCLUDE 'columns_settings.inc' %]
1433
        [% INCLUDE 'columns_settings.inc' %]
1401
        <script>
1434
        <script>
1402
            $(document).ready(function() {
1435
            $(document).ready(function() {
1436
<<<<<<< HEAD
1403
                if( $("#suggestiontabs .tab-pane.active").length < 1 ){
1437
                if( $("#suggestiontabs .tab-pane.active").length < 1 ){
1404
                    $("#suggestiontabs a:first").tab("show");
1438
                    $("#suggestiontabs a:first").tab("show");
1405
                }
1439
                }
1406
1440
1407
                table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %]
1441
                table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %]
1442
=======
1443
                $('#suggestiontabs').tabs();
1444
1445
                columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %]
1446
>>>>>>> Bug 30952: update patron and suggestion
1408
                [% FOREACH suggestion IN suggestions %]
1447
                [% FOREACH suggestion IN suggestions %]
1409
                    [% IF suggestion.suggestions.size %]
1448
                    [% IF suggestion.suggestions.size %]
1410
                        KohaTable("table_[% loop.count| html %]", {
1449
                        KohaTable("table_[% loop.count| html %]", {
1411
                            "sorting": [[ 3, "asc" ]],
1450
                            "sorting": [[ 3, "asc" ]],
1412
                            "autoWidth": false,
1451
                            "autoWidth": false,
1413
                        }, table_settings );
1452
                        }, columns_settings );
1414
                    [% END %]
1453
                    [% END %]
1415
                [% END %]
1454
                [% END %]
1416
1455
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt (-11 / +13 lines)
Lines 49-55 tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } Link Here
49
49
50
<div class="row">
50
<div class="row">
51
<div class="col-sm-8 col-sm-push-2">
51
<div class="col-sm-8 col-sm-push-2">
52
<h1>Tags</h1>
52
<h2>Tags</h2>
53
<form method="post" action="/cgi-bin/koha/tags/review.pl">
53
<form method="post" action="/cgi-bin/koha/tags/review.pl">
54
    <h4><span>Displaying</span>
54
    <h4><span>Displaying</span>
55
    [% IF ( filter_approved_all ) %]<span>all</span>[% END %]
55
    [% IF ( filter_approved_all ) %]<span>all</span>[% END %]
Lines 199-205 tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } Link Here
199
   <div class="description">Enter a word or phrase to check against approved/rejected lists: </div>
199
   <div class="description">Enter a word or phrase to check against approved/rejected lists: </div>
200
   <form method="post" action="/cgi-bin/koha/tags/review.pl">
200
   <form method="post" action="/cgi-bin/koha/tags/review.pl">
201
   <input type="text" size="14" name="test" id="test" />
201
   <input type="text" size="14" name="test" id="test" />
202
   <fieldset class="action"><button type="submit" value="Test" class="approval_btn btn btn-default btn-sm" id="test_button" name="op-test"><i class="fa fa-check-square-o" aria-hidden="true"></i> Test</button></fieldset>
202
   <fieldset class="action"><button type="submit" value="Test" class="approval_btn btn btn-default btn-sm principal" id="test_button" name="op-test"><i class="fa fa-check-square-o" aria-hidden="true"></i> Test</button></fieldset>
203
   <div id="verdict">
203
   <div id="verdict">
204
    [% IF ( test_term ) %]
204
    [% IF ( test_term ) %]
205
    [% IF ( verdict_ok ) %]
205
    [% IF ( verdict_ok ) %]
Lines 217-229 tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } Link Here
217
</div>
217
</div>
218
<div class="col-sm-2 col-sm-pull-10">
218
<div class="col-sm-2 col-sm-pull-10">
219
    <aside>
219
    <aside>
220
    <div id="filters">
220
<form method="post" action="/cgi-bin/koha/tags/review.pl">
221
<form method="post" action="/cgi-bin/koha/tags/review.pl">
221
<fieldset class="brief">
222
<fieldset class="brief">
222
  <h4>Filters</h4>
223
  <h4>Filters</h4>
223
	<ol>
224
	<ol>
224
	    <li><label for="tag">Term:</label> <input type="text" name="tag" id="tag" value="[% filter_tag | html %]" />
225
	    <li><p for="tag">Term:<input type="text" name="tag" id="tag" value="[% filter_tag | html %]" /></p>
225
	    </li>
226
	    </li>
226
	    <li><label for="approved">Status:</label>
227
	    <li><p for="approved">Status:
227
            <select name="approved" id="approved">
228
            <select name="approved" id="approved">
228
            [% IF ( filter_approved_all ) %]<option selected="selected" value="all">all</option>
229
            [% IF ( filter_approved_all ) %]<option selected="selected" value="all">all</option>
229
            [% ELSE %]<option value="all">all</option>[% END %]
230
            [% ELSE %]<option value="all">all</option>[% END %]
Lines 233-255 tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } Link Here
233
            [% ELSE %]<option value="0">pending</option>[% END %]
234
            [% ELSE %]<option value="0">pending</option>[% END %]
234
            [% IF ( filter_approved_rej ) %]<option selected="selected" value="-1">rejected</option>
235
            [% IF ( filter_approved_rej ) %]<option selected="selected" value="-1">rejected</option>
235
            [% ELSE %]<option value="-1">rejected</option>[% END %]
236
            [% ELSE %]<option value="-1">rejected</option>[% END %]
236
			</select>
237
			</select></p>
237
	    </li>
238
	    </li>
238
	    <li><label for="approver">Reviewer:</label> <input type="text" name="approver" id="approver" value="[% filter_approver | html %]" />
239
	    <li><p for="approver">Reviewer: <input type="text" name="approver" id="approver" value="[% filter_approver | html %]" /></p>
239
	    </li>
240
	    </li>
240
	    <li>
241
	    <li>
241
			<label for="from">Date: from </label>
242
			<p for="from">Date: from
242
            <input type="text" size="10" id="from" name="from" value="[% filter_date_approved_from | html %]" class="flatpickr" data-date_to="to" />
243
            <input type="text" size="10" id="from" name="from" value="[% filter_date_approved_from | html %]" class="flatpickr" data-date_to="to" />
243
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
244
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div></p>
244
245
245
			<label for="to">...to </label>
246
			<p for="to">...to
246
            <input type="text" size="10" id="to" name="to" value="[% filter_date_approved_to | html %]" class="flatpickr" />
247
            <input type="text" size="10" id="to" name="to" value="[% filter_date_approved_to | html %]" class="flatpickr" />
247
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
248
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div></p>
248
	    </li>
249
	    </li>
249
  </ol>
250
  </ol>
250
 <fieldset class="action"><button type="submit" class="btn btn-default btn-sm"><i class="fa fa-filter" aria-hidden="true"></i> Apply filter(s)</button></fieldset>
251
 <fieldset class="action"><button type="submit" class="btn btn-default btn-sm principal"><i class="fa fa-filter" aria-hidden="true"></i> Apply filter(s)</button></fieldset>
251
</fieldset>
252
</fieldset>
252
</form>
253
</form>
254
</div>
253
</aside>
255
</aside>
254
</div>
256
</div>
255
</div>
257
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-2 / +4 lines)
Lines 261-266 Link Here
261
261
262
        [% IF languages.size %]
262
        [% IF languages.size %]
263
            <div id="tabs" class="toptabs">
263
            <div id="tabs" class="toptabs">
264
            <fieldset id="searchresults">
264
                <ul class="nav nav-tabs" role="tablist">
265
                <ul class="nav nav-tabs" role="tablist">
265
                    [% FOR language IN languages %]
266
                    [% FOR language IN languages %]
266
                        [% IF language.lang == 'default' %]
267
                        [% IF language.lang == 'default' %]
Lines 273-279 Link Here
273
                <div class="tab-content">
274
                <div class="tab-content">
274
                    [% FOR language IN languages %]
275
                    [% FOR language IN languages %]
275
                        <div id="lang_[% language.lang | uri %]" class="lang clearfix tab-pane" data-lang="[% language.description | html %]">
276
                        <div id="lang_[% language.lang | uri %]" class="lang clearfix tab-pane" data-lang="[% language.description | html %]">
276
                            <fieldset class="rows">
277
                            <fieldset>
277
                                <ol>
278
                                <ol>
278
                                    <li>
279
                                    <li>
279
                                        <label for="title_[% language.lang | html %]">Title: </label>
280
                                        <label for="title_[% language.lang | html %]">Title: </label>
Lines 289-294 Link Here
289
                        </div>
290
                        </div>
290
                    [% END %]
291
                    [% END %]
291
                </div> <!-- /.tab-content -->
292
                </div> <!-- /.tab-content -->
293
            </fieldset>
292
            </div>
294
            </div>
293
        [% ELSE %]
295
        [% ELSE %]
294
            <div id="lang_default">
296
            <div id="lang_default">
Lines 393-399 Link Here
393
                                        [% c.content | $raw %]
395
                                        [% c.content | $raw %]
394
                                    </div>
396
                                    </div>
395
                                    <div class="modal-footer">
397
                                    <div class="modal-footer">
396
                                        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
398
                                        <button type="button" class="btn btn-secondary cancel" data-dismiss="modal">Close</button>
397
                                    </div>
399
                                    </div>
398
                                </div>
400
                                </div>
399
                            </div>
401
                            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt (-12 / +10 lines)
Lines 53-73 Link Here
53
53
54
        [% IF ( op == 'edit_form' ) %]
54
        [% IF ( op == 'edit_form' ) %]
55
          <form method="post" id="rules_form" action="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl">
55
          <form method="post" id="rules_form" action="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl">
56
            <h2>Rules for automatic item modifications by age</h2>
57
            <div id="toolbar" class="btn-toolbar">
56
            <div id="toolbar" class="btn-toolbar">
58
                <div class="btn-group">
57
                <div class="btn-group">
59
                    <button class="pat add_rule"><i class="fa fa-plus"></i> Add rule</button>
58
                    <button class="pat add_rule"><i class="fa fa-plus"></i> Add rule</button>
60
                </div>
59
                </div>
61
                <div class="btn-group">
60
                <div class="btn-group">
62
                    <button type="submit" id="save_rules" class="pat"><i class="fa fa-save"></i> Save</button>
61
                    <button type="submit" id="save_rules" class="principal"><i class="fa fa-save"></i> Save</button>
63
                </div>
62
                </div>
64
                <div class="btn-group">
63
                <div class="btn-group">
65
                    <a class="pat" href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl"><i class="fa fa-remove"></i> Cancel</a>
64
                    <a class="cancel" href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl"><i class="fa fa-remove"></i> Cancel</a>
66
                </div>
65
                </div>
67
            </div>
66
            </div>
68
            <h2>Rules for automatic item modifications by age</h2>
67
            <h2>Rules for automatic item modifications by age</h2>
69
        [% ELSE %]
68
        [% ELSE %]
70
            <h2>Automatic item modifications by age</h2>
71
            [% IF ( rules ) %]
69
            [% IF ( rules ) %]
72
                <div id="toolbar" class="btn-toolbar">
70
                <div id="toolbar" class="btn-toolbar">
73
                <div class="btn-group">
71
                <div class="btn-group">
Lines 134-141 Link Here
134
                          </select>
132
                          </select>
135
                          =
133
                          =
136
                          <input type="text" value="[% condition.value | html %]" name="condition_value_[% id | html %]" />
134
                          <input type="text" value="[% condition.value | html %]" name="condition_value_[% id | html %]" />
137
                          <a class="add_block" href="#"><i class="fa fa-plus"></i> Add a condition</a>
135
                          <a class="add_block" href="#" id="lientype"><i class="fa fa-plus"></i> Add a condition</a>
138
                          <a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove condition</a>
136
                          <a class="remove_block" href="#" id="lientype"><i class="fa fa-trash"></i> Remove condition</a>
139
                        </div>
137
                        </div>
140
                      [% END %]
138
                      [% END %]
141
                    </div>
139
                    </div>
Lines 155-162 Link Here
155
                          </select>
153
                          </select>
156
                          =
154
                          =
157
                          <input type="text" value="[% substitution.value | html %]" name="substitution_value_[% id | html %]" />
155
                          <input type="text" value="[% substitution.value | html %]" name="substitution_value_[% id | html %]" />
158
                          <a class="add_block" href="#"><i class="fa fa-plus"></i> Add a substitution</a>
156
                          <a class="add_block" href="#" id="lientype"><i class="fa fa-plus"></i> Add a substitution</a>
159
                          <a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove substitution</a>
157
                          <a class="remove_block" href="#" id="lientype"><i class="fa fa-trash"></i> Remove substitution</a>
160
                          <span class="required">A field name is required</span>
158
                          <span class="required">A field name is required</span>
161
                        </div>
159
                        </div>
162
                      [% END %]
160
                      [% END %]
Lines 200-207 Link Here
200
                </select>
198
                </select>
201
                =
199
                =
202
                <input type="text" value="" name="condition_value" />
200
                <input type="text" value="" name="condition_value" />
203
                <a class="add_block" href="#"><i class="fa fa-plus"></i> Add a condition</a>
201
                <a class="add_block" href="#" id="lientype"><i class="fa fa-plus"></i> Add a condition</a>
204
                <a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove condition</a>
202
                <a class="remove_block" href="#" id="lientype"><i class="fa fa-trash"></i> Remove condition</a>
205
              </div>
203
              </div>
206
            </div>
204
            </div>
207
            <div class="blocks">
205
            <div class="blocks">
Lines 215-222 Link Here
215
                </select>
213
                </select>
216
                =
214
                =
217
                <input type="text" value="" name="substitution_value" />
215
                <input type="text" value="" name="substitution_value" />
218
                <a class="add_block" href="#"><i class="fa fa-plus"></i> Add a substitution</a>
216
                <a class="add_block" href="#" id="lientype"><i class="fa fa-plus"></i> Add a substitution</a>
219
                <a class="remove_block" href="#"><i class="fa fa-trash"></i> Remove substitution</a>
217
                <a class="remove_block" href="#" id="lientype"><i class="fa fa-trash"></i> Remove substitution</a>
220
                <span class="required">A field name is required</span>
218
                <span class="required">A field name is required</span>
221
              </div>
219
              </div>
222
            </div>
220
            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt (-16 / +17 lines)
Lines 40-64 Link Here
40
40
41
    <div class="main container-fluid">
41
    <div class="main container-fluid">
42
42
43
        <h1>Batch item modification</h1>
43
        <h2>Batch item modification</h2>
44
        [% IF op == 'enqueued' %]
44
        [% IF op == 'enqueued' %]
45
            <div class="dialog message">
45
            <div class="dialog message">
46
              <p>The job has been enqueued! It will be processed as soon as possible.</p>
46
              <p>The job has been enqueued! It will be processed as soon as possible.</p>
47
              <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
47
              <p><a id="lientype" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
48
              | <a href="/cgi-bin/koha/tools/batchMod.pl" title="New batch item modification">New batch item modification</a></p>
48
              | <a id="lientype" href="/cgi-bin/koha/tools/batchMod.pl" title="New batch item modification">New batch item modification</a></p>
49
            </div>
49
            </div>
50
50
51
            <fieldset class="action">
51
            <fieldset class="action">
52
                [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Edit items in a batch%]
52
                [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Edit items in a batch%]
53
                    [% IF searchid %]
53
                    [% IF searchid %]
54
                        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&searchid=[% searchid | uri %]">Return to the record</a>
54
                        <a id="lientype" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&searchid=[% searchid | uri %]">Return to the record</a>
55
                    [% ELSE %]
55
                    [% ELSE %]
56
                        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]">Return to the record</a>
56
                        <a id="lientype" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]">Return to the record</a>
57
                    [% END %]
57
                    [% END %]
58
                [% ELSIF src %]
58
                [% ELSIF src %]
59
                    <a href="[% src | url %]">Return to where you were</a>
59
                    <a id="lientype" href="[% src | url %]">Return to where you were</a>
60
                [% ELSE %]
60
                [% ELSE %]
61
                    <a href="/cgi-bin/koha/tools/batchMod.pl">Return to batch item modification</a>
61
                    <a id="lientype" href="/cgi-bin/koha/tools/batchMod.pl">Return to batch item modification</a>
62
                [% END %]
62
                [% END %]
63
            </fieldset>
63
            </fieldset>
64
        [% END %]
64
        [% END %]
Lines 179-193 Link Here
179
179
180
                [% UNLESS (too_many_items_process) %]
180
                [% UNLESS (too_many_items_process) %]
181
                    <div id="cataloguing_additem_newitem">
181
                    <div id="cataloguing_additem_newitem">
182
                        <h2>Edit items</h2>
182
183
                        <div class="hint">Checking the box right next to the subfield label will disable the entry and delete the subfield on all selected items. Leave fields blank to make no change.</div>
184
                        <fieldset class="rows">
183
                        <fieldset class="rows">
184
                        <h3>Edit items</h3>
185
                        <div class="hint">Checking the box right next to the subfield label will disable the entry and delete the subfield on all selected items. Leave fields blank to make no change.</div>
185
                            [%# no_plugin from batchMod-edit, jQuery is included at the end of the template and cataloguing plugins are not working in this situation %]
186
                            [%# no_plugin from batchMod-edit, jQuery is included at the end of the template and cataloguing plugins are not working in this situation %]
186
                            [% PROCESS subfields_for_item subfields => subfields, add_regex => 1, add_delete_checkbox => 1, no_plugin => 1 %]
187
                            [% PROCESS subfields_for_item subfields => subfields, add_regex => 1, add_delete_checkbox => 1, no_plugin => 1 %]
187
                        </fieldset>
188
                        </fieldset>
188
189
189
                        <fieldset class="rows">
190
                        <fieldset class="rows">
190
                            <legend>Other attributes</legend>
191
                            <h3>Other attributes</h3>
191
                            <ol>
192
                            <ol>
192
                                <li>
193
                                <li>
193
                                    <div class="subfield_line">
194
                                    <div class="subfield_line">
Lines 203-227 Link Here
203
                        </fieldset>
204
                        </fieldset>
204
205
205
                        <fieldset class="action">
206
                        <fieldset class="action">
206
                            <input type="submit" id="mainformsubmit" value="Save" />
207
                            <input type="submit" class="principal" id="mainformsubmit" value="Save" />
207
                            <a href="/cgi-bin/koha/tools/batchMod.pl" class="cancel">Cancel</a>
208
                            <a href="/cgi-bin/koha/tools/batchMod.pl" class="cancel">Cancel</a>
208
                        </fieldset>
209
                        </fieldset>
209
                    </div> <!-- /#cataloguing_additem_newitem -->
210
                    </div> <!-- /#cataloguing_additem_newitem -->
210
                [% ELSE %]
211
                [% ELSE %]
211
                    <p><a href="/cgi-bin/koha/tools/batchMod.pl">Return to batch item modification</a></p>
212
                    <p><a id="lientype" href="/cgi-bin/koha/tools/batchMod.pl">Return to batch item modification</a></p>
212
                [% END # /UNLESS too_many_items_process %]
213
                [% END # /UNLESS too_many_items_process %]
213
            [% ELSE # IF show %]
214
            [% ELSE # IF show %]
214
                <fieldset class="action">
215
                <fieldset class="action">
215
                    [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Edit items in a batch%]
216
                    [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Edit items in a batch%]
216
                        [% IF searchid %]
217
                        [% IF searchid %]
217
                            <a class="btn btn-default" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&searchid=[% searchid | uri %]"><i class="fa fa-check-square-o"></i> Return to the record</a>
218
                            <a id="lientype" class="btn btn-default" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&searchid=[% searchid | uri %]"><i class="fa fa-check-square-o"></i> Return to the record</a>
218
                        [% ELSE %]
219
                        [% ELSE %]
219
                            <a class="btn btn-default" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]"><i class="fa fa-check-square-o"></i> Return to the record</a>
220
                            <a id="lientype" class="btn btn-default" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]"><i class="fa fa-check-square-o"></i> Return to the record</a>
220
                        [% END %]
221
                        [% END %]
221
                    [% ELSIF src %]
222
                    [% ELSIF src %]
222
                        <a class="btn btn-default" href="[% src | url %]"><i class="fa fa-check-square-o"></i> Return to where you were</a>
223
                        <a  id="lientype"class="btn btn-default" href="[% src | url %]"><i class="fa fa-check-square-o"></i> Return to where you were</a>
223
                    [% ELSE %]
224
                    [% ELSE %]
224
                        <a class="btn btn-default" href="/cgi-bin/koha/tools/batchMod.pl"><i class="fa fa-check-square-o"></i> Return to batch item modification</a>
225
                        <a id="lientype" class="btn btn-default" href="/cgi-bin/koha/tools/batchMod.pl"><i class="fa fa-check-square-o"></i> Return to batch item modification</a>
225
                    [% END %]
226
                    [% END %]
226
                </fieldset> <!-- /.action -->
227
                </fieldset> <!-- /.action -->
227
            [% END %]
228
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-10 / +10 lines)
Lines 82-88 Link Here
82
          </li>
82
          </li>
83
          [% IF lists.count %]
83
          [% IF lists.count %]
84
            <li id="show_list_option" role="presentation">
84
            <li id="show_list_option" role="presentation">
85
                <a href="#shelves_tab" aria-controls="shelves_tab" role="tab" data-toggle="tab">Select a list of records</a>
85
                <a  href="#shelves_tab" aria-controls="shelves_tab" role="tab" data-toggle="tab">Select a list of records</a>
86
            </li>
86
            </li>
87
          [% END %]
87
          [% END %]
88
          <li role="presentation">
88
          <li role="presentation">
Lines 92-98 Link Here
92
92
93
    <div class="tab-content">
93
    <div class="tab-content">
94
        <div id="uploadfile_tab" role="tabpanel" class="tab-pane active">
94
        <div id="uploadfile_tab" role="tabpanel" class="tab-pane active">
95
          <fieldset class="rows">
95
          <fieldset>
96
            <h3>Use a file</h3>
96
            <h3>Use a file</h3>
97
            <ol>
97
            <ol>
98
              <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
98
              <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
Lines 103-109 Link Here
103
103
104
        [% IF lists.count %]
104
        [% IF lists.count %]
105
            <div id="shelves_tab" role="tabpanel" class="tab-pane">
105
            <div id="shelves_tab" role="tabpanel" class="tab-pane">
106
              <fieldset class="rows">
106
              <fieldset>
107
                <h3>Or select a list of records</h3>
107
                <h3>Or select a list of records</h3>
108
                <ol>
108
                <ol>
109
                  <li>
109
                  <li>
Lines 122-128 Link Here
122
        [% END %]
122
        [% END %]
123
123
124
        <div id="enterlist_tab" role="tabpanel" class="tab-pane">
124
        <div id="enterlist_tab" role="tabpanel" class="tab-pane">
125
          <fieldset class="rows">
125
          <fieldset>
126
            <h3>Or enter a list of record numbers</h3>
126
            <h3>Or enter a list of record numbers</h3>
127
            <ol>
127
            <ol>
128
              <li>
128
              <li>
Lines 149-157 Link Here
149
        <div id="toolbar">
149
        <div id="toolbar">
150
          <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a>
150
          <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a>
151
          | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a>
151
          | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a>
152
          | <a id="selectwithoutitems" href="#">Select without items</a>
152
          | <a class="lientype" id="selectwithoutitems" href="#">Select without items</a>
153
          | <a id="selectnotreserved" href="#">Select without holds</a>
153
          | <a class="lientype" id="selectnotreserved" href="#">Select without holds</a>
154
          | <a id="selectwithoutsubscriptions" href="#">Select without subscriptions</a>
154
          | <a class="lientype" id="selectwithoutsubscriptions" href="#">Select without subscriptions</a>
155
        </div>
155
        </div>
156
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post" id="selectrecords">
156
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post" id="selectrecords">
157
          <table id="biblios" class="records">
157
          <table id="biblios" class="records">
Lines 185-191 Link Here
185
        <div id="toolbar">
185
        <div id="toolbar">
186
          <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a>
186
          <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a>
187
          | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a>
187
          | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a>
188
          | <a id="clearlinkedtobiblio" href="#">Clear used authorities</a>
188
          | <a class="lientype" id="clearlinkedtobiblio" href="#">Clear used authorities</a>
189
        </div>
189
        </div>
190
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post" id="selectauths">
190
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post" id="selectauths">
191
          <table id="authorities" class="records">
191
          <table id="authorities" class="records">
Lines 223-230 Link Here
223
  [% ELSIF op == 'enqueued' %]
223
  [% ELSIF op == 'enqueued' %]
224
    <div class="dialog message">
224
    <div class="dialog message">
225
      <p>The job has been enqueued! It will be processed as soon as possible.</p>
225
      <p>The job has been enqueued! It will be processed as soon as possible.</p>
226
      <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
226
      <p><a id="lientype" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
227
      | <a href="/cgi-bin/koha/tools/batch_delete_records.pl" title="New batch record deletion">New batch record deletion</a></p>
227
      | <a id="lientype" href="/cgi-bin/koha/tools/batch_delete_records.pl" title="New batch record deletion">New batch record deletion</a></p>
228
    </div>
228
    </div>
229
  [% ELSE %]
229
  [% ELSE %]
230
    No action defined for the template.
230
    No action defined for the template.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-55 / +35 lines)
Lines 12-18 Link Here
12
</head>
12
</head>
13
13
14
<body id="tools_batch_record_modification" class="tools">
14
<body id="tools_batch_record_modification" class="tools">
15
    [% INCLUDE 'header.inc' form=formulaire %]
15
    [% INCLUDE 'header.inc'  form=formulaire %]
16
16
17
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
17
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
18
        <ol>
18
        <ol>
Lines 83-141 Link Here
83
                            <br><br>
83
                            <br><br>
84
84
85
                            <div id="batch_mod_form" class="toptabs" style="clear:both">
85
                            <div id="batch_mod_form" class="toptabs" style="clear:both">
86
                                <fieldset id="searchresults">
86
                            <fieldset id="searchresults">
87
                                <ul class="nav nav-tabs" role="tablist">
87
                                <ul>
88
                                    <li role="presentation" class="active">
88
                                    <li><a href="#uploadfile_tab">Upload a file</a></li>
89
                                        <a href="#uploadfile_tab" aria-controls="uploadfile_tab" role="tab" data-toggle="tab">Upload a file</a>
89
                                        [% IF lists.count %]<li id="show_list_option"><a href="#shelves_tab">Select a list of records</a></li>[% END %]
90
                                    </li>
90
                                    <li><a href="#enterlist_tab">Enter a list of record numbers</a></li>
91
                                    [% IF lists.count %]
92
                                        <li id="show_list_option">
93
                                            <a href="#shelves_tab" aria-controls="shelves_tab" role="tab" data-toggle="tab">Select a list of records</a>
94
                                        </li>
95
                                    [% END %]
96
                                    <li role="presentation">
97
                                        <a href="#enterlist_tab" aria-controls="enterlist_tab" role="tab" data-toggle="tab">Enter a list of record numbers</a>
98
                                    </li>
99
                                </ul>
91
                                </ul>
100
92
101
                                <div class="tab-content">
93
                                <div id="uploadfile_tab">
102
                                    <div id="uploadfile_tab" role="tabpanel" class="tab-pane active">
94
                                    <fieldset class="rows">
103
                                        <fieldset class="rows">
95
                                        <h3>Use a file</h3>
104
                                            <ol>
96
                                        <ol>
105
                                                <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
97
                                            <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
106
                                            </ol>
98
                                        </ol>
107
                                        </fieldset>
99
                                    </fieldset>
108
                                        &nbsp;
100
                                    &nbsp;
109
                                    </div>
101
                                </div>
110
111
                                    [% IF lists.count %]
112
                                        <div id="shelves_tab" role="tabpanel" class="tab-pane">
113
                                            <fieldset class="rows">
114
                                                <ol>
115
                                                    <li>
116
                                                        <label for="shelf_number">List: </label>
117
                                                        <select name="shelf_number" id="shelf_number">
118
                                                            <option value="">Select a list</option>
119
                                                            [% FOREACH list IN lists %]
120
                                                            <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
121
                                                            [% END %]
122
                                                            </option>
123
                                                        </select>
124
                                                    </li>
125
                                                </ol>
126
                                            </fieldset>
127
                                            &nbsp;
128
                                        </div>
129
                                    [% END %]
130
102
131
                                    <div id="enterlist_tab" role="tabpanel" class="tab-pane">
103
                                [% IF lists.count %]
104
                                    <div id="shelves_tab">
132
                                        <fieldset class="rows">
105
                                        <fieldset class="rows">
133
                                            <h3>Or select a list of records</h3>
106
                                            <h3>Or select a list of records</h3>
134
                                            <ol>
107
                                            <ol>
135
                                                <li>
108
                                                <li>
136
                                                    <label for="recordnumber_list">Record numbers: </label>
109
                                                    <label for="shelf_number">Use records from the following list: </label>
137
                                                    <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
110
                                                    <select name="shelf_number" id="shelf_number">
138
                                                    <div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div>
111
                                                        <option value="">Select a list</option>
112
                                                        [% FOREACH list IN lists %]
113
                                                        <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
114
                                                        [% END %]
115
                                                        </option>
116
                                                    </select>
139
                                                </li>
117
                                                </li>
140
                                            </ol>
118
                                            </ol>
141
                                        </fieldset>
119
                                        </fieldset>
Lines 162-168 Link Here
162
                                <h3>Use MARC modification template:</h3>
140
                                <h3>Use MARC modification template:</h3>
163
                                <ol>
141
                                <ol>
164
                                    <li>
142
                                    <li>
165
                                        <label for="marc_modification_template_id" class="required">Template: </label>
143
                                        <label for="marc_modification_template_id" class="required">Modify record using the following template: </label>
166
                                        <select name="marc_modification_template_id" id="marc_modification_template_id" required="required">
144
                                        <select name="marc_modification_template_id" id="marc_modification_template_id" required="required">
167
                                            <option value="">Select a template</option>
145
                                            <option value="">Select a template</option>
168
                                            [% FOREACH mmt IN MarcModificationTemplatesLoop %]
146
                                            [% FOREACH mmt IN MarcModificationTemplatesLoop %]
Lines 174-180 Link Here
174
                            </fieldset>
152
                            </fieldset>
175
                            <fieldset class="action">
153
                            <fieldset class="action">
176
                                <input type="hidden" name="op" value="list" />
154
                                <input type="hidden" name="op" value="list" />
177
                                <input class="principal" type="submit" value="Continue" class="button" />
155
                                <input type="submit" class="principal" value="Continue" class="button" />
178
                                <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
156
                                <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
179
                            </fieldset>
157
                            </fieldset>
180
                        </form> <!-- /#record_ids_selection -->
158
                        </form> <!-- /#record_ids_selection -->
Lines 229-235 Link Here
229
                                                    <td>[% biblio.biblionumber | html %]</td>
207
                                                    <td>[% biblio.biblionumber | html %]</td>
230
                                                    <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.title | html %]</a></td>
208
                                                    <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.title | html %]</a></td>
231
                                                    <td class="actions">
209
                                                    <td class="actions">
232
                                                        <a href="/cgi-bin/koha/svc/records/preview?record_type=biblio&record_id=[% biblio.biblionumber | uri %]&mmtid=[% mmtid | uri %]&overlay_context=batchmod" class="previewMARC btn btn-default btn-xs" data-record_type="biblio" data-record_id="[% biblio.biblionumber | html %]" data-mmtid="[% mmtid | html %]" id="lientype" title="Preview MARC"><i class="fa fa-eye"></i> Show MARC</a>
210
                                                        <a href="/cgi-bin/koha/svc/records/preview?record_type=biblio&record_id=[% biblio.biblionumber | uri %]&mmtid=[% mmtid | uri %]&overlay_context=batchmod" class="previewMARC btn btn-default btn-xs" data-record_type="biblio" data-record_id="[% biblio.biblionumber | html %]" data-mmtid="[% mmtid | html %]" title="Preview MARC"><i class="fa fa-eye"></i> Show MARC</a>
233
                                                    </td>
211
                                                    </td>
234
                                                </tr>
212
                                                </tr>
235
                                            [% END %]
213
                                            [% END %]
Lines 245-251 Link Here
245
                                        <thead>
223
                                        <thead>
246
                                            <tr>
224
                                            <tr>
247
                                                <th></th>
225
                                                <th></th>
248
                                                <th>AuthID</th>
226
                                                <th>Authid</th>
249
                                                <th>Summary</th>
227
                                                <th>Summary</th>
250
                                                <th>&nbsp;</th>
228
                                                <th>&nbsp;</th>
251
                                            </tr>
229
                                            </tr>
Lines 266-277 Link Here
266
                                <fieldset class="action">
244
                                <fieldset class="action">
267
                                    <input type="hidden" name="op" value="modify" />
245
                                    <input type="hidden" name="op" value="modify" />
268
                                    <input type="hidden" name="recordtype" value="[% recordtype | html %]" />
246
                                    <input type="hidden" name="recordtype" value="[% recordtype | html %]" />
269
                                    <input type="submit" class="principal" id="mainformsubmit" value="Modify selected records" class="button" />
247
                                    <input type="submit" id="mainformsubmit" value="Modify selected records" class="button principal" />
270
                                </fieldset>
248
                                </fieldset>
271
                            </form> <!-- /#process -->
249
                            </form> <!-- /#process -->
272
                        [% ELSE %]
250
                        [% ELSE %]
273
                            <div class="dialog message">
251
                            <div class="dialog message">
274
                                No records were modified. [% IF recordtype != 'biblio' %]<a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>[% END %]
252
                                No records were modified. [% IF recordtype != 'biblio' %]<a id="lientype" href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>[% END %]
275
                            </div>
253
                            </div>
276
                        [% END %]
254
                        [% END %]
277
                    [% ELSIF view == 'errors' %]
255
                    [% ELSIF view == 'errors' %]
Lines 285-292 Link Here
285
                     [% ELSIF view == 'enqueued' %]
263
                     [% ELSIF view == 'enqueued' %]
286
                        <div class="dialog message">
264
                        <div class="dialog message">
287
                            <p>The job has been enqueued! It will be processed as soon as possible.</p>
265
                            <p>The job has been enqueued! It will be processed as soon as possible.</p>
288
                            <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
266
                            <p><a id="lientype" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
289
                            | <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a></p>
267
                            | <a id="lientype" href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a></p>
290
                        </div>
268
                        </div>
291
                    [% ELSE %]
269
                    [% ELSE %]
292
                        <div class="dialog alert">
270
                        <div class="dialog alert">
Lines 310-315 Link Here
310
    <script>
288
    <script>
311
        $(document).ready(function() {
289
        $(document).ready(function() {
312
290
291
            $("#batch_mod_form").tabs();
292
313
            $("input[type='radio']").click(function() {
293
            $("input[type='radio']").click(function() {
314
                if ($(this).attr('id') == 'authority_type') {
294
                if ($(this).attr('id') == 'authority_type') {
315
                    $("#show_list_option").hide();
295
                    $("#show_list_option").hide();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt (-104 / +31 lines)
Lines 32-43 Link Here
32
            </a>
32
            </a>
33
        </li>
33
        </li>
34
    </ol>
34
    </ol>
35
        <ol>
36
            [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
37
        </ol>
38
        <ol>
39
            <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
40
        </ol>
41
</nav>
35
</nav>
42
36
43
<div class="main container-fluid">
37
<div class="main container-fluid">
Lines 45-63 Link Here
45
        <div class="col-sm-10 col-sm-push-2">
39
        <div class="col-sm-10 col-sm-push-2">
46
            <main>
40
            <main>
47
41
48
                <h1>Export data</h1>
49
50
[% FOR m IN messages %]
42
[% FOR m IN messages %]
51
    <div class="dialog [% m.type | html %]">
43
    <div class="dialog [% m.type | html %]">
52
        [% SWITCH m.code %]
44
        [% SWITCH m.code %]
53
        [% CASE 'invalid_mimetype' %]<span>The file used does not have a valid format. Only csv and txt are allowed.</span>
45
        [% CASE 'invalid_mimetype' %]The file used does not have a valid format. Only csv and txt are allowed.
54
        [% CASE %][% m.code | html %]
46
        [% CASE %][% m.code | html %]
55
        [% END %]
47
        [% END %]
56
    </div>
48
    </div>
57
[% END %]
49
[% END %]
58
50
59
<div id="exporttype" class="toptabs">
51
<div id="exporttype" class="toptabs">
60
<fieldset id="searchresults">
61
<ul>
52
<ul>
62
<li><a href="#bibs">Export bibliographic records</a></li>
53
<li><a href="#bibs">Export bibliographic records</a></li>
63
<li><a href="#auths">Export authority records</a></li>
54
<li><a href="#auths">Export authority records</a></li>
Lines 95-102 Link Here
95
                [% END %]
86
                [% END %]
96
            </select>
87
            </select>
97
        </li>
88
        </li>
98
        <li role="presentation">
89
99
            <a href="#auths" aria-controls="auths" role="tab" data-toggle="tab">Export authority records</a>
90
        <li>
91
            <label>With items owned by the following libraries: </label>
92
            [% INCLUDE 'branch-selector.inc' branches = libraries %]
100
        </li>
93
        </li>
101
    </ol>
94
    </ol>
102
95
Lines 107-124 Link Here
107
                <label for="startcn">From item call number: </label>
100
                <label for="startcn">From item call number: </label>
108
                <input id="startcn" type="text" name="start_callnumber" size="15" />
101
                <input id="startcn" type="text" name="start_callnumber" size="15" />
109
            </li>
102
            </li>
110
        [% END %]
103
            <li>
111
        [% IF ( allow_conf_export ) %]
104
                <label for="endcn">To item call number: </label>
112
            <li role="presentation">
105
                <input id="endcn" type="text" name="end_callnumber" size="15" />
113
                <a href="#conf" aria-controls="conf" role="tab" data-toggle="tab">Export configuration</a>
114
            </li>
106
            </li>
115
        [% END %]
107
        </ol>
116
    </ul>
108
    </fieldset>
117
    <div class="tab-content">
118
        <div id="bibs" role="tabpanel" class="tab-pane active">
119
        <p>
120
            <strong>Note : The items are exported by this tool unless specified.</strong>
121
        </p>
122
109
123
    <fieldset class="rows">
110
    <fieldset class="rows">
124
        <h3>Accession date (inclusive)</h3>
111
        <h3>Accession date (inclusive)</h3>
Lines 191-197 Link Here
191
    <input type="hidden" name="op" value="export" />
178
    <input type="hidden" name="op" value="export" />
192
    <input type="hidden" name="record_type" value="bibs" />
179
    <input type="hidden" name="record_type" value="bibs" />
193
180
194
    <fieldset class="action"><input type="submit"  class="principal" value="Export bibliographic records" class="button" /></fieldset>
181
    <fieldset class="action"><input type="submit" value="Export bibliographic records" class="button" id="principal" /></fieldset>
195
</form>
182
</form>
196
</div>
183
</div>
197
184
Lines 250-270 Link Here
250
        </li></ol>
237
        </li></ol>
251
    </fieldset>
238
    </fieldset>
252
    <input type="hidden" name="op" value="export" />
239
    <input type="hidden" name="op" value="export" />
253
    <inpexporttyut type="hidden" name="record_type" value="auths" />
240
    <input type="hidden" name="record_type" value="auths" />
254
241
255
            <fieldset class="rows">
242
    <fieldset class="action"><input type="submit" value="Export authority records" class="button" id="principal" /></fieldset>
256
                <legend>Accession date (inclusive)</legend>
243
</form>
257
                <ol>
244
</div>
258
                    <li>
259
                            <label for="from">Start date:</label>
260
                            <input type="text" size="10" id="from" name="start_accession" value="[% from | html %]" class="flatpickr" data-date_to="to" />
261
                    </li>
262
                    <li>
263
                        <label for="to">End date:</label>
264
                        <input size="10" id="to" name="end_accession" value="[% end_accession | html %]" type="text" class="flatpickr" />
265
                    </li>
266
                </ol>
267
            </fieldset>
268
245
269
[% IF ( allow_db_export ) %]
246
[% IF ( allow_db_export ) %]
270
<div id="db">
247
<div id="db">
Lines 283-352 Link Here
283
    [% END %]
260
    [% END %]
284
    </fieldset>
261
    </fieldset>
285
262
286
            <fieldset class="action"><input type="submit" value="Export bibliographic records" class="button" /></fieldset>
263
    [% IF ( dbfiles && (dbfiles.size > 0) ) %]
287
        </form>
264
        <input type="hidden" name="op" value="export" />
288
        </div>
265
        <input type="hidden" name="record_type" value="db" />
289
266
        <fieldset class="action"><input type="submit" value="Download database" class="button" id="principal" /></fieldset>
290
        <div id="auths" role="tabpanel" class="tab-pane">
267
    [% END %]
291
        <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
268
</form>
292
            <fieldset class="rows">
269
</div>
293
            <legend> Select records to export </legend>
270
[% END %]
294
                <ol><li>
295
                    <label for="start">From authid: </label>
296
                    <input id="start" type="text" name="starting_authid" size="6" />
297
                </li>
298
                <li>
299
                    <label for="end">To authid: </label>
300
                    <input id="end" type="text" name="ending_authid" size="6" />
301
                </li>
302
                <li>
303
                    <label for="authtype">Authority type: </label>
304
                    <select name="authtype" id="authtype">
305
                        <option value="">-- All --</option>
306
                        [% FOREACH authority_type IN authority_types %]
307
                            <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
308
                        [% END %]
309
                    </select>
310
                </li>
311
                </ol>
312
            </fieldset>
313
            <fieldset class="rows">
314
            <legend>
315
                Use a file
316
            </legend>
317
                <ol>
318
                <li>File containing a list of authids with one authid per line. This list works as a filter: it is compatible with other parameters. (File types accepted: .csv and .txt)</li>
319
                <li><label for="id_list_file">File:</label> <input type="file" id="id_list_file" name="id_list_file" /></li>
320
                </ol>
321
            </fieldset>
322
            <fieldset class="rows">
323
            <legend>Options</legend>
324
                <ol>
325
                <li>
326
                    <label for="export_remove_fields">Don't export fields:</label>
327
                    <input id="export_remove_fields" type="text" name="export_remove_fields" />
328
                    separate by a blank. (e.g., 100a 200 606)
329
                </li></ol>
330
            </fieldset>
331
            <fieldset class="rows">
332
            <legend>Output format</legend>
333
                <ol><li>
334
                    <label for="output_format">File format: </label>
335
                    <select id="output_format_auth" name="output_format">
336
                        <option value="marc">MARC</option>
337
                        <option value="xml">XML</option>
338
                    </select>
339
                </li>
340
                <li>
341
                <label for="filename_auth">File name:</label><input id="filename_auth" type="text" name="filename_auth" value="koha.mrc" />
342
                </li></ol>
343
            </fieldset>
344
            <input type="hidden" name="op" value="export" />
345
            <input type="hidden" name="record_type" value="auths" />
346
347
            <fieldset class="action"><input type="submit" value="Export authority records" class="button" /></fieldset>
348
        </form>
349
        </div>
350
271
351
[% IF ( allow_conf_export ) %]
272
[% IF ( allow_conf_export ) %]
352
<div id="conf">
273
<div id="conf">
Lines 359-374 Link Here
359
        [% FOREACH conffile IN conffiles %]
280
        [% FOREACH conffile IN conffiles %]
360
            <li><input type="radio" name="filename" value="[% conffile | html %]">[% conffile | html %]</input></li>
281
            <li><input type="radio" name="filename" value="[% conffile | html %]">[% conffile | html %]</input></li>
361
        [% END %]
282
        [% END %]
283
        </ul>
284
    [% ELSE %]
285
        <p>Unfortunately, no backups are available.</p>
286
    [% END %]
287
    </fieldset>
362
288
363
    [% IF ( conffiles && (conffiles.size > 0) ) %]
289
    [% IF ( conffiles && (conffiles.size > 0) ) %]
364
        <input type="hidden" name="op" value="export" />
290
        <input type="hidden" name="op" value="export" />
365
        <input type="hidden" name="record_type" value="conf" />
291
        <input type="hidden" name="record_type" value="conf" />
366
        <fieldset class="action"><input type="submit" value="Download configuration" class="button" /></fieldset>
292
        <fieldset class="action"><input type="submit" value="Download configuration" class="button" id="principal" /></fieldset>
367
    [% END %]
293
    [% END %]
368
</form>
294
</form>
369
</div>
295
</div>
370
[% END %]
296
[% END %]
371
</fieldset>
297
372
</div>
298
</div>
373
299
374
            </main>
300
            </main>
Lines 386-391 Link Here
386
    [% INCLUDE 'calendar.inc' %]
312
    [% INCLUDE 'calendar.inc' %]
387
    <script>
313
    <script>
388
        $(document).ready(function() {
314
        $(document).ready(function() {
315
            $('#exporttype').tabs();
389
316
390
            $("li.csv_profiles").hide();
317
            $("li.csv_profiles").hide();
391
318
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt (-1 / +1 lines)
Lines 351-357 Link Here
351
        [% END %]
351
        [% END %]
352
352
353
        <fieldset class="rows">
353
        <fieldset class="rows">
354
            <legend>Welcome email</legend>
354
            <h3>Welcome email</h3>
355
            <ul>
355
            <ul>
356
                <li>
356
                <li>
357
                    <input class="welcome_new" type="checkbox" id="welcome_new" name="welcome_new"/>
357
                    <input class="welcome_new" type="checkbox" id="welcome_new" name="welcome_new"/>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-11 / +13 lines)
Lines 134-141 Link Here
134
                    </div>
134
                    </div>
135
                </div>
135
                </div>
136
                <div class="modal-footer">
136
                <div class="modal-footer">
137
                    <!-- TODO <a href="#" class="btn btn-default" id="preview_template_button" role="button" data-toggle="modal">Convert using the Template Toolkit syntax</a>-->
137
                    <!-- TODO <a href="#" class="btn btn-default principal" id="preview_template_button" role="button" data-toggle="modal">Convert using the Template Toolkit syntax</a>-->
138
                    <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
138
                    <button class="btn btn-default cancel" data-dismiss="modal" aria-hidden="true">Close</button>
139
                </div>
139
                </div>
140
            </div> <!-- /.modal-content -->
140
            </div> <!-- /.modal-content -->
141
        </div> <!-- /.modal-dialog -->
141
        </div> <!-- /.modal-dialog -->
Lines 290-308 Link Here
290
                [% END # /IF no_op_set %]
290
                [% END # /IF no_op_set %]
291
291
292
                [% IF add_form or copy_form %]
292
                [% IF add_form or copy_form %]
293
                    <h1>[% IF ( modify ) %]Modify notice[% ELSE %]Add notice[% END %]</h1>
293
                    <h2>[% IF ( modify ) %]Modify notice[% ELSE %]Add notice[% END %]</h2>
294
294
295
                    <div id="toolbar" class="btn-toolbar">
295
                    <div id="toolbar" class="btn-toolbar">
296
                        <div class="btn-group">
296
                        <div class="btn-group">
297
                            <button class="btn btn-default" id="submit_form"><i class="fa fa-save"></i> Save</button>
297
                            <button class="btn btn-default principal" id="submit_form"><i class="fa fa-save"></i> Save</button>
298
                            <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
298
                            <button class="btn btn-default dropdown-toggle pat" data-toggle="dropdown">
299
                            <span class="caret"></span>
299
                            <span class="caret"></span>
300
                            </button>
300
                            </button>
301
                            <ul class="dropdown-menu">
301
                            <ul class="dropdown-menu">
302
                                <li><a id="saveandcontinue" href="#">Save and continue editing</a></li>
302
                                <li><a id="saveandcontinue" href="#">Save and continue editing</a></li>
303
                            </ul>
303
                            </ul>
304
                        </div>
304
                        </div>
305
                        <a class="btn btn-default cancel" href="/cgi-bin/koha/tools/letter.pl"><i class="fa fa-remove"></i> Cancel</a>
305
                        <div>
306
                              <a class="btn btn-default cancel" href="/cgi-bin/koha/tools/letter.pl"><i class="fa fa-remove"></i> Cancel</a>
307
                        </div>
306
                    </div> <!-- /#toolbar -->
308
                    </div> <!-- /#toolbar -->
307
309
308
                    <form id="add_notice" name="Aform" method="post" enctype="multipart/form-data" class="validate">
310
                    <form id="add_notice" name="Aform" method="post" enctype="multipart/form-data" class="validate">
Lines 455-461 Link Here
455
                            <!-- Nav tabs -->
457
                            <!-- Nav tabs -->
456
                            <ul class="nav nav-tabs" role="tablist">
458
                            <ul class="nav nav-tabs" role="tablist">
457
                                <li role="presentation">
459
                                <li role="presentation">
458
                                    <a href="#lang_default" aria-controls="lang_default" role="tab" data-toggle="tab">Default</a>
460
                                    <a id="lientype" href="#lang_default" aria-controls="lang_default" role="tab" data-toggle="tab">Default</a>
459
                                </li>
461
                                </li>
460
                                [% FOR language IN languages %]
462
                                [% FOR language IN languages %]
461
                                    [% FOR sublanguage IN language.sublanguages_loop %]
463
                                    [% FOR sublanguage IN language.sublanguages_loop %]
Lines 502-511 Link Here
502
                                    <div id="[% letter.message_transport_type | html %]_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="[% letter.message_transport_type | html %]_[% lang | html %]Heading">
504
                                    <div id="[% letter.message_transport_type | html %]_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="[% letter.message_transport_type | html %]_[% lang | html %]Heading">
503
                                        <div class="panel-body">
505
                                        <div class="panel-body">
504
                                            [% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %]
506
                                            [% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %]
505
                                                <fieldset class="rows mtt" disabled="disabled">
507
                                                <fieldset class="rows mtt" style="box-shadow:none" disabled="disabled">
506
                                                    <div class="dialog message">You should enable the SMSSendDriver preference to use the SMS templates.</div>
508
                                                    <div class="dialog message">You should enable the SMSSendDriver preference to use the SMS templates.</div>
507
                                            [% ELSE %]
509
                                            [% ELSE %]
508
                                                <fieldset class="rows mtt">
510
                                                <fieldset class="rows mtt" style="box-shadow:none">
509
                                            [% END %]
511
                                            [% END %]
510
                                                <ol>
512
                                                <ol>
511
                                                    [% IF ( letter.updated_on ) %]
513
                                                    [% IF ( letter.updated_on ) %]
Lines 547-553 Link Here
547
                                                                    </select>
549
                                                                    </select>
548
                                                                </td>
550
                                                                </td>
549
                                                                <td class="actions">
551
                                                                <td class="actions">
550
                                                                    <button type="button" data-containerid="[% letter.message_transport_type | html %]_[% lang | html %]" class="btn btn-default btn-sm insert">Insert <i class="fa fa-long-arrow-right"></i></button>
552
                                                                    <button id="lientype" type="button" data-containerid="[% letter.message_transport_type | html %]_[% lang | html %]" class="btn btn-default btn-sm insert">Insert <i class="fa fa-long-arrow-right"></i></button>
551
                                                                </td>
553
                                                                </td>
552
                                                                <td>
554
                                                                <td>
553
                                                                    <textarea name="content" data-lang="[% lang | html %]" class="content_[% letter.message_transport_type | html %]" id="content_[% letter.message_transport_type | html %]_[% lang | html %]" cols="80" rows="15">[% letter.content | html %]</textarea>
555
                                                                    <textarea name="content" data-lang="[% lang | html %]" class="content_[% letter.message_transport_type | html %]" id="content_[% letter.message_transport_type | html %]_[% lang | html %]" cols="80" rows="15">[% letter.content | html %]</textarea>
Lines 591-597 Link Here
591
593
592
                [% IF ( delete_confirm ) %]
594
                [% IF ( delete_confirm ) %]
593
                    <div class="dialog alert">
595
                    <div class="dialog alert">
594
                        <h1>Delete notice?</h1>
596
                        <h2>Delete notice?</h2>
595
                        <table>
597
                        <table>
596
                            <thead>
598
                            <thead>
597
                            <tr>
599
                            <tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-10 / +10 lines)
Lines 76-82 Link Here
76
                                [% IF ( label_batch_msg == "error" ) %]
76
                                [% IF ( label_batch_msg == "error" ) %]
77
                                    <span>Error attempting to create label batch. Please ask your system administrator to check the log for more details.</span>
77
                                    <span>Error attempting to create label batch. Please ask your system administrator to check the log for more details.</span>
78
                                [% ELSE %]
78
                                [% ELSE %]
79
                                    <span>Label</span> <a href="/cgi-bin/koha/labels/label-edit-batch.pl?op=edit&element_id=[% label_batch_msg | uri %]" >batch #[% label_batch_msg | html %]</a> created.
79
                                    <span>Label</span> <a id="lientype"  href="/cgi-bin/koha/labels/label-edit-batch.pl?op=edit&element_id=[% label_batch_msg | uri %]" >batch #[% label_batch_msg | html %]</a> created.
80
                                [% END %]
80
                                [% END %]
81
                            </strong></p>
81
                            </strong></p>
82
                        </div>
82
                        </div>
Lines 94-100 Link Here
94
                        [% UNLESS ( batch_info ) %]
94
                        [% UNLESS ( batch_info ) %]
95
                            <div class="dialog message">
95
                            <div class="dialog message">
96
                                <p>No records have been staged.</p>
96
                                <p>No records have been staged.</p>
97
                                <p><a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC records for import</a>.</p>
97
                                <p><a  id="lientype" href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC records for import</a>.</p>
98
                            </div>
98
                            </div>
99
                        [% END %]
99
                        [% END %]
100
                    [% END %]
100
                    [% END %]
Lines 170-176 Link Here
170
                                                [% END %]
170
                                                [% END %]
171
                                            [% END %]
171
                                            [% END %]
172
                                        </select>
172
                                        </select>
173
                                        <span class="change-status">Changed. <a href="#" class="reset" id="reset_new_matcher_id">Reset</a></span>
173
                                        <span class="change-status">Changed. <a  id="lientype" href="#" class="reset" id="reset_new_matcher_id">Reset</a></span>
174
                                    [% ELSE %]
174
                                    [% ELSE %]
175
                                        <span class="label">Matching rule applied</span>
175
                                        <span class="label">Matching rule applied</span>
176
                                        [% IF ( current_matcher_id ) %]
176
                                        [% IF ( current_matcher_id ) %]
Lines 183-189 Link Here
183
                                <li>
183
                                <li>
184
                                    [% IF ( can_commit ) %]
184
                                    [% IF ( can_commit ) %]
185
                                        <label for="overlay_action">Action if matching record found:</label>
185
                                        <label for="overlay_action">Action if matching record found:</label>
186
                                        [% INCLUDE 'tools-overlay-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_overlay_action">Reset</a></span>
186
                                        [% INCLUDE 'tools-overlay-action.inc' %] <span class="change-status">Changed. <a  id="lientype" href="#" class="reset" id="reset_overlay_action">Reset</a></span>
187
                                    [% ELSE %]
187
                                    [% ELSE %]
188
                                        <span class="label">Action if matching record found:</span>
188
                                        <span class="label">Action if matching record found:</span>
189
                                        [% IF ( overlay_action == 'replace' ) %]
189
                                        [% IF ( overlay_action == 'replace' ) %]
Lines 200-206 Link Here
200
                                <li>
200
                                <li>
201
                                    [% IF ( can_commit ) %]
201
                                    [% IF ( can_commit ) %]
202
                                        <label for="nomatch_action">Action if no match found:</label>
202
                                        <label for="nomatch_action">Action if no match found:</label>
203
                                        [% INCLUDE 'tools-nomatch-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_nomatch_action">Reset</a></span>
203
                                        [% INCLUDE 'tools-nomatch-action.inc' %] <span class="change-status">Changed. <a  id="lientype" href="#" class="reset" id="reset_nomatch_action">Reset</a></span>
204
                                    [% ELSE %]
204
                                    [% ELSE %]
205
                                        <span class="label">Action if no match found:</span>
205
                                        <span class="label">Action if no match found:</span>
206
                                        [% IF ( nomatch_action == 'create_new' ) %]
206
                                        [% IF ( nomatch_action == 'create_new' ) %]
Lines 216-222 Link Here
216
                                    <li>
216
                                    <li>
217
                                        [% IF ( can_commit ) %]
217
                                        [% IF ( can_commit ) %]
218
                                            <label for="item_action">Item processing:</label>
218
                                            <label for="item_action">Item processing:</label>
219
                                            [% INCLUDE 'tools-item-action.inc' %] <span class="change-status">Changed. <a href="#" class="reset" id="reset_item_action">Reset</a></span>
219
                                            [% INCLUDE 'tools-item-action.inc' %] <span class="change-status">Changed. <a  id="lientype" href="#" class="reset" id="reset_item_action">Reset</a></span>
220
                                        [% ELSE %]
220
                                        [% ELSE %]
221
                                            <span class="label">Item processing:</span>
221
                                            <span class="label">Item processing:</span>
222
                                            [% IF ( item_action == 'always_add' ) %]
222
                                            [% IF ( item_action == 'always_add' ) %]
Lines 396-402 Link Here
396
                                    <td>[% batch_lis.num_records | html %]</td>
396
                                    <td>[% batch_lis.num_records | html %]</td>
397
                                    <td>[% batch_lis.num_items | html %]
397
                                    <td>[% batch_lis.num_items | html %]
398
                                        [% IF ( batch_lis.num_items && batch_lis.import_status == 'imported' ) %]
398
                                        [% IF ( batch_lis.num_items && batch_lis.import_status == 'imported' ) %]
399
                                            (<a href="[% batch_lis.script_name | url %]?import_batch_id=[% batch_lis.import_batch_id | uri %]&amp;op=create_labels">Create label batch</a>)
399
                                            (<a  id="lientype" href="[% batch_lis.script_name | url %]?import_batch_id=[% batch_lis.import_batch_id | uri %]&amp;op=create_labels">Create label batch</a>)
400
                                        [% END %]
400
                                        [% END %]
401
                                    </td>
401
                                    </td>
402
                                    <td class="actions">
402
                                    <td class="actions">
Lines 410-416 Link Here
410
                                            <form method="post" action="/cgi-bin/koha/tools/manage-marc-import.pl" name="delete_batch_[% batch_lis.import_batch_id | html %]" id="delete_batch_[% batch_lis.import_batch_id | html %]" class="batch_form batch_delete">
410
                                            <form method="post" action="/cgi-bin/koha/tools/manage-marc-import.pl" name="delete_batch_[% batch_lis.import_batch_id | html %]" id="delete_batch_[% batch_lis.import_batch_id | html %]" class="batch_form batch_delete">
411
                                                <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" />
411
                                                <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" />
412
                                                <input type="hidden" name="op" value="delete-batch" />
412
                                                <input type="hidden" name="op" value="delete-batch" />
413
                                                <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button>
413
                                                <button  id="lientype" type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button>
414
                                            </form>
414
                                            </form>
415
                                        [% END %]
415
                                        [% END %]
416
                                    </td>
416
                                    </td>
Lines 449-455 Link Here
449
                                        <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
449
                                        <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
450
                                    </div>
450
                                    </div>
451
                                    <div class="modal-footer">
451
                                    <div class="modal-footer">
452
                                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
452
                                        <button class="btn btn-default cancel" data-dismiss="modal" aria-hidden="true">Close</button>
453
                                    </div>
453
                                    </div>
454
                                </div>
454
                                </div>
455
                            </div>
455
                            </div>
Lines 611-617 Link Here
611
                                '<a class="btn btn-default btn-xs" target="_blank" href="' + record_details_url
611
                                '<a class="btn btn-default btn-xs" target="_blank" href="' + record_details_url
612
                                + aData['matched'] + '"><i class="fa fa-eye"></i> ' + _("View") + '</a> '
612
                                + aData['matched'] + '"><i class="fa fa-eye"></i> ' + _("View") + '</a> '
613
                                [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
613
                                [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
614
                                    + '<a class="btn btn-default btn-xs" target="_blank" href="' + record_edit_url
614
                                    + '<a  id="lientype" class="btn btn-default btn-xs" target="_blank" href="' + record_edit_url
615
                                    + aData['matched'] + '"><i class="fa fa-pencil"></i> ' + _("Edit") + '</a>'
615
                                    + aData['matched'] + '"><i class="fa fa-pencil"></i> ' + _("Edit") + '</a>'
616
                                [% END %]
616
                                [% END %]
617
                            );
617
                            );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-14 / +16 lines)
Lines 43-52 Link Here
43
            <main>
43
            <main>
44
44
45
                [% IF ( op == 'show_form' ) %]
45
                [% IF ( op == 'show_form' ) %]
46
                <h1>Batch patron modification</h1>
46
                <h2>Batch patron modification</h2>
47
                <form id="patron_batchmod_form" method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/modborrowers.pl">
47
                <form id="patron_batchmod_form" method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/modborrowers.pl">
48
                    <input type="hidden" name="op" value="show" />
48
                    <input type="hidden" name="op" value="show" />
49
                    <div id="batch_patron_options" class="toptabs">
49
                    <div id="batch_patron_options" class="toptabs">
50
                        <fieldset>
50
                        <ul class="nav nav-tabs" role="tablist">
51
                        <ul class="nav nav-tabs" role="tablist">
51
                            <li role="presentation" class="active">
52
                            <li role="presentation" class="active">
52
                                <a href="#usecardnumber" aria-controls="usecardnumber" role="tab" data-toggle="tab">By card number</a>
53
                                <a href="#usecardnumber" aria-controls="usecardnumber" role="tab" data-toggle="tab">By card number</a>
Lines 62-69 Link Here
62
                        </ul>
63
                        </ul>
63
                        <div class="tab-content">
64
                        <div class="tab-content">
64
                            <div id="usecardnumber" role="tabpanel" class="tab-pane active">
65
                            <div id="usecardnumber" role="tabpanel" class="tab-pane active">
65
                                <fieldset class="rows">
66
                                <fieldset>
66
                                    <legend>Use a file of card numbers</legend>
67
                                    <h3>Use a file of card numbers</h3>
67
                                    <ol>
68
                                    <ol>
68
                                        <li>
69
                                        <li>
69
                                            <label for="cardnumberuploadfile">File: </label> <input type="file"
70
                                            <label for="cardnumberuploadfile">File: </label> <input type="file"
Lines 72-79 Link Here
72
                                        </li>
73
                                        </li>
73
                                    </ol>
74
                                    </ol>
74
                                </fieldset>
75
                                </fieldset>
75
                                <fieldset class="rows">
76
                                <fieldset>
76
                                    <legend>Or list card numbers one by one</legend>
77
                                    <h3>Or list card numbers one by one</h3>
77
                                    <ol>
78
                                    <ol>
78
                                        <li>
79
                                        <li>
79
                                            <label for="cardnumberlist">Card number list (one card number per line):
80
                                            <label for="cardnumberlist">Card number list (one card number per line):
Lines 83-95 Link Here
83
                                        </li>
84
                                        </li>
84
                                    </ol>
85
                                    </ol>
85
86
86
                                    <input type="submit" value="Continue" class="button principal" />
87
                                    <input type="submit" value="Continue" class="button" id="principal" />
87
                                    <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
88
                                    <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
88
                                </fieldset>
89
                                </fieldset>
89
                            </div>
90
                            </div>
90
                            <div id="useborrowernumber" role="tabpanel" class="tab-pane">
91
                            <div id="useborrowernumber" role="tabpanel" class="tab-pane">
91
                                <fieldset class="rows">
92
                                <fieldset>
92
                                    <legend>Use a file of borrowernumbers</legend>
93
                                    <h3>Use a file of borrowernumbers</h3>
93
                                    <ol>
94
                                    <ol>
94
                                        <li>
95
                                        <li>
95
                                            <label for="borrowernumberuploadfile">File: </label> <input type="file"
96
                                            <label for="borrowernumberuploadfile">File: </label> <input type="file"
Lines 98-105 Link Here
98
                                        </li>
99
                                        </li>
99
                                    </ol>
100
                                    </ol>
100
                                </fieldset>
101
                                </fieldset>
101
                                <fieldset class="rows">
102
                                <fieldset>
102
                                    <legend>List borrowernumbers one by one</legend>
103
                                    <h3>List borrowernumbers one by one</h3>
103
                                    <ol>
104
                                    <ol>
104
                                        <li>
105
                                        <li>
105
                                            <label for="borrowernumberlist">Borrowernumber list (one number per line):
106
                                            <label for="borrowernumberlist">Borrowernumber list (one number per line):
Lines 110-123 Link Here
110
                                    </ol>
111
                                    </ol>
111
                                </fieldset>
112
                                </fieldset>
112
                                <fieldset class="action">
113
                                <fieldset class="action">
113
                                    <input type="submit" value="Continue" class="button" />
114
                                    <input type="submit" value="Continue" class="button principal" />
114
                                    <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
115
                                    <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
115
                                </fieldset>
116
                                </fieldset>
116
                            </div>
117
                            </div>
117
                            [% IF patron_lists %]
118
                            [% IF patron_lists %]
118
                                <div id="uselist" role="tabpanel" class="tab-pane">
119
                                <div id="uselist" role="tabpanel" class="tab-pane">
119
                                    <fieldset class="rows">
120
                                    <fieldset>
120
                                        <legend>Use a patron list</legend>
121
                                        <h3>Use a patron list</h3>
121
                                        <ol>
122
                                        <ol>
122
                                            <li>
123
                                            <li>
123
                                                <label for="patron_list_id">Patron list: </label>
124
                                                <label for="patron_list_id">Patron list: </label>
Lines 131-142 Link Here
131
                                        </ol>
132
                                        </ol>
132
                                    </fieldset>
133
                                    </fieldset>
133
                                    <fieldset class="action">
134
                                    <fieldset class="action">
134
                                        <input type="submit" value="Continue" class="button" />
135
                                        <input type="submit" value="Continue" class="button principal" />
135
                                        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
136
                                        <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
136
                                    </fieldset>
137
                                    </fieldset>
137
                                </div>
138
                                </div>
138
                            [% END %]
139
                            [% END %]
139
                        </div> <!-- /.tab-content -->
140
                        </div> <!-- /.tab-content -->
141
                        </fieldset>
140
                    </div><!-- /#batch_patron_options -->
142
                    </div><!-- /#batch_patron_options -->
141
                </form>
143
                </form>
142
                [% END %]
144
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt (-7 / +6 lines)
Lines 56-71 Link Here
56
            [% IF ( ERRORS ) %]
56
            [% IF ( ERRORS ) %]
57
				[% IF ( TCOUNTS ) %]
57
				[% IF ( TCOUNTS ) %]
58
					<div class="dialog alert">
58
					<div class="dialog alert">
59
                    <h1>Patron image(s) uploaded with some errors</h1>
59
                    <h2>Patron image(s) uploaded with some errors</h2>
60
                    </div>
60
                    </div>
61
				[% ELSE %]
61
				[% ELSE %]
62
					<div class="dialog alert">
62
					<div class="dialog alert">
63
                    <h1>Patron image failed to upload</h1>
63
                    <h2>Patron image failed to upload</h2>
64
                    </div>
64
                    </div>
65
				[% END %]
65
				[% END %]
66
            [% ELSE %]
66
            [% ELSE %]
67
                <div class="dialog message">
67
                <div class="dialog message">
68
                <h1>Patron image(s) successfully uploaded</h1>
68
                <h2>Patron image(s) successfully uploaded</h2>
69
                </div>
69
                </div>
70
            [% END %]
70
            [% END %]
71
	        <ul class="data">
71
	        <ul class="data">
Lines 117-123 Link Here
117
                    <li><a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">Return to tools</a></li>
117
                    <li><a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">Return to tools</a></li>
118
                [% END %]</ul>
118
                [% END %]</ul>
119
[% ELSE %]
119
[% ELSE %]
120
                <h1>Upload patron images</h1>
120
                <h2>Upload patron images</h2>
121
                [% IF ( ERRORS ) %]
121
                [% IF ( ERRORS ) %]
122
                <div class="dialog alert">
122
                <div class="dialog alert">
123
                    [% FOREACH ERROR IN ERRORS %]
123
                    [% FOREACH ERROR IN ERRORS %]
Lines 157-167 Link Here
157
                                <span class="required">Required</span>
157
                                <span class="required">Required</span>
158
                            </li>
158
                            </li>
159
                        </ol>
159
                        </ol>
160
	            </fieldset>
160
161
                    <fieldset class="action">
162
                        <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
161
                        <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
163
                        <input type="hidden" name="op" value="Upload" />
162
                        <input type="hidden" name="op" value="Upload" />
164
                        <input type="submit" value="Upload" class="submit" />
163
                        <input type="submit" value="Upload" class="principal" />
165
						<a href="/cgi-bin/koha/tools/tools-home.pl" class="cancel">Cancel</a>
164
						<a href="/cgi-bin/koha/tools/tools-home.pl" class="cancel">Cancel</a>
166
                    </fieldset>
165
                    </fieldset>
167
                </form>
166
                </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt (-2 / +1 lines)
Lines 86-93 Link Here
86
                    <span class="required">Required</span>
86
                    <span class="required">Required</span>
87
                </li>
87
                </li>
88
            </ol>
88
            </ol>
89
        </fieldset>
89
90
        <fieldset class="action">
91
            <input type="hidden" name="id" value="[% quote.id | html %]" />
90
            <input type="hidden" name="id" value="[% quote.id | html %]" />
92
            <input class="principal" type="submit" value="Submit" />
91
            <input class="principal" type="submit" value="Submit" />
93
            <a class="cancel" href="/cgi-bin/koha/tools/quotes.pl">Cancel</a>
92
            <a class="cancel" href="/cgi-bin/koha/tools/quotes.pl">Cancel</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt (-2 lines)
Lines 65-71 Link Here
65
65
66
<h2>Stage MARC records for import</h2>
66
<h2>Stage MARC records for import</h2>
67
[% IF ( uploadmarc ) %]
67
[% IF ( uploadmarc ) %]
68
<h1>MARC staging results</h1>
69
<ul>
68
<ul>
70
    [% SWITCH (record_type) %]
69
    [% SWITCH (record_type) %]
71
    [% CASE 'biblio' %]
70
    [% CASE 'biblio' %]
Lines 99-105 Link Here
99
</p>
98
</p>
100
[% END %]
99
[% END %]
101
[% ELSE %]
100
[% ELSE %]
102
<h1>Stage MARC records for import</h1>
103
<ul>
101
<ul>
104
    <li>Select a MARC file to stage in the import reservoir.  It will be parsed, and each valid record staged for later import into the catalog.</li>
102
    <li>Select a MARC file to stage in the import reservoir.  It will be parsed, and each valid record staged for later import into the catalog.</li>
105
    <li>You can enter a name for this import. It may be useful, when creating a record, to remember where the suggested MARC data comes from!</li>
103
    <li>You can enter a name for this import. It may be useful, when creating a record, to remember where the suggested MARC data comes from!</li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt (-4 / +4 lines)
Lines 141-147 Link Here
141
                    <h2>Upload local cover image</h2>
141
                    <h2>Upload local cover image</h2>
142
                [% ELSIF biblio %]
142
                [% ELSIF biblio %]
143
                    <h2>
143
                    <h2>
144
                        Upload local cover image for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]"><em>[% INCLUDE 'biblio-title.inc' %]</em></a>
144
                        Upload local cover image for <a id="lientype" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]"><em>[% INCLUDE 'biblio-title.inc' %]</em></a>
145
                        [% IF ( itemnumber ) %],  Item number: [% itemnumber | html %][% END %]
145
                        [% IF ( itemnumber ) %],  Item number: [% itemnumber | html %][% END %]
146
                    </h2>
146
                    </h2>
147
                [% ELSIF itemnumber %]
147
                [% ELSIF itemnumber %]
Lines 171-177 Link Here
171
                        <h3>[% total | html %] images found</h3>
171
                        <h3>[% total | html %] images found</h3>
172
                        <ul>
172
                        <ul>
173
                            [% FOREACH result IN results %]
173
                            [% FOREACH result IN results %]
174
                                <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% result.biblionumber | uri %]">[% result.title | html %]</a></li>
174
                                <li><a  id="lientype" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% result.biblionumber | uri %]">[% result.title | html %]</a></li>
175
                            [% END %]
175
                            [% END %]
176
                        </ul>
176
                        </ul>
177
                        <hr />
177
                        <hr />
Lines 201-207 Link Here
201
                                </div>
201
                                </div>
202
202
203
                                <div id="filedrag">
203
                                <div id="filedrag">
204
                                    <a id="click_to_select" href="#">Drop files here or click to select a file</a>
204
                                    <a id="click_to_select" class="lientype" href="#">Drop files here or click to select a file</a>
205
                                    <div id="messages"></div>
205
                                    <div id="messages"></div>
206
                                </div>
206
                                </div>
207
207
Lines 292-298 Link Here
292
                                                    <img id="thumbnail_[% img.imagenumber | html %]" src="/cgi-bin/koha/catalogue/image.pl?imagenumber=[% img.imagenumber | html %]&amp;thumbnail=1" alt="Thumbnail" />
292
                                                    <img id="thumbnail_[% img.imagenumber | html %]" src="/cgi-bin/koha/catalogue/image.pl?imagenumber=[% img.imagenumber | html %]&amp;thumbnail=1" alt="Thumbnail" />
293
                                                [% END %]
293
                                                [% END %]
294
                                            </a>
294
                                            </a>
295
                                            <a href="#" class="remove" data-coverimg="[% img.imagenumber | html %]"><i class="fa fa-trash"></i> Delete image</a>
295
                                            <a href="#"  id="lientype" class="remove" data-coverimg="[% img.imagenumber | html %]"><i class="fa fa-trash"></i> Delete image</a>
296
                                        </li>
296
                                        </li>
297
                                    [% END # /IF img %]
297
                                    [% END # /IF img %]
298
                                [% END # /FOREACH img %]
298
                                [% END # /FOREACH img %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt (-6 / +10 lines)
Lines 87-93 Link Here
87
                <div class="hint">
87
                <div class="hint">
88
                    Note: No upload categories are defined.
88
                    Note: No upload categories are defined.
89
                    [% IF ( CAN_user_parameters_manage_auth_values ) -%]
89
                    [% IF ( CAN_user_parameters_manage_auth_values ) -%]
90
<<<<<<< HEAD
90
                        <span>Add values to the <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=UPLOAD">UPLOAD authorized value category</a> otherwise all uploads will be marked as temporary.</span>
91
                        <span>Add values to the <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=UPLOAD">UPLOAD authorized value category</a> otherwise all uploads will be marked as temporary.</span>
92
=======
93
                        Add values to the <a  id="lientype" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=UPLOAD">UPLOAD authorized value category</a> otherwise all uploads will be marked as temporary.
94
>>>>>>> Bug 30952: update patron and suggestion
91
                    [% ELSE -%]
95
                    [% ELSE -%]
92
                        <span>An administrator must add values to the UPLOAD authorized value category otherwise all uploads will be marked as temporary.</span>
96
                        <span>An administrator must add values to the UPLOAD authorized value category otherwise all uploads will be marked as temporary.</span>
93
                    [% END %]
97
                    [% END %]
Lines 158-165 Link Here
158
        <h3>Search uploads by name or hashvalue</h3>
162
        <h3>Search uploads by name or hashvalue</h3>
159
        <ol>
163
        <ol>
160
        <li>
164
        <li>
161
            <label for="term">Search term: </label>
165
            <p for="term">Search term:
162
            <input type="text" id="term" name="term" value=""/>
166
            <input type="text" id="term" name="term" value=""/></p>
163
        </li>
167
        </li>
164
        </ol>
168
        </ol>
165
        <fieldset class="action">
169
        <fieldset class="action">
Lines 180-186 Link Here
180
184
181
[% BLOCK closer %]
185
[% BLOCK closer %]
182
    [% IF plugin %]
186
    [% IF plugin %]
183
        <div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
187
        <div id="closewindow"><a class="btn btn-default btn-default close cancel" href="#">Close</a></div>
184
    [% END %]
188
    [% END %]
185
[% END %]
189
[% END %]
186
190
Lines 197-207 Link Here
197
[% BLOCK newsearch %]
201
[% BLOCK newsearch %]
198
    <form id="newsearch">
202
    <form id="newsearch">
199
        <fieldset class="action">
203
        <fieldset class="action">
200
            <button id="new_search">New search</button>
204
            <button id="new_search" class="cancel">New search</button>
201
        </fieldset>
205
        </fieldset>
202
    </form>
206
    </form>
203
    [% IF plugin %]
207
    [% IF plugin %]
204
        <div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
208
        <div id="closewindow"><a class="btn btn-default btn-default close cancel" href="#">Close</a></div>
205
    [% END %]
209
    [% END %]
206
[% END %]
210
[% END %]
207
211
Lines 301-307 Link Here
301
    [% PROCESS closer %]
305
    [% PROCESS closer %]
302
[% ELSIF mode == 'report' %]
306
[% ELSIF mode == 'report' %]
303
    <div id="toolbar" class="btn-toolbar">
307
    <div id="toolbar" class="btn-toolbar">
304
        <a href="/cgi-bin/koha/tools/upload.pl" class="btn btn-default">Upload file</a>
308
        <a href="/cgi-bin/koha/tools/upload.pl" class="btn btn-default principal">Upload file</a>
305
    </div>
309
    </div>
306
    [% IF uploads %]
310
    [% IF uploads %]
307
        <h3>Your request gave the following results:</h3>
311
        <h3>Your request gave the following results:</h3>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt (-2 / +1 lines)
Lines 109-115 Link Here
109
<!-- SAVE -->
109
<!-- SAVE -->
110
            <fieldset class="action">
110
            <fieldset class="action">
111
            <input type="hidden" name="sortfield" value="title" />
111
            <input type="hidden" name="sortfield" value="title" />
112
            <input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a>
112
            <input type="submit" value="Save" class="principal" /> <a class="close cancel" href="#">Cancel</a>
113
            </fieldset>
113
            </fieldset>
114
        </form>
114
        </form>
115
<!-- /SAVE -->
115
<!-- /SAVE -->
116
- 

Return to bug 30952