-
Notifications
You must be signed in to change notification settings - Fork 33
implement ocrd workspace update-page #1134
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
Conversation
|
Works for me. Thank you! |
|
Should there be a check if there already exists an element with the same |
If As for <xsd:attribute name="ORDER" type="xsd:integer" use="optional">
<xsd:annotation>
<xsd:documentation xml:lang="en">ORDER (integer/O): A representation of the element's order among its siblings (e.g., its absolute, numeric sequence). For an example, and clarification of the distinction between ORDER and ORDERLABEL, see the description of the ORDERLABEL attribute. </xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="ORDERLABEL" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation xml:lang="en">ORDERLABEL (string/O): A representation of the element's order among its siblings (e.g., “xii”), or of any non-integer native numbering system. It is presumed that this value will still be machine actionable (e.g., it would support ‘go to page ___’ function), and it should not be used as a replacement/substitute for the LABEL attribute. To understand the differences between ORDER, ORDERLABEL and LABEL, imagine a text with 10 roman numbered pages followed by 10 arabic numbered pages. Page iii would have an ORDER of “3”, an ORDERLABEL of “iii” and a LABEL of “Page iii”, while page 3 would have an ORDER of “13”, an ORDERLABEL of “3” and a LABEL of “Page 3”. </xsd:documentation>
</xsd:annotation>
</xsd:attribute>(from https://www.loc.gov/standards/mets/mets.xsd) So, no, I don't think we should enforce unique But I will check again whether the generic solution here produces valid order values before merging, these should be |
As long as the user provides an integer, it will be encoded correctly, the <error>/home/kba/monorepo/ocrd_all/core/testws/mets.xml: Line 781: Element '{http://www.loc.gov/METS/}div', attribute 'ORDER': 'foo' is not a valid value of the atomic type 'xs:integer'.</error>I think that is a reasonable assumption that if you have the need to edit the |
@kba, but IMO we have to respect DFG's application profile for METS here, too. Version 2.3.1 says regarding physical structMap in section 2.2.2.1 (on p.14):
So regarding the options you presented in #1133,
I would have preferred option 2 for setting. See #821 for getting that info on the CLI. |
As discussed in #1133