fix bug in zip generation; add links to pdf

There was no check of the upload type when items got attached to the zip
archive.

The linked items will be displayed now.