Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
selbstzeugnisse-hab
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
Maximilian Görmar
selbstzeugnisse-hab
Commits
f4011f07
Commit
f4011f07
authored
7 years ago
by
David Maus
Browse files
Options
Downloads
Patches
Plain Diff
Download der Edition
parent
246173c0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/routes.php
+3
-0
3 additions, 0 deletions
config/routes.php
resources/mets.xml
+7
-11
7 additions, 11 deletions
resources/mets.xml
resources/xslt/edition/download.xsl
+37
-0
37 additions, 0 deletions
resources/xslt/edition/download.xsl
with
47 additions
and
11 deletions
config/routes.php
+
3
−
0
View file @
f4011f07
...
...
@@ -15,6 +15,9 @@ $app->get('/edition/richtlinien', 'controller.staticpage:handle')
$app
->
get
(
'/edition/diarium/register.xml'
,
'controller.staticpage:handle'
)
->
bind
(
'edition.diarium.register'
);
$app
->
get
(
'/edition/diarium/download'
,
'controller.staticpage:handle'
)
->
bind
(
'edition.diarium.download'
);
$app
->
get
(
'/edition/diarium/{metsId}'
,
'controller.dynamicpage:handle'
)
->
bind
(
'edition.diarium.jahr'
)
->
convert
(
'metsId'
,
function
(
$metsId
)
{
return
"edition.diarium.
{
$metsId
}
"
;
});
...
...
This diff is collapsed.
Click to expand it.
resources/mets.xml
+
7
−
11
View file @
f4011f07
...
...
@@ -205,6 +205,9 @@
<div
ID=
"edition.richtlinien"
LABEL=
"Richtlinien"
>
<fptr
FILEID=
"edition.richtlinien.xml"
/>
</div>
<div
ID=
"edition.diarium.download"
>
<fptr
FILEID=
"edition.diarium.xml"
/>
</div>
<div
ID=
"edition.diarium"
LABEL=
"Diarium August II."
>
<fptr
FILEID=
"edition.diarium.xml"
/>
<div
ID=
"edition.diarium.front"
>
...
...
@@ -387,6 +390,10 @@
<interfaceDef
LOCTYPE=
"URL"
xlink:href=
"http://www.w3.org/TR/xslt"
/>
<mechanism
LOCTYPE=
"URL"
xlink:href=
"xslt/default.xsl"
/>
</behavior>
<behavior
STRUCTID=
"edition.diarium.download"
>
<interfaceDef
LOCTYPE=
"URL"
xlink:href=
"http://www.w3.org/TR/xslt"
/>
<mechanism
LOCTYPE=
"URL"
xlink:href=
"xslt/edition/download.xsl"
/>
</behavior>
<behavior
STRUCTID=
"edition.diarium"
>
<interfaceDef
LOCTYPE=
"URL"
xlink:href=
"http://www.w3.org/TR/xslt"
/>
<mechanism
LOCTYPE=
"URL"
xlink:href=
"xslt/edition/diarium.xsl"
/>
...
...
@@ -451,15 +458,4 @@
</behavior>
</behaviorSec>
<behaviorSec
ID=
"tei"
>
<behavior
STRUCTID=
"repertorium.eintrag"
>
<interfaceDef
LOCTYPE=
"URL"
xlink:href=
"http://www.w3.org/TR/xslt"
/>
<mechanism
LOCTYPE=
"URL"
xlink:href=
"xslt/identity.xsl"
/>
</behavior>
<behavior
STRUCTID=
"edition.diarium"
>
<interfaceDef
LOCTYPE=
"URL"
xlink:href=
"http://www.w3.org/TR/xslt"
/>
<mechanism
LOCTYPE=
"URL"
xlink:href=
"xslt/identity.xsl"
/>
</behavior>
</behaviorSec>
</mets>
This diff is collapsed.
Click to expand it.
resources/xslt/edition/download.xsl
0 → 100644
+
37
−
0
View file @
f4011f07
<xsl:transform
version=
"1.0"
xmlns:tei=
"http://www.tei-c.org/ns/1.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
<xsl:output
method=
"xml"
encoding=
"utf-8"
media-type=
"application/xml"
/>
<xsl:template
match=
"node() | @*"
>
<xsl:copy>
<xsl:apply-templates
select=
"node() | @*"
/>
</xsl:copy>
</xsl:template>
<xsl:template
match=
"@xml:base"
/>
<xsl:template
match=
"@ref[starts-with(., 'register.xml')]"
>
<xsl:choose>
<xsl:when
test=
"document(.)/tei:idno[@type = 'URI']"
>
<xsl:attribute
name=
"ref"
>
<xsl:value-of
select=
"document(.)/tei:idno[@type = 'URI']"
/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute
name=
"ref"
>
<xsl:value-of
select=
"concat('tag:selbstzeugnisse.hab.de,2017:edition/diarium/register#', substring-after(., '#'))"
/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template
match=
"@facs[starts-with(., 'http://selbstzeugnisse.hab.de/edition/images/')]"
>
<xsl:attribute
name=
"facs"
>
<xsl:variable
name=
"imageNr"
select=
"substring-before(substring-after(., 'http://selbstzeugnisse.hab.de/edition/images/'), '.jpg')"
/>
<xsl:value-of
select=
"concat('http://diglib.hab.de/mss/42-19-aug-2f/start.htm?image=', $imageNr)"
/>
</xsl:attribute>
</xsl:template>
</xsl:transform>
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