view restService/templates/serviceDescription.html @ 19:cce127a28fc9

added getpurls
author dwinter
date Wed, 21 Nov 2012 15:39:08 +0100
parents a2bcca6539fd
children 90643ccc6545
line wrap: on
line source

<h1>PURL service</h1>

<h2>/purl/PURL</h2>
<p> Takes a <em>PURL</em> als Parameter and returns the real path as TXT.

<h2>/search</h2>
<p>needs a parameter ?q=PATH </p>

<p>Searched the PURL or all PURLs, wich belong to the PATH the internal search format is "LIKE" </p>

<h2>/docuview/PURL</h3>

<p>Is explained 
at <a href="https://it-dev.mpiwg-berlin.mpg.de/tracs/metadataprovider/wiki/purls">https://it-dev.mpiwg-berlin.mpg.de/tracs/metadataprovider/wiki/purls</a>.
</p>

<h4>Config</h4>
The viewer configuration in stored in <em>viewer.config</em>.

<p> e.g.</p>
<pre>
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/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
</pre>

<p>The format is:

<pre>
FLAVOUR,FULTEXTVIEWER,IMAGEVIEWER
</pre>

</p>

<h3>/indexMeta/PURL</h3>
<p>
Redirects to the index.meta file of the source, if existing.
</p>


<h3>/getPurls</h3>
get new purls

GET: returns an simple web page to enter username and amount of purls needed

POST: expects the parameter "username" and "amount"", return list of purls