Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore users without primary id #6

Open
danmichaelo opened this issue Jun 18, 2018 · 1 comment
Open

Ignore users without primary id #6

danmichaelo opened this issue Jun 18, 2018 · 1 comment

Comments

@danmichaelo
Copy link
Member

danmichaelo commented Jun 18, 2018

Today's surprise: The Alma users API can return users without any identifiers! 馃槻 Within the normal Alma GUI these are shown as "contacts".

Another weird thing is that the primary_id field is not something like null, but a not very machine-friendly string: "no primary id (123456789023)". Here's a full (anonymized) response example:

    {
      "primary_id": "no primary id (123456789023)",
      "first_name": "Hans",
      "last_name": "Jonas",
      "gender": {
        "value": "",
        "desc": ""
      },
      "status": {
        "value": "ACTIVE",
        "desc": "Active"
      },
      "requests": null,
      "loans": null,
      "fees": null,
      "link": "https://api-eu.hosted.exlibrisgroup.com/almaws/v1/users/-"
    }

Also notice that the link field is also not null, but an invalid URL that can not be dereferenced.

@danmichaelo
Copy link
Member Author

Posted a question about this here: https://developers.exlibrisgroup.com/discussions#!/forum/posts/list/933.page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant