Skip to content

Commit

Permalink
copyright modelling: relaton/relaton-data-iho#4
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Jun 1, 2020
1 parent 67594f4 commit ce4fc30
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
6 changes: 4 additions & 2 deletions grammars/biblio.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ BibliographicItem =
fetched?,
(btitle+ | formattedref), bsource*, docidentifier*, docnumber?, bdate*, contributor*,
edition?, version?, biblionote*, language*, script*,
bibabstract*, status?, copyright?, docrelation*, series*, medium?, bplace*, bprice*,
bibabstract*, status?, copyright*, docrelation*, series*, medium?, bplace*, bprice*,
extent*, accesslocation*, license*, bclassification*, bkeyword*, validity?

btitle = element title { TypedTitleString }
Expand Down Expand Up @@ -368,9 +368,11 @@ bibabstract = element abstract { FormattedString }

copyright =
element copyright {
from, to?, owner+
from, to?, owner+, copyright_scope?
}

copyright_scope = element scope { text }

from = element from { xsd:gYear }
to = element to { xsd:gYear }

Expand Down
12 changes: 10 additions & 2 deletions grammars/biblio.rng
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,9 @@
<optional>
<ref name="status"/>
</optional>
<optional>
<zeroOrMore>
<ref name="copyright"/>
</optional>
</zeroOrMore>
<zeroOrMore>
<ref name="docrelation"/>
</zeroOrMore>
Expand Down Expand Up @@ -1024,6 +1024,14 @@
<oneOrMore>
<ref name="owner"/>
</oneOrMore>
<optional>
<ref name="copyright_scope"/>
</optional>
</element>
</define>
<define name="copyright_scope">
<element name="scope">
<text/>
</element>
</define>
<define name="from">
Expand Down
Binary file modified images/RelBib_BibliographicItem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion models/RelBib_BibliographicItem.wsd
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ History of changes:
- 20190619 refine medium, place
- 20190708 refine medium
- 20200411 add stage and substage abbreviations
- 20200601 copyright modelling
'/

'******* CONFIGURATION ************************************************
Expand All @@ -63,7 +64,7 @@ class BibliographicItem {
+script: Iso15924Code[0..*]
+abstract: FormattedString[0..*]
+status: DocumentStatus[0..1]
+copyright: CopyrightAssociation[0..1]
+copyright: CopyrightAssociation[0..*]
+relation: DocumentRelation[0..*]
+series: SeriesType[0..*]
+medium: MediumType[0..1]
Expand Down Expand Up @@ -105,6 +106,7 @@ class CopyrightAssociation{
+from: DateTime
+to: DateTime[0..1]
+owner: Contributor[1..*]
+scope: String[0..1]
}

class MediumType{
Expand Down

0 comments on commit ce4fc30

Please sign in to comment.