Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

originInfo/projectId element out of order, so newly created entities do not validate #57

Closed
brundin opened this issue Jan 28, 2015 · 2 comments

Comments

@brundin
Copy link
Contributor

brundin commented Jan 28, 2015

For person, organization, and place entities that are created using the CWRC dialogs, the originInfo/projectId element is created in the wrong sequential order, so newly created entities do not validate. In the entities.rng schema, the originInfo element defines the following child elements in this sequential order: projectId, recordIdentifier, recordCreationDate, recordChangeDate, and recordOrigin. However, new entities that are created using the CWRC dialogs create the following child elements of originInfo in this order: recordCreationDate, recordChangeDate, and projectId. I.e., projectId is appearing last, as opposed to first, as the schema defines these elements. Thus, newly created entities using the CWRC dialogs are not validating, due to this error.

So, we can either (a) modify the dialogs so that projectId appears first, or (b) modify the entities.rng schema such that the order of the child elements of originInfo does not matter, by wrapping all of the child elements of originInfo in an interleave directive.

I recommend option (b), that we just make that small change in the entities.rng schema.

@ghost
Copy link

ghost commented Jan 28, 2015

I agree with the modification to the schema.

On Wed, Jan 28, 2015 at 11:28 AM, brundin notifications@github.com wrote:

For person, organization, and place entities that are created using the
CWRC dialogs, the originInfo/projectId element is created in the wrong
sequential order, so newly created entities do not validate. In the
entities.rng schema, the originInfo element defines the following child
elements in this sequential order: projectId, recordIdentifier,
recordCreationDate, recordChangeDate, and recordOrigin. However, new
entities that are created using the CWRC dialogs create the following child
elements of originInfo in this order: recordCreationDate, recordChangeDate,
and projectId. I.e., projectId is appearing last, as opposed to first, as
the schema defines these elements. Thus, newly created entities using the
CWRC dialogs are not validating, due to this error.

So, we can either (a) modify the dialogs so that projectId appears first,
or (b) modify the entities.rng schema such that the order of the child
elements of originInfo does not matter, by wrapping all of the child
elements of originInfo in an interleave directive.

I recommend option (b), that we just make that small change in the
entities.rng schema.

Reply to this email directly or view it on GitHub
#57.



Susan Brown
Director, Orlando Project; Project Leader, Canadian Writing Research
Collaboratory
Visiting Professor Professor
English and Film Studies School of English and
Theatre Studies
University of Alberta University of Guelph
Edmonton, Alberta T6G 2E5 Guelph, Ontario N1G 2W1
Canada
780-862-0155 519-824-4120 x53266
(office)
519-766-0844
(fax)
susan.brown@ualberta.ca sbrown@uoguelph.ca

@brundin
Copy link
Contributor Author

brundin commented Feb 11, 2015

MRB & JCA have made the change. Closed.

@brundin brundin closed this as completed Feb 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant