Dear Devin,

On 08/27/2010 01:52 AM, Devin Bougie wrote:
[...] We seem to see a different representation of attachments for
records that were created using bibupload versus records created
using the Invenio web interface. [...]

One possible explanation is the following one:

The default <bfe_fulltext /> tries to identify a "main" file among the
attached files. To do that the element checks the "doctypes" of the
files of the record. These doctypes are visible for eg. when displaying the "Fulltext" tab of a record. See for eg.
<http://invenio-demo.cern.ch/record/88/files/>
If a "Main" doctype can be identified, main files are displayed while
other non-main files are just linked with an "additional files" link
(your "result 10"). When no "main" file is found, all files are displayed (your "result 11"). This technique is used to shorten
the list of displayed files and put less emphasis on possibly less
important files.

<http://invenio-software.org/code-browser/invenio.bibformat_elements.bfe_fulltext-module.html#format>

Probably that the initial file of "record 10" was bibuploaded using the
"Main" doctype, and additional files were added with a different
doctype. In the case of "record 11" I suspect that none of the files
were uploaded as "Main" doctype.

The reason is that the sample WebSubmit workflows provided with the
default Invenio installation use the "Move_Files_to_Storage" function
to attach the files. This function does not let you specify the doctype
of the files, and instead use the name of WebSubmit upload file
elements (for eg. "DEMOART_FILE").

Note the following:

1) The 'Move_Files_to_Storage' function has been recently enhanced (not
yet available in the Invenio repository) to support definition of
custom doctypes.

2) Alternative (more flexible) ways to upload files are introduced in
the next Invenio release. An updated WebSubmit admin guide provides a
full explanation on all the possible techniques to upload files, with
step-by-step instructions.

3) The <bfe_fulltext /> element would gain to be more customizable. It should probably inherit from the same feature described in the following ticket, which was only applied to <bfe_fulltext_mini />
<http://invenio-software.org/ticket/136>

Best regards
--
Jerome Caffaro

Reply via email to