Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Danny Froberg
bolistfileparser
Commits
823b896b
Commit
823b896b
authored
Oct 21, 2019
by
Danny Froberg
💬
Browse files
Mash everything together in the import directory and use proper V for vilma files
parent
c37a7841
Changes
1
Hide whitespace changes
Inline
Side-by-side
parse.php
View file @
823b896b
...
...
@@ -463,7 +463,7 @@ foreach ( $desc_files as $filename ) {
}
else
{
// Bolist with updated articles.
$bo_destination_subdir
=
'bolist_upd'
;
$bo_destination_unpack
=
$directory
[
'base'
]
.
$bo_destination_subdir
.
'/'
;
$bo_destination_unpack
=
'I:/'
;
//
$directory['base'] . $bo_destination_subdir . '/';
}
$bo_source_zip_path
=
$zipfil
;
$bo_source_zip_name
=
$zipfile
[
'filename'
];
...
...
@@ -477,7 +477,7 @@ foreach ( $desc_files as $filename ) {
$bo_source_zip_path
=
$zipfil
;
$bo_source_zip_name
=
$zipfile
[
'filename'
];
$bo_destination
=
$directory
[
'base'
]
.
$bo_destination_subdir
.
'/'
.
$zipfil_namn
;
$bo_destination_unpack
=
$directory
[
'base'
]
.
$bo_destination_subdir
.
'/'
;
$bo_destination_unpack
=
'I:/'
;
//
= $directory['base'] . $bo_destination_subdir . '/';
$bo_vilma_identifier
=
$bo_destination_unpack
.
'F'
.
$zipfil_num
.
'.TXT'
;
}
// Parse and move everything where it needs to be
...
...
@@ -488,7 +488,7 @@ foreach ( $desc_files as $filename ) {
if
(
$bo_destination_subdir
!==
'other'
)
{
// $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'
;
$bo_vilma_identifier_new
=
$bo_destination_unpack
.
'
V
'
.
$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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment