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

(-)a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.treeview.pack.js (-16 lines)
Lines 1-16 Link Here
1
/*
2
 * Treeview 1.4 - jQuery plugin to hide and show branches of a tree
3
 * 
4
 * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
5
 * http://docs.jquery.com/Plugins/Treeview
6
 *
7
 * Copyright (c) 2007 Jörn Zaefferer
8
 *
9
 * Dual licensed under the MIT and GPL licenses:
10
 *   http://www.opensource.org/licenses/mit-license.php
11
 *   http://www.gnu.org/licenses/gpl.html
12
 *
13
 * Revision: $Id: jquery.treeview.js 4684 2008-02-07 19:08:06Z joern.zaefferer $
14
 *
15
 */
16
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(4($){$.1l($.F,{E:4(b,c){l a=3.n(\'.\'+b);3.n(\'.\'+c).o(c).m(b);a.o(b).m(c);8 3},s:4(a,b){8 3.n(\'.\'+a).o(a).m(b).P()},1n:4(a){a=a||"1j";8 3.1j(4(){$(3).m(a)},4(){$(3).o(a)})},1h:4(b,a){b?3.1g({1e:"p"},b,a):3.x(4(){T(3)[T(3).1a(":U")?"H":"D"]();7(a)a.A(3,O)})},12:4(b,a){7(b){3.1g({1e:"D"},b,a)}1L{3.D();7(a)3.x(a)}},11:4(a){7(!a.1k){3.n(":r-1H:G(9)").m(k.r);3.n((a.1F?"":"."+k.X)+":G(."+k.W+")").6(">9").D()}8 3.n(":y(>9)")},S:4(b,c){3.n(":y(>9):G(:y(>a))").6(">1z").C(4(a){c.A($(3).19())}).w($("a",3)).1n();7(!b.1k){3.n(":y(>9:U)").m(k.q).s(k.r,k.t);3.G(":y(>9:U)").m(k.u).s(k.r,k.v);3.1r("<J 14=\\""+k.5+"\\"/>").6("J."+k.5).x(4(){l a="";$.x($(3).B().1o("14").13(" "),4(){a+=3+"-5 "});$(3).m(a)})}3.6("J."+k.5).C(c)},z:4(g){g=$.1l({N:"z"},g);7(g.w){8 3.1K("w",[g.w])}7(g.p){l d=g.p;g.p=4(){8 d.A($(3).B()[0],O)}}4 1m(b,c){4 L(a){8 4(){K.A($("J."+k.5,b).n(4(){8 a?$(3).B("."+a).1i:1I}));8 1G}}$("a:10(0)",c).C(L(k.u));$("a:10(1)",c).C(L(k.q));$("a:10(2)",c).C(L())}4 K(){$(3).B().6(">.5").E(k.Z,k.Y).E(k.I,k.M).P().E(k.u,k.q).E(k.v,k.t).6(">9").1h(g.1f,g.p);7(g.1E){$(3).B().1D().6(">.5").s(k.Z,k.Y).s(k.I,k.M).P().s(k.u,k.q).s(k.v,k.t).6(">9").12(g.1f,g.p)}}4 1d(){4 1C(a){8 a?1:0}l b=[];j.x(4(i,e){b[i]=$(e).1a(":y(>9:1B)")?1:0});$.V(g.N,b.1A(""))}4 1c(){l b=$.V(g.N);7(b){l a=b.13("");j.x(4(i,e){$(e).6(">9")[1y(a[i])?"H":"D"]()})}}3.m("z");l j=3.6("Q").11(g);1x(g.1w){18"V":l h=g.p;g.p=4(){1d();7(h){h.A(3,O)}};1c();17;18"1b":l f=3.6("a").n(4(){8 3.16.15()==1b.16.15()});7(f.1i){f.m("1v").1u("9, Q").w(f.19()).H()}17}j.S(g,K);7(g.R){1m(3,g.R);$(g.R).H()}8 3.1t("w",4(a,b){$(b).1s().o(k.r).o(k.v).o(k.t).6(">.5").o(k.I).o(k.M);$(b).6("Q").1q().11(g).S(g,K)})}});l k=$.F.z.1J={W:"W",X:"X",q:"q",Y:"q-5",M:"t-5",u:"u",Z:"u-5",I:"v-5",v:"v",t:"t",r:"r",5:"5"};$.F.1p=$.F.z})(T);',62,110,'|||this|function|hitarea|find|if|return|ul||||||||||||var|addClass|filter|removeClass|toggle|expandable|last|replaceClass|lastExpandable|collapsable|lastCollapsable|add|each|has|treeview|apply|parent|click|hide|swapClass|fn|not|show|lastCollapsableHitarea|div|toggler|handler|lastExpandableHitarea|cookieId|arguments|end|li|control|applyClasses|jQuery|hidden|cookie|open|closed|expandableHitarea|collapsableHitarea|eq|prepareBranches|heightHide|split|class|toLowerCase|href|break|case|next|is|location|deserialize|serialize|height|animated|animate|heightToggle|length|hover|prerendered|extend|treeController|hoverClass|attr|Treeview|andSelf|prepend|prev|bind|parents|selected|persist|switch|parseInt|span|join|visible|binary|siblings|unique|collapsed|false|child|true|classes|trigger|else'.split('|'),0,{}))
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-17 / +89 lines)
Lines 537-555 label, Link Here
537
        font-weight: bold;
537
        font-weight: bold;
538
    }
538
    }
539
539
540
    // Permissions Labels
541
    &.permissioncode {
542
        font-style: italic;
543
544
        &::before {
545
            content: "(";
546
        }
547
548
        &::after {
549
            content: ")";
550
        }
551
    }
552
553
    &.required {
540
    &.required {
554
        color: #C00;
541
        color: #C00;
555
    }
542
    }
Lines 3743-3752 span { Link Here
3743
        font-weight: bold;
3730
        font-weight: bold;
3744
    }
3731
    }
3745
3732
3746
    &.permissiondesc {
3747
        font-weight: normal;
3748
    }
3749
3750
    &.required {
3733
    &.required {
3751
        color: #C00;
3734
        color: #C00;
3752
        font-style: italic;
3735
        font-style: italic;
Lines 4379-4384 span { Link Here
4379
    }
4362
    }
4380
}
4363
}
4381
4364
4365
/* Permissions */
4366
4367
#permissionstree {
4368
    display: inline-block;
4369
4370
    label {
4371
        cursor: pointer;
4372
4373
        &:hover {
4374
            color: #004d99;
4375
        }
4376
    }
