• Resolved miquelpontes

    (@miquelpontesgmailcom)


    Hello,

    I’m managing thousands of wildlife bibliographic references at (https://opistobranquis.info/en) website. For these, the combination of Zotero, WordPress and Zotpress works very well, thank you for this superb tool.

    However, the references for “online” (a.k.a. web page) citations display inconsistently, sometimes they are linked to the original reference, sometimes they are just displayed but not linked.

    I do not change anything at all in the website, only import references from Zotero servers to Zotpress when there are enough updates. This seems to works after certain Import processes and does not work after other Import processes, all performed exactly the same way. My guess this has to do with CSL styles, but I’m not sure.

    A sample page can be seen here (https://opistobranquis.info/en/guia/sacoglossa/elysia-viridis/). Those online references can be identified because they say “accessed through”.

    Any ideas? Thank you in advance.

    https://www.ads-software.com/plugins/zotpress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Katie

    (@kseaborn)

    If you’re using different styles then yes the information that’s displayed for each reference will change based on that style (what it supports, particularly what metadata it will display and how).

    Perhaps you can give me an example because the current style on a cursory glance seems to display webpage citations in a consistent manner.

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Theoretically I’m using just one style, because I use a piece of PHP code to implement Zotpress citations in all pages, I mean there’s no manual intervention about how I display references in one page or another, it’s the same code, same style and all.

    References are different on each page because I filter them by using tags, in fact a tag linked to the page name. That is in the page “A” I display references tagged “A”, and in page “B” I display all references tagged “B”.

    A sample of a correctly displayed page: https://opistobranquis.info/ca/guia/sacoglossa/lobiger-serradifalci/
    You see reference links (for instance K?hler, E.) are live links indeed. This is the intended style for all the website references

    A sample of an incorrectly displayed page:
    https://opistobranquis.info/ca/guia/anaspidea/aplysia-fasciata/
    Here reference links are not alive (for instance K?hler, E.), plus books are displayed in another format that Journal articles. Clearly it is using a different style than the previous sample.

    The piece of PHP code I use to display both pages is exactly the same:

    echo '<h5><ul>';
    echo do_shortcode('[zotpress tag="' . get_the_title($ID) . '" style="entomological-society-of-america" sortby="author" order="asc"]');
    echo '</ul></h5>';

    My guess is that the ammount of displayed references in one case or another provokes a timeout or maybe it overwrites something, “losing” the style parameter.

    Is the “style” file local to Zotpress plugin? or is it downloaded from Zotero servers everytime? if it is downloaded I might want to make a local copy and use it instead to avoid server timeouts that might render the default style at display time.

    Hope all this helps Katie. Thanks for your superb support and product.

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    I want to add further data that may help you clarify the problem:

    I take the page that displays references incorrectly:
    https://opistobranquis.info/ca/guia/anaspidea/aplysia-fasciata/

    I move the page until it displays one of the linked references (for instance K?hler, E.) then click the reload button on the browser (or press <F5>) and watch the link with attention. It first displays the live links correctly for a second, then the link vanishes.

    Clearly this is a style problem that happens only when the loaded references list is long and/or has mixed reference types in it (I try to use Journal articles, Books and Websites references only).

    What I don’t understand is why this is happening.

    Plugin Author Katie

    (@kseaborn)

    The default style is different than the style you’re setting, correct? I think it’s a limitation of the way styles are dynamically applied. There may be an upper limit — I’ll check the code and see why that might be.

    If this is the issue, you can change the default style to the style you’re using in the shortcodes and reimport. If the problem persists, it’s something else and I’ll have to take a closer look.

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Yes Katie, default style was “Chicago-fullnote-bibliography” and by analyzing the webpage code with Chrome “inspect element” option, this is indeed the style used in the pages that don’t work as expected. The style I want to use is “entomological-society-of-america”.

    By following your suggestion, I added this style as the default style, reimported and… It works fine !

    It appears that dynamically assigned styles have a limit somewhere, but as I wanted everything with the same styling, the workaround is just fine for me.

    Thank you Katie !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Random link display for URLs of online references’ is closed to new replies.