In http://groups.drupal.org/node/2829, I found:

Finally, for each author field you can choose a set of author roles. Assigning different roles to authors within the same field, e.g. primary and secondary authors within the authors field, allows to theme them differently.

So, I changed the tertiary author type on:
admin/config/content/biblio/author/type

to "Corresponding Author" (that's what I want to display bold)

I then edited a publication, and changed the "Role". No changed on the page.

I was foolishly hoping that a different css element just shows up magically, but alas, all authors still look very much the same.

When I change the "Category", I get indeed a change: the author is not anymore display in the view, but as "Tertiary Author" (that's what I changed it to) on the full page for the publication. So that's also not what I wanted.

Any tips on how to achieve this?

Comments

ursula’s picture

StatusFileSize
new68.49 KB
new41.46 KB
new25.36 KB

More information:

I realized that I can retrieve all fields separately in views. At least that's what I thought. However, when I choose the field "Secondary Author", all authors are being displayed (see attached screen shots). That puzzles me.
Any clarification would be highly appreciated!

ursula’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new840 bytes

I looked at the code, and didn't find the a place where classes would be added for different author roles.
So this is what I did to make it work for my purposes:

In admin/config/content/biblio/author/type, I added a new type (type id: 23, Contributor type: Corresponding Author).

I then edited the publication, where I wanted to change the style of the corresponding author(s):
Leave "Category" as "Primary", change "Role" to "Corresponding Author".

I patched biblio_theme.inc (patch attached) to include a class biblio_auth_type_{type_id}
Voila - I can now theme the authors according to their role.

I don't know whether this is of general use. For most people it would just add unwanted extra css. It's up to the maintainers whether it should get included. However, please comment whether you will or will not, and I'll edit the documentation (http://groups.drupal.org/node/2829) accordingly, since it is currently misleading.

If there is a different way to theme different author roles that I didn't find, please ignore the patch and all my rambling and comment with a pointer.

liam morland’s picture

Issue summary: View changes
Status: Patch (to be ported) » Needs review
liam morland’s picture

Category: Support request » Feature request

Status: Needs review » Needs work