Gizra / euei-euwi-migrate

Migrate from euei.net and euwi.net to C4D
0 stars 0 forks source link

Documents with >1 attachment #163

Closed Katya-cap4dev closed 9 years ago

Katya-cap4dev commented 9 years ago

Continued from https://github.com/Gizra/euei-euwi-migrate/issues/71

@amitaibu we should really think how to tackle this. We can't just migrate the first attachment and drop the rest (example http://www.euwi.net/africa/document/meeting-report/report-awg-meeting-29-august-2012-stockholm-rapport-r%C3%A9union-gta-29-ao%C3%BBt-2012-stockholm.html -> http://dev-c4d.pantheon.io/euwi-africa/document/meeting-report/report-awg-meeting-29-august-2012-stockholm-rapport-r%C3%A9union-gta-29-ao%C3%BBt-2012-stockholm)

Can we either (1) zip all attachments and attach the zip to the document item or (2) do an iteration of the document item for each of the attached files? Are there any other options?

@adevanssay @ckorakas

amitaibu commented 9 years ago

@YuriGizra please create a zip from the files

solker commented 9 years ago

@Katya-cap4dev Many files will be in one zip in next update. (PR #181)

solker commented 9 years ago

@Katya-cap4dev now all documents archived in a zip archive. Can we close this issue?

Katya-cap4dev commented 9 years ago

@solker there seems to be an issue still.. Example: http://dev-c4d.pantheon.io/euwi-africa/document/meeting-report/report-awg-meeting-29-august-2012-stockholm-rapport-r%C3%A9union-gta-29-ao%C3%BBt-2012-stockholm. I download the zip but when I open it it's empty (0 items).

Same for http://dev-c4d.pantheon.io/euwi-africa/document/highlighted/euwi-africa-working-group-meeting-cairo-5th-june-2013-r%C3%A9union-de-l-%C2%B4iee-gta-au-caire-le-5-juin-2013..

Any idea what the problem is?

solker commented 9 years ago

@Katya-cap4dev for me these zip archives contain files. May you have antivirus that block it or your ZIP unpacker is broken. Hard to say. Please test from another place.

solker commented 9 years ago

zip

Katya-cap4dev commented 9 years ago

@solker thanks, I tried it from home and I have the same problem. I have asked @ckorakas to test it from inside the European Commission. I'll update you tomorrow.

Katya-cap4dev commented 9 years ago

@solker we tried it with 7zip and the files are there. However, the folder in which the files are bundled seems to have no name, which could be a problem depending on the archiver I guess.. Can we fix that so that the folder which is zipped is not nameless?

zip

solker commented 9 years ago

@YuriGizra is your task, check please.

YuriGizra commented 9 years ago

Fixed. Checked in Windows. selection_042 selection_043 selection_044

It will be available to next update.

YuriGizra commented 9 years ago

Checked one more time from pantheon. Archives is opening normally (on Windows too). selection_049

@Katya-cap4dev Please check it. Thanks

Katya-cap4dev commented 9 years ago

@solker @YuriGizra Great, thanks.