Ajout des sources dans les méta-données
authorPatrick PIERRE
jeu., 07 nov. 2013 12:53:47 +0100
changeset 259 8b0f1432fd11
parent 258 5f98e1b292fe
child 260 a904cb6b2760
Ajout des sources dans les méta-données
RelaxNG/publiset.rnc
--- a/RelaxNG/publiset.rnc	mer. nov. 06 18:28:08 2013 +0100
+++ b/RelaxNG/publiset.rnc	jeu. nov. 07 12:53:47 2013 +0100
@@ -58,6 +58,7 @@
  & collection?
  & contributors?
  & date?
+ & (source, source?)?
  & keywordset?
  & subjectset?
  & abstract?
@@ -236,6 +237,35 @@
 
 role.content = "author" | "illustrator" | "publisher" | "packager"
 
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+source = element source {
+   (  (attribute type { "book" }, source.content.book)
+    | (attribute type { "file" }, source.content.file))
+}
+
+source.content.book =
+   identifier.ean?
+ & title
+ & subtitle?
+ & copyright?
+ & collection?
+ & folio?
+ & pages?
+ 
+source.content.file =
+   identifier.uri
+
+# ~~~~~~ folio
+folio = element folio { folio.content }
+
+folio.content = xsd:positiveInteger | xsd:token {pattern = "[DLXVI]+"}
+
+# ~~~~~~ pages
+pages = element pages { pages.content }
+
+pages.content = xsd:positiveInteger
+
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword & subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 # ~~~~~~ keywordset