@@ -, +, @@ - Open the "Set permissions" page for any patron. - Confirm that the filter works correctly to show only lines which match your entry - Note that the superlibrarian line stays visible all the time. This is to make it clearer that sub-permissions cannot be selected if superlibrarian is checked. - Check the superlibrarain "hint" text for clarity. - Test the show/hide controls. - Test that checking a "parent" permission displays the sub-permissions. - Test that changing and saving permissions works correctly. --- .../lib/jquery/plugins/jquery.treeview.pack.js | 16 - .../intranet-tmpl/prog/css/src/staff-global.scss | 98 +++- .../prog/css/treeview/images/file.gif | Bin 110 -> 0 bytes .../prog/css/treeview/images/folder-closed.gif | Bin 105 -> 0 bytes .../prog/css/treeview/images/folder.gif | Bin 106 -> 0 bytes .../prog/css/treeview/images/minus.gif | Bin 837 -> 0 bytes .../prog/css/treeview/images/plus.gif | Bin 841 -> 0 bytes .../css/treeview/images/treeview-black-line.gif | Bin 1877 -> 0 bytes .../prog/css/treeview/images/treeview-black.gif | Bin 1216 -> 0 bytes .../css/treeview/images/treeview-default-line.gif | Bin 1993 -> 0 bytes .../prog/css/treeview/images/treeview-default.gif | Bin 1222 -> 0 bytes .../treeview/images/treeview-famfamfam-line.gif | Bin 807 -> 0 bytes .../css/treeview/images/treeview-famfamfam.gif | Bin 1280 -> 0 bytes .../css/treeview/images/treeview-gray-line.gif | Bin 1877 -> 0 bytes .../prog/css/treeview/images/treeview-gray.gif | Bin 1230 -> 0 bytes .../prog/css/treeview/images/treeview-red-line.gif | Bin 1877 -> 0 bytes .../prog/css/treeview/images/treeview-red.gif | Bin 1230 -> 0 bytes .../prog/css/treeview/jquery.treeview.css | 69 --- .../intranet-tmpl/prog/en/includes/permissions.inc | 552 +++++++++++++++------ .../prog/en/modules/members/member-flags.tt | 234 +++++---- 20 files changed, 632 insertions(+), 337 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.treeview.pack.js delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/file.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/folder-closed.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/folder.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/minus.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/plus.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/treeview-black-line.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/treeview-black.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/treeview-default-line.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/treeview-default.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/treeview-famfamfam-line.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/treeview-famfamfam.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/treeview-gray-line.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/treeview-gray.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/treeview-red-line.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/images/treeview-red.gif delete mode 100644 koha-tmpl/intranet-tmpl/prog/css/treeview/jquery.treeview.css --- a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.treeview.pack.js +++ a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.treeview.pack.js @@ -1,16 +0,0 @@ -/* - * Treeview 1.4 - jQuery plugin to hide and show branches of a tree - * - * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ - * http://docs.jquery.com/Plugins/Treeview - * - * Copyright (c) 2007 Jörn Zaefferer - * - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * - * Revision: $Id: jquery.treeview.js 4684 2008-02-07 19:08:06Z joern.zaefferer $ - * - */ -eval(function(p,a,c,k,e,r){e=function(c){return(c35?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("").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 +++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1635,7 +1635,6 @@ dd { &.floating { border-radius: 0; - margin-top: 0; } } @@ -2300,7 +2299,6 @@ li { &.floating { border-radius: 0; - margin-top: 0; } .btn-group { @@ -3592,6 +3590,7 @@ progress { .floating { box-shadow: 0 3px 2px 0 rgba(0, 0, 0, .5); + margin-top: 0; z-index: 100; } @@ -4280,6 +4279,98 @@ span { } } + +#makechart ol li { + list-style: none; +} + +/* Permissions */ + +#permissionstree { + display: inline-block; +} + +.permission-controls { + background-color: #edf4f6; + margin-bottom: .5em; + padding: .5em 1em; +} + +.main_permission { + font-size: 110%; + font-weight: bold; +} + +.permissioncode { + color: #666; + font-style: italic; +} + +.permission-highlight { + background-color: #FFC; +} + +.togglechildren_on, +.togglechildren_off { + float: right; +} + +.togglechildren_off, +.children { + display: none; +} + +.open { + .togglechildren_off { + display: inline; + } + + .togglechildren_on { + display: none; + } +} + +.parent { + border: 1px solid #DDD; + border-bottom-width: 0; + padding: 5px; + + &:last-child { + border-bottom-width: 1px; + } + + &:nth-child(odd) { + background-color: #F8F8F8; + } +} + +.superlibrarian-hint { + color: #000; + padding: .2em 0; + text-indent: 2em; +} + +.child-flags { + background-color: #FFF; + border: 1px solid #DDD; + border-bottom-width: 0; + margin: 0 5px 0 20px; + padding: 5px; + + &:first-child { + margin-top: 10px; + } + + &:last-child { + border-bottom-width: 1px; + } + + &:nth-child(odd) { + background-color: #EEE; + } +} + + @media (min-width: 200px) { .navbar-nav > li { float: left; @@ -4361,6 +4452,3 @@ span { } } -div#makechart ol li { - list-style: none; -} --- a/koha-tmpl/intranet-tmpl/prog/css/treeview/jquery.treeview.css +++ a/koha-tmpl/intranet-tmpl/prog/css/treeview/jquery.treeview.css @@ -1,69 +0,0 @@ -.treeview, .treeview ul { - padding: 0; - margin: 0; - list-style: none; -} - -.treeview ul { - background-color: white; - margin-top: 4px; -} - -.treeview .hitarea { - background: url(images/treeview-default.gif) -64px -25px no-repeat; - height: 16px; - width: 16px; - margin-left: -16px; - float: left; - cursor: pointer; -} -/* fix for IE6 */ -* html .hitarea { - display: inline; - float:none; -} - -.treeview li { - margin: 0; - padding: 3px 0pt 3px 16px; - list-style: none; -} - -.treeview a.selected { - background-color: #eee; -} - -#treecontrol { margin: 1em 0; display: none; } - -.treeview .hover { color: red; cursor: pointer; } - -.treeview li { background: url(images/treeview-default-line.gif) 0 0 no-repeat; } -.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; } - -.treeview .expandable-hitarea { background-position: -80px -3px; } - -.treeview li.last { background-position: 0 -1766px } -.treeview li.lastCollapsable, .treeview li.lastExpandable { background-image: url(images/treeview-default.gif); } -.treeview li.lastCollapsable { background-position: 0 -111px } -.treeview li.lastExpandable { background-position: -32px -67px } - -.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; } - -.treeview-red li { background-image: url(images/treeview-red-line.gif); } -.treeview-red .hitarea, .treeview-red li.lastCollapsable, .treeview-red li.lastExpandable { background-image: url(images/treeview-red.gif); } - -.treeview-black li { background-image: url(images/treeview-black-line.gif); } -.treeview-black .hitarea, .treeview-black li.lastCollapsable, .treeview-black li.lastExpandable { background-image: url(images/treeview-black.gif); } - -.treeview-gray li { background-image: url(images/treeview-gray-line.gif); } -.treeview-gray .hitarea, .treeview-gray li.lastCollapsable, .treeview-gray li.lastExpandable { background-image: url(images/treeview-gray.gif); } - -.treeview-famfamfam li { background-image: url(images/treeview-famfamfam-line.gif); } -.treeview-famfamfam .hitarea, .treeview-famfamfam li.lastCollapsable, .treeview-famfamfam li.lastExpandable { background-image: url(images/treeview-famfamfam.gif); } - - -.filetree li { padding: 3px 0 2px 16px; } -.filetree span.folder, .filetree span.file { padding: 1px 0 1px 16px; display: block; } -.filetree span.folder { background: url(images/folder.gif) 0 0 no-repeat; } -.filetree li.expandable span.folder { background: url(images/folder-closed.gif) 0 0 no-repeat; } -.filetree span.file { background: url(images/file.gif) 0 0 no-repeat; } --- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc @@ -1,148 +1,424 @@ [%- BLOCK main_permissions -%] [% SWITCH name %] - [%- CASE 'superlibrarian' -%]Access to all librarian functions - [%- CASE 'circulate' -%]Check out and check in items - [%- CASE 'catalogue' -%]Required for staff login. Staff access, allows viewing of catalogue in staff client. - [%- CASE 'parameters' -%]Manage Koha system settings (Administration panel) - [%- CASE 'borrowers' -%]Add, modify and view patron information - [%- CASE 'permissions' -%]Set user permissions - [%- CASE 'reserveforothers' -%]Place and modify holds for patrons - [%- CASE 'editcatalogue' -%]Edit catalog (Modify bibliographic/holdings data) - [%- CASE 'updatecharges' -%]Manage patrons fines and fees - [%- CASE 'acquisition' -%]Acquisition and/or suggestion management - [%- CASE 'tools' -%]Use all tools (expand for granular tools permissions) - [%- CASE 'editauthorities' -%]Edit authorities - [%- CASE 'serials' -%]Manage serial subscriptions - [%- CASE 'reports' -%]Allow access to the reports module - [%- CASE 'staffaccess' -%]Allow staff members to modify permissions for other staff members - [%- CASE 'coursereserves' -%]Course reserves - [%- CASE 'plugins' -%]Koha plugins - [%- CASE 'lists' -%]Lists - [%- CASE 'clubs' -%]Patron clubs - [%- CASE 'ill' -%]Create and modify Interlibrary loan requests - [%- CASE 'self_check' -%]Self check modules - [%- CASE 'stockrotation' -%]Manage stockrotation operations + [%- CASE 'superlibrarian' -%] + Access to all librarian functions + ([% name | html %]) + [%- CASE 'circulate' -%] + Check out and check in items + ([% name | html %]) + [%- CASE 'catalogue' -%] + Required for staff login. Staff access, allows viewing of catalogue in staff client. + ([% name | html %]) + [%- CASE 'parameters' -%] + Manage Koha system settings (Administration panel) + ([% name | html %]) + [%- CASE 'borrowers' -%] + Add, modify and view patron information + ([% name | html %]) + [%- CASE 'permissions' -%] + Set user permissions + ([% name | html %]) + [%- CASE 'reserveforothers' -%] + Place and modify holds for patrons + ([% name | html %]) + [%- CASE 'editcatalogue' -%] + Edit catalog (Modify bibliographic/holdings data) + ([% name | html %]) + [%- CASE 'updatecharges' -%] + Manage patrons fines and fees + ([% name | html %]) + [%- CASE 'acquisition' -%] + Acquisition and/or suggestion management + ([% name | html %]) + [%- CASE 'tools' -%] + Use all tools (expand for granular tools permissions) + ([% name | html %]) + [%- CASE 'editauthorities' -%] + Edit authorities + ([% name | html %]) + [%- CASE 'serials' -%] + Manage serial subscriptions + ([% name | html %]) + [%- CASE 'reports' -%] + Allow access to the reports module + ([% name | html %]) + [%- CASE 'staffaccess' -%] + Allow staff members to modify permissions for other staff members + ([% name | html %]) + [%- CASE 'coursereserves' -%] + Course reserves + ([% name | html %]) + [%- CASE 'plugins' -%] + Koha plugins + ([% name | html %]) + [%- CASE 'lists' -%] + Lists + ([% name | html %]) + [%- CASE 'clubs' -%] + Patron clubs + ([% name | html %]) + [%- CASE 'ill' -%] + Create and modify Interlibrary loan requests + ([% name | html %]) + [%- CASE 'self_check' -%] + Self check modules + ([% name | html %]) + [%- CASE 'stockrotation' -%] + Manage stockrotation operations + ([% name | html %]) [%- END -%] [%- END -%] [%- BLOCK sub_permissions -%] [% SWITCH name %] - [%- CASE 'circulate_remaining_permissions' -%]Remaining circulation permissions - [%- CASE 'force_checkout' -%]Force checkout if a limitation exists - [%- CASE 'manage_restrictions' -%]Manage restrictions for accounts - [%- CASE 'overdues_report' -%]Execute overdue items report - [%- CASE 'override_renewals' -%]Override blocked renewals - [%- CASE 'manage_checkout_notes' %]Mark checkout notes as seen/not seen - [%- CASE 'manage_circ_rules' -%]manage circulation rules - [%- CASE 'manage_circ_rules_from_any_libraries' -%]Edit circulation rules from any libraries. If not set the logged in user could only edit circulation rules for its the own library (please note that manage_circ_rules is still required) - [%- CASE 'parameters_remaining_permissions' -%]Remaining system parameters permissions - [%- CASE 'manage_circ_rules' -%]Manage circulation rules - [%- CASE 'manage_sysprefs' -%]Manage global system preferences - [%- CASE 'manage_libraries' -%]Manage libraries and library groups - [%- CASE 'manage_itemtypes' -%]Manage item types - [%- CASE 'manage_auth_values' -%]Manage authorized value categories and authorized values - [%- CASE 'manage_patron_categories' -%]Manage patron categories - [%- CASE 'manage_patron_attributes' -%]Manage extended patron attributes - [%- CASE 'manage_transfers' -%]Manage library transfer limits and transport cost matrix - [%- CASE 'manage_item_circ_alerts' -%]Manage item circulation alerts - [%- CASE 'manage_cities' -%]Manage cities and towns - [%- CASE 'manage_marc_frameworks' -%]Manage MARC bibliographic and authority frameworks and test them - [%- CASE 'manage_keywords2koha_mappings' -%]Manage keywords to Koha mappings - [%- CASE 'manage_classifications' -%]Manage classification sources and filing rules - [%- CASE 'manage_matching_rules' -%]Manage record matching rules - [%- CASE 'manage_oai_sets' -%]Manage OAI sets - [%- CASE 'manage_item_search_fields' -%]Manage item search fields - [%- CASE 'manage_search_engine_config' -%]Manage search engine configuration - [%- CASE 'manage_search_targets' -%]Manage Z39.50 and SRU server configuration - [%- CASE 'manage_didyoumean' -%]Manage Did you mean? configuration - [%- CASE 'manage_column_config' -%]Manage column configuration - [%- CASE 'manage_audio_alerts' -%]Manage audio alerts - [%- CASE 'manage_sms_providers' -%]Manage SMS cellular providers - [%- CASE 'manage_usage_stats' -%]Manage usage statistics settings - [%- CASE 'edit_borrowers' -%]Add, modify and view patron information - [%- CASE 'view_borrower_infos_from_any_libraries' -%]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. - [%- CASE 'modify_holds_priority' -%]Modify holds priority - [%- CASE 'place_holds' -%]Place holds for patrons - [%- CASE 'delete_all_items' -%]Delete all items at once - [%- CASE 'edit_catalogue' -%]Edit catalog (Modify bibliographic/holdings data) - [%- CASE 'edit_items' -%]Edit items - [%- CASE 'edit_items_restricted' -%]Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required) - [%- CASE 'fast_cataloging' -%]Fast cataloging - [%- CASE 'remaining_permissions' -%]Remaining permissions for managing fines and fees - [%- CASE 'writeoff' -%]Write off fines and fees - [%- CASE 'suggestions_manage' -%]Manage purchase suggestions - [%- CASE 'budget_add_del' -%]Add and delete budgets (but can't modify budgets) - [%- CASE 'budget_manage' -%]Manage budgets - [%- CASE 'budget_manage_all' -%]Manage all budgets - [%- CASE 'budget_modify' -%]Modify budget (can't create lines, but can modify existing ones) - [%- CASE 'contracts_manage' -%]Manage contracts - [%- CASE 'group_manage' -%]Manage basket groups - [%- CASE 'order_manage' -%]Manage basket and order lines - [%- CASE 'order_manage_all' -%]Manage all baskets and order lines, regardless of restrictions on them - [%- CASE 'order_receive' -%]Receive orders and manage shipments - [%- CASE 'period_manage' -%]Manage budgets - [%- CASE 'planning_manage' -%]Manage budget plannings - [%- CASE 'vendors_manage' -%]Manage vendors - [%- CASE 'currencies_manage' -%]Manage currencies and exchange rates - [%- CASE 'batch_upload_patron_images' -%]Upload patron images in a batch or one at a time - [%- CASE 'delete_anonymize_patrons' -%]Delete old borrowers and anonymize circulation history (deletes borrower reading history) - [%- CASE 'edit_calendar' -%]Define days when the library is closed - [%- CASE 'edit_news' -%]Write news for the OPAC and staff interfaces - [%- CASE 'edit_notice_status_triggers' -%]Set notice/status triggers for overdue items - [%- CASE 'edit_notices' -%]Define notices - [%- CASE 'edit_patrons' -%]Perform batch modification of patrons - [%- CASE 'edit_quotes' -%]Edit quotes for quote-of-the-day feature - [%- CASE 'export_catalog' -%]Export bibliographic and holdings data - [%- CASE 'import_patrons' -%]Import patron data - [%- CASE 'inventory' -%]Perform inventory of your catalog - [%- CASE 'items_batchdel' -%]Perform batch deletion of items - [%- CASE 'items_batchmod' -%]Perform batch modification of items - [%- CASE 'items_batchmod_restricted' -%]Limit batch item modification to subfields defined in the SubfieldsToAllowForRestrictedBatchmod preference (please note that items_batchmod is still required) - [%- CASE 'label_creator' -%]Create printable labels and barcodes from catalog and patron data - [%- CASE 'manage_csv_profiles' -%]Manage CSV export profiles - [%- CASE 'manage_patron_lists' -%]Add, edit and delete patron lists and their contents - [%- CASE 'manage_staged_marc' -%]Managed staged MARC records, including completing and reversing imports - [%- CASE 'marc_modification_templates' -%]Manage marc modification templates - [%- CASE 'moderate_comments' -%]Moderate patron comments - [%- CASE 'moderate_tags' -%]Moderate patron tags - [%- CASE 'records_batchdel' -%]Perform batch deletion of records (bibliographic or authority) - [%- CASE 'records_batchmod' -%]Perform batch modification of records (biblios or authorities) - [%- CASE 'rotating_collections' -%]Manage rotating collections - [%- CASE 'schedule_tasks' -%]Schedule tasks to run - [%- CASE 'stage_marc_import' -%]Stage MARC records into the reservoir - [%- CASE 'upload_local_cover_images' -%]Upload local cover images - [%- CASE 'view_system_logs' -%]Browse the system logs - [%- CASE 'check_expiration' -%]Check the expiration of a serial - [%- CASE 'claim_serials' -%]Claim missing serials - [%- CASE 'create_subscription' -%]Create a new subscription - [%- CASE 'delete_subscription' -%]Delete an existing subscription - [%- CASE 'edit_subscription' -%]Edit an existing subscription - [%- CASE 'receive_serials' -%]Serials receiving - [%- CASE 'renew_subscription' -%]Renew a subscription - [%- CASE 'routing' -%]Routing - [%- CASE 'superserials' -%]Manage subscriptions from any branch (only applies when IndependentBranches is used) - [%- CASE 'delete_reports' -%]Delete SQL reports - [%- CASE 'create_reports' -%]Create SQL reports - [%- CASE 'execute_reports' -%]Execute SQL reports - [%- CASE 'add_reserves' -%]Add course reserves - [%- CASE 'delete_reserves' -%]Remove course reserves - [%- CASE 'manage_courses' -%]Add, edit and delete courses - [%- CASE 'configure' -%]Configure plugins - [%- CASE 'manage' -%]Manage plugins ( install / uninstall ) - [%- CASE 'report' -%]Use report plugins - [%- CASE 'tool' -%]Use tool plugins - [%- CASE 'delete_public_lists' -%]Delete public lists - [%- CASE 'upload_general_files' -%]Upload any file - [%- CASE 'upload_manage' -%]Manage uploaded files (Useless without upload_general_files) - [%- CASE 'access_files' -%]Access to the files stored on the server - [%- CASE 'edit_clubs' -%]Create and edit clubs - [%- CASE 'edit_templates' -%]Create and edit club templates - [%- CASE 'enroll' -%]Enroll patrons in clubs - [%- CASE 'edi_manage' -%]Manage EDIFACT transmissions + [%- CASE 'circulate_remaining_permissions' -%] + Remaining circulation permissions + ([% name | html %]) + [%- CASE 'force_checkout' -%] + Force checkout if a limitation exists + ([% name | html %]) + [%- CASE 'manage_restrictions' -%] + Manage restrictions for accounts + ([% name | html %]) + [%- CASE 'overdues_report' -%] + Execute overdue items report + ([% name | html %]) + [%- CASE 'override_renewals' -%] + Override blocked renewals + ([% name | html %]) + [%- CASE 'manage_checkout_notes' -%] + Mark checkout notes as seen/not seen + ([% name | html %]) + [%- CASE 'manage_circ_rules' -%] + manage circulation rules + ([% name | html %]) + [%- CASE 'manage_circ_rules_from_any_libraries' -%] + Edit circulation rules from any libraries. If not set the logged in user could only edit circulation rules for its the own library (please note that manage_circ_rules is still required) + ([% name | html %]) + [%- CASE 'parameters_remaining_permissions' -%] + Remaining system parameters permissions + ([% name | html %]) + [%- CASE 'manage_circ_rules' -%] + Manage circulation rules + ([% name | html %]) + [%- CASE 'manage_sysprefs' -%] + Manage global system preferences + ([% name | html %]) + [%- CASE 'manage_libraries' -%] + Manage libraries and library groups + ([% name | html %]) + [%- CASE 'manage_itemtypes' -%] + Manage item types + ([% name | html %]) + [%- CASE 'manage_auth_values' -%] + Manage authorized value categories and authorized values + ([% name | html %]) + [%- CASE 'manage_patron_categories' -%] + Manage patron categories + ([% name | html %]) + [%- CASE 'manage_patron_attributes' -%] + Manage extended patron attributes + ([% name | html %]) + [%- CASE 'manage_transfers' -%] + Manage library transfer limits and transport cost matrix + ([% name | html %]) + [%- CASE 'manage_item_circ_alerts' -%] + Manage item circulation alerts + ([% name | html %]) + [%- CASE 'manage_cities' -%] + Manage cities and towns + ([% name | html %]) + [%- CASE 'manage_marc_frameworks' -%] + Manage MARC bibliographic and authority frameworks and test them + ([% name | html %]) + [%- CASE 'manage_keywords2koha_mappings' -%] + Manage keywords to Koha mappings + ([% name | html %]) + [%- CASE 'manage_classifications' -%] + Manage classification sources and filing rules + ([% name | html %]) + [%- CASE 'manage_matching_rules' -%] + Manage record matching rules + ([% name | html %]) + [%- CASE 'manage_oai_sets' -%] + Manage OAI sets + ([% name | html %]) + [%- CASE 'manage_item_search_fields' -%] + Manage item search fields + ([% name | html %]) + [%- CASE 'manage_search_engine_config' -%] + Manage search engine configuration + ([% name | html %]) + [%- CASE 'manage_search_targets' -%] + Manage Z39.50 and SRU server configuration + ([% name | html %]) + [%- CASE 'manage_didyoumean' -%] + Manage Did you mean? configuration + ([% name | html %]) + [%- CASE 'manage_column_config' -%] + Manage column configuration + ([% name | html %]) + [%- CASE 'manage_audio_alerts' -%] + Manage audio alerts + ([% name | html %]) + [%- CASE 'manage_sms_providers' -%] + Manage SMS cellular providers + ([% name | html %]) + [%- CASE 'manage_usage_stats' -%] + Manage usage statistics settings + ([% name | html %]) + [%- CASE 'edit_borrowers' -%] + Add, modify and view patron information + ([% name | html %]) + [%- CASE 'view_borrower_infos_from_any_libraries' -%] + 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. + ([% name | html %]) + [%- CASE 'modify_holds_priority' -%] + Modify holds priority + ([% name | html %]) + [%- CASE 'place_holds' -%] + Place holds for patrons + ([% name | html %]) + [%- CASE 'delete_all_items' -%] + Delete all items at once + ([% name | html %]) + [%- CASE 'edit_catalogue' -%] + Edit catalog (Modify bibliographic/holdings data) + ([% name | html %]) + [%- CASE 'edit_items' -%] + Edit items + ([% name | html %]) + [%- CASE 'edit_items_restricted' -%] + Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required) + ([% name | html %]) + [%- CASE 'fast_cataloging' -%] + Fast cataloging + ([% name | html %]) + [%- CASE 'remaining_permissions' -%] + Remaining permissions for managing fines and fees + ([% name | html %]) + [%- CASE 'writeoff' -%] + Write off fines and fees + ([% name | html %]) + [%- CASE 'suggestions_manage' -%] + Manage purchase suggestions + ([% name | html %]) + [%- CASE 'budget_add_del' -%] + Add and delete budgets (but can't modify budgets) + ([% name | html %]) + [%- CASE 'budget_manage' -%] + Manage budgets + ([% name | html %]) + [%- CASE 'budget_manage_all' -%] + Manage all budgets + ([% name | html %]) + [%- CASE 'budget_modify' -%] + Modify budget (can't create lines, but can modify existing ones) + ([% name | html %]) + [%- CASE 'contracts_manage' -%] + Manage contracts + ([% name | html %]) + [%- CASE 'group_manage' -%] + Manage basket groups + ([% name | html %]) + [%- CASE 'order_manage' -%] + Manage basket and order lines + ([% name | html %]) + [%- CASE 'order_manage_all' -%] + Manage all baskets and order lines, regardless of restrictions on them + ([% name | html %]) + [%- CASE 'order_receive' -%] + Receive orders and manage shipments + ([% name | html %]) + [%- CASE 'period_manage' -%] + Manage budgets + ([% name | html %]) + [%- CASE 'planning_manage' -%] + Manage budget plannings + ([% name | html %]) + [%- CASE 'vendors_manage' -%] + Manage vendors + ([% name | html %]) + [%- CASE 'currencies_manage' -%] + Manage currencies and exchange rates + ([% name | html %]) + [%- CASE 'batch_upload_patron_images' -%] + Upload patron images in a batch or one at a time + ([% name | html %]) + [%- CASE 'delete_anonymize_patrons' -%] + Delete old borrowers and anonymize circulation history (deletes borrower reading history) + ([% name | html %]) + [%- CASE 'edit_calendar' -%] + Define days when the library is closed + ([% name | html %]) + [%- CASE 'edit_news' -%] + Write news for the OPAC and staff interfaces + ([% name | html %]) + [%- CASE 'edit_notice_status_triggers' -%] + Set notice/status triggers for overdue items + ([% name | html %]) + [%- CASE 'edit_notices' -%] + Define notices + ([% name | html %]) + [%- CASE 'edit_patrons' -%] + Perform batch modification of patrons + ([% name | html %]) + [%- CASE 'edit_quotes' -%] + Edit quotes for quote-of-the-day feature + ([% name | html %]) + [%- CASE 'export_catalog' -%] + Export bibliographic and holdings data + ([% name | html %]) + [%- CASE 'import_patrons' -%] + Import patron data + ([% name | html %]) + [%- CASE 'inventory' -%] + Perform inventory of your catalog + ([% name | html %]) + [%- CASE 'items_batchdel' -%] + Perform batch deletion of items + ([% name | html %]) + [%- CASE 'items_batchmod' -%] + Perform batch modification of items + ([% name | html %]) + [%- CASE 'items_batchmod_restricted' -%] + Limit batch item modification to subfields defined in the SubfieldsToAllowForRestrictedBatchmod preference (please note that items_batchmod is still required) + ([% name | html %]) + [%- CASE 'label_creator' -%] + Create printable labels and barcodes from catalog and patron data + ([% name | html %]) + [%- CASE 'manage_csv_profiles' -%] + Manage CSV export profiles + ([% name | html %]) + [%- CASE 'manage_patron_lists' -%] + Add, edit and delete patron lists and their contents + ([% name | html %]) + [%- CASE 'manage_staged_marc' -%] + Managed staged MARC records, including completing and reversing imports + ([% name | html %]) + [%- CASE 'marc_modification_templates' -%] + Manage marc modification templates + ([% name | html %]) + [%- CASE 'moderate_comments' -%] + Moderate patron comments + ([% name | html %]) + [%- CASE 'moderate_tags' -%] + Moderate patron tags + ([% name | html %]) + [%- CASE 'records_batchdel' -%] + Perform batch deletion of records (bibliographic or authority) + ([% name | html %]) + [%- CASE 'records_batchmod' -%] + Perform batch modification of records (biblios or authorities) + ([% name | html %]) + [%- CASE 'rotating_collections' -%] + Manage rotating collections + ([% name | html %]) + [%- CASE 'schedule_tasks' -%] + Schedule tasks to run + ([% name | html %]) + [%- CASE 'stage_marc_import' -%] + Stage MARC records into the reservoir + ([% name | html %]) + [%- CASE 'upload_local_cover_images' -%] + Upload local cover images + ([% name | html %]) + [%- CASE 'view_system_logs' -%] + Browse the system logs + ([% name | html %]) + [%- CASE 'check_expiration' -%] + Check the expiration of a serial + ([% name | html %]) + [%- CASE 'claim_serials' -%] + Claim missing serials + ([% name | html %]) + [%- CASE 'create_subscription' -%] + Create a new subscription + ([% name | html %]) + [%- CASE 'delete_subscription' -%] + Delete an existing subscription + ([% name | html %]) + [%- CASE 'edit_subscription' -%] + Edit an existing subscription + ([% name | html %]) + [%- CASE 'receive_serials' -%] + Serials receiving + ([% name | html %]) + [%- CASE 'renew_subscription' -%] + Renew a subscription + ([% name | html %]) + [%- CASE 'routing' -%] + Routing + ([% name | html %]) + [%- CASE 'superserials' -%] + Manage subscriptions from any branch (only applies when IndependentBranches is used) + ([% name | html %]) + [%- CASE 'delete_reports' -%] + Delete SQL reports + ([% name | html %]) + [%- CASE 'create_reports' -%] + Create SQL reports + ([% name | html %]) + [%- CASE 'execute_reports' -%] + Execute SQL reports + ([% name | html %]) + [%- CASE 'add_reserves' -%] + Add course reserves + ([% name | html %]) + [%- CASE 'delete_reserves' -%] + Remove course reserves + ([% name | html %]) + [%- CASE 'manage_courses' -%] + Add, edit and delete courses + ([% name | html %]) + [%- CASE 'configure' -%] + Configure plugins + ([% name | html %]) + [%- CASE 'manage' -%] + Manage plugins ( install / uninstall ) + ([% name | html %]) + [%- CASE 'report' -%] + Use report plugins + ([% name | html %]) + [%- CASE 'tool' -%] + Use tool plugins + ([% name | html %]) + [%- CASE 'delete_public_lists' -%] + Delete public lists + ([% name | html %]) + [%- CASE 'upload_general_files' -%] + Upload any file + ([% name | html %]) + [%- CASE 'upload_manage' -%] + Manage uploaded files (Useless without upload_general_files) + ([% name | html %]) + [%- CASE 'access_files' -%] + Access to the files stored on the server + ([% name | html %]) + [%- CASE 'edit_clubs' -%] + Create and edit clubs + ([% name | html %]) + [%- CASE 'edit_templates' -%] + Create and edit club templates + ([% name | html %]) + [%- CASE 'enroll' -%] + Enroll patrons in clubs + ([% name | html %]) + [%- CASE 'edi_manage' -%] + Manage EDIFACT transmissions + ([% name | html %]) [%# self_check %] - [%- CASE 'self_checkin_module' -%]Log into the self check-in module. Note: this permission prevents the patron from using any other OPAC functionality - [%- CASE 'self_checkout_module' -%]Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID - [%- CASE 'manage_rota_items' -%]Add and remove items from rotas - [%- CASE 'manage_rotas' -%]Create, edit and delete rotas + [%- CASE 'self_checkin_module' -%] + Log into the self check-in module. Note: this permission prevents the patron from using any other OPAC functionality + ([% name | html %]) + [%- CASE 'self_checkout_module' -%] + Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID + ([% name | html %]) + [%- CASE 'manage_rota_items' -%] + Add and remove items from rotas + ([% name | html %]) + [%- CASE 'manage_rotas' -%] + Create, edit and delete rotas + ([% name | html %]) [%- END -%] [%- END -%] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt @@ -5,7 +5,6 @@ [% PROCESS 'permissions.inc' %] [% INCLUDE 'doc-head-open.inc' %] Koha › Patrons › Set permissions for [% patron.surname | html %], [% patron.firstname | html %] -[% Asset.css("css/treeview/jquery.treeview.css") | $raw %] [% INCLUDE 'doc-head-close.inc' %] @@ -27,56 +26,65 @@

Set permissions for [% patron.surname | html %], [% patron.firstname | html %]

- - - -
Cancel
- + + [% END # /IF loo.sub_perm_loop %] + + [% END # /FOREACH loo %] + + @@ -92,16 +100,48 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] - [% Asset.js("lib/jquery/plugins/jquery.treeview.pack.js") | $raw %] - + [% Asset.js("lib/hc-sticky.js") | $raw %] [% END %] --