Skip to content

Commit

Permalink
put order to contact elements
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Jan 1, 2025
1 parent 0951d42 commit 268c555
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
6 changes: 3 additions & 3 deletions grammars/biblio.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ person =
## An identifier of the person according to an international identifier scheme
person-identifier*,
## Contact information for the person, including URI, address, phone number, and email
contact*
contact?
}

## The name of a person
Expand Down Expand Up @@ -266,7 +266,7 @@ OrganizationType =
## An identifier of the organization according to an international identifier scheme
org-identifier*,
## Contact information for the organization, including address, phone number, and email
contact*,
contact?,
## A logo for the organization
logo?

Expand Down Expand Up @@ -319,7 +319,7 @@ uri =
# TODO may change
## Contact information for a person or organization
contact =
( address | phone | email | uri )
( address*, phone*, email*, uri* )

## The phone number associated with a person or organization
phone = element phone {
Expand Down
32 changes: 25 additions & 7 deletions grammars/biblio.rng
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ Detailed in https://www.relaton.org/model/creator/</a:documentation>
<a:documentation>An identifier of the person according to an international identifier scheme</a:documentation>
</ref>
</zeroOrMore>
<zeroOrMore>
<optional>
<ref name="contact">
<a:documentation>Contact information for the person, including URI, address, phone number, and email</a:documentation>
</ref>
</zeroOrMore>
</optional>
</element>
</define>
<define name="fullname">
Expand Down Expand Up @@ -454,11 +454,11 @@ real names (if the person is named with a pseudonym or user name); previous lega
<a:documentation>An identifier of the organization according to an international identifier scheme</a:documentation>
</ref>
</zeroOrMore>
<zeroOrMore>
<optional>
<ref name="contact">
<a:documentation>Contact information for the organization, including address, phone number, and email</a:documentation>
</ref>
</zeroOrMore>
</optional>
<optional>
<ref name="logo">
<a:documentation>A logo for the organization</a:documentation>
Expand Down Expand Up @@ -540,12 +540,18 @@ real names (if the person is named with a pseudonym or user name); previous lega
<!-- TODO may change -->
<define name="contact">
<a:documentation>Contact information for a person or organization</a:documentation>
<choice>
<zeroOrMore>
<ref name="address"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phone"/>
</zeroOrMore>
<zeroOrMore>
<ref name="email"/>
</zeroOrMore>
<zeroOrMore>
<ref name="uri"/>
</choice>
</zeroOrMore>
</define>
<define name="phone">
<a:documentation>The phone number associated with a person or organization</a:documentation>
Expand Down Expand Up @@ -1783,9 +1789,21 @@ that the `number` given for the series applies to the second iteration of number
May be used to differentiate rendering of notes in bibliographies</a:documentation>
</attribute>
</optional>
<ref name="LocalizedMarkedUpString">
<ref name="LocalizedStringAttributes">
<a:documentation>The content of the note</a:documentation>
</ref>
<choice>
<oneOrMore>
<ref name="BasicBlockNoId">
<a:documentation>Multiple blocks of content</a:documentation>
</ref>
</oneOrMore>
<oneOrMore>
<ref name="TextElement">
<a:documentation>Single block of content</a:documentation>
</ref>
</oneOrMore>
</choice>
</element>
</define>
<define name="bibabstract">
Expand Down

0 comments on commit 268c555

Please sign in to comment.