0
Beantwortet

Change "type" display names?

Christopher Rozell vor 9 Jahren aktualisiert von Christian Fritz vor 8 Jahren 9
Is there yet a way to change the display of the groupings for the "type"? This is one of the main things preventing me from using bibbase. My default is to display Journal and Conference Papers. The type grouping separates them properly, but it labels them with the bibtex language "article" and "inproceedings". Basically, I just need to change the words that are displayed in the headings. I saw the suggestion of doing this through a new keyword in the bibtex entry. In addition to being time consuming to add, in my tests of this, I can't control the sort order of these keywords. So, my keyword for Journal Papers gets sorted behind (and buried under) my keyword for Conference Papers.

Antwort

Antwort
Beantwortet
Yes, this can be accomplished using CSS. Just drop the following into the CSS file on your page:

.bibbase_group span {
display: none;
}
#group_article div i:after {
content: " Journal Articles"
} #group_inproceedings div i:after {
content: " Conference Publications"
}
Similarly you would need to set new titles for the other groups (incollection, book, etc.).



Antwort
Beantwortet
Yes, this can be accomplished using CSS. Just drop the following into the CSS file on your page:

.bibbase_group span {
display: none;
}
#group_article div i:after {
content: " Journal Articles"
} #group_inproceedings div i:after {
content: " Conference Publications"
}
Similarly you would need to set new titles for the other groups (incollection, book, etc.).



Thank you for the quick reply. I have added this and it does change the titles when grouping by type (thanks!). But, when using the menu to change the grouping to anything else (eg, year), the group labels are removed as well. Is there any way to make the ".bibbase_group span" part only apply to the case that they are sorted by type?


Maybe a more general question: is there a list of every css style element that bibbase uses? It seems like new things get mention in comments on this board, but I don't know how to find a comprehensive list of everything I have control over in the display via css. Thank you!
Good point. Yes, it would probably be better to only selectively remove titles. You can use

#group_article div span {
   display: none;
}
and similarly for all other titles you'd like to replace.

Yes and no. There is such a list, on every bibbase page out there, but there is no explicit documentation. CSS is sort of self-documenting, you just go into the page source and inspect the elements you care to change. On Chrome just right-click on the part of a page you want to change and select "Inspect Element".



Thank you. I'll test this. In the meantime, I found another bug. It's actually adding the text "Journal Articles" to the title of the journal in each citation. So, if I have a paper in the "The Journal of the Acoustical Society of America", that citation shows up as "The Journal of the Acoustical Society of America Journal Articles". Any thoughts?
Sorry, but when I test the new css you gave (#group_article), it removes the paper title for every citation in the Journal Article list.
OK, yes, my previous selection was a little too sloppy. Could you try this one instead?

#group_article div.bibbase_group i+span { display: none; }
#group_inproceedings div.bibbase_group i+span { display: none; }
#group_article div.bibbase_group i:after { content: " Journal Articles" }
#group_inproceedings div.bibbase_group i:after { content: " Conference Publications" }
Seems to work. Thank you!

This solution is working for me but the formatting of Journal Articles is different to that for the heading when sorted by year which is a shame. Is there a way to approach this? If not I would be interested in the approach where I use a new bibtex field to specify the category - would I then be able to list this in the GroupBy drop down? 

Thanks. 

Do you mean the font changes when using this trick? Yes, that could be. You might need to add CSS rules for the same ":after" selectors.


No, unfortunately the list that appears in the GroupBy drop down is fixed.