Skip to content
Snippets Groups Projects
Commit 945d51c4 authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

Merge branch 'develop' into 'Support/2.9.X'

Develop

See merge request !781
parents 567ac6e2 64fb881d
No related branches found
No related tags found
3 merge requests!838Rebase develop,!835Support/2.9.x,!781Develop
Pipeline #22767 failed
# CHANGELOG # CHANGELOG
## Version 2.9.4
- `Added` Gestion des paramètres dans le connecteur de transformation PDF afin de générer d'autres versions que le PDF-A1
- `Changed` Ajout de la version du format dans les sélecteurs de l'écran de création de règle de conversion pour éviter les confusions si le nom du format est réutilisé (cas du PDF-A)
- `Fixed` Erreur dans l'écran d'édition des profils utilisateurs lorsque l'adresse de courriel comportait des majuscules
- `Fixed` Erreur de libellé pour la gestion des archives et du plan de classement dans la recherche d'événement de l'application
## Version 2.9.3 ## Version 2.9.3
- `Added` Connecteur de transformation PDF 1.0 à 1.7 et 2.0 vers PDF-A - `Added` Connecteur de transformation PDF 1.0 à 1.7 et 2.0 vers PDF-A
- `Added` Critère de recherche avancé "identifiant métier" sur l'écran principal - `Added` Critère de recherche avancé "identifiant métier" sur l'écran principal
......
2.9.3 2.9.4
...@@ -879,7 +879,22 @@ conversionServices = "[ ...@@ -879,7 +879,22 @@ conversionServices = "[
'softwareVersion' : '10.0', 'softwareVersion' : '10.0',
'inputFormats' : ['fmt/14', 'fmt/15', 'fmt/16', 'fmt/17', 'fmt/18', 'fmt/19', 'fmt/20', 'fmt/276', 'fmt/1129'], 'inputFormats' : ['fmt/14', 'fmt/15', 'fmt/16', 'fmt/17', 'fmt/18', 'fmt/19', 'fmt/20', 'fmt/276', 'fmt/1129'],
'outputFormats' : { 'outputFormats' : {
'fmt/95' : {} 'fmt/95' : {
'-dPDFSETTINGS' : '/prepress',
'-dNOOUTERSAVE' : null,
'-sColorConversionStrategy' : 'UseDeviceIndependentColor',
'-sProcessColorModel' : 'DeviceRGB',
'-dPDFA' : null,
'-sPDFACompatibilityPolicy' : '1'
},
'fmt/480' : {
'-dPDFSETTINGS' : '/prepress',
'-dNOOUTERSAVE' : null,
'-sColorConversionStrategy' : 'UseDeviceIndependentColor',
'-sProcessColorModel' : 'DeviceRGB',
'-dPDFA' : '3',
'-sPDFACompatibilityPolicy' : '1'
}
} }
} }
]" ]"
......
...@@ -38,9 +38,9 @@ class GhostScript implements \dependency\fileSystem\conversionInterface ...@@ -38,9 +38,9 @@ class GhostScript implements \dependency\fileSystem\conversionInterface
{ {
$psFile = $this->convertPdfToPs($srcfile); $psFile = $this->convertPdfToPs($srcfile);
$pdfAfile = $this->convertPsToPdf($psFile, $options); $pdfFile = $this->convertPsToPdf($psFile, $options);
return $pdfAfile; return $pdfFile;
} }
public function convertPdfToPs($srcfile, $options = null) public function convertPdfToPs($srcfile, $options = null)
...@@ -72,7 +72,7 @@ class GhostScript implements \dependency\fileSystem\conversionInterface ...@@ -72,7 +72,7 @@ class GhostScript implements \dependency\fileSystem\conversionInterface
throw new \dependency\fileSystem\Exception("error during conversion $command", $return, null, $output); throw new \dependency\fileSystem\Exception("error during conversion $command", $return, null, $output);
} }
public function convertPsToPdf($srcfile, $options = null) public function convertPsToPdf($srcfile, $options = [])
{ {
$filename = pathinfo($srcfile, PATHINFO_FILENAME); $filename = pathinfo($srcfile, PATHINFO_FILENAME);
$outfile = \laabs::getTmpDir().DIRECTORY_SEPARATOR.$filename.'.pdf'; $outfile = \laabs::getTmpDir().DIRECTORY_SEPARATOR.$filename.'.pdf';
...@@ -82,12 +82,13 @@ class GhostScript implements \dependency\fileSystem\conversionInterface ...@@ -82,12 +82,13 @@ class GhostScript implements \dependency\fileSystem\conversionInterface
$tokens[] = "-dNOPAUSE"; $tokens[] = "-dNOPAUSE";
$tokens[] = "-sDEVICE=pdfwrite"; $tokens[] = "-sDEVICE=pdfwrite";
$tokens[] = "-dPDFSETTINGS=/prepress"; foreach ($options as $name => $value) {
$tokens[] = "-dNOOUTERSAVE"; $token = $name;
$tokens[] = "-sColorConversionStrategy=UseDeviceIndependentColor"; if ($value !== null) {
$tokens[] = "-sProcessColorModel=DeviceRGB"; $token .= '='.$value;
$tokens[] = "-dPDFA"; }
$tokens[] = "-sPDFACompatibilityPolicy=1"; $tokens[] = $token;
}
$tokens[] = '-sOutputFile="'.$outfile.'"'; $tokens[] = '-sOutputFile="'.$outfile.'"';
$tokens[] = '"'.$srcfile.'"'; $tokens[] = '"'.$srcfile.'"';
......
...@@ -35,11 +35,11 @@ msgstr "Organisation" ...@@ -35,11 +35,11 @@ msgstr "Organisation"
msgctxt "bundle" msgctxt "bundle"
msgid "recordsManagement" msgid "recordsManagement"
msgstr "Gestion des objets numériques" msgstr "Gestion des archives numériques"
msgctxt "bundle" msgctxt "bundle"
msgid "filePlan" msgid "filePlan"
msgstr "Gestion des objets numériques" msgstr "Plan de classement des producteurs"
msgctxt "bundle" msgctxt "bundle"
msgid "medona" msgid "medona"
......
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
} }
function validateEmail($email) { function validateEmail($email) {
var emailReg = /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/; var emailReg = /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/i;
return emailReg.test($email); return emailReg.test($email);
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<select class="form-control" id="puid" name="puid"> <select class="form-control" id="puid" name="puid">
<option value="">Select a format</option> <option value="">Select a format</option>
<?merge inputFormats ?> <?merge inputFormats ?>
<option value="[?merge .puid ?]"><?merge .name ?></option> <option value="[?merge .puid ?]"><?merge .name ?> <?merge .version ?></option>
</select> </select>
</div> </div>
<div class="form-group"> <div class="form-group">
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
$.each(outputFormats, function(key, value){ $.each(outputFormats, function(key, value){
var option = $(document.createElement('option')); var option = $(document.createElement('option'));
option.val(key); option.val(key);
option.text(value.name); option.text(value.name+' '+value.version);
option.prependTo($("#targetPuid")); option.prependTo($("#targetPuid"));
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment