Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Make #282996: FileField support for Biblio? configurable? There are cases where some attached files are out of context in the biblio search results - whether core upload or filefield.
This patch adds a new configuration to the biblio main settings - defaulting to 'Display files' - the files can now be hidden by un-checking this setting.
Comment | File | Size | Author |
---|---|---|---|
#1 | biblio_526740.patch | 2.48 KB | scottrigby |
Comments
Comment #1
scottrigbypatch attached
Comment #2
scottrigby:p
Comment #3
rjerome CreditAttribution: rjerome commentedHow does this differ from the biblio user permission "show download links" on the admin/user/permissions page?
Comment #4
scottrigbyHi Ron,
The main difference is... the existing permissions are better! I can't believe i missed that
Initially I looked in biblio_theme.inc and the only access check i saw in theme_biblio_download_links() was 'view uploaded files' - the other permissions must be called from elsewhere & so I just missed em.
The reason i went the route of adding a new config to the settings form is it seemed in line with the way other elements (like links) are configured to display - but permissions are actually better for files, so ... thanks :)
Good luck with the rest of the port ("bibliographizing" cck fields etc)
Comment #5
Aren Cambre CreditAttribution: Aren Cambre commentedAlso duplicated by #682044: Support fields (CCK) in D7 Bibliography Module. :-)