• Resolved jcdillon

    (@jcdillon)


    I use Zotpress to deliver lists of publications to a number of academics’ websites. One of my users reported this morning that their 2023 publications were all showing up twice. I verified the issue, confirmed that there weren’t any duplicates in Zotero or the web library, flushed the account cache in the plugin, and the list went back to normal — until the next time I visited the page, or any page using the plugin.

    We did update the plugin this morning.

    Running WordPress 6.1.3 | PHP 7.3.33 | Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips | MySQL 10.3.35-MariaDB

    Shortcode is just [zotpress collection=”#####” sortby=”date” title=”year” order=”desc”]

    The new copy of each item has class=”zp-Entry zpSearchResultsItem zp_updated” as opposed to just class=”zp-Entry zpSearchResultsItem”. It just seems like the first copy of each isn’t getting cleared. (One of the devs I work with notes that the difference means we can just hide the duplicates with CSS in the short term.)

    Thanks for any attention.

    The page I need help with: [log in to see the link]

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

    (@kseaborn)

    Hi there – I checked the link but I don’t see duplicates. Perhaps it was a cache issue?

    Thread Starter jcdillon

    (@jcdillon)

    Katie — thanks for looking. We are using CSS to hide the duplicates.
    .zpSearchResultsItem:after {
    clear: both;
    content: "";
    display: table;
    }

    (It looks like https://kinneret-excavations.org/selected-publications, the other site that reported the same issue, is also using CSS to hide their dupes.)

    If you look at the page source you should see two versions of each entry, one with class=”zp-Entry zpSearchResultsItem zp_updated”, the other with class=”zp-Entry zpSearchResultsItem” as bolded below:

    <div id="zp-ID--9129767-LIEEW9EB" data-zp-author-date="Beer-et-al.-2023" data-zp-date-author="2023-Beer-et-al." data-zp-date="2023" data-zp-year="2023" data-zp-itemtype="journalArticle" class="zp-Entry zpSearchResultsItem zp_updated">
    <div class="csl-bib-body" style="line-height: 2; padding-left: 1em; text-indent:-1em;">
    <div class="csl-entry">Beer, E., Eisenman, I., Wagner, T. J. W., &amp; Fine, E. C. (2023). A Possible Hysteresis in the Arctic Ocean due to Release of Subsurface Heat during Sea Ice Retreat. <i>Journal of Physical Oceanography</i>, <i>53</i>(5), 1323–1335. <a >https://doi.org/10.1175/JPO-D-22-0131.1</a></div>
    </div></div>
    <div id="zp-ID-18-9129767-LIEEW9EB" data-zp-author-date="Beer-et-al.-2023" data-zp-date-author="2023-Beer-et-al." data-zp-date="2023" data-zp-year="2023" data-zp-itemtype="journalArticle" class="zp-Entry zpSearchResultsItem"><div class="csl-bib-body" style="line-height: 2; padding-left: 1em; text-indent:-1em;"><div class="csl-entry">Beer, E., Eisenman, I., Wagner, T. J. W., &amp; Fine, E. C. (2023). A Possible Hysteresis in the Arctic Ocean due to Release of Subsurface Heat during Sea Ice Retreat. <i>Journal of Physical Oceanography</i>, <i>53</i>(5), 1323–1335. <a >https://doi.org/10.1175/JPO-D-22-0131.1</a></div></div></div>

    Plugin Author Katie

    (@kseaborn)

    @jcdillon Have you updated to the latest version and clear the cache on the accounts?

    Thread Starter jcdillon

    (@jcdillon)

    @kseaborn Yes; the issue only cropped up after installing the later version of the plugin.
    If I clear the account cache for any individual site, the list initially reloads without the duplicates. But then, if I keep the page open, after some seconds later the duplicates reappear, apparently varying with the number of entries in the collection.

    Here’s a recording of what the page looks like when I clear the account cache — starts with the duplicates, then the page switches to single records, then the duplicates come back.

    Plugin Author Katie

    (@kseaborn)

    I’ve released a fix in 7.3.6, but if the issue is still happening, please re-open the thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin now displays each entry twice’ is closed to new replies.