Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I needed to display keywords in the default biblio listing to make it easier to navigate for project participants. So I created a new display style (see attached).
While I was at it, I also changed the way authors are listed so that it follows the following rules:
1 Author: Author1
2 Authors: Author1; and Author2
3 and more Authors: Author1; Author2; and Author3
If anybody's created more styles, this may be a good place to share.
Comment | File | Size | Author |
---|---|---|---|
#8 | biblio_style_easysort.inc_.txt | 2.62 KB | techczech |
#1 | biblio_style_project2.inc_.txt | 2.22 KB | techczech |
biblio_style_project.inc_.txt | 2.55 KB | techczech |
Comments
Comment #1
techczech CreditAttribution: techczech commentedIn case anyone's interested. Here's the same thing again but with authors separated by pipes '|'.
Comment #2
csc4 CreditAttribution: csc4 commentedIt would be great if this was built into the settings of the module somewhere - or else themeable
Comment #3
rjerome CreditAttribution: rjerome commentedI'm not sure I follow, it would be great it what was built into the settings?
Comment #4
techczech CreditAttribution: techczech commentedI think what csc4 is referring to is the possibility to customize the display of references along the lines what you can do in EndNote (and others). Your new update with the possibility for overriding the CSS may go a long way toward something like that. I think, perhaps, that a better documentation of how to change the style files might be a good interim measure. I'm rather busy at the moment but I will try to put something together on the Wiki - http://groups.drupal.org/node/2829.
Comment #5
csc4 CreditAttribution: csc4 commentedSorry - I was a little inscrutable!
I was thinking that the delimiter character could easily be in the settings.
I also thought that a couple of different listing styles for the authors might be possible to be a setting for those not comfortable with CSS changes.
Comment #6
techczech CreditAttribution: techczech commentedWell, that's extremely easy to do in the style I posted. Just change
to
In the biblio_style_project.inc I posted. Probably not worth creating a setting for. You can just create a comma style and semi-colon style.
Comment #7
rjerome CreditAttribution: rjerome commentedDominik,
I could include those styles with the distribution, but we would have to come up with some sort of name for them (something a little more meaningful than project and project2). Let me know what you think.
Ron.
Comment #8
techczech CreditAttribution: techczech commentedRon,
I made these to make it easier for project participants to sort through results (see http://linux1.care.uea.ac.uk/uta/bibliography) so maybe the name "Easy sort" might be descriptive of that. The way the authors are listed is really independent of that so it might be better moved to a separate setting along the lines of normalize author names. However, I'm not sure where that would best live. The code for changing the author names is this:
I attach the generic easy sort style, as it might go in with biblio. Here are the CSS style definitions that go with it:
Comment #9
catdevrandom CreditAttribution: catdevrandom commented