comparison software/eXist/webapp/mpdl/interface/echo/controller.xql @ 7:5589d865af7a

Erstellung XQL/XSL Applikation
author Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de>
date Tue, 08 Feb 2011 15:16:46 +0100
parents
children
comparison
equal deleted inserted replaced
6:2396a569e446 7:5589d865af7a
1 xquery version "1.0";
2
3 (: Controller XQuery for the mpdl application. :)
4
5 declare namespace dcterms="http://purl.org/dc/terms";
6 declare namespace echo="http://www.mpiwg-berlin.mpg.de/ns/echo/1.0/";
7
8
9 let $mpdlDocUri := "/archimedes/it/borro_fluss_012_it_1561.xml"
10 (: let $echoArchivePath := mpdl-text:getEchoArchivePath($mpdlDocUri) :)
11 let $echoURLDocuView := concat("http://echo.mpiwg-berlin.mpg.de/ECHOdocuView?url=", '')
12
13 return
14 if (starts-with($exist:path, '/docuView.xql'))
15 then
16 <dispatch xmlns="http://exist.sourceforge.net/NS/exist">
17 <redirect url="{$echoURLDocuView}"/>
18 </dispatch>
19 (: <add-parameter name="url" value="{$archivePath}"/> :)
20 (: </forward> :)
21 else
22 (: everything else is passed through :)
23 <ignore xmlns="http://exist.sourceforge.net/NS/exist">
24 <cache-control cache="yes"/>
25 </ignore>