RIS import of URI in L4 field fails

Hi,

I am trying to import a RIS file that contains 100s of references. It does the job relatively well, but fails to import the URI stored in the L4 field.

I don't want to have to add all these URIs manually, especially since I plan to import a massive library over 2000 entries with URIs. Is there a way to solve this issue or workaround?

FYI-1: The RIS file looks like this:

TY - DICT
TI - Antioch on the Orontes
AU - McRay, John R.
CY - Downers Grove, IL
T2 - DPL
PB - InterVarsity Press
A2 - Hawthorne, Gerald F.
A2 - Martin, Ralph P.
A2 - Reid, Daniel G.
PY - 1993
SP - 23-25
UR - logosres:dpl;ref=Page.p_23
ER


FYI-2: the RIS is created parsing an excel file through a python-script.
  • I don't see any L4 field in your sample RIS?
  • Oops! That happens when you experiment too much (One of my attempts was to import the URI in the URL field (in the RIS the UR tag, but I am not satisfied with that solution).

    The correct RIS is:

    TY - DICT
    TI - Antioch on the Orontes
    AU - McRay, John R.
    CY - Downers Grove, IL
    T2 - DPL
    PB - InterVarsity Press
    A2 - Hawthorne, Gerald F.
    A2 - Martin, Ralph P.
    A2 - Reid, Daniel G.
    PY - 1993
    SP - 23-25
    L4 - logosres:dpl;ref=Page.p_23
    ER
  • zotero(2)(+0000000): Error: Translate: logosres protocol is not allowed for attachments from translators.

    Error: Translate: logosres protocol is not allowed for attachments from translators.
    Zotero.Translate.ItemSaver.prototype._saveAttachmentFile<@chrome://zotero/content/xpcom/translation/translate_item.js:631:15
    Zotero doesn't import non-HTTP(S) URIs from translators.
  • okay, adding them manually is possible, but as I said not desirable.

    Is there a workaround? (For instance a search and replace in batch on multiple items?)
  • I figured out a workaround myself.

    1. Import a valid html URL in the L4 field: e.g.
    2. Use zutilo to batch replace to retrieve a valid logosres link.

    Thanks for your help!
  • Returning to this workaround after some years, there appears to be an additional issue: previously the whole thing worked, i.e. creating a pseudo URI (e.g. http://www.:dpl;ref=Page.p_23) which i could replace using Zutilo (logosres:dpl;ref=Page.p_23) .
    Unfortunately, it nowadays appears that during the import zotero adds a suffix '/' to the pseudo url (e.g. http://www.:dpl;ref=Page.p_23/).
    I tried to remove this with zutilo, but that's not working.

    Any ideas on how to fix this? I have more than 4000 pseudo-links which I would like to change in batch. (Solutions using the JavaScript API are also welcome)
  • And resolved: "By default, it will only replace the beginning of attachment paths. If you click the "replace all instances" check box, it can also replace something in the middle of the paths" see: https://forums.zotero.org/discussion/comment/363117/#Comment_363117
Sign In or Register to comment.