Hi Samuele,

On Jul 13, 2012, at 11:15 AM, Samuele Kaplun wrote:
> 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 :-)

I certainly understand, and am sorry for contributing to the conflicting 
requests =).

> 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.

I may have misunderstood this, but it looks like it's only showing the 
extension even if there are multiple documents in a single record.  For 
example, see the listing for record 74 ("Quasinormal modes of 
Reissner-Nordstrom Anti-de Sitter Black Holes") in your demo site:
http://invenio-demo.cern.ch/search?cc=Articles&ln=en&jrec=11

> 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.

Thank you for your followup and suggestions.

Sincerely,
Devin

Reply via email to