eXtensibleCatalog / test

Testing
MIT License
0 stars 0 forks source link

Drupal using value of org code in ILS -> "Bib identifier field" instead of org code in xc:recordID #90

Closed patrickzurek closed 7 years ago

patrickzurek commented 7 years ago

JIRA issue created by: Patrick Zurek (patrickzurek) Originally opened: 2012-11-05 01:13 PM

Issue body:

After doing a search, NCIP LUIS messages are using the value defined in ILS -> "Bib identifier field" instead of the org code found in the xc:recordID for the Agency ID. For example, with "Bib identifier field" set to "xc:recordID|@type=UIU", the LUIS message is:

<?xml version="1.0"?>

nullUIUCirculation StatusLocationBibliographic Description ...for the record http://xc-zurek.carli.illinois.edu/xc_dev/?q=node/73&hit=1&caller=xc-search, with schema: http://xc-zurek.carli.illinois.edu/xc_dev/?q=node/73/xc/download UIU is not an org code listed for that record: 217731 (@type="BENdb") 928006 (@type="EIUdb") 807553 (@type="IITdb") 177084 (@type="NCCdb") 577666 (@type="NEIdb") 314182885 (@type="OCoLC") 2135861 (@type="SICdb") 2748109 (@type="UICdb") 496660 (@type="UISdb") 5801805 (@type="UIUdb") 1047872 (@type="WIUdb") The bib Id is also null in the LUIS request. This issue has attachments associated with it (external link): [ILSmappings.png](http://www.carli.illinois.edu/sites/files/XCfiles/ILSmappings.png) [uiu.PNG](http://www.carli.illinois.edu/sites/files/XCfiles/uiu.PNG)
patrickzurek commented 7 years ago

JIRA Comment by user: Patrick Zurek (patrickzurek) JIRA Timestamp: 2012-11-05 01:28 PM

Comment body:

The search that produces that NCIP LUIS lookup above is: http://xc-zurek.carli.illinois.edu/xc_dev/?os[keys]=introduction+to+boolean+algebra&op=Search&online_only=0&exclude_microform=1&q=xc%2Fsearch%2Fintroduction+to+boolean+algebra. It generates two identical NCIP LUIS messages with null for the Bib ID and UIU for the Agency Id

patrickzurek commented 7 years ago

JIRA Comment by user: rcook JIRA Timestamp: 2012-11-05 01:28 PM

Comment body:

If you changed the Setup in Drupal (see attachment) from xc:recordID|@type=UIU to xc:recordID|@type=UIUdb would it work? I think the way it should work is that if the value from the setup matches somethikng in xcrecordid then it will pass that value as the agency id and the correct valued as teh bib id, in this case, passing bib 5801805 for agency "UIUdb".

[~pzurek][~pkiraly] [~cdelis] [~mwesley]

patrickzurek commented 7 years ago

JIRA Comment by user: Patrick Zurek (patrickzurek) JIRA Timestamp: 2012-11-05 02:28 PM

Comment body:

-If I change Bib identifier field from UIU to UIUdb, the bib Id is still null.-

For the search [http://xc-zurek.carli.illinois.edu/xc_dev/?os[keys]=boolean+algebra&op=Search&online_only=0&exclude_microform=1&q=xc%2Fsearch%2Fboolean+algebra], the first item results in a ncip message with null for the bib Id and UIUdb for the org code. Org code should be UICdb and bib Id 2434995. For the second search result, an NCIP message is sent with the org code UIUdb and the bib Id set to 5801805, which is one of the correct bib IDs for that item.

patrickzurek commented 7 years ago

JIRA Comment by user: rcook JIRA Timestamp: 2012-11-05 02:46 PM

Comment body:

In the admin screens I only see that you have one ILS setup for UIUdc, you do not have an ILS set up for UICdb. You would have to set one up for each school. Right [~mwesley] and [~pkiraly].

patrickzurek commented 7 years ago

JIRA Comment by user: Patrick Zurek (patrickzurek) JIRA Timestamp: 2012-11-05 06:37 PM

Comment body:

Ok Randy, so under ILS (admin/xc/ils/list) I set up a mapping of the sort xc:recordID|@type=UIU for each org code that's in the schema records for the "boolean algebra" search. A search for boolean algebra (http://xc-zurek.carli.illinois.edu/xc_dev/?os[keys]=boolean+algebra&op=Search&online_only=0&exclude_microform=1&q=xc%2Fsearch%2Fboolean+algebra) returns 2 results. The first has these recordIDs in the schema:

The second has these recordIDs in the schema:

The search for boolean algebra results in exactly six NCIP LUIS requests being sent (this is repeatable and results in the same LUIS values, although the requests may be ordered differently). The six LUIS messages have the following Bib ID and Agency ID values set respectively: