Bugzilla – Attachment 88442 Details for
Bug 11529
Add subtitle, medium and part fields to biblio table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11529: (follow-up) Remove manage_keywords2koha_mappings permission.
Bug-11529-follow-up-Remove-managekeywords2kohamapp.patch (text/plain), 5.45 KB, created by
Ere Maijala
on 2019-04-23 08:45:23 UTC
(
hide
)
Description:
Bug 11529: (follow-up) Remove manage_keywords2koha_mappings permission.
Filename:
MIME Type:
Creator:
Ere Maijala
Created:
2019-04-23 08:45:23 UTC
Size:
5.45 KB
patch
obsolete
>From 786301dce8760cb8c814bbd00ded1f3a09cdf2b1 Mon Sep 17 00:00:00 2001 >From: Ere Maijala <ere.maijala@helsinki.fi> >Date: Thu, 18 Apr 2019 09:27:44 +0300 >Subject: [PATCH] Bug 11529: (follow-up) Remove manage_keywords2koha_mappings > permission. > >--- > installer/data/mysql/atomicupdate/bug_11529.perl | 4 ++++ > installer/data/mysql/userpermissions.sql | 1 - > koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc | 5 ----- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt | 2 +- > 5 files changed, 6 insertions(+), 8 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_11529.perl b/installer/data/mysql/atomicupdate/bug_11529.perl >index 6e784491c3..17800bf0ef 100644 >--- a/installer/data/mysql/atomicupdate/bug_11529.perl >+++ b/installer/data/mysql/atomicupdate/bug_11529.perl >@@ -54,6 +54,10 @@ if( CheckVersion( $DBversion ) ) { > > $dbh->do( "DROP TABLE IF EXISTS fieldmapping" ); > >+ $dbh->do( "DELETE FROM user_permissions WHERE code='manage_keywords2koha_mappings'" ); >+ >+ $dbh->do( "DELETE FROM permissions WHERE code='manage_keywords2koha_mappings'" ); >+ > # Always end with this (adjust the bug info) > SetVersion( $DBversion ); > print "Upgrade to $DBversion done (Bug 11529 - Add medium, subtitle and part information to biblio table)\n"; >diff --git a/installer/data/mysql/userpermissions.sql b/installer/data/mysql/userpermissions.sql >index 9679c69f5b..6fc7ed4425 100644 >--- a/installer/data/mysql/userpermissions.sql >+++ b/installer/data/mysql/userpermissions.sql >@@ -18,7 +18,6 @@ INSERT INTO permissions (module_bit, code, description) VALUES > ( 3, 'manage_item_circ_alerts', 'Manage item circulation alerts'), > ( 3, 'manage_cities', 'Manage cities and towns'), > ( 3, 'manage_marc_frameworks', 'Manage MARC bibliographic and authority frameworks'), >- ( 3, 'manage_keywords2koha_mappings', 'Manage keywords to Koha mappings'), > ( 3, 'manage_classifications', 'Manage classification sources'), > ( 3, 'manage_matching_rules', 'Manage record matching rules'), > ( 3, 'manage_oai_sets', 'Manage OAI sets'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc >index 9953d98baf..9c30e7e04b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc >@@ -51,7 +51,7 @@ > </ul> > [% END %] > >- [% IF ( CAN_user_parameters_manage_keywords2koha_mappings || CAN_user_parameters_manage_marc_frameworks || CAN_user_parameters_manage_classifications || CAN_user_parameters_manage_matching_rules || CAN_user_parameters_manage_oai_sets || CAN_user_parameters_manage_item_search_fields || (Koha.Preference('SearchEngine') == 'Elasticsearch' && CAN_user_parameters_manage_search_engine_config) ) %] >+ [% IF ( CAN_user_parameters_manage_marc_frameworks || CAN_user_parameters_manage_classifications || CAN_user_parameters_manage_matching_rules || CAN_user_parameters_manage_oai_sets || CAN_user_parameters_manage_item_search_fields || (Koha.Preference('SearchEngine') == 'Elasticsearch' && CAN_user_parameters_manage_search_engine_config) ) %] > <h5>Catalog</h5> > <ul> > [% IF ( CAN_user_parameters_manage_marc_frameworks ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >index 0e40101085..1f44dfc0e3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -171,11 +171,6 @@ > Manage MARC bibliographic and authority frameworks and test them > </span> > <span class="permissioncode">([% name | html %])</span> >- [%- CASE 'manage_keywords2koha_mappings' -%] >- <span class="sub_permission manage_keywords2koha_mappings_subpermission"> >- Manage keywords to Koha mappings >- </span> >- <span class="permissioncode">([% name | html %])</span> > [%- CASE 'manage_classifications' -%] > <span class="sub_permission manage_classifications_subpermission"> > Manage classification sources and filing rules >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >index 8d7930af7b..006a311c88 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >@@ -108,7 +108,7 @@ > </div> > > <div class="col-md-6 sysprefs"> >- [% IF ( CAN_user_parameters_manage_keywords2koha_mappings || CAN_user_parameters_manage_marc_frameworks || CAN_user_parameters_manage_classifications || CAN_user_parameters_manage_matching_rules || CAN_user_parameters_manage_oai_sets || CAN_user_parameters_manage_item_search_fields || (Koha.Preference('SearchEngine') == 'Elasticsearch' && CAN_user_parameters_manage_search_engine_config) ) %] >+ [% IF ( CAN_user_parameters_manage_marc_frameworks || CAN_user_parameters_manage_classifications || CAN_user_parameters_manage_matching_rules || CAN_user_parameters_manage_oai_sets || CAN_user_parameters_manage_item_search_fields || (Koha.Preference('SearchEngine') == 'Elasticsearch' && CAN_user_parameters_manage_search_engine_config) ) %] > <h3>Catalog</h3> > <dl> > [% IF ( CAN_user_parameters_manage_marc_frameworks ) %] >-- >2.17.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11529
:
81930
|
81931
|
82024
|
82025
|
82026
|
82027
|
82028
|
82029
|
82088
|
82089
|
82090
|
82428
|
82429
|
82430
|
82431
|
82538
|
82539
|
82540
|
82541
|
82542
|
83103
|
83104
|
83105
|
83106
|
83107
|
83108
|
83961
|
83962
|
83963
|
83964
|
83965
|
83966
|
85587
|
85588
|
85589
|
85590
|
85591
|
85592
|
86677
|
86678
|
86679
|
86680
|
86681
|
86682
|
87248
|
87249
|
87250
|
87251
|
87252
|
87253
|
87256
|
87257
|
87258
|
87259
|
87260
|
87261
|
87911
|
87912
|
87913
|
87914
|
87915
|
87916
|
87917
|
87918
|
87919
|
88247
|
88248
|
88249
|
88250
|
88251
|
88252
|
88253
|
88254
|
88255
|
88256
|
88406
|
88407
|
88408
|
88409
|
88410
|
88411
|
88412
|
88413
|
88414
|
88415
|
88416
|
88433
|
88434
|
88435
|
88436
|
88437
|
88438
|
88439
|
88440
|
88441
|
88442
|
88443
|
88762
|
88763
|
88764
|
88765
|
88766
|
88767
|
88768
|
88769
|
88770
|
88771
|
88772
|
88851
|
88852
|
88853
|
88854
|
88855
|
88856
|
88857
|
88858
|
88859
|
88860
|
88861
|
88862
|
89096
|
89097
|
89098
|
89099
|
89100
|
89101
|
89102
|
89103
|
89104
|
89105
|
89106
|
89107
|
89234
|
89235
|
89236
|
89237
|
89238
|
89239
|
89240
|
89241
|
89242
|
89243
|
89244
|
89245
|
89246
|
91680
|
91681
|
91682
|
91683
|
91684
|
91685
|
91686
|
91687
|
91688
|
91689
|
91690
|
91691
|
91692
|
91824
|
91825
|
91826
|
91827
|
91828
|
91829
|
91830
|
91831
|
91832
|
91833
|
91834
|
91835
|
91836
|
91837
|
92016
|
92019
|
92020
|
105667
|
105672