Forum Replies Created

Viewing 15 replies - 121 through 135 (of 268 total)
  • Mark

    (@codeispoetry)

    This looks like a bug in the shortcode generation code to me indeed. I’m not the developer but it should be fixable by @kseaborn.

    Mark

    (@codeispoetry)

    @johnkevinoregan Yes, workarounds are always ugly and inelegant. It would indeed be preferred if this were fixed since it’s clearly a bug. But I’m not sure how soon we can expect updates from @kseaborn in these strange times.

    In the meantime, the most useful workaround depends on your scenario. If you are creating a relatively stable bibliography, then adding a tag to the items to be cited, or putting all desired items in a collection on the Zotero end, shouldn’t be too hard; and you can then have ZotPress select and display the items using the collection or tag. Since the web page you linked to seems to be of that kind, I suggested this.

    Alternatively, if you find yourself needing to cite individual publications in more dynamic contexts (e.g. while writing blog posts), it is a bit more of a pain as you’d need the item key for items that ZotPress doesn’t resolve due to this author name bug. But even then, the item key is not too hard to find in the ZotPress backend.

    Mark

    (@codeispoetry)

    Unfortunately I can confirm this is a problem. Tested with an “O’Connor” ref in my library, and with various forms of the apostrophe (O'Connor, O’Connor, O'Connor, O‘Connor, O+Connor, O Connor). All return “No items found”.

    Workaround for you might be to use item keys; or perhaps you could add a tag ORegan so that you can use [tags="ORegan"].

    Mark

    (@codeispoetry)

    We’d need to know the CSL style that you are using here, as well as your desired style. ZotPress generally is pretty faithful in rendering those styles, so it’s a good idea to try out a few different ones and report back. The linked page currently seems to use a numbered style for the in-text citations so you wouldn’t see any effect there (and it is customary to have the full author list in the bibliography for that style).

    Mark

    (@codeispoetry)

    I don’t think it’s documented in the (otherwise excellent) ZotPress documentation.

    Mark

    (@codeispoetry)

    Yes, this is fairly easy, and Zotpress makes available many different CSS classes. You can view the HTML source to see what’s available.

    First there are the main CSL classes csl-bib-body (the bibliography as a whole) and csl-entry (individual entries). Corresponding to entries we have the Zotpress classes zp-Entry and (if you have downloads enabled) zp-DownloadURL. In addition, Zotpress makes available a lot of metadata that can be used for styling using CSS attribute/value selectors: data-zp-author-date, data-zp-year, zp-type, etc. This means you could even style entries by year, author, or type.

    Some aspects of the styles are hardcoded depending on the CSL style you have selected. For instance, when using APA, the journal title appears between <i> tags. Even then you could style that using CSS child selectors.

    Mark

    (@codeispoetry)

    One reason I asked about a use case is that I had a feeling that this gets largely into the territory of what group libraries were made for. Many of us use group libraries in collaborations to share relevant parts of personal libraries without opening up the whole. The feature request, as I understand it, would almost replicate group library behaviour on the ZotPress side and I wonder whether that is a good use of resources.

    From what you describe, your website rarely if ever needs to have access to full personal libraries, as what’s going to be cited is only a small subset directly tied to published works. Therefore I can easily imagine making a shared group library for this project and having scientists that collaborate on this website drop the relevant references that they want to cite into a collection in that group library. That solves the “access to personal library” issue.

    Is there a particular reason the group library route wouldn’t work for this project?

    Mark

    (@codeispoetry)

    This has been tagged as not a support question so you’re probably better off doing a feature request on github, but out of interest, what is the kind of use case you’re envisaging for this?

    • This reply was modified 6 years, 2 months ago by Mark.
    Mark

    (@codeispoetry)

    Ah yes I see it now. This one goes over my head (not an Elementor user) β€” I hope @kseaborn can weigh in

    Mark

    (@codeispoetry)

    Have you created an API key on the Zotero side? You can do that here:
    https://www.zotero.org/settings/keys

    Mark

    (@codeispoetry)

    The page currently doesn’t generate the error you mention, but I do see a spinning wheel suggesting ZotPress is trying to generate something. What is the shortcode you’re using?

    Thread Starter Mark

    (@codeispoetry)

    Would love to test this β€” looking forward to 7.1.6!

    Thread Starter Mark

    (@codeispoetry)

    Whoah! I just deleted the cache using the button on the ZotPress Accounts tab and it seems to work now! One to add to the troubleshoothing page πŸ™‚

    Perhaps the underlying issue is that I first added the items to this library and added collections and tags for testing later. If ZotPress just checks whether items were updated it wouldn’t have found a reason to refresh the cache and so it wouldn’t have known about the new collections

    • This reply was modified 6 years, 3 months ago by Mark.
    Thread Starter Mark

    (@codeispoetry)

    Just a shot in the dark here β€” for userid, are you using the numeric Zotero one?

    I’m using the one that appears under “choose account” in the ZotPress Options tab (and the numeric ID is the same as the number that directly follows /groups/ in the group URL)

    Thread Starter Mark

    (@codeispoetry)

    BTW this is the group library in question β€” I can make you member if we want to have parity in testing though I don’t think there’s anything special here: https://www.zotero.org/groups/2459672/grammar_watch/library

    • This reply was modified 6 years, 3 months ago by Mark.
Viewing 15 replies - 121 through 135 (of 268 total)