Showing institution name instead of an author name for reports

In my style, for item type 'Reports' I don't want the author name to show, but instead I need the institution name to show after the Title, as below:

‘Title field name of report’, Institution field, September 2014; https://www.exampleurl.com.

Could anyone please help point me towards the line I would adjust / add this in? My style is here: https://raw.githubusercontent.com/annie-berry/ofstedhousestyle/main/v1

With many thanks!
  • You'd want to add a if type="report" match="none" condition around the entire content of both the author and contributors-note macro. (You could also just not include an author in the metadata)
  • Thank you, the latter works great actually, just excluding the author metadata and making sure data is entered correctly in the institution field if there are multiple institutions.

    Raising a new query:
    I also realise that for reports the title needs to be contained within ' '
    I think this is at line 120. Would I add something like this?:

    120 if type="bill book graphic legal_case legislation motion_picture report song" match="any"
    121 text variable="title" text-case="title" font-style="normal" prefix="'" suffix="'"/

    Thank you
  • just removing report from line 120 will do it (report will then fall abck to the else condition which sets quotation marks). (Btw., we recommend against using text-case="sentence" -- this will cause issue with proper nouns, see https://www.zotero.org/support/kb/sentence_casing
  • Great thank you this has worked! I needed to remove it from other lines as well including 78 'title note' and 108. But it is definitely working as needed.

    Can I ask about the "sentence" case, what do you do if you don't want title case but just want it to show as entered into my Zotero library? Do you just delete the whole text-case="sentence" command? Or do you leave it blank: text-case="" ?

    I don't use title case but it seems to currently be showing as needed (as entered into my Zotero library).

    But I can remove the "sentence" from other lines if I know whether to delete / what to put in its place. Thanks so much for this help
Sign In or Register to comment.