# HG changeset patch # User dwinter # Date 1359476425 -3600 # Node ID 90643ccc6545537f64b754c1af98c6e1bfc0fd90 # Parent cf4503528b5e6af9f8bc82e88a2a50c44fcead8b cross scripting and xml mime-type diff -r cf4503528b5e -r 90643ccc6545 restService/templates/serviceDescription.html --- a/restService/templates/serviceDescription.html Tue Jan 29 16:51:28 2013 +0100 +++ b/restService/templates/serviceDescription.html Tue Jan 29 17:20:25 2013 +0100 @@ -45,3 +45,13 @@ POST: expects the parameter "username" and "amount"", return list of purls +

/purls/searchSolr?text-url-path=PATH

+ +gives the path to the index.meta at the storage system as XML + +eg. purls/searchSolr?text-url-path=/diverse/de/Einst_Bemer_de_1907.xml + +an additional parameter format=short suppresses the additional metadata in the output. + + + diff -r cf4503528b5e -r 90643ccc6545 searchService/searchSolr.py --- a/searchService/searchSolr.py Tue Jan 29 16:51:28 2013 +0100 +++ b/searchService/searchSolr.py Tue Jan 29 17:20:25 2013 +0100 @@ -12,8 +12,8 @@ import urllib2 import logging -#SOLR_SERVER="https://md.mpiwg-berlin.mpg.de/solr" -SOLR_SERVER="http://127.0.0.1:8983/solr" +SOLR_SERVER="https://md.mpiwg-berlin.mpg.de/solr" +#SOLR_SERVER="http://127.0.0.1:8983/solr" DRI_SERVER="http://md.mpiwg-berlin.mpg.de/" class searchSolr: @@ -79,7 +79,10 @@ ret+="" - + web.header('Content-Type', 'text/xml') + web.header('Access-Control-Allow-Origin', '*') + web.header('Access-Control-Allow-Credentials', 'true') + return ret+""