display publication or publisher
thesis have the item publisher, and journal have publication.
I want display anyone of them.
____________________________split lines
chatgpt give the bad idea.
Based on the information you've provided, it seems like you're trying to display the "item publisher" or "publication" field in Zotero, depending on whether the reference is a thesis or a journal article.
To achieve this, you can use the conditional formatting feature in Zotero. Here's how to do it:
In Zotero, select the reference you want to modify.
Right-click on the reference and select "Edit Item".
In the "Fields" tab, locate the "Extra" field.
In the "Extra" field, enter the following code:
```bash
{{#if itemType "thesis"}}
Publisher: {{itemPublisher}}
{{/if}}
{{#if itemType "journalArticle"}}
Publication: {{publication}}
{{/if}}
```
This code will display the "itemPublisher" field for thesis references and the "publication" field for journal article references. If a reference is neither a thesis nor a journal article, nothing will be displayed.
Click "OK" to save the changes.
I want display anyone of them.
____________________________split lines
chatgpt give the bad idea.
Based on the information you've provided, it seems like you're trying to display the "item publisher" or "publication" field in Zotero, depending on whether the reference is a thesis or a journal article.
To achieve this, you can use the conditional formatting feature in Zotero. Here's how to do it:
In Zotero, select the reference you want to modify.
Right-click on the reference and select "Edit Item".
In the "Fields" tab, locate the "Extra" field.
In the "Extra" field, enter the following code:
```bash
{{#if itemType "thesis"}}
Publisher: {{itemPublisher}}
{{/if}}
{{#if itemType "journalArticle"}}
Publication: {{publication}}
{{/if}}
```
This code will display the "itemPublisher" field for thesis references and the "publication" field for journal article references. If a reference is neither a thesis nor a journal article, nothing will be displayed.
Click "OK" to save the changes.
I also don't quite understand what you're trying to do - is this for a citation style? Could you provide specific examples of the output you want?
zotero gui can display the "itemPublisher" field for thesis references and the "publication" field for journal article references. If a reference is neither a thesis nor a journal article, nothing will be displayed.
And just to be clear:
```bash
{{#if itemType "thesis"}}
Publisher: {{itemPublisher}}
{{/if}}
{{#if itemType "journalArticle"}}
Publication: {{publication}}
{{/if}}
```
is complete nonsense.