Commit 23e4cb17 authored by etienne.famery's avatar etienne.famery
Browse files

Add numsuivi metadata

parent b9037351
......@@ -24,6 +24,7 @@ $rootDir = (string) $configXml->xpath('/root/config/directories/source')[0];
$doneDir = (string) $configXml->xpath('/root/config/directories/done')[0];
$errorDir = (string) $configXml->xpath('/root/config/directories/errors')[0];
$doctype = (string) $configXml->xpath('/root/config/doctype')[0];
$numsuiviidfield = (int) $configXml->xpath('/root/config/numsuiviidfield')[0];
$rootDir = rtrim($rootDir, '/');
$doneDir = rtrim($doneDir, '/');
......@@ -137,6 +138,7 @@ foreach ($xmlPaths as $xmlI => $xmlPath) {
$arrivalDate = (string) $xml->xpath('/Root/ScanDateTime')[0];
$hashAlgo = (string) $xml->xpath('/Root/TimeStampHashAlgorithm')[0];
$archiveboxid = (string) $xml->xpath('/Root/ArchiveBoxID')[0];
$numSuiviFF = (int) $xml->xpath('/Root/NumSuiviFF')[0];
$resId = null;
$errorCode = null;
......@@ -220,6 +222,7 @@ foreach ($xmlPaths as $xmlI => $xmlPath) {
$docnamefield => $parts[0],
$maindocconstfield => 'Courrier entrant principal',
$archiveboxidfield => $archiveboxid,
$numsuiviidfield => $numSuiviFF
],
];
$res = curlRequest($resource, $MAARCH_WS_URL.'resources', null, 'POST');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment