Bug 12403: Add the new permission tools_records_batchdelitem
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 4 Sep 2013 14:04:30 +0000 (16:04 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 7 Nov 2014 18:25:52 +0000 (15:25 -0300)
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
installer/data/mysql/de-DE/mandatory/userpermissions.sql
installer/data/mysql/en/mandatory/userpermissions.sql
installer/data/mysql/es-ES/mandatory/userpermissions.sql
installer/data/mysql/fr-FR/1-Obligatoire/userpermissions.sql
installer/data/mysql/it-IT/necessari/userpermissions.sql
installer/data/mysql/nb-NO/1-Obligatorisk/userpermissions.sql
installer/data/mysql/pl-PL/mandatory/userpermissions.sql
installer/data/mysql/ru-RU/mandatory/permissions_and_user_flags.sql
installer/data/mysql/uk-UA/mandatory/permissions_and_user_flags.sql
installer/data/mysql/updatedatabase.pl

index 0e16281..534fbdf 100644 (file)
@@ -50,6 +50,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'upload_local_cover_images', 'Eigene Coverbilder hochladen'),
    (13, 'manage_patron_lists', 'Benutzerlisten anlegen, bearbeiten und löschen'),
    (13, 'marc_modification_templates', 'Templates für MARC-Modifikationen verwalten'),
+   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
    (15, 'check_expiration', 'Ablauf eines Abonnements prüfen'),
    (15, 'claim_serials', 'Fehlende Hefte reklamieren'),
    (15, 'create_subscription', 'Neue Abonnements anlegen'),
index ba5ccd0..5817499 100644 (file)
@@ -50,6 +50,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'upload_local_cover_images', 'Upload local cover images'),
    (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
    (13, 'marc_modification_templates', 'Manage marc modification templates'),
+   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
    (15, 'check_expiration', 'Check the expiration of a serial'),
    (15, 'claim_serials', 'Claim missing serials'),
    (15, 'create_subscription', 'Create a new subscription'),
index 0564d93..efc1d68 100644 (file)
@@ -50,6 +50,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'upload_local_cover_images', 'Upload local cover images'),
    (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
    (13, 'marc_modification_templates', 'Manage marc modification templates'),
+   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
    (15, 'check_expiration', 'Check the expiration of a serial'),
    (15, 'claim_serials', 'Claim missing serials'),
    (15, 'create_subscription', 'Create a new subscription'),
index 31faf15..5aa224b 100644 (file)
@@ -50,6 +50,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'items_batchdel', 'Supprimer les exemplaires par lot'),
    (13, 'upload_local_cover_images', 'Téléchargement des images de couverture'),
    (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
+   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
    (15, 'check_expiration', 'Contrôler l''expiration d''un périodique'),
    (15, 'claim_serials', 'Réclamer les périodiques manquants'),
    (15, 'create_subscription', 'Créer de nouveaux abonnements'),
index 5c58e1f..cb745e7 100644 (file)
@@ -50,6 +50,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'upload_local_cover_images', 'Carica copertine in locale'),
    (13, 'manage_patron_lists', 'Aggiungi, modifica e cancella le liste utenti e i loro contenuti'),
    (13, 'marc_modification_templates', 'Gestisci le modifiche sulle griglie di catalogazione MARC'),
+   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
    (15, 'check_expiration', 'Controlla la scadenza di una risora in continuazione'),
    (15, 'claim_serials', 'Richiedi i fascicoli non arrivati'),
    (15, 'create_subscription', 'Crea un nuovo abbonamento'),
index dfe5ebb..1b49fee 100644 (file)
@@ -70,6 +70,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'upload_local_cover_images', 'Laste opp lokale omslagsbilder'),
    (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
    (13, 'marc_modification_templates', 'Manage marc modification templates'),
+   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
    (15, 'check_expiration', 'Sjekke utløpsdato for et periodikum'),
    (15, 'claim_serials', 'Purre manglende tidsskrifthefter'),
    (15, 'create_subscription', 'Opprette abonnementer'),
index b9fbee4..aed4822 100644 (file)
@@ -51,6 +51,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'rotating_collections', 'Manage rotating collections'),
    (13, 'upload_local_cover_images', 'Upload local cover images'),
    (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
+   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
    (15, 'check_expiration', 'Check the expiration of a serial'),
    (15, 'claim_serials', 'Claim missing serials'),
    (15, 'create_subscription', 'Create a new subscription'),
index 22f51a0..8286e98 100644 (file)
@@ -76,6 +76,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'upload_local_cover_images', 'Upload local cover images'),
    (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
    (13, 'marc_modification_templates', 'Manage marc modification templates'),
+   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
    (15, 'check_expiration',            'Check the expiration of a serial'),
    (15, 'claim_serials',               'Claim missing serials'),
    (15, 'create_subscription',         'Create a new subscription'),
index 1ee4c86..19d6d17 100644 (file)
@@ -76,6 +76,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'upload_local_cover_images', 'Upload local cover images'),
    (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
    (13, 'marc_modification_templates', 'Manage marc modification templates'),
+   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
    (15, 'check_expiration',            'Check the expiration of a serial'),
    (15, 'claim_serials',               'Claim missing serials'),
    (15, 'create_subscription',         'Create a new subscription'),
index 2e539e6..5531faf 100755 (executable)
@@ -9408,6 +9408,21 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
+
+$DBversion = "3.15.00.XXX";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q|
+        INSERT INTO permissions (module_bit, code, description) VALUES
+          (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)')
+    |);
+    print "Upgrade to $DBversion done (Bug 12403: Add permission tools_records_batchdelitem)\n";
+    SetVersion($DBversion);
+}
+
+
+
+
+
 =head1 FUNCTIONS
 
 =head2 TableExists($table)