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

Issue 14: Add initial FilesXml and Metadata classes #23

Closed
wants to merge 5 commits into from

Conversation

lindareijnhoudt
Copy link
Contributor

@lindareijnhoudt lindareijnhoudt commented Aug 3, 2018

fixes #14

When applied it will

  • Define the FilesXml, FilesXmlItem and Metadata classes
  • Provide a listing of all dc/dcterms elements allowed in a FilesXmlItem

Where should the reviewer @DANS-KNAW/easy start?

  • vinkje voor Jan

val AVAILABLE: DcTermsElementType = Value
val BIBLIOGRAPHIC_CITATION: DcTermsElementType = Value("bibliographicCitation")
val CONFORMS_TO: DcTermsElementType = Value("conformsTo")
// val CONTRIBUTOR: DcTermsElementType = Value
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are already defined in the dc-realm.

val DEU: XmlLang = Value
}

object DcTermsElementType extends Enumeration {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not limited to FilesXml but also applies to DatasestXml so put it in a separate file. It is not even limited to V0 so put it in another package.

@rvanheest rvanheest added this to the files.xml milestone Aug 6, 2018
// val DATE: DcTermsElementType = Value
val DATE_ACCEPTED: DcTermsElementType = Value("dateAccepted")
val DATE_COPYRIGHTED: DcTermsElementType = Value("dateCopyrighted")
val DATE_SUBMITTED: DcTermsElementType = Value("dateSubmitted")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not even considering the overall approach, this is a too big unstructured pile of types.
How to reuse (for example) dates by the deposit-api other enums in the same dm package of the api, relation types and whatever?

@rvanheest
Copy link
Contributor

This has been open for more than a year now. We still need to decide how to implement this, but so far we haven't done anything with it. Closing this PR for now.

@rvanheest rvanheest closed this Aug 15, 2019
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

Successfully merging this pull request may close these issues.

FileItem structuur
3 participants