Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kitodo-schema
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dmj
kitodo-schema
Commits
7868a9f6
Commit
7868a9f6
authored
7 years ago
by
David Maus
Browse files
Options
Downloads
Patches
Plain Diff
Grammatik für Konfiguration der Projektformulare
parent
4431ff2b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+3
-1
3 additions, 1 deletion
Makefile
src/projects.rnc
+124
-0
124 additions, 0 deletions
src/projects.rnc
with
127 additions
and
1 deletion
Makefile
+
3
−
1
View file @
7868a9f6
...
@@ -11,12 +11,14 @@ SAXON = java -jar lib/saxon9he.jar
...
@@ -11,12 +11,14 @@ SAXON = java -jar lib/saxon9he.jar
%.sch
:
%.rng
%.sch
:
%.rng
$(
SAXON
)
-xsl
:lib/rngsch.xsl
-o
:
$@
$<
$(
SAXON
)
-xsl
:lib/rngsch.xsl
-o
:
$@
$<
all
:
ruleset import test
all
:
ruleset import
projects
test
import
:
src/import.xsd src/import.rng
import
:
src/import.xsd src/import.rng
ruleset
:
src/ruleset.xsd src/ruleset.rng src/ruleset.sch
ruleset
:
src/ruleset.xsd src/ruleset.rng src/ruleset.sch
projects
:
src/projects.xsd src/projects.rng
.PHONY
:
clean
.PHONY
:
clean
clean
:
clean
:
rm
-f
src/
*
.xsd
rm
-f
src/
*
.xsd
...
...
This diff is collapsed.
Click to expand it.
src/projects.rnc
0 → 100644
+
124
−
0
View file @
7868a9f6
# -*- mode: rnc; -*-
#
# RelaxNG Schema für Kitido.Production Projektkonfiguration
#
#
# Author: David Maus <maus@hab.de>
#
namespace s = "http://purl.oclc.org/dsdl/schematron"
start = goobiProjects
goobiProjects =
element goobiProjects {
project+
}
project =
element project {
attribute name { text }
& createNewProcess
& tifheader
& dmsImport
}
createNewProcess =
element createNewProcess {
itemlist
& opac
& templates
& defaultdoctype
& metadatageneration
}
opac =
element opac {
attribute use { xsd:boolean }
& element catalogue {
text
}+
}
templates =
element templates {
attribute use { xsd:boolean }
& empty
}
defaultdoctype =
element defaultdoctype {
text
}
metadatageneration =
element metadatageneration {
attribute use { xsd:boolean }
& empty
}
itemlist =
element itemlist {
item+
& hide
& processtitle+
}
item =
( selectItem | textItem )
selectItem =
element item {
baseItemAttrs,
attribute multiselect { xsd:boolean },
text,
select+
}
textItem =
element item {
baseItemAttrs,
text
}
baseItemAttrs =
attribute from { "vorlage" | "werk" },
attribute required { xsd:boolean }?,
attribute isdoctype { text }?,
attribute isnotdoctype { text }?,
StructTypeMappingAttrs?
select =
element select {
attribute label { text },
text
}
processtitle =
element processtitle {
attribute isdoctype { text },
text
}
hide =
element hide {
empty
}
StructTypeMappingAttrs =
attribute ughbinding { xsd:boolean }?,
attribute docstruct { xsd:NMTOKEN },
attribute metadata { xsd:NMTOKEN }
tifheader =
element tifheader {
element monograph { text }
& element multivolume { text }
& element periodical { text }
& empty
}
dmsImport =
element dmsImport {
empty
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment