Closed GraemeWatt closed 1 year ago
Thanks! Just copying in a comment that I made by private email:
It'd be nice if it was easy to include the collaborations (e.g. joined with a ", " or "+" string) if non-null, as I think that's the most distinctive piece of info. It also teds to be short, as is the year, hence my suggestion of putting them at the start so they'll be visible in a cut-off title display, regardless of the title length. But if getting the collab name(s) is awkward in the templating, then having the title and year is also great: I would just suggest putting them in the opposite order for the reason above. Thanks!
Suggestion from @agbuckley:
The current title "HEPData" seems to come from the
THEME_SITENAME
variable, which is set as thetitle
byinvenio-theme
. There's some existing code inpublication_record.html
dating from 2015/2016 that tries to include the paper title in the<title>
tag: https://github.com/HEPData/hepdata/blob/18881a42b8e4b62e5c6dc20790b3437d3c0c6806/hepdata/modules/records/templates/hepdata_records/publication_record.html#L28-L30But this doesn't seem to be working. I think the corrected code would be something like:
There's also some commented-out code that sets the title: https://github.com/HEPData/hepdata/blob/18881a42b8e4b62e5c6dc20790b3437d3c0c6806/hepdata/modules/records/templates/hepdata_records/publication_record.html#L22-L24
I'm going to use the latter method to set page-specific
<title>
tags for records and other pages.