Variable variable names? Can't print "URL" in some entry types
Hej,
I need help with a little oddity - I hope I didn't miss any older discussions in this forum. I am updating a citation style that I have written and used for a while now - but just now I noticed a problem: For everything that's (also) printed the bibliography checks whether there's a value for "URL" and "accessed" and if so, it adds info on where I in fact found it online:
<else-if variable="URL accessed" match="all">
<text value=", online: "/>
<text variable="URL"/>
<date variable="accessed" form="numeric" prefix=" (Zugriff am " suffix=")"/>
</else-if>
For some reason, this works just fine with encyclopedia articles and books and parts of books - but not with article-journal, article-newspaper and article-magazine. I even just tried to print the variables "URL" and "accessed" in an article-journal with an entry that has both (to check for possible errors in the choose-if-syntax) but I didn't get anything back. Even: when I duplicate an article-newspaper in the database and change the type of one of them to part of book, the URL and accessed info will show for the entry I changed to part of book, but not for the original article-newspaper. It's the same behaviour when I test it in the preview pane and the actual Libre Office file with my text and citations.
How can I get the information that I type into the field "URL" in Zotero in an article-journal to show? The variable should have a stable name over all entry types, right? That's all I found in the many field mapping tables online.
Thanks for your help! My Zotero version is 4.0.28.10
I need help with a little oddity - I hope I didn't miss any older discussions in this forum. I am updating a citation style that I have written and used for a while now - but just now I noticed a problem: For everything that's (also) printed the bibliography checks whether there's a value for "URL" and "accessed" and if so, it adds info on where I in fact found it online:
<else-if variable="URL accessed" match="all">
<text value=", online: "/>
<text variable="URL"/>
<date variable="accessed" form="numeric" prefix=" (Zugriff am " suffix=")"/>
</else-if>
For some reason, this works just fine with encyclopedia articles and books and parts of books - but not with article-journal, article-newspaper and article-magazine. I even just tried to print the variables "URL" and "accessed" in an article-journal with an entry that has both (to check for possible errors in the choose-if-syntax) but I didn't get anything back. Even: when I duplicate an article-newspaper in the database and change the type of one of them to part of book, the URL and accessed info will show for the entry I changed to part of book, but not for the original article-newspaper. It's the same behaviour when I test it in the preview pane and the actual Libre Office file with my text and citations.
How can I get the information that I type into the field "URL" in Zotero in an article-journal to show? The variable should have a stable name over all entry types, right? That's all I found in the many field mapping tables online.
Thanks for your help! My Zotero version is 4.0.28.10
-
adamsmithcheck the "include URL" box under Cite/Styles in the Zotero preferences.
-
predatschpSorry, that was pretty obvious...
-
adamsmithonly once you know it exists. It's a perfectly reasonable question, happy to help.