Closed mMoliere closed 2 months ago
@mMoliere Part of the problem is that the form expects the following:
<author>
<forename/>
<surname/>
</author>
In other parts of the app, the author lookup requires
<author ref="https://jalit.org/person/18">Abraham al-Harzilānī</author>
I can make a special call for authors with forename and surname, but it would be cleaner code to just change the expectation for the author element in the work record to accept a text node and have no children. This would happen in the schema.
What do you think?
@wsalesky I agree that a clean solution is preferable. But the schema for works already specifies that the content of <author>
can only be a <textNode>
.
@mMoliere Sorry, I must not have updated my version of the schema. Please merge this: https://github.com/majlis-erc/manuForma/pull/627
And let me know if the issue is resolved.
@wsalesky I'm afraid the error is still there.
Try this please: https://github.com/majlis-erc/manuForma/pull/630
The error is still there
@mMoliere did you regenerate the Work form? It looks like the version on the server is the old one.
@wsalesky You're right, I forgot to refresh the works forms. I was distracted from the other bug. Thank you, it works!
@wsalesky In Works appears an error message whenever an author is added using the lookup-feature: