Skip to content

Commit

Permalink
add depiction: #49
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Nov 28, 2023
1 parent 38af0f2 commit 37e6dbf
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 12 deletions.
6 changes: 5 additions & 1 deletion grammars/biblio.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ organization =
orgname = element name { LocalizedString | NameWithVariants }
subdivision = element subdivision { LocalizedString | NameWithVariants }
logo = element logo { image }
depiction = element depiction {
attribute scope { text }?,
image*
}

NameWithVariants =
element primary { LocalizedString },
Expand Down Expand Up @@ -279,7 +283,7 @@ BibliographicItem =
btitle+, bsource*, docidentifier+, docnumber?, bdate*, contributor*,
edition?, version*, biblionote*, language*, locale*, script*,
bibabstract*, status?, copyright*, docrelation*, series*, medium?, bplace*, bprice*,
extent*, bibliographic_size?, accesslocation*, license*, bclassification*, bkeyword*, validity?
extent*, bibliographic_size?, accesslocation*, license*, bclassification*, bkeyword*, validity?, depiction?

ReducedBibliographicItem =
attribute type { BibItemType }?,
Expand Down
13 changes: 13 additions & 0 deletions grammars/biblio.rng
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,16 @@
<ref name="image"/>
</element>
</define>
<define name="depiction">
<element name="depiction">
<optional>
<attribute name="scope"/>
</optional>
<zeroOrMore>
<ref name="image"/>
</zeroOrMore>
</element>
</define>
<define name="NameWithVariants">
<element name="primary">
<ref name="LocalizedString"/>
Expand Down Expand Up @@ -760,6 +770,9 @@
<optional>
<ref name="validity"/>
</optional>
<optional>
<ref name="depiction"/>
</optional>
</define>
<define name="ReducedBibliographicItem">
<optional>
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.
6 changes: 5 additions & 1 deletion models/BibliographicItem.lutaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ class BibliographicItem {
"physical" manifestations of an information resource.
}
}

+place: PlaceType[0..*] {
definition {
The geographic location associated with the production of the bibliographic item.
Expand Down Expand Up @@ -172,4 +171,9 @@ class BibliographicItem {
Information about how long the current description of the bibliographic item is valid for.
}
}
+depiction: Depiction[0..*] {
definition {
Depiction of the bibliographic item.
}
}
}
15 changes: 15 additions & 0 deletions models/Depiction.lutaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class Depiction {
definition {
Depiction of the bibliographic item.
}
+scope: String[0..1] {
definition {
Description of what is being depicted
}
}
+image: <<Basicdoc>>Image[0..*] {
definition {
A visual depiction of the bibliographic item.
}
}
}
26 changes: 16 additions & 10 deletions views/RelBib_BibliographicItem.lutaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,26 @@ diagram RelBib_BibliographicItem {
include ../models/RegionType.lutaml
include ../models/BibItemSize.lutaml
include ../models/BibItemSizeType.lutaml
include ../models/Depiction.lutaml

association {
owner DocumentIdentifier
member BibliographicItem
owner BibliographicItem
member DocumentIdentifier
member_type direct
}
association {
owner DocumentStatus
member BibliographicItem
owner BibliographicItem
member DocumentStatus
member_type direct
}
association {
owner CopyrightAssociation
member BibliographicItem
owner BibliographicItem
member CopyrightAssociation
member_type direct
}
association {
owner MediumType
member BibliographicItem
owner BibliographicItem
member MediumType
member_type direct
}
association {
Expand All @@ -48,8 +49,8 @@ diagram RelBib_BibliographicItem {
member_type direct
}
association {
owner VersionInfo
member BibliographicItem
owner BibliographicItem
member VersionInfo
member_type direct
}
association {
Expand All @@ -67,6 +68,11 @@ diagram RelBib_BibliographicItem {
member TypedNote
owner_type direct
}
association {
owner BibliographicItem
member Depiction
owner_type direct
}
association {
owner BibliographicItem
member Edition
Expand Down

0 comments on commit 37e6dbf

Please sign in to comment.