Commit c37a7841 authored by Danny Froberg's avatar Danny Froberg 💬
Browse files

Defenition MAP for sorting

parent eca8a67d
......@@ -112,3 +112,104 @@ $excel_art_row = Array(
'EXCELART;111;varchar;5;1;26;0;;;26;61;0;1;0',
);
$lev_konvert_vilma_type = Array(
'8369480' => '2BK04',
'4805032' => '2BK04',
'51327575' => '3BK04',
'1490242' => '3BK04',
'3605581' => '3BK04',
'7425374' => '3BK04',
'4276481' => '3BK04',
'5695358' => '3BK04',
'8369480' => '3BK04',
'4139739' => '3BK04',
'110205' => '3BK04',
'59961540' => '3BK04',
'53096509' => '3BK04',
'55426746' => '3BK04',
'6429997' => '3BK04',
'9198995' => '3BK04',
'599615402' => '4BK04',
'6429997' => '4BK04',
'59197640' => '5BK04',
'54294004' => '5BK04',
'50897537' => '5BK04',
'58736117' => '5BK04',
'50273614' => '5BK04',
'6508733' => 2,
'55502470' => 2,
'58377532' => 2,
'5628409' => 2,
'4805032' => 2,
'9224601' => 3,
'4346276' => 3,
'7799067' => 3,
'5003611' => 3,
'5695358' => 3,
'1440254' => 3,
'2889046' => 3,
'1614015' => 3,
'5058995' => 3,
'5312566' => 3,
'56814056' => 3,
'6401749' => 3,
'7074727' => 3,
'56804578' => 3,
'6980692' => 3,
'8413916' => 3,
'53104113' => 3,
'2379576' => 3,
'7932049' => 3,
'3649894' => 3,
'4661179' => 3,
'52664786' => 3,
'2347003' => 3,
'50331388' => 3,
'55103782' => 3,
'2200426' => 3,
'9674359' => 3,
'9831124' => 3,
'8261638' => 3,
'8494007' => 3,
'3615184' => 3,
'1564137' => 3,
'58467150' => 3,
'5628409' => 3,
'55088397' => 3,
'2926699' => 3,
'4552766' => 3,
'2796803' => 3,
'2200426' => 4,
'6022917' => 4,
'53096509' => 4,
'53982898' => 4,
'5426531' => 4,
'2930774' => 4,
'6401400' => 4,
'59197640' => 4,
'2838050' => 4,
'6980601' => 4,
'3649894' => 4,
'7384399' => 4,
'57243206' => 4,
'6713176' => 4,
'53815395' => 4,
'56799745' => 4,
'8261638' => 4,
'1221012680' => 4,
'4375804' => 4,
'8706863' => 4,
'2927010' => 4,
'4538625' => 4,
'58902818' => 4,
'58091224' => 4,
'59514851' => 4,
'1860667' => 4,
'50095041' => 4,
'8597106' => 4,
'5455795' => 4,
'6508733' => 4,
'50897537' => 5,
'1534999' => 5,
'4552766' => 5,
);
......@@ -486,12 +486,14 @@ foreach ( $desc_files as $filename ) {
//unlink( $zipfile['filename'] );
// Only do VILMA classification if it's an actual VILMA file.
if( $bo_destination_subdir !== 'other') {
$bo_vilma_typ = identify_vilma_filter( $bo_vilma_identifier );
// $bo_vilma_typ = identify_vilma_filter( $bo_vilma_identifier );
$bo_vilma_typ = $lev_konvert_vilma_type[$zipfile['levnr']];
$bo_vilma_identifier_new = $bo_destination_unpack .'F' . $zipfil_num.'_' . $bo_vilma_typ.'_'. $zipfile['levname'] . '.TXT';
rename( $bo_vilma_identifier, $bo_vilma_identifier_new);
prlog( $bo_vilma_identifier_new);
prlog ("Vilma typ: " . $bo_vilma_typ );
} else {
prlog( $bo_vilma_identifier);
prlog("Vilma typ: EJ VILMA");
}
unlink( $bo_source_zip_path );
......@@ -499,6 +501,7 @@ foreach ( $desc_files as $filename ) {
}
}
}
prlog( '-------------------------------------------------');
}
prlog( "\nParser complete: ");
// Finalize and cleanup
......
Markdown is supported
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