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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Findable DOIs appearing with no creator or title #235

Closed
MaryHirsch opened this issue Oct 1, 2019 · 5 comments
Closed

Findable DOIs appearing with no creator or title #235

MaryHirsch opened this issue Oct 1, 2019 · 5 comments
Assignees
Labels

Comments

@MaryHirsch
Copy link

MaryHirsch commented Oct 1, 2019

Expected Behaviour

Findable DOIs cannot be created without all of the required fields

Current Behaviour

A user reports numerous DOIs appearing not to have a creator or title in form and summary view although this information is seen in the file upload view

Steps to Reproduce

E.g
https://doi.datacite.org/dois/10.21405%2Flogtrend.2019.5.1.56/edit

plus the following DOIs
10.21405/logtrend.2019.5.1.12
10.21405/logtrend.2019.5.1.25
10.21405/logtrend.2019.5.1.4
10.21405/logtrend.2019.5.1.43
10.21405/logtrend.2019.5.1.20.
10.21405/logtrend.2019.5.1.50
10.21405/logtrend.2019.5.1.29
10.21405/logtrend.2019.5.1.36

Context (Environment)

Fabrica production

Hypothesis

Detailed Description

Possible Implementation

Front logo Front conversations

@MaryHirsch MaryHirsch added the bug label Oct 1, 2019
@richardhallett
Copy link
Contributor

This is a display problem only, looks like data not being loaded into the fabrica model correctly, probably because of the relation to the form.
However metadata is fine, a temporary fix can be made by just updating via file upload and the DOI's should fix themselves.

@richardhallett
Copy link
Contributor

Potential related issue might be datacite/lupo#285 - This was referring to missing publisher field.

@richardhallett
Copy link
Contributor

A reassessment of this actually suggest this isn't bracco related, the search index doesn't have the correct information from the DOI.

I can reproduce by making an API call with the same XML used. With subsequent updates it does correct itself.

  "data": {
    "attributes": {
      "prefix": "10.70048",
      "confirmDoi": null,
      "url": null,
      "creators": [],
      "titles": [],
      "publisher": null,
      "publicationYear": null,
      "descriptions": [],
      "xml": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmN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lcmFsPSJUZXh0Ij5hcnRpY2xlPC9yZXNvdXJjZVR5cGU+CiAgPGRlc2NyaXB0aW9ucz4KICAgIDxkZXNjcmlwdGlvbiBkZXNjcmlwdGlvblR5cGU9IlNlcmllc0luZm9ybWF0aW9uIj5Mb2dpc3p0aWthaSB0cmVuZGVrIMOpcyBsZWdqb2JiIGd5YWtvcmxhdG9rIChOeW9tdGF0b3R0IElTU046IDI0MTYtMDU1NSwgT25saW5lIElTU046IDI1NjAtMDM2MiksIDIwMTkuIGrDumxpdXMsIFYuIMOpdmZvbHlhbSwgMS4gc3rDoW08L2Rlc2NyaXB0aW9uPgogIDwvZGVzY3JpcHRpb25zPgo8L3Jlc291cmNlPg==",
      "source": "fabrica",
      "state": "draft",
      "reason": null,
      "event": null,
      "mode": "upload"
    },
    "relationships": {
      "client": {
        "data": {
          "type": "repositories",
          "id": "datacite.rph"
        }
      }
    },
    "type": "dois"
  }
}```

@richardhallett
Copy link
Contributor

A further further reassessment does confirm this was due to bracco and sending empty attributes like creators: [] - These are prioritised over the value in the XML.

I've done a fix on test to prevent these being sent, this bug only occured for file upload and was "solved" because we do cancel out the titles/creators when modifying.

@richardhallett
Copy link
Contributor

This has been deployed and should now be fixed.

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

No branches or pull requests

2 participants