4377
}
4378
4379
.main_permission {
4380
    font-size: 110%;
4381
    font-weight: bold;
4382
}
4383
4384
.permissioncode {
4385
    color: #666;
4386
    font-style: italic;
4387
}
4388
4389
.permission-highlight {
4390
    background-color: #FFC;
4391
}
4392
4393
.togglechildren_on,
4394
.togglechildren_off {
4395
    float: right;
4396
}
4397
4398
.togglechildren_off,
4399
.children {
4400
    display: none;
4401
}
4402
4403
.open {
4404
    .togglechildren_off {
4405
        display: inline;
4406
    }
4407
4408
    .togglechildren_on {
4409
        display: none;
4410
    }
4411
}
4412
4413
.parent {
4414
    border: 1px solid #DDD;
4415
    border-bottom-width: 0;
4416
    padding: 5px;
4417
4418
    &:last-child {
4419
        border-bottom-width: 1px;
4420
    }
4421
4422
    &:nth-child(odd) {
4423
        background-color: #F8F8F8;
4424
    }
4425
}
4426
4427
4428
.superlibrarian-hint {
4429
    color: #000;
4430
    padding: .2em 0;
4431
    text-indent: 2em;
4432
}
4433
4434
.child-flags {
4435
    background-color: #FFF;
4436
    border: 1px solid #DDD;
4437
    border-bottom-width: 0;
4438
    margin: 0 5px 0 20px;
4439
    padding: 5px;
4440
4441
    &:first-child {
4442
        margin-top: 10px;
4443
    }
4444
4445
    &:last-child {
4446
        border-bottom-width: 1px;
4447
    }
4448
4449
    &:nth-child(odd) {
4450
        background-color: #EEE;
4451
    }
4452
}
4453
4382
@media (min-width: 200px) {
4454
@media (min-width: 200px) {
4383
    .navbar-nav > li {
4455
    .navbar-nav > li {
4384
        float: left;
4456
        float: left;
(-)a/koha-tmpl/intranet-tmpl/prog/css/treeview/jquery.treeview.css (-69 lines)
Lines 1-69 Link Here
1
.treeview, .treeview ul { 
2
	padding: 0;
3
	margin: 0;
4
	list-style: none;
5
}
6
7
.treeview ul {
8
	background-color: white;
9
	margin-top: 4px;
10
}
11
12
.treeview .hitarea {
13
	background: url(images/treeview-default.gif) -64px -25px no-repeat;
14
	height: 16px;
15
	width: 16px;
16
	margin-left: -16px;
17
	float: left;
18
	cursor: pointer;
19
}
20
/* fix for IE6 */
21
* html .hitarea {
22
	display: inline;
23
	float:none;
24
}
25
26
.treeview li { 
27
	margin: 0;
28
	padding: 3px 0pt 3px 16px;
29
    list-style: none;
30
}
31
32
.treeview a.selected {
33
	background-color: #eee;
34
}
35
36
#treecontrol { margin: 1em 0; display: none; }
37
38
.treeview .hover { color: red; cursor: pointer; }
39
40
.treeview li { background: url(images/treeview-default-line.gif) 0 0 no-repeat; }
41
.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; }
42
43
.treeview .expandable-hitarea { background-position: -80px -3px; }
44
45
.treeview li.last { background-position: 0 -1766px }
46
.treeview li.lastCollapsable, .treeview li.lastExpandable { background-image: url(images/treeview-default.gif); }  
47
.treeview li.lastCollapsable { background-position: 0 -111px }
48
.treeview li.lastExpandable { background-position: -32px -67px }
49
50
.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; }
51
52
.treeview-red li { background-image: url(images/treeview-red-line.gif); }
53
.treeview-red .hitarea, .treeview-red li.lastCollapsable, .treeview-red li.lastExpandable { background-image: url(images/treeview-red.gif); } 
54
55
.treeview-black li { background-image: url(images/treeview-black-line.gif); }
56
.treeview-black .hitarea, .treeview-black li.lastCollapsable, .treeview-black li.lastExpandable { background-image: url(images/treeview-black.gif); }  
57
58
.treeview-gray li { background-image: url(images/treeview-gray-line.gif); }
59
.treeview-gray .hitarea, .treeview-gray li.lastCollapsable, .treeview-gray li.lastExpandable { background-image: url(images/treeview-gray.gif); } 
60
61
.treeview-famfamfam li { background-image: url(images/treeview-famfamfam-line.gif); }
62
.treeview-famfamfam .hitarea, .treeview-famfamfam li.lastCollapsable, .treeview-famfamfam li.lastExpandable { background-image: url(images/treeview-famfamfam.gif); } 
63
64
65
.filetree li { padding: 3px 0 2px 16px; }
66
.filetree span.folder, .filetree span.file { padding: 1px 0 1px 16px; display: block; }
67
.filetree span.folder { background: url(images/folder.gif) 0 0 no-repeat; }
68
.filetree li.expandable span.folder { background: url(images/folder-closed.gif) 0 0 no-repeat; }
69
.filetree span.file { background: url(images/file.gif) 0 0 no-repeat; }
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-139 / +651 lines)
Lines 1-149 Link Here
1
[%- BLOCK main_permissions -%]
1
[%- BLOCK main_permissions -%]
2
    [% SWITCH name %]
2
    [% SWITCH name %]
3
    [%- CASE 'superlibrarian' -%]<span>Access to all librarian functions</span>
3
    [%- CASE 'superlibrarian' -%]
4
    [%- CASE 'circulate' -%]<span>Check out and check in items</span>
4
        <span class="main_permission superlibrarian_permission">Access to all librarian functions</span>
5
    [%- CASE 'catalogue' -%]<span><b>Required for staff login.</b> Staff access, allows viewing of catalogue in staff client.</span>
5
        <span class="permissioncode">([% name | html %])</span>
6
    [%- CASE 'parameters' -%]<span>Manage Koha system settings (Administration panel)</span>
6
    [%- CASE 'circulate' -%]
7
    [%- CASE 'borrowers' -%]<span>Add, modify and view patron information</span>
7
        <span class="main_permission circulate_permission">Check out and check in items</span>
8
    [%- CASE 'permissions' -%]<span>Set user permissions</span>
8
        <span class="permissioncode">([% name | html %])</span>
9
    [%- CASE 'reserveforothers' -%]<span>Place and modify holds for patrons</span>
9
    [%- CASE 'catalogue' -%]
10
    [%- CASE 'editcatalogue' -%]<span>Edit catalog (Modify bibliographic/holdings data)</span>
10
        <span class="main_permission catalogue_permission">Staff access, allows viewing of catalogue in staff client.</span>
11
    [%- CASE 'updatecharges' -%]<span>Manage patrons fines and fees</span>
11
        <span class="permissioncode">([% name | html %])</span> <span class="required">Required for staff login.</span>
12
    [%- CASE 'acquisition' -%]<span>Acquisition and/or suggestion management</span>
12
    [%- CASE 'parameters' -%]
13
    [%- CASE 'tools' -%]<span>Use all tools (expand for granular tools permissions)</span>
13
        <span class="main_permission parameters_permission">Manage Koha system settings (Administration panel)</span>
14
    [%- CASE 'editauthorities' -%]<span>Edit authorities</span>
14
        <span class="permissioncode">([% name | html %])</span>
15
    [%- CASE 'serials' -%]<span>Manage serial subscriptions</span>
15
    [%- CASE 'borrowers' -%]
16
    [%- CASE 'reports' -%]<span>Allow access to the reports module</span>
16
        <span class="main_permission borrowers_permission">Add, modify and view patron information</span>
17
    [%- CASE 'staffaccess' -%]<span>Allow staff members to modify permissions for other staff members</span>
17
        <span class="permissioncode">([% name | html %])</span>
18
    [%- CASE 'coursereserves' -%]<span>Course reserves</span>
18
    [%- CASE 'permissions' -%]
19
    [%- CASE 'plugins' -%]<span>Koha plugins</span>
19
        <span class="main_permission permissions_permission">Set user permissions</span>
20
    [%- CASE 'lists' -%]<span>Lists</span>
20
        <span class="permissioncode">([% name | html %])</span>
21
    [%- CASE 'clubs' -%]<span>Patron clubs</span>
21
    [%- CASE 'reserveforothers' -%]
22
    [%- CASE 'ill' -%]<span>Create and modify Interlibrary loan requests</span>
22
        <span class="main_permission reserveforothers_permission">Place and modify holds for patrons</span>
23
    [%- CASE 'self_check' -%]<span>Self check modules</span>
23
        <span class="permissioncode">([% name | html %])</span>
24
    [%- CASE 'stockrotation' -%]<span>Manage stockrotation operations</span>
24
    [%- CASE 'editcatalogue' -%]
25
        <span class="main_permission editcatalogue_permission">Edit catalog (Modify bibliographic/holdings data)</span>
26
        <span class="permissioncode">([% name | html %])</span>
27
    [%- CASE 'updatecharges' -%]
28
        <span class="main_permission updatecharges_permission">Manage patrons fines and fees</span>
29
        <span class="permissioncode">([% name | html %])</span>
30
    [%- CASE 'acquisition' -%]
31
        <span class="main_permission acquisition_permission">Acquisition and/or suggestion management</span>
32
        <span class="permissioncode">([% name | html %])</span>
33
    [%- CASE 'tools' -%]
34
        <span class="main_permission tools_permission">Use all tools (expand for granular tools permissions)</span>
35
        <span class="permissioncode">([% name | html %])</span>
36
    [%- CASE 'editauthorities' -%]
37
        <span class="main_permission editauthorities_permission">Edit authorities</span>
38
        <span class="permissioncode">([% name | html %])</span>
39
    [%- CASE 'serials' -%]
40
        <span class="main_permission serials_permission">Manage serial subscriptions</span>
41
        <span class="permissioncode">([% name | html %])</span>
42
    [%- CASE 'reports' -%]
43
        <span class="main_permission reports_permission">Allow access to the reports module</span>
44
        <span class="permissioncode">([% name | html %])</span>
45
    [%- CASE 'staffaccess' -%]
46
        <span class="main_permission staffaccess_permission">Allow staff members to modify permissions for other staff members</span>
47
        <span class="permissioncode">([% name | html %])</span>
48
    [%- CASE 'coursereserves' -%]
49
        <span class="main_permission coursereserves_permission">Course reserves</span>
50
        <span class="permissioncode">([% name | html %])</span>
51
    [%- CASE 'plugins' -%]
52
        <span class="main_permission plugins_permission">Koha plugins</span>
53
        <span class="permissioncode">([% name | html %])</span>
54
    [%- CASE 'lists' -%]
55
        <span class="main_permission lists_permission">Lists</span>
56
        <span class="permissioncode">([% name | html %])</span>
57
    [%- CASE 'clubs' -%]
58
        <span class="main_permission clubs_permission">Patron clubs</span>
59
        <span class="permissioncode">([% name | html %])</span>
60
    [%- CASE 'ill' -%]
61
        <span class="main_permission ill_permission">Create and modify Interlibrary loan requests</span>
62
        <span class="permissioncode">([% name | html %])</span>
63
    [%- CASE 'self_check' -%]
64
        <span class="main_permission self_check_permission">Self check modules</span>
65
        <span class="permissioncode">([% name | html %])</span>
66
    [%- CASE 'stockrotation' -%]
67
        <span class="main_permission self_check_permission">Manage stockrotation operations</span>
68
        <span class="permissioncode">([% name | html %])</span>
25
    [%- END -%]
69
    [%- END -%]
26
[%- END -%]
70
[%- END -%]
27
71
28
[%- BLOCK sub_permissions -%]
72
[%- BLOCK sub_permissions -%]
29
  [% SWITCH name %]
73
  [% SWITCH name %]
30
    [%- CASE 'circulate_remaining_permissions' -%]<span>Remaining circulation permissions</span>
74
    [%- CASE 'circulate_remaining_permissions' -%]
31
    [%- CASE 'force_checkout' -%]<span>Force checkout if a limitation exists</span>
75
        <span class="sub_permission circulate_remaining_permissions_subpermission">
32
    [%- CASE 'manage_restrictions' -%]<span>Manage restrictions for accounts</span>
76
            Remaining circulation permissions
33
    [%- CASE 'overdues_report' -%]<span>Execute overdue items report</span>
77
        </span>
34
    [%- CASE 'override_renewals' -%]<span>Override blocked renewals</span>
78
        <span class="permissioncode">([% name | html %])</span>
35
    [%- CASE 'manage_checkout_notes' %]<span>Mark checkout notes as seen/not seen</span>
79
    [%- CASE 'force_checkout' -%]
36
    [%- CASE 'manage_circ_rules' -%]<span>manage circulation rules</span>
80
        <span class="sub_permission force_checkout_subpermission">
37
    [%- CASE 'manage_circ_rules_from_any_libraries' -%]<span>Manage circulation rules for any library. If not set the logged in user can only edit circulation rules for their own library (please note that manage_circ_rules is still required)</span>
81
            Force checkout if a limitation exists
38
    [%- CASE 'parameters_remaining_permissions' -%]<span>Remaining system parameters permissions</span>
82
        </span>
39
    [%- CASE 'manage_circ_rules' -%]<span>Manage circulation rules</span>
83
        <span class="permissioncode">([% name | html %])</span>
40
    [%- CASE 'manage_sysprefs' -%]<span>Manage global system preferences</span>
84
    [%- CASE 'manage_restrictions' -%]
41
    [%- CASE 'manage_libraries' -%]<span>Manage libraries and library groups</span>
85
        <span class="sub_permission manage_restrictions_subpermission">
42
    [%- CASE 'manage_itemtypes' -%]<span>Manage item types</span>
86
            Manage restrictions for accounts
43
    [%- CASE 'manage_auth_values' -%]<span>Manage authorized value categories and authorized values</span>
87
        </span>
44
    [%- CASE 'manage_patron_categories' -%]<span>Manage patron categories</span>
88
        <span class="permissioncode">([% name | html %])</span>
45
    [%- CASE 'manage_patron_attributes' -%]<span>Manage extended patron attributes</span>
89
    [%- CASE 'overdues_report' -%]
46
    [%- CASE 'manage_transfers' -%]<span>Manage library transfer limits and transport cost matrix</span>
90
        <span class="sub_permission overdues_report_subpermission">
47
    [%- CASE 'manage_item_circ_alerts' -%]<span>Manage item circulation alerts</span>
91
            Execute overdue items report
48
    [%- CASE 'manage_cities' -%]<span>Manage cities and towns</span>
92
        </span>
49
    [%- CASE 'manage_marc_frameworks' -%]<span>Manage MARC bibliographic and authority frameworks and test them</span>
93
        <span class="permissioncode">([% name | html %])</span>
50
    [%- CASE 'manage_keywords2koha_mappings' -%]<span>Manage keywords to Koha mappings</span>
94
    [%- CASE 'override_renewals' -%]
51
    [%- CASE 'manage_classifications' -%]<span>Manage classification sources and filing rules</span>
95
        <span class="sub_permission override_renewals_subpermission">
52
    [%- CASE 'manage_matching_rules' -%]<span>Manage record matching rules</span>
96
            Override blocked renewals
53
    [%- CASE 'manage_oai_sets' -%]<span>Manage OAI sets</span>
97
        </span>
54
    [%- CASE 'manage_item_search_fields' -%]<span>Manage item search fields</span>
98
        <span class="permissioncode">([% name | html %])</span>
55
    [%- CASE 'manage_search_engine_config' -%]<span>Manage search engine configuration</span>
99
    [%- CASE 'manage_checkout_notes' %]
56
    [%- CASE 'manage_search_targets' -%]<span>Manage Z39.50 and SRU server configuration</span>
100
        <span class="sub_permission manage_checkout_notes_subpermission">
57
    [%- CASE 'manage_didyoumean' -%]<span>Manage Did you mean? configuration</span>
101
            Mark checkout notes as seen/not seen
58
    [%- CASE 'manage_column_config' -%]<span>Manage column configuration</span>
102
        </span>
59
    [%- CASE 'manage_audio_alerts' -%]<span>Manage audio alerts</span>
103
        <span class="permissioncode">([% name | html %])</span>
60
    [%- CASE 'manage_sms_providers' -%]<span>Manage SMS cellular providers</span>
104
    [%- CASE 'manage_circ_rules' -%]
61
    [%- CASE 'manage_usage_stats' -%]<span>Manage usage statistics settings</span>
105
        <span class="sub_permission manage_circ_rules_subpermission">
62
    [%- CASE 'manage_mana' -%]<span>Manage Mana KB content sharing</span>
106
            manage circulation rules
63
    [%- CASE 'edit_borrowers' -%]<span>Add, modify and view patron information</span>
107
        </span>
64
    [%- CASE 'view_borrower_infos_from_any_libraries' -%]<span>View patron infos from any libraries. If not set the logged in user could only access patron infos from its own library or group of libraries.</span>
108
        <span class="permissioncode">([% name | html %])</span>
65
    [%- CASE 'modify_holds_priority' -%]<span>Modify holds priority</span>
109
    [%- CASE 'manage_circ_rules_from_any_libraries' -%]
66
    [%- CASE 'place_holds' -%]<span>Place holds for patrons</span>
110
        <span class="sub_permission manage_circ_rules_from_any_libraries_subpermission">
67
    [%- CASE 'delete_all_items' -%]<span>Delete all items at once</span>
111
            Manage circulation rules for any library. If not set the logged in user can only edit circulation rules for their own library (please note that manage_circ_rules is still required)
68
    [%- CASE 'edit_catalogue' -%]<span>Edit catalog (Modify bibliographic/holdings data)</span>
112
        </span>
69
    [%- CASE 'edit_items' -%]<span>Edit items</span>
113
        <span class="permissioncode">([% name | html %])</span>
70
    [%- CASE 'edit_items_restricted' -%]<span>Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required)</span>
114
    [%- CASE 'parameters_remaining_permissions' -%]
71
    [%- CASE 'fast_cataloging' -%]<span>Fast cataloging</span>
115
        <span class="sub_permission parameters_remaining_permissions_subpermission">
72
    [%- CASE 'remaining_permissions' -%]<span>Remaining permissions for managing fines and fees</span>
116
            Remaining system parameters permissions
73
    [%- CASE 'writeoff' -%]<span>Write off fines and fees</span>
117
        </span>
74
    [%- CASE 'suggestions_manage' -%]<span>Manage purchase suggestions</span>
118
        <span class="permissioncode">([% name | html %])</span>
75
    [%- CASE 'budget_add_del' -%]<span>Add and delete funds (but can't modify funds)</span>
119
    [%- CASE 'manage_circ_rules' -%]
76
    [%- CASE 'budget_manage' -%]<span>Manage funds</span>
120
        <span class="sub_permission manage_circ_rules_subpermission">
77
    [%- CASE 'budget_manage_all' -%]<span>Manage all funds</span>
121
            Manage circulation rules
78
    [%- CASE 'budget_modify' -%]<span>Modify funds (can't create lines, but can modify existing ones)</span>
122
        </span>
79
    [%- CASE 'contracts_manage' -%]<span>Manage contracts</span>
123
        <span class="permissioncode">([% name | html %])</span>
80
    [%- CASE 'group_manage' -%]<span>Manage basket groups</span>
124
    [%- CASE 'manage_sysprefs' -%]
81
    [%- CASE 'order_manage' -%]<span>Manage basket and order lines</span>
125
        <span class="sub_permission manage_sysprefs_subpermission">
82
    [%- CASE 'order_manage_all' -%]<span>Manage all baskets and order lines, regardless of restrictions on them</span>
126
            Manage global system preferences
83
    [%- CASE 'order_receive' -%]<span>Receive orders and manage shipments</span>
127
        </span>
84
    [%- CASE 'period_manage' -%]<span>Manage budgets</span>
128
        <span class="permissioncode">([% name | html %])</span>
85
    [%- CASE 'planning_manage' -%]<span>Manage budget plannings</span>
129
    [%- CASE 'manage_libraries' -%]
86
    [%- CASE 'vendors_manage' -%]<span>Manage vendors</span>
130
        <span class="sub_permission manage_libraries_subpermission">
87
    [%- CASE 'currencies_manage' -%]<span>Manage currencies and exchange rates</span>
131
            Manage libraries and library groups
88
    [%- CASE 'batch_upload_patron_images' -%]<span>Upload patron images in a batch or one at a time</span>
132
        </span>
89
    [%- CASE 'delete_anonymize_patrons' -%]<span>Delete old borrowers and anonymize circulation history (deletes borrower reading history)</span>
133
        <span class="permissioncode">([% name | html %])</span>
90
    [%- CASE 'edit_calendar' -%]<span>Define days when the library is closed</span>
134
    [%- CASE 'manage_itemtypes' -%]
91
    [%- CASE 'edit_news' -%]<span>Write news for the OPAC and staff interfaces</span>
135
        <span class="sub_permission manage_itemtypes_subpermission">
92
    [%- CASE 'edit_notice_status_triggers' -%]<span>Set notice/status triggers for overdue items</span>
136
            Manage item types
93
    [%- CASE 'edit_notices' -%]<span>Define notices</span>
137
        </span>
94
    [%- CASE 'edit_patrons' -%]<span>Perform batch modification of patrons</span>
138
        <span class="permissioncode">([% name | html %])</span>
95
    [%- CASE 'edit_quotes' -%]<span>Edit quotes for quote-of-the-day feature</span>
139
    [%- CASE 'manage_auth_values' -%]
96
    [%- CASE 'export_catalog' -%]<span>Export bibliographic and holdings data</span>
140
        <span class="sub_permission manage_auth_values_subpermission">
97
    [%- CASE 'import_patrons' -%]<span>Import patron data</span>
141
            Manage authorized value categories and authorized values
98
    [%- CASE 'inventory' -%]<span>Perform inventory of your catalog</span>
142
        </span>
99
    [%- CASE 'items_batchdel' -%]<span>Perform batch deletion of items</span>
143
        <span class="permissioncode">([% name | html %])</span>
100
    [%- CASE 'items_batchmod' -%]<span>Perform batch modification of items</span>
144
    [%- CASE 'manage_patron_categories' -%]
101
    [%- CASE 'items_batchmod_restricted' -%]<span>Limit batch item modification to subfields defined in the SubfieldsToAllowForRestrictedBatchmod preference (please note that items_batchmod is still required)</span>
145
        <span class="sub_permission manage_patron_categories_subpermission">
102
    [%- CASE 'label_creator' -%]<span>Create printable labels and barcodes from catalog and patron data</span>
146
            Manage patron categories
103
    [%- CASE 'manage_csv_profiles' -%]<span>Manage CSV export profiles</span>
147
        </span>
104
    [%- CASE 'manage_patron_lists' -%]<span>Add, edit and delete patron lists and their contents</span>
148
        <span class="permissioncode">([% name | html %])</span>
105
    [%- CASE 'manage_staged_marc' -%]<span>Managed staged MARC records, including completing and reversing imports</span>
149
    [%- CASE 'manage_patron_attributes' -%]
106
    [%- CASE 'marc_modification_templates' -%]<span>Manage marc modification templates</span>
150
        <span class="sub_permission manage_patron_attributes_subpermission">
107
    [%- CASE 'moderate_comments' -%]<span>Moderate patron comments</span>
151
            Manage extended patron attributes
108
    [%- CASE 'moderate_tags' -%]<span>Moderate patron tags</span>
152
        </span>
109
    [%- CASE 'records_batchdel' -%]<span>Perform batch deletion of records (bibliographic or authority)</span>
153
        <span class="permissioncode">([% name | html %])</span>
110
    [%- CASE 'records_batchmod' -%]<span>Perform batch modification of records (biblios or authorities)</span>
154
    [%- CASE 'manage_transfers' -%]
111
    [%- CASE 'rotating_collections' -%]<span>Manage rotating collections</span>
155
        <span class="sub_permission manage_transfers_subpermission">
112
    [%- CASE 'schedule_tasks' -%]<span>Schedule tasks to run</span>
156
            Manage library transfer limits and transport cost matrix
113
    [%- CASE 'stage_marc_import' -%]<span>Stage MARC records into the reservoir</span>
157
        </span>
114
    [%- CASE 'upload_local_cover_images' -%]<span>Upload local cover images</span>
158
        <span class="permissioncode">([% name | html %])</span>
115
    [%- CASE 'view_system_logs' -%]<span>Browse the system logs</span>
159
    [%- CASE 'manage_item_circ_alerts' -%]
116
    [%- CASE 'check_expiration' -%]<span>Check the expiration of a serial</span>
160
        <span class="sub_permission manage_item_circ_alerts_subpermission">
117
    [%- CASE 'claim_serials' -%]<span>Claim missing serials</span>
161
            Manage item circulation alerts
118
    [%- CASE 'create_subscription' -%]<span>Create a new subscription</span>
162
        </span>
119
    [%- CASE 'delete_subscription' -%]<span>Delete an existing subscription</span>
163
        <span class="permissioncode">([% name | html %])</span>
120
    [%- CASE 'edit_subscription' -%]<span>Edit an existing subscription</span>
164
    [%- CASE 'manage_cities' -%]
121
    [%- CASE 'receive_serials' -%]<span>Serials receiving</span>
165
        <span class="sub_permission manage_cities_subpermission">
122
    [%- CASE 'renew_subscription' -%]<span>Renew a subscription</span>
166
            Manage cities and towns
123
    [%- CASE 'routing' -%]<span>Routing</span>
167
        </span>
124
    [%- CASE 'superserials' -%]<span>Manage subscriptions from any branch (only applies when IndependentBranches is used)</span>
168
        <span class="permissioncode">([% name | html %])</span>
125
    [%- CASE 'delete_reports' -%]<span>Delete SQL reports</span>
169
    [%- CASE 'manage_marc_frameworks' -%]
126
    [%- CASE 'create_reports' -%]<span>Create SQL reports</span>
170
        <span class="sub_permission manage_marc_frameworks_subpermission">
127
    [%- CASE 'execute_reports' -%]<span>Execute SQL reports</span>
171
            Manage MARC bibliographic and authority frameworks and test them
128
    [%- CASE 'add_reserves' -%]<span>Add course reserves</span>
172
        </span>
129
    [%- CASE 'delete_reserves' -%]<span>Remove course reserves</span>
173
        <span class="permissioncode">([% name | html %])</span>
130
    [%- CASE 'manage_courses' -%]<span>Add, edit and delete courses</span>
174
    [%- CASE 'manage_keywords2koha_mappings' -%]
131
    [%- CASE 'configure' -%]<span>Configure plugins</span>
175
        <span class="sub_permission manage_keywords2koha_mappings_subpermission">
132
    [%- CASE 'manage' -%]<span>Manage plugins ( install / uninstall )</span>
176
            Manage keywords to Koha mappings
133
    [%- CASE 'report' -%]<span>Use report plugins</span>
177
        </span>
134
    [%- CASE 'tool' -%]<span>Use tool plugins</span>
178
        <span class="permissioncode">([% name | html %])</span>
135
    [%- CASE 'delete_public_lists' -%]<span>Delete public lists</span>
179
    [%- CASE 'manage_classifications' -%]
136
    [%- CASE 'upload_general_files' -%]<span>Upload any file</span>
180
        <span class="sub_permission manage_classifications_subpermission">
137
    [%- CASE 'upload_manage' -%]<span>Manage uploaded files (<i>Useless without upload_general_files</i>)</span>
181
            Manage classification sources and filing rules
138
    [%- CASE 'access_files' -%]<span>Access to the files stored on the server</span>
182
        </span>
139
    [%- CASE 'edit_clubs' -%]<span>Create and edit clubs</span>
183
        <span class="permissioncode">([% name | html %])</span>
140
    [%- CASE 'edit_templates' -%]<span>Create and edit club templates</span>
184
    [%- CASE 'manage_matching_rules' -%]
141
    [%- CASE 'enroll' -%]<span>Enroll patrons in clubs</span>
185
        <span class="sub_permission manage_matching_rules_subpermission">
142
    [%- CASE 'edi_manage' -%]<span>Manage EDIFACT transmissions</span>
186
            Manage record matching rules
187
        </span>
188
        <span class="permissioncode">([% name | html %])</span>
189
    [%- CASE 'manage_oai_sets' -%]
190
        <span class="sub_permission manage_oai_sets_subpermission">
191
            Manage OAI sets
192
        </span>
193
        <span class="permissioncode">([% name | html %])</span>
194
    [%- CASE 'manage_item_search_fields' -%]
195
        <span class="sub_permission manage_item_search_fields_subpermission">
196
            Manage item search fields
197
        </span>
198
        <span class="permissioncode">([% name | html %])</span>
199
    [%- CASE 'manage_search_engine_config' -%]
200
        <span class="sub_permission manage_search_engine_config_subpermission">
201
            Manage search engine configuration
202
        </span>
203
        <span class="permissioncode">([% name | html %])</span>
204
    [%- CASE 'manage_search_targets' -%]
205
        <span class="sub_permission manage_search_targets_subpermission">
206
            Manage Z39.50 and SRU server configuration
207
        </span>
208
        <span class="permissioncode">([% name | html %])</span>
209
    [%- CASE 'manage_didyoumean' -%]
210
        <span class="sub_permission manage_didyoumean_subpermission">
211
            Manage Did you mean? configuration
212
        </span>
213
        <span class="permissioncode">([% name | html %])</span>
214
    [%- CASE 'manage_column_config' -%]
215
        <span class="sub_permission manage_column_config_subpermission">
216
            Manage column configuration
217
        </span>
218
        <span class="permissioncode">([% name | html %])</span>
219
    [%- CASE 'manage_audio_alerts' -%]
220
        <span class="sub_permission manage_audio_alerts_subpermission">
221
            Manage audio alerts
222
        </span>
223
        <span class="permissioncode">([% name | html %])</span>
224
    [%- CASE 'manage_sms_providers' -%]
225
        <span class="sub_permission manage_sms_providers_subpermission">
226
            Manage SMS cellular providers
227
        </span>
228
        <span class="permissioncode">([% name | html %])</span>
229
    [%- CASE 'manage_usage_stats' -%]
230
        <span class="sub_permission manage_usage_stats_subpermission">
231
            Manage usage statistics settings
232
        </span>
233
        <span class="permissioncode">([% name | html %])</span>
234
    [%- CASE 'manage_mana' -%]
235
        <span class="sub_permission manage_mana_subpermission">
236
            Manage Mana KB content sharing
237
        </span>
238
        <span class="permissioncode">([% name | html %])</span>
239
    [%- CASE 'edit_borrowers' -%]
240
        <span class="sub_permission edit_borrowers_subpermission">
241
            Add, modify and view patron information
242
        </span>
243
        <span class="permissioncode">([% name | html %])</span>
244
    [%- CASE 'view_borrower_infos_from_any_libraries' -%]
245
        <span class="sub_permission view_borrower_infos_from_any_libraries_subpermission">
246
            View patron infos from any libraries. If not set the logged in user could only access patron infos from its own library or group of libraries.
247
        </span>
248
        <span class="permissioncode">([% name | html %])</span>
249
    [%- CASE 'modify_holds_priority' -%]
250
        <span class="sub_permission modify_holds_priority_subpermission">
251
            Modify holds priority
252
        </span>
253
        <span class="permissioncode">([% name | html %])</span>
254
    [%- CASE 'place_holds' -%]
255
        <span class="sub_permission place_holds_subpermission">
256
            Place holds for patrons
257
        </span>
258
        <span class="permissioncode">([% name | html %])</span>
259
    [%- CASE 'delete_all_items' -%]
260
        <span class="sub_permission delete_all_items_subpermission">
261
            Delete all items at once
262
        </span>
263
        <span class="permissioncode">([% name | html %])</span>
264
    [%- CASE 'edit_catalogue' -%]
265
        <span class="sub_permission edit_catalogue_subpermission">
266
            Edit catalog (Modify bibliographic/holdings data)
267
        </span>
268
        <span class="permissioncode">([% name | html %])</span>
269
    [%- CASE 'edit_items' -%]
270
        <span class="sub_permission edit_items_subpermission">
271
            Edit items
272
        </span>
273
        <span class="permissioncode">([% name | html %])</span>
274
    [%- CASE 'edit_items_restricted' -%]
275
        <span class="sub_permission edit_items_restricted_subpermission">
276
            Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required)
277
        </span>
278
        <span class="permissioncode">([% name | html %])</span>
279
    [%- CASE 'fast_cataloging' -%]
280
        <span class="sub_permission fast_cataloging_subpermission">
281
            Fast cataloging
282
        </span>
283
        <span class="permissioncode">([% name | html %])</span>
284
    [%- CASE 'remaining_permissions' -%]
285
        <span class="sub_permission remaining_permissions_subpermission">
286
            Remaining permissions for managing fines and fees
287
        </span>
288
        <span class="permissioncode">([% name | html %])</span>
289
    [%- CASE 'writeoff' -%]
290
        <span class="sub_permission writeoff_subpermission">
291
            Write off fines and fees
292
        </span>
293
        <span class="permissioncode">([% name | html %])</span>
294
    [%- CASE 'suggestions_manage' -%]
295
        <span class="sub_permission suggestions_manage_subpermission">
296
            Manage purchase suggestions
297
        </span>
298
        <span class="permissioncode">([% name | html %])</span>
299
    [%- CASE 'budget_add_del' -%]
300
        <span class="sub_permission budget_add_del_subpermission">
301
            Add and delete funds (but can't modify funds)
302
        </span>
303
        <span class="permissioncode">([% name | html %])</span>
304
    [%- CASE 'budget_manage' -%]
305
        <span class="sub_permission budget_manage_subpermission">
306
            Manage funds
307
        </span>
308
        <span class="permissioncode">([% name | html %])</span>
309
    [%- CASE 'budget_manage_all' -%]
310
        <span class="sub_permission budget_manage_all_subpermission">
311
            Manage all funds
312
        </span>
313
        <span class="permissioncode">([% name | html %])</span>
314
    [%- CASE 'budget_modify' -%]
315
        <span class="sub_permission budget_modify_subpermission">
316
            Modify funds (can't create lines, but can modify existing ones)
317
        </span>
318
        <span class="permissioncode">([% name | html %])</span>
319
    [%- CASE 'contracts_manage' -%]
320
        <span class="sub_permission contracts_manage_subpermission">
321
            Manage contracts
322
        </span>
323
        <span class="permissioncode">([% name | html %])</span>
324
    [%- CASE 'group_manage' -%]
325
        <span class="sub_permission group_manage_subpermission">
326
            Manage basket groups
327
        </span>
328
        <span class="permissioncode">([% name | html %])</span>
329
    [%- CASE 'order_manage' -%]
330
        <span class="sub_permission order_manage_subpermission">
331
            Manage basket and order lines
332
        </span>
333
        <span class="permissioncode">([% name | html %])</span>
334
    [%- CASE 'order_manage_all' -%]
335
        <span class="sub_permission order_manage_all_subpermission">
336
            Manage all baskets and order lines, regardless of restrictions on them
337
        </span>
338
        <span class="permissioncode">([% name | html %])</span>
339
    [%- CASE 'order_receive' -%]
340
        <span class="sub_permission order_receive_subpermission">
341
            Receive orders and manage shipments
342
        </span>
343
        <span class="permissioncode">([% name | html %])</span>
344
    [%- CASE 'period_manage' -%]
345
        <span class="sub_permission period_manage_subpermission">
346
            Manage budgets
347
        </span>
348
        <span class="permissioncode">([% name | html %])</span>
349
    [%- CASE 'planning_manage' -%]
350
        <span class="sub_permission planning_manage_subpermission">
351
            Manage budget plannings
352
        </span>
353
        <span class="permissioncode">([% name | html %])</span>
354
    [%- CASE 'vendors_manage' -%]
355
        <span class="sub_permission vendors_manage_subpermission">
356
            Manage vendors
357
        </span>
358
        <span class="permissioncode">([% name | html %])</span>
359
    [%- CASE 'currencies_manage' -%]
360
        <span class="sub_permission currencies_manage_subpermission">
361
            Manage currencies and exchange rates
362
        </span>
363
        <span class="permissioncode">([% name | html %])</span>
364
    [%- CASE 'batch_upload_patron_images' -%]
365
        <span class="sub_permission batch_upload_patron_images_subpermission">
366
            Upload patron images in a batch or one at a time
367
        </span>
368
        <span class="permissioncode">([% name | html %])</span>
369
    [%- CASE 'delete_anonymize_patrons' -%]
370
        <span class="sub_permission delete_anonymize_patrons_subpermission">
371
            Delete old borrowers and anonymize circulation history (deletes borrower reading history)
372
        </span>
373
        <span class="permissioncode">([% name | html %])</span>
374
    [%- CASE 'edit_calendar' -%]
375
        <span class="sub_permission edit_calendar_subpermission">
376
            Define days when the library is closed
377
        </span>
378
        <span class="permissioncode">([% name | html %])</span>
379
    [%- CASE 'edit_news' -%]
380
        <span class="sub_permission edit_news_subpermission">
381
            Write news for the OPAC and staff interfaces
382
        </span>
383
        <span class="permissioncode">([% name | html %])</span>
384
    [%- CASE 'edit_notice_status_triggers' -%]
385
        <span class="sub_permission edit_notice_status_triggers_subpermission">
386
            Set notice/status triggers for overdue items
387
        </span>
388
        <span class="permissioncode">([% name | html %])</span>
389
    [%- CASE 'edit_notices' -%]
390
        <span class="sub_permission edit_notices_subpermission">
391
            Define notices
392
        </span>
393
        <span class="permissioncode">([% name | html %])</span>
394
    [%- CASE 'edit_patrons' -%]
395
        <span class="sub_permission edit_patrons_subpermission">
396
            Perform batch modification of patrons
397
        </span>
398
        <span class="permissioncode">([% name | html %])</span>
399
    [%- CASE 'edit_quotes' -%]
400
        <span class="sub_permission edit_quotes_subpermission">
401
            Edit quotes for quote-of-the-day feature
402
        </span>
403
        <span class="permissioncode">([% name | html %])</span>
404
    [%- CASE 'export_catalog' -%]
405
        <span class="sub_permission export_catalog_subpermission">
406
            Export bibliographic and holdings data
407
        </span>
408
        <span class="permissioncode">([% name | html %])</span>
409
    [%- CASE 'import_patrons' -%]
410
        <span class="sub_permission import_patrons_subpermission">
411
            Import patron data
412
        </span>
413
        <span class="permissioncode">([% name | html %])</span>
414
    [%- CASE 'inventory' -%]
415
        <span class="sub_permission inventory_subpermission">
416
            Perform inventory of your catalog
417
        </span>
418
        <span class="permissioncode">([% name | html %])</span>
419
    [%- CASE 'items_batchdel' -%]
420
        <span class="sub_permission items_batchdel_subpermission">
421
            Perform batch deletion of items
422
        </span>
423
        <span class="permissioncode">([% name | html %])</span>
424
    [%- CASE 'items_batchmod' -%]
425
        <span class="sub_permission items_batchmod_subpermission">
426
            Perform batch modification of items
427
        </span>
428
        <span class="permissioncode">([% name | html %])</span>
429
    [%- CASE 'items_batchmod_restricted' -%]
430
        <span class="sub_permission items_batchmod_restricted_subpermission">
431
            Limit batch item modification to subfields defined in the SubfieldsToAllowForRestrictedBatchmod preference (please note that items_batchmod is still required)
432
        </span>
433
        <span class="permissioncode">([% name | html %])</span>
434
    [%- CASE 'label_creator' -%]
435
        <span class="sub_permission label_creator_subpermission">
436
            Create printable labels and barcodes from catalog and patron data
437
        </span>
438
        <span class="permissioncode">([% name | html %])</span>
439
    [%- CASE 'manage_csv_profiles' -%]
440
        <span class="sub_permission manage_csv_profiles_subpermission">
441
            Manage CSV export profiles
442
        </span>
443
        <span class="permissioncode">([% name | html %])</span>
444
    [%- CASE 'manage_patron_lists' -%]
445
        <span class="sub_permission manage_patron_lists_subpermission">
446
            Add, edit and delete patron lists and their contents
447
        </span>
448
        <span class="permissioncode">([% name | html %])</span>
449
    [%- CASE 'manage_staged_marc' -%]
450
        <span class="sub_permission manage_staged_marc_subpermission">
451
            Managed staged MARC records, including completing and reversing imports
452
        </span>
453
        <span class="permissioncode">([% name | html %])</span>
454
    [%- CASE 'marc_modification_templates' -%]
455
        <span class="sub_permission marc_modification_templates_subpermission">
456
            Manage marc modification templates
457
        </span>
458
        <span class="permissioncode">([% name | html %])</span>
459
    [%- CASE 'moderate_comments' -%]
460
        <span class="sub_permission moderate_comments_subpermission">
461
            Moderate patron comments
462
        </span>
463
        <span class="permissioncode">([% name | html %])</span>
464
    [%- CASE 'moderate_tags' -%]
465
        <span class="sub_permission moderate_tags_subpermission">
466
            Moderate patron tags
467
        </span>
468
        <span class="permissioncode">([% name | html %])</span>
469
    [%- CASE 'records_batchdel' -%]
470
        <span class="sub_permission records_batchdel_subpermission">
471
            Perform batch deletion of records (bibliographic or authority)
472
        </span>
473
        <span class="permissioncode">([% name | html %])</span>
474
    [%- CASE 'records_batchmod' -%]
475
        <span class="sub_permission records_batchmod_subpermission">
476
            Perform batch modification of records (biblios or authorities)
477
        </span>
478
        <span class="permissioncode">([% name | html %])</span>
479
    [%- CASE 'rotating_collections' -%]
480
        <span class="sub_permission rotating_collections_subpermission">
481
            Manage rotating collections
482
        </span>
483
        <span class="permissioncode">([% name | html %])</span>
484
    [%- CASE 'schedule_tasks' -%]
485
        <span class="sub_permission schedule_tasks_subpermission">
486
            Schedule tasks to run
487
        </span>
488
        <span class="permissioncode">([% name | html %])</span>
489
    [%- CASE 'stage_marc_import' -%]
490
        <span class="sub_permission stage_marc_import_subpermission">
491
            Stage MARC records into the reservoir
492
        </span>
493
        <span class="permissioncode">([% name | html %])</span>
494
    [%- CASE 'upload_local_cover_images' -%]
495
        <span class="sub_permission upload_local_cover_images_subpermission">
496
            Upload local cover images
497
        </span>
498
        <span class="permissioncode">([% name | html %])</span>
499
    [%- CASE 'view_system_logs' -%]
500
        <span class="sub_permission view_system_logs_subpermission">
501
            Browse the system logs
502
        </span>
503
        <span class="permissioncode">([% name | html %])</span>
504
    [%- CASE 'check_expiration' -%]
505
        <span class="sub_permission check_expiration_subpermission">
506
            Check the expiration of a serial
507
        </span>
508
        <span class="permissioncode">([% name | html %])</span>
509
    [%- CASE 'claim_serials' -%]
510
        <span class="sub_permission claim_serials_subpermission">
511
            Claim missing serials
512
        </span>
513
        <span class="permissioncode">([% name | html %])</span>
514
    [%- CASE 'create_subscription' -%]
515
        <span class="sub_permission create_subscription_subpermission">
516
            Create a new subscription
517
        </span>
518
        <span class="permissioncode">([% name | html %])</span>
519
    [%- CASE 'delete_subscription' -%]
520
        <span class="sub_permission delete_subscription_subpermission">
521
            Delete an existing subscription
522
        </span>
523
        <span class="permissioncode">([% name | html %])</span>
524
    [%- CASE 'edit_subscription' -%]
525
        <span class="sub_permission edit_subscription_subpermission">
526
            Edit an existing subscription
527
        </span>
528
        <span class="permissioncode">([% name | html %])</span>
529
    [%- CASE 'receive_serials' -%]
530
        <span class="sub_permission receive_serials_subpermission">
531
            Serials receiving
532
        </span>
533
        <span class="permissioncode">([% name | html %])</span>
534
    [%- CASE 'renew_subscription' -%]
535
        <span class="sub_permission renew_subscription_subpermission">
536
            Renew a subscription
537
        </span>
538
        <span class="permissioncode">([% name | html %])</span>
539
    [%- CASE 'routing' -%]
540
        <span class="sub_permission routing_subpermission">
541
            Routing
542
        </span>
543
        <span class="permissioncode">([% name | html %])</span>
544
    [%- CASE 'superserials' -%]
545
        <span class="sub_permission superserials_subpermission">
546
            Manage subscriptions from any branch (only applies when IndependentBranches is used)
547
        </span>
548
        <span class="permissioncode">([% name | html %])</span>
549
    [%- CASE 'delete_reports' -%]
550
        <span class="sub_permission delete_reports_subpermission">
551
            Delete SQL reports
552
        </span>
553
        <span class="permissioncode">([% name | html %])</span>
554
    [%- CASE 'create_reports' -%]
555
        <span class="sub_permission create_reports_subpermission">
556
            Create SQL reports
557
        </span>
558
        <span class="permissioncode">([% name | html %])</span>
559
    [%- CASE 'execute_reports' -%]
560
        <span class="sub_permission execute_reports_subpermission">
561
            Execute SQL reports
562
        </span>
563
        <span class="permissioncode">([% name | html %])</span>
564
    [%- CASE 'add_reserves' -%]
565
        <span class="sub_permission add_reserves_subpermission">
566
            Add course reserves
567
        </span>
568
        <span class="permissioncode">([% name | html %])</span>
569
    [%- CASE 'delete_reserves' -%]
570
        <span class="sub_permission delete_reserves_subpermission">
571
            Remove course reserves
572
        </span>
573
        <span class="permissioncode">([% name | html %])</span>
574
    [%- CASE 'manage_courses' -%]
575
        <span class="sub_permission manage_courses_subpermission">
576
            Add, edit and delete courses
577
        </span>
578
        <span class="permissioncode">([% name | html %])</span>
579
    [%- CASE 'configure' -%]
580
        <span class="sub_permission configure_subpermission">
581
            Configure plugins
582
        </span>
583
        <span class="permissioncode">([% name | html %])</span>
584
    [%- CASE 'manage' -%]
585
        <span class="sub_permission manage_subpermission">
586
            Manage plugins ( install / uninstall )
587
        </span>
588
        <span class="permissioncode">([% name | html %])</span>
589
    [%- CASE 'report' -%]
590
        <span class="sub_permission report_subpermission">
591
            Use report plugins
592
        </span>
593
        <span class="permissioncode">([% name | html %])</span>
594
    [%- CASE 'tool' -%]
595
        <span class="sub_permission tool_subpermission">
596
            Use tool plugins
597
        </span>
598
        <span class="permissioncode">([% name | html %])</span>
599
    [%- CASE 'delete_public_lists' -%]
600
        <span class="sub_permission delete_public_lists_subpermission">
601
            Delete public lists
602
        </span>
603
        <span class="permissioncode">([% name | html %])</span>
604
    [%- CASE 'upload_general_files' -%]
605
        <span class="sub_permission upload_general_files_subpermission">
606
            Upload any file
607
        </span>
608
        <span class="permissioncode">([% name | html %])</span>
609
    [%- CASE 'upload_manage' -%]
610
        <span class="sub_permission upload_manage_subpermission">
611
            Manage uploaded files (<i>Useless without upload_general_files</i>)
612
        </span>
613
        <span class="permissioncode">([% name | html %])</span>
614
    [%- CASE 'access_files' -%]
615
        <span class="sub_permission access_files_subpermission">
616
            Access to the files stored on the server
617
        </span>
618
        <span class="permissioncode">([% name | html %])</span>
619
    [%- CASE 'edit_clubs' -%]
620
        <span class="sub_permission edit_clubs_subpermission">
621
            Create and edit clubs
622
        </span>
623
        <span class="permissioncode">([% name | html %])</span>
624
    [%- CASE 'edit_templates' -%]
625
        <span class="sub_permission edit_templates_subpermission">
626
            Create and edit club templates
627
        </span>
628
        <span class="permissioncode">([% name | html %])</span>
629
    [%- CASE 'enroll' -%]
630
        <span class="sub_permission enroll_subpermission">
631
            Enroll patrons in clubs
632
        </span>
633
        <span class="permissioncode">([% name | html %])</span>
634
    [%- CASE 'edi_manage' -%]
635
        <span class="sub_permission edi_manage_subpermission">
636
            Manage EDIFACT transmissions
637
        </span>
638
        <span class="permissioncode">([% name | html %])</span>
143
  [%# self_check %]
639
  [%# self_check %]
144
    [%- CASE 'self_checkin_module' -%]<span>Log into the self check-in module. Note: this permission prevents the patron from using any other OPAC functionality</span>
640
    [%- CASE 'self_checkin_module' -%]
145
    [%- CASE 'self_checkout_module' -%]<span>Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID</span>
641
        <span class="sub_permission self_checkin_module_subpermission">
146
    [%- CASE 'manage_rota_items' -%]<span>Add and remove items from rotas</span>
642
            Log into the self check-in module. Note: this permission prevents the patron from using any other OPAC functionality
147
    [%- CASE 'manage_rotas' -%]<span>Create, edit and delete rotas</span>
643
        </span>
644
        <span class="permissioncode">([% name | html %])</span>
645
    [%- CASE 'self_checkout_module' -%]
646
        <span class="sub_permission self_checkout_module_subpermission">
647
            Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID
648
        </span>
649
        <span class="permissioncode">([% name | html %])</span>
650
    [%- CASE 'manage_rota_items' -%]
651
        <span class="sub_permission manage_rota_items_subpermission">
652
            Add and remove items from rotas
653
        </span>
654
        <span class="permissioncode">([% name | html %])</span>
655
    [%- CASE 'manage_rotas' -%]
656
        <span class="sub_permission manage_rotas_subpermission">
657
            Create, edit and delete rotas
658
        </span>
659
        <span class="permissioncode">([% name | html %])</span>
148
  [%- END -%]
660
  [%- END -%]
149
[%- END -%]
661
[%- END -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt (-114 / +112 lines)
Lines 5-11 Link Here
5
[% PROCESS 'permissions.inc' %]
5
[% PROCESS 'permissions.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Patrons &rsaquo; Set permissions for [% patron.surname | html %], [% patron.firstname | html %]</title>
7
<title>Koha &rsaquo; Patrons &rsaquo; Set permissions for [% patron.surname | html %], [% patron.firstname | html %]</title>
8
[% Asset.css("css/treeview/jquery.treeview.css") | $raw %]
9
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
10
</head>
9
</head>
11
10
Lines 27-82 Link Here
27
    <input type="hidden" name="member" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
26
    <input type="hidden" name="member" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
28
    <input type="hidden" name="newflags" value="1" />
27
    <input type="hidden" name="newflags" value="1" />
29
    <h1>Set permissions for [% patron.surname | html %], [% patron.firstname | html %]</h1>
28
    <h1>Set permissions for [% patron.surname | html %], [% patron.firstname | html %]</h1>
30
    <!-- <ul id="permissionstree"><li class="root">All privileges<ul> -->
31
    <ul id="permissionstree" class="treeview-grey">
32
        <!-- <li class="folder-close">One level down<ul> -->
33
    [% FOREACH loo IN loop %]
34
        [% IF ( loo.expand ) %]
35
        <li class="open">
36
        [% ELSE %]
37
        <li>
38
        [% END %]
39
			[% IF ( loo.checked ) %]
40
          [% IF disable_superlibrarian_privs && loo.bit == 0 %]
41
              <input type="checkbox" disabled="disabled" class="flag parent superlib" id="flag-[% loo.bit | html %]_disabled" name="flag" value="[% loo.flag | html %]" checked="checked" title="The system preference ProtectSuperlibrarianPrivileges is enabled" />
42
              <input type="hidden" id="flag-[% loo.bit | html %]" name="flag" value="[% loo.flag | html %]" >
43
          [% ELSE %]
44
              <input type="checkbox" class="flag parent" id="flag-[% loo.bit | html %]" name="flag" value="[% loo.flag | html %]" checked="checked" />
45
          [% END %]
46
			[% ELSE %]
47
          [% IF disable_superlibrarian_privs && loo.bit == 0 %]
48
              <input type="checkbox" disabled="disabled" class="flag parent" id="flag-[% loo.bit | html %]_disabled" name="flag" value="[% loo.flag | html %]" title="The system preference ProtectSuperlibrarianPrivileges is enabled" />
49
          [% ELSE %]
50
              <input type="checkbox" class="flag parent" id="flag-[% loo.bit | html %]" name="flag" value="[% loo.flag | html %]" />
51
          [% END %]
52
			[% END %]
53
                <label class="permissioncode" for="flag-[% loo.bit | html %]">[% loo.flag | html %]</label>
54
                <span class="permissiondesc">[% PROCESS main_permissions name=loo.flag %]</span>
55
            [% IF ( loo.sub_perm_loop ) %]
56
                <ul id="flag-[% loo.bit | html %]-children">
57
                    [% FOREACH sub_perm_loo IN loo.sub_perm_loop %]
58
                        <li>
59
			            [% IF ( sub_perm_loo.checked ) %]
60
                            <input type="checkbox" class="flag child" id="[% sub_perm_loo.id | html %]" name="flag" value="[% sub_perm_loo.perm | html %]" checked="checked" />
61
			            [% ELSE %]
62
                            <input type="checkbox" class="flag child" id="[% sub_perm_loo.id | html %]" name="flag" value="[% sub_perm_loo.perm | html %]" />
63
			            [% END %]
64
                    <label class="permissioncode" for="[% sub_perm_loo.id | html %]">[% sub_perm_loo.code | html %]</label>
65
                             <span class="permissiondesc">[% PROCESS sub_permissions name=sub_perm_loo.code %]</span>
66
                        </li>
67
                    [% END %]
68
                </ul>
69
                </li>
70
            [% ELSE %]
71
                </li>
72
			[% END %]
73
    [% END %]
74
        <!-- </ul></li> -->
75
    <!-- </ul></li></ul> -->
76
    </ul>
77
78
<fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a></fieldset>
79
29
30
    <div id="permissionstree">
31
        <div id="permissions_toolbar" class="btn-toolbar">
32
            <button type="submit" class="btn btn-sm btn-default"><i class="fa fa-save"></i> Save</button>
33
            <a class="btn btn-sm btn-default" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]"><i class="fa fa-remove"></i> Cancel</a>
34
            <div class="btn-group pull-right">
35
                Filter: <input type="text" name="permissions_filter" id="permissions_filter" size="20" />
36
                <a href="#" id="clear_filter" style="display:none"><i class="fa fa-remove"></i></a>
37
            </div>
38
        </div>
39
        <div class="permissions">
40
            [% FOREACH loo IN loop %]
41
                [% IF ( loo.expand ) %]
42
                    <div id="parent-flag-[% loo.flag | html %]" class="open parent">
43
                [% ELSE %]
44
                    <div id="parent-flag-[% loo.flag | html %]" class="parent">
45
                [% END %]
46
                [% IF ( loo.checked ) %]
47
                    [% IF disable_superlibrarian_privs && loo.bit == 0 %]
48
                        <input type="checkbox" disabled="disabled" data-bit="[% loo.bit | html %]" id="flag-[% loo.bit | html %]_disabled" class="parent flag superlib" name="flag" value="[% loo.flag | html %]" checked="checked" title="The system preference ProtectSuperlibrarianPrivileges is enabled" />
49
                        <input type="hidden" id="flag-[% loo.bit | html %]" name="flag" value="[% loo.flag | html %]" >
50
                    [% ELSE %]
51
                          <input type="checkbox" data-bit="[% loo.bit | html %]" id="flag-[% loo.bit | html %]" class="parent flag" name="flag" value="[% loo.flag | html %]" checked="checked" />
52
                    [% END %]
53
                [% ELSE %]
54
                    [% IF disable_superlibrarian_privs && loo.bit == 0 %]
55
                        <input type="checkbox" disabled="disabled" class="flag parent" data-bit="[% loo.bit | html %]" id="flag-[% loo.bit | html %]_disabled" name="flag" value="[% loo.flag | html %]" title="The system preference ProtectSuperlibrarianPrivileges is enabled" />
56
                    [% ELSE %]
57
                        <input type="checkbox" class="flag parent" data-bit="[% loo.bit | html %]" id="flag-[% loo.bit | html %]" name="flag" value="[% loo.flag | html %]" />
58
                    [% END %]
59
                [% END # /IF loo.checked %]
60
                    <label class="permissiondesc" for="flag-[% loo.bit | html %]">
61
                        [% PROCESS main_permissions name=loo.flag %]
62
                    </label>
63
                    [% IF ( loo.flag == "superlibrarian" ) %]<div class="hint superlibrarian-hint">This permission grants access to all areas. If selected, specific sub-permissions cannot be selected.</div>[% END %]
64
                [% IF ( loo.sub_perm_loop ) %]
65
                    <a class="toggle-[% loo.bit | html %] togglechildren_off" href="#" data-bit="[% loo.bit | html %]"><i class="fa fa-minus-square-o"></i> Hide details</a>
66
                    <a class="toggle-[% loo.bit | html %] togglechildren_on" href="#" data-bit="[% loo.bit | html %]"><i class="fa fa-plus-square-o"></i> Show details</a>
67
                    <div class="children" id="flag-[% loo.bit | html %]-children">
68
                        [% FOREACH sub_perm_loo IN loo.sub_perm_loop %]
69
                            <div class="child-flags">
70
                                [% IF ( sub_perm_loo.checked ) %]
71
                                    <input type="checkbox" id="[% sub_perm_loo.id | html %]" class="child flag" name="flag" value="[% sub_perm_loo.perm | html %]" checked="checked" />
72
                                [% ELSE %]
73
                                    <input type="checkbox" id="[% sub_perm_loo.id | html %]" class="child flag" name="flag" value="[% sub_perm_loo.perm | html %]" />
74
                                [% END %]
75
                                <label class="permissiondesc" for="[% sub_perm_loo.id | html %]">
76
                                    [% PROCESS sub_permissions name=sub_perm_loo.code %]
77
                                </label>
78
                            </div>
79
                        [% END %]
80
                    </div> <!-- /#flag-[% loo.bit | html %]-children -->
81
                [% END # /IF loo.sub_perm_loop %]
82
                </div> <!-- /.parent -->
83
            [% END # /FOREACH loo %]
84
        </div>
85
    </div> <!-- /#permissionstree -->
80
</form>
86
</form>
81
87
82
            </main>
88
            </main>
Lines 92-107 Link Here
92
[% MACRO jsinclude BLOCK %]
98
[% MACRO jsinclude BLOCK %]
93
    [% INCLUDE 'str/members-menu.inc' %]
99
    [% INCLUDE 'str/members-menu.inc' %]
94
    [% Asset.js("js/members-menu.js") | $raw %]
100
    [% Asset.js("js/members-menu.js") | $raw %]
95
    [% Asset.js("lib/jquery/plugins/jquery.treeview.pack.js") | $raw %]
101
    [% Asset.js("lib/hc-sticky.js") | $raw %]
96
    <!-- set up tree -->
97
    <script>
102
    <script>
103
        var Sticky;
98
        $(document).ready(function() {
104
        $(document).ready(function() {
99
            $("#permissionstree").treeview({animated: "fast", collapsed: true});
105
106
            Sticky = $("#permissions_toolbar");
107
            Sticky.hcSticky({
108
                stickTo: "#permissionstree",
109
                stickyClass: "floating"
110
            });
111
112
            $(".open div").show();
113
114
            $("#permissions_filter").on("keyup", function(){
115
                $("#clear_filter").css("display","inline-block");
116
                $("a[class^=toggle-]").hide();
117
                var string = $(this).val();
118
                var divs = $("div[id!='parent-flag-superlibrarian']", ".permissions");
119
                if( string != "" && string.length > 3 ){
120
                    divs.each(function(){
121
                        if ( $(this).text().search(new RegExp( string, "i")) < 0 ) {
122
                            $(this).hide();
123
                        } else {
124
                            $(this).show();
125
                        }
126
                    });
127
                } else {
128
                    divs.show();
129
                }
130
            });
131
132
            $("#clear_filter").on("click", function(){
133
                $(".togglechildren_off").show();
134
                $("#permissions_filter").val("");
135
                $("div", "#permissionstree").show();
136
                $(this).css("display","none");
137
            });
100
138
101
            // Enforce Superlibrarian Privilege Mutual Exclusivity
139
            // Enforce Superlibrarian Privilege Mutual Exclusivity
102
            if( $('input[id="flag-0"]:checked').length || $(".superlib:checked").length ){
140
            if( $('input[id="flag-0"]:checked').length || $(".superlib:checked").length ){
103
                if ($('input[name="flag"]:checked').length > 1){
141
                if ($('input[name="flag"]:checked').length > 1){
104
                    alert(_("Inconsistency detected! The superlibrarian privilege is mutually exclusive of other privileges, as it includes them all. This patron's privileges will now be reset to include only superlibrarian."));
142
                    alert(_("Inconsistency detected!") + "\n\n" + _("The superlibrarian privilege is mutually exclusive of other privileges, as it includes them all.") + "\n\n" + _("This patron's privileges will now be reset to include only superlibrarian."));
105
                }
143
                }
106
144
107
                $('input[name="flag"]').each(function() {
145
                $('input[name="flag"]').each(function() {
Lines 128-198 Link Here
128
                }
166
                }
129
            });
167
            });
130
168
131
            $(".flag").on("change",function(){
169
            $(".togglechildren_off, .togglechildren_on").on('click', function(e) {
132
                if( $(this).hasClass("parent") ){
170
                e.preventDefault();
133
                    toggleChildren(this);
171
                var bit = $(this).data("bit");
134
                } else {
172
                $("#flag-" + bit + "-children").toggle();
135
                    toggleParent(this);
173
                $(".toggle-" + bit).toggle();
136
                }
137
            });
174
            });
138
175
139
        });
176
            $(".togglechildren_off, .togglechildren_on").hover( function(){
140
177
                $(this).parent().addClass("permission-highlight");
141
        // manage checking/unchecking parent permissions
178
            }, function(){
142
        var originalChildStates = {}; /* keep track of subpermission checkbox values
179
                $(this).parent().removeClass("permission-highlight");
143
                                         so that user can recover from accidentally
180
            });
144
                                         toggling a parent/module permission */
145
        function selectChildren(parentInput) {
146
            var childListId = parentInput.id + '-children';
147
            var list = document.getElementById(childListId);
148
            var children = [];
149
            if (list) {
150
                var inputs = list.getElementsByTagName('input');
151
                for (var i = 0; i < inputs.length; i++) {
152
                    if (inputs[i].type == 'checkbox') {
153
                        children.push(inputs[i]);
154
                    }
155
                }
156
            }
157
            return children;
158
        }
159
181
160
        function toggleChildren(parentInput) {
182
            $(".flag").on("change",function(e){
161
            var children = selectChildren(parentInput);
183
                e.preventDefault();
162
            if (children.length == 0) {
184
                var bit = $(this).data("bit");
163
                return;
185
                if( $(this).is(":checked") ){
164
            }
186
                    $("#flag-" + bit + "-children").show().find(".flag").prop("checked", true);
165
            var checked = parentInput.checked;
187
                    $(".toggle-" + bit + ".togglechildren_on").hide();
166
            if (checked && parentInput.parentNode.className == 'expandable') {
188
                    $(".toggle-" + bit + ".togglechildren_off").show();
167
                /* expand the tree */
168
                $(".hitarea", parentInput.parentNode).click();
169
            }
170
            for (var i = 0; i < children.length; i++) {
171
                if (checked) {
172
                    originalChildStates[children[i].id] = children[i].checked;
173
                    children[i].checked = checked;
174
                } else {
189
                } else {
175
                    if (children[i].id in originalChildStates) {
190
                    $("#flag-" + bit + "-children").show().find(".flag").prop("checked", false);
176
                        children[i].checked = originalChildStates[children[i].id];
177
                    } else {
178
                        children[i].checked = checked;
179
                    }
180
                }
191
                }
181
            }
192
            });
182
        }
183
184
        function toggleParent(childInput) {
185
            originalChildStates[childInput.id] = childInput.checked;
186
            if (childInput.checked) {
187
                return;
188
            }
189
            var parentId = childInput.parentNode.parentNode.id.replace(/-children$/, '');;
190
            var parentInput = document.getElementById(parentId);
191
            if (parentInput) {
192
                parentInput.checked = false;
193
            }
194
        }
195
193
194
        });
196
    </script>
195
    </script>
197
[% END %]
196
[% END %]
198
197
199
- 

Return to bug 11375