citation-style-language / csl-editor

cslEditorLib - A HTML 5 library for searching and editing CSL styles
http://editor.citationstyles.org
MIT License
186 stars 33 forks source link

Unable to add in URL and Accessed Date for Reports or Documents #235

Closed moradkhantig closed 2 years ago

moradkhantig commented 4 years ago

I have edited the Archives of Toxicology style using the Visual Editor to add in URL and Accessed Date for Reports or Documents. But when I test this using Zotero, the URL and accessed date doesn't show up. Is this a bug? How can I resolve this issue?

Thank you.

adam3smith commented 4 years ago

It's very unlikely to be a bug, much more likely to be a problem with your modified style or with how you install it in Zotero. We'd have to see the style code (post to gist.github.com) to say more.

moradkhantig commented 4 years ago

Hi adam3smith

Thank you for your help. I just posted the code to gist.github.com and called the code "Edited Archives of Toxicology code". Let me know what the problem is. Thank you.

moradkhantig commented 4 years ago

It doesn't seem to be a problem with how the code is installed in Zotero because when I test it with article journals, patents and theses it works fine. It's just for documents or reports that I can't see the the URL and accessed date in the bibliography.

adam3smith commented 4 years ago

We'd need the link to the gist

moradkhantig commented 4 years ago

How do I get the link to the gist?

moradkhantig commented 4 years ago

I found out how to get the link. Here it is: gist:32ddb3a50dc1ebe1cbc6c5f1b137ad8c

moradkhantig commented 4 years ago

Is that it or is this one: https://gist.github.com/moradkhantig/32ddb3a50dc1ebe1cbc6c5f1b137ad8c.js

adam3smith commented 4 years ago

I'm getting the URL for reports with this. For documents you'd need to add them for the item type article

moradkhantig commented 4 years ago

OK. That's interesting because I'm not. When I import the style to Zotero and I choose a report to see how it will be shown in the bibliography the URL and accessed date doesn't show up. This is how I import the style to Zotero:

  1. I click on Edit then go to Preferences.
  2. To import the style, I click on the + button then browse to the csl file and click on Open
  3. Then I click on OK.

This is how styles should be imported in Zotero right?

adam3smith commented 4 years ago

How exactly are you testing this in Zotero after installing (i.e. how are you looking at the bibliography -- Word add-on, Create Bibliography, quick copy?)? And you're absolutely positive the item has a URL?

moradkhantig commented 4 years ago

You're right the examples I were looking at didn't have URLs. I retried it with examples that had a URL and accessed date and I could see both in the bibliography. This is how I do it. I select a report then I go to Edit followed by Preferences and I select the style I just imported. Then I click on Style Editor and at the bottom I can see how Zotero will cite it.

Thank you very much for your help. I appreciate.