changeset 12:0287aed01f2b

config and minor bugs
author dwinter
date Tue, 06 Nov 2012 08:41:18 +0100
parents fad73212354b
children a1577a498c85
files purlservice.wsgi restService/redirector.py restService/restService.py restService/viewer.config
diffstat 4 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/purlservice.wsgi	Mon Nov 05 09:29:21 2012 +0100
+++ b/purlservice.wsgi	Tue Nov 06 08:41:18 2012 +0100
@@ -1,5 +1,5 @@
 import sys
-sys.path.append("/usr/local/metadataServices")
+sys.path.append("/usr/local/metadataServices/purlService")
 
 
 import web
--- a/restService/redirector.py	Mon Nov 05 09:29:21 2012 +0100
+++ b/restService/redirector.py	Tue Nov 06 08:41:18 2012 +0100
@@ -53,8 +53,10 @@
         
         formats = self.viewers[flavour]
         
-        viewerWithIndexMetaFormatString =  formats[0];
-        viewerWithImagePathFormatString = formats[1];
+  
+        viewerWithIndexMetaFormatString = formats[0].rstrip().lstrip().replace("\n",'')
+        viewerWithImagePathFormatString = formats[1].lstrip().lstrip().replace("\n",'')
+      
         
       
         # checke ob es einen Image path gibt
--- a/restService/restService.py	Mon Nov 05 09:29:21 2012 +0100
+++ b/restService/restService.py	Tue Nov 06 08:41:18 2012 +0100
@@ -11,7 +11,7 @@
 
 urls = (
     '/purl/(.+)','purl',
-    '/docuviewer/(.+)','redirector',
+    '/docuview/(.+)','redirector',
     '/search','searcher',
 )
 
--- a/restService/viewer.config	Mon Nov 05 09:29:21 2012 +0100
+++ b/restService/viewer.config	Tue Nov 06 08:41:18 2012 +0100
@@ -1,3 +1,3 @@
 echo,http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?url=%s,http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?mode=imagepath&url=%s&viewMode=images
-libcoll,,http://libcoll.mpiwg-berlin.mpg.de/libview?url=%s&mode=imagepath
+libcoll,http://libcoll.mpiwg-berlin.mpg.de/libviewa?url=%s,http://libcoll.mpiwg-berlin.mpg.de/libviewa?url=%s&viewMode=images
 digilib,,http://digilib.mpiwg-berlin.mpg.de/digitallibrary/jquery/digilib.html?fn=%s