Skip to content

Commit

Permalink
activate export
Browse files Browse the repository at this point in the history
  • Loading branch information
riedde committed Aug 6, 2024
1 parent ba79a8a commit 292e27c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controller.xql
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,14 @@ else if (matches($exist:path, '^/cmif_v2.xml$')) then
</forward>
</dispatch>

(: OAI-PMH-Interface :)
else if (matches($exist:path, '/(en|de)?/?' || config:get-option('generalIdPattern') || '(.*)/oai.xml')) then
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<forward url="{concat($exist:controller, '/modules/oai.xql')}">
<set-attribute name="docID" value="{functx:substring-after-last(functx:substring-before-last($exist:path,'/'),'/')}"/>
</forward>
</dispatch>

(: Sitemap :)
else if (matches($exist:path, '^/sitemap(/?|/index.xml)?$') or matches($exist:path, '^/sitemap/sitemap_(en|de).xml.(gz|zip)$')) then
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
Expand Down

0 comments on commit 292e27c

Please sign in to comment.