wrong item imported in New York Public Library Catalog

Recently, when I've tried to import a record from the NYPL catalog (http://www.nypl.org/), the wrong (apparently adjacent) item is imported. For example, this morning I tried to import a record for Tom Angleberger's The Strange Case of Origami Yoda, but when I clicked on the book icon the record added was instead The Strange Case of Mrs. Eaton: A Woman Deprived of the Custody of Her Two Little Children in a Divorce Case in New Jersey, Solely on the Ground of Her Religious and Political Views. The Only Such Case on Record. This has happened to me frequently in the last two weeks, and it seems to happen only when I search by title. I've worked around it by clicking on the author's name in the record. When I return to the individual item record by first getting a list of the author's texts, adding the record works fine. Does anyone have any idea why this might be happening and how to address it (other than always searching by author)?

Thanks.
Lisa
  • does nypl produce search URLs that you could posts?
    Or item URLs?

    I'd guess this is a problem on their part and not on Zotero's side, but we might be able to tell them what the problem is more specifically.
  • adamsmith--

    There are actually two separate issues. In the newish catalog system (called encore), if I search for "strange case of origami yoda" by title, I get this record page, which doesn't give me an easy way to add an item to zotero: http://catalog.nypl.org/iii/encore/record/C|Rb18309830|Sstrange+case+of+origami+yoda|Orightresult?lang=eng&suite=pearl

    If I end up somehow in the classic catalog (purposely or accidentally--the system seems spotty still, so if you start at your own record you seem to end up there), searching by title gives me this page: https://catalog.nypl.org/search/t?SEARCH=strange+case+of+origami+yoda&sortdropdown=-&searchscope=1

    This page gives me a book icon in my browser bar to add the item to zotero, but when I click it, it adds instead the record for The Strange Case of Mrs. Eaton: A Woman Deprived of the Custody of Her Two Little Children in a Divorce Case in New Jersey, Solely on the Ground of Her Religious and Political Views. The Only Such Case on Record. (If I search that item, I get this page: https://catalog.nypl.org/search~S1/?searchtype=t&searcharg=strange+case+of+mrs+eaton&searchscope=1&sortdropdown=-&SORT=D&extended=0&SUBMIT=Search&searchlimits=&searchorigarg=tstrange+case+of+origami+yoda). If I click the book icon to add that item to zotero, I instead add The Strange Case of Mr. Jocelyn Thew.

    Thanks for any light you can shed. It would not surprise me that there are quirks in their system--this is not the first I've found. They do seem to be interested in addressing the problems, though.

    Thanks.
    Lisa
  • edited June 16, 2010
    Confirmed. The encore translator has a ticket & a translator is in early development:
    https://www.zotero.org/trac/ticket/1343

    Because the InnoPac URI lacks 'frameset' that is present in other search results (such as https://catalog.nypl.org/search~S1?/tstrange+case+of+origami+yoda/tstrange+case+of+origami+yoda/1%2C1%2C1%2CB/frameset&FF=tstrange+case+of+origami+yoda&1%2C1%2C/indexsort=-), the Innopac translator for that site gets to this line:newUri = doc.evaluate('//a[contains(@href, "frameset")]', doc, null, XPathResult.ANY_TYPE, null).iterateNext().href.replace(/frameset/, 'marc');that processes the following snippet:Result:

    <a href="/search~S1?/tstrange+case+of+origami+yoda/tstrange+case+of+origami+yoda/1%2C1%2C1%2CB/frameset&FF=tstrange+case+of+mrs+eaton+a+woman+deprived+of+the+custody+of+her+two+little+children+in+a+divorce+case+in+new+jersey+solely+o&1%2C1%2C/indexsort=-">Previous</a>
    The NYPL stores the current URI in a section of javascript:var sortExactBrowseURL = "/search~S1?/tstrange+case+of+origami+yoda/tstrange+case+of+origami+yoda/1%2C1%2C1%2CB/frameset&FF=tstrange+case+of+origami+yoda&1%2C1%2C/indexsort=-"and this has the information needed to import the record. I don't know how it would impact other InnoPac catalogs to try this URI before the first a href with 'frameset' in it, but I suspect it would be fine.
Sign In or Register to comment.