Hi Devin,

In data venerdì, 13 luglio 2012 14.39:29, Devin Bougie ha scritto:
> Hi, All.  We've had a few requests to update the Default HTML brief template 
so that it shows the filename instead of just the file extension.  Is the best 
approach for use to modify the BFE_FULLTEXT element, or is there another 
element we should use or better approach to take?

indeed bfe_fulltext.py is *the* way to display files and is somehow complex 
and implementing several contrasting requests we received in the past :-)

Currently it shows only the extension, but only if there is a single document. 
If it needs to distinguish among several documents attached to the same record 
then it will display the full name.

One way could be that you clone this element into a private one, say 
bfe_cornell_fulltext.py and you do the modification you wish.

Alternatively, you can propose a patch for integration, where you can add a 
new flag to the format function of bfe_fulltext, that could let the admin to 
choose whether to enforce the above described behaviour.

Meanwhile I can ticketize this request, so that we can take note of your wish, 
but if you need urgently, feel free to choose either of the above approaches.

Cheers!
        Sam
-- 
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>

Reply via email to