MT2116, Follow-up: CSV Export, fix backporting bugs
authorPaul Poulain <paul.poulain@biblibre.com>
Mon, 1 Feb 2010 16:44:21 +0000 (17:44 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 10 Feb 2010 13:01:30 +0000 (14:01 +0100)
C4/Koha.pm
C4/Record.pm
installer/data/mysql/fr-FR/1-Obligatoire/userpermissions.sql

index dc10a6e..544f3a2 100644 (file)
@@ -1110,7 +1110,7 @@ sub GetKohaAuthorisedValuesFromField {
   my $dbh = C4::Context->dbh;
   my $avcode = GetAuthValCodeFromField($field, $subfield, $fwcode);
   if ($avcode) {  
-       my $sth = $dbh->prepare("select authorised_value, lib, lib_opac from authorised_values where category=? ");
+       my $sth = $dbh->prepare("select authorised_value, lib  from authorised_values where category=? ");
        $sth->execute($avcode);
        while ( my ($val, $lib, $lib_opac) = $sth->fetchrow_array ) { 
                $values{$val} = ($opac && $lib_opac) ? $lib_opac : $lib;
index 65f3f7a..bce362b 100644 (file)
@@ -360,7 +360,6 @@ sub marc2csv {
         ($preprocess,$postprocess, $fieldprocessing) = YAML::LoadFile($configfile);
     }
 
-    warn $fieldprocessing;
     # Preprocessing
     eval $preprocess if ($preprocess);
 
index 5fea3a8..785b5e3 100644 (file)
@@ -16,6 +16,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower reading history)'),
    (13, 'batch_upload_patron_images', 'Upload patron images in batch or one at a time'),
    (13, 'schedule_tasks', 'Schedule tasks to run'),
+   (13, 'manage_csv_profiles', 'Manage CSV export profiles'),
    (15, 'check_expiration', 'Check the expiration of a serial'),
    (15, 'claim_serials', 'Claim missing serials'),
    (15, 'create_subscription', 'Create a new subscription'),