Mercurial > hg > digilib
comparison digilib-config.html @ 1666:1beeb9319d78
Creating site for 2.5-SNAPSHOT
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 21 Nov 2017 19:34:58 +0000 |
parents | fe8300fdcd9d |
children | 8a9c66abb57c |
comparison
equal
deleted
inserted
replaced
1659:fe8300fdcd9d | 1666:1beeb9319d78 |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 | Generated by Apache Maven Doxia at 2017-11-20 | 3 | Generated by Apache Maven Doxia at 2017-11-21 |
4 | Rendered using Apache Maven Fluido Skin 1.3.0 | 4 | Rendered using Apache Maven Fluido Skin 1.3.0 |
5 --> | 5 --> |
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
7 <head> | 7 <head> |
8 <meta charset="UTF-8" /> | 8 <meta charset="UTF-8" /> |
9 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | 9 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
10 <meta name="Date-Revision-yyyymmdd" content="20171120" /> | 10 <meta name="Date-Revision-yyyymmdd" content="20171121" /> |
11 <meta http-equiv="Content-Language" content="en" /> | 11 <meta http-equiv="Content-Language" content="en" /> |
12 <title>digilib - The Digital Image Library – Configuring digilib</title> | 12 <title>digilib - The Digital Image Library – Configuring digilib</title> |
13 <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" /> | 13 <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" /> |
14 <link rel="stylesheet" href="./css/site.css" /> | 14 <link rel="stylesheet" href="./css/site.css" /> |
15 <link rel="stylesheet" href="./css/print.css" media="print" /> | 15 <link rel="stylesheet" href="./css/print.css" media="print" /> |
39 | 39 |
40 <div id="breadcrumbs"> | 40 <div id="breadcrumbs"> |
41 <ul class="breadcrumb"> | 41 <ul class="breadcrumb"> |
42 | 42 |
43 | 43 |
44 <li id="publishDate">Last Published: 2017-11-20</li> | 44 <li id="publishDate">Last Published: 2017-11-21</li> |
45 <li class="divider">|</li> <li id="projectVersion">Version: 2.5-SNAPSHOT</li> | 45 <li class="divider">|</li> <li id="projectVersion">Version: 2.5-SNAPSHOT</li> |
46 | 46 |
47 | 47 |
48 | 48 |
49 | 49 |
213 <p>A more extensive example is included in the sources as <a class="externalLink" href="https://github.com/robcast/digilib/blob/master/webapp/src/main/webapp/WEB-INF/digilib-config.xml.template">digilib-config.xml.template</a>.</p> | 213 <p>A more extensive example is included in the sources as <a class="externalLink" href="https://github.com/robcast/digilib/blob/master/webapp/src/main/webapp/WEB-INF/digilib-config.xml.template">digilib-config.xml.template</a>.</p> |
214 <div class="section"> | 214 <div class="section"> |
215 <h2><a name="Available_parameters"></a>Available parameters</h2> | 215 <h2><a name="Available_parameters"></a>Available parameters</h2> |
216 <p>The documented parameter values below are the defaults.</p> | 216 <p>The documented parameter values below are the defaults.</p> |
217 <p>If relative paths are provided as file locations, these will be resolved with the web application’s directory as base.</p> | 217 <p>If relative paths are provided as file locations, these will be resolved with the web application’s directory as base.</p> |
218 <p>You can inspect a summary of your running digilib configuration at the URL <tt><base_url>/server/dlConfig.jsp</tt>.</p> | 218 <p>You can inspect a summary of your running digilib configuration at the URL <tt><base_url>/server/dlConfig.jsp</tt> e.g. <a class="externalLink" href="http://localhost:8080/digilib/server/dlConfig.jsp">http://localhost:8080/digilib/server/dlConfig.jsp</a>.</p> |
219 <div class="section"> | 219 <div class="section"> |
220 <h3><a name="Image_locations"></a>Image locations</h3> | 220 <h3><a name="Image_locations"></a>Image locations</h3> |
221 | 221 |
222 <div class="source"> | 222 <div class="source"> |
223 <div class="source"> | 223 <div class="source"> |
224 <pre><parameter name="basedir-list" value="sample-images" /> | 224 <pre><parameter name="basedir-list" value="sample-images" /> |
225 </pre></div></div> | 225 </pre></div></div> |
226 <p>A list of directories where images are searched. See <a href="image-directories.html">this document</a> for details.</p> | 226 <p>A list of directories where images are searched. See <a href="image-directories.html">this document</a> for details (<b>required</b>).</p> |
227 | 227 |
228 <div class="source"> | 228 <div class="source"> |
229 <div class="source"> | 229 <div class="source"> |
230 <pre><parameter name="denied-image" value="img/digilib-denied.png" /> | 230 <pre><parameter name="denied-image" value="img/digilib-denied.png" /> |
231 </pre></div></div> | 231 </pre></div></div> |
252 <div class="source"> | 252 <div class="source"> |
253 <div class="source"> | 253 <div class="source"> |
254 <pre><parameter name="mapping-file" value="digilib-map.xml" /> | 254 <pre><parameter name="mapping-file" value="digilib-map.xml" /> |
255 </pre></div></div> | 255 </pre></div></div> |
256 <p>The location of the mapping file. Refer to <a class="externalLink" href="https://github.com/robcast/digilib/blob/master/webapp/src/main/webapp/WEB-INF/digilib-map.xml.template">digilib-map.xml.template</a> for an example. </p> | 256 <p>The location of the mapping file. Refer to <a class="externalLink" href="https://github.com/robcast/digilib/blob/master/webapp/src/main/webapp/WEB-INF/digilib-map.xml.template">digilib-map.xml.template</a> for an example. </p> |
257 <p>The file contains <tt>mapping</tt> elements with a <tt>link</tt> attribute containing a ‘virtual directory’ name that is mapped to the directory given in the <tt>dir</tt> attribute.</p></div> | 257 <p>The file contains <tt>mapping</tt> elements with a <tt>link</tt> attribute containing a ‘virtual directory’ name that is redirected to the directory given in the <tt>dir</tt> attribute.</p></div> |
258 <div class="section"> | 258 <div class="section"> |
259 <h3><a name="Image_processing_options"></a>Image processing options</h3> | 259 <h3><a name="Image_processing_options"></a>Image processing options</h3> |
260 | 260 |
261 <div class="source"> | 261 <div class="source"> |
262 <div class="source"> | 262 <div class="source"> |
294 <h3><a name="Authentication_and_authorization"></a>Authentication and authorization</h3> | 294 <h3><a name="Authentication_and_authorization"></a>Authentication and authorization</h3> |
295 <p>Details are provided in the <a href="auth.html">documentation on authentication and authorization</a>.</p> | 295 <p>Details are provided in the <a href="auth.html">documentation on authentication and authorization</a>.</p> |
296 | 296 |
297 <div class="source"> | 297 <div class="source"> |
298 <div class="source"> | 298 <div class="source"> |
299 <pre><parameter name="use-authorization" value="false" /> | |
300 </pre></div></div> | |
301 <p>Enables or disables all authorization. If <tt>use-authorization</tt> is <tt>true</tt> you also have to configure <tt>authnops-class</tt>, <tt>authzops-class</tt> and the <tt>auth-file</tt> and its contents.</p> | |
302 | |
303 <div class="source"> | |
304 <div class="source"> | |
299 <pre><parameter name="auth-file" value="digilib-auth.xml" /> | 305 <pre><parameter name="auth-file" value="digilib-auth.xml" /> |
300 </pre></div></div> | 306 </pre></div></div> |
301 <p>Configuration file for authentication and authorization. The format and content of the configuration file is determined by the chosen authentication and authorization classes. </p> | 307 <p>Configuration file for authentication and authorization. The format and content of the configuration file is determined by the chosen authentication and authorization classes. </p> |
302 | 308 |
303 <div class="source"> | 309 <div class="source"> |
314 | 320 |
315 <div class="source"> | 321 <div class="source"> |
316 <div class="source"> | 322 <div class="source"> |
317 <pre><parameter name="authzops-class" value="digilib.auth.PathAuthzOps" /> | 323 <pre><parameter name="authzops-class" value="digilib.auth.PathAuthzOps" /> |
318 </pre></div></div> | 324 </pre></div></div> |
319 <p>The class to handle authorization.</p> | 325 <p>The class to handle authorization.</p></div> |
320 | |
321 <div class="source"> | |
322 <div class="source"> | |
323 <pre><parameter name="use-authorization" value="false" /> | |
324 </pre></div></div> | |
325 <p>Enable or disable all authorization. If <tt>use-authorization</tt> is <tt>true</tt> it also needs to be configured using <tt>authnops-class</tt> and <tt>authzops-class</tt> and the <tt>auth-file</tt>.</p></div> | |
326 <div class="section"> | 326 <div class="section"> |
327 <h3><a name="IIIF_API_options"></a>IIIF API options</h3> | 327 <h3><a name="IIIF_API_options"></a>IIIF API options</h3> |
328 <p>The options configure the IIIF interface. For more information see the <a href="iiif-api">digilib IIIF documentation</a></p> | 328 <p>The options configure the IIIF interface. For more information see the <a href="iiif-api">digilib IIIF documentation</a></p> |
329 | 329 |
330 <div class="source"> | 330 <div class="source"> |
361 | 361 |
362 <div class="source"> | 362 <div class="source"> |
363 <div class="source"> | 363 <div class="source"> |
364 <pre><parameter name="max-waiting-threads" value="20" /> | 364 <pre><parameter name="max-waiting-threads" value="20" /> |
365 </pre></div></div> | 365 </pre></div></div> |
366 <p>The maximum number of requests waiting in the queue before sending “service unavailable”.</p> | 366 <p>The maximum number of requests waiting in the queue before new requests get “service unavailable”.</p> |
367 | 367 |
368 <div class="source"> | 368 <div class="source"> |
369 <div class="source"> | 369 <div class="source"> |
370 <pre><parameter name="worker-threads" value="2" /> | 370 <pre><parameter name="worker-threads" value="2" /> |
371 </pre></div></div> | 371 </pre></div></div> |
375 <div class="source"> | 375 <div class="source"> |
376 <pre><parameter name="worker-timeout" value="60000" /> | 376 <pre><parameter name="worker-timeout" value="60000" /> |
377 </pre></div></div> | 377 </pre></div></div> |
378 <p>Timeout for worker threads in milliseconds.</p></div> | 378 <p>Timeout for worker threads in milliseconds.</p></div> |
379 <div class="section"> | 379 <div class="section"> |
380 <h3><a name="Assorted_options"></a>Assorted options</h3> | 380 <h3><a name="Other_options"></a>Other options</h3> |
381 | 381 |
382 <div class="source"> | 382 <div class="source"> |
383 <div class="source"> | 383 <div class="source"> |
384 <pre><parameter name="default-errmsg-type" value="image" /> | 384 <pre><parameter name="default-errmsg-type" value="image" /> |
385 </pre></div></div> | 385 </pre></div></div> |
402 | 402 |
403 <div class="source"> | 403 <div class="source"> |
404 <div class="source"> | 404 <div class="source"> |
405 <pre><parameter name="log-config-file" value="log4j-config.xml" /> | 405 <pre><parameter name="log-config-file" value="log4j-config.xml" /> |
406 </pre></div></div> | 406 </pre></div></div> |
407 <p>Location of the logging configuration file. The current logger is <a class="externalLink" href="https://logging.apache.org/log4j/1.2/manual.html">Log4J 1.2</a>.</p></div> | 407 <p>Location of the logging configuration file. The current logging library is <a class="externalLink" href="https://logging.apache.org/log4j/1.2/manual.html">Log4J 1.2</a>.</p></div> |
408 <div class="section"> | 408 <div class="section"> |
409 <h3><a name="Unknown_category"></a>Unknown category</h3> | 409 <h3><a name="Options_for_developers"></a>Options for developers</h3> |
410 <p><b>TODO</b> move items to appropriate sections</p> | 410 <p>Using these options you can replace default classes used by digilib with your own implementations to change the behaviour of digilib. </p> |
411 | 411 |
412 <div class="source"> | 412 <div class="source"> |
413 <div class="source"> | 413 <div class="source"> |
414 <pre><parameter name="dirmeta-class" value="digilib.meta.IndexMetaDirMeta" /> | 414 <pre><parameter name="docuimage-class" value="digilib.image.ImageLoaderDocuImage" /> |
415 </pre></div></div> | 415 </pre></div></div> |
416 <p>Class for <b>TODO</b>.</p> | 416 <p>Class of the <tt>DocuImage</tt> instance. You can replace the <tt>digilib.image.DocuImage</tt> implementation to use a different image toolkit than Java ImageIO. (There are deprecated alternative implementations in the <tt>common-jai</tt>, <tt>common-imagej</tt> and <tt>common-bioformats</tt> modules.) </p> |
417 | |
418 <div class="source"> | |
419 <div class="source"> | |
420 <pre><parameter name="docuimage-hacks" value="" /> | |
421 </pre></div></div> | |
422 <p>Text string to selectively enable specific <tt>Hacks</tt> in the <tt>DocuImage</tt> implementation (see <a class="externalLink" href="https://github.com/robcast/digilib/blob/master/common/src/main/java/digilib/image/ImageLoaderDocuImage.java">the source</a>)</p> | |
423 | |
424 <div class="source"> | |
425 <div class="source"> | |
426 <pre><parameter name="filemeta-class" value="digilib.meta.IndexMetaFileMeta" /> | |
427 <parameter name="dirmeta-class" value="digilib.meta.IndexMetaDirMeta" /> | |
428 </pre></div></div> | |
429 <p>Classes of the <tt>digilib.meta.FileMeta</tt> and <tt>digilib.meta.DirMeta</tt> implementations. You can change these implementations to change the way digilib finds metadata about image files.</p> | |
430 <p><tt>IndexMetaFileMeta</tt> and <tt>IndexMetaDirMeta</tt> read metadata from <tt>index.meta</tt> and <tt>*.meta</tt> XML files according to the <a class="externalLink" href="http://intern.mpiwg-berlin.mpg.de/digitalhumanities/mpiwg-metadata-documentation/formate/indexmeta-standard">index meta standard</a>.</p> | |
417 | 431 |
418 <div class="source"> | 432 <div class="source"> |
419 <div class="source"> | 433 <div class="source"> |
420 <pre><parameter name="docudirectory-class" value="digilib.io.BaseDirDocuDirectory" /> | 434 <pre><parameter name="docudirectory-class" value="digilib.io.BaseDirDocuDirectory" /> |
421 </pre></div></div> | 435 </pre></div></div> |
422 <p>Class for <b>TODO</b>.</p> | 436 <p>Class of the <tt>digilib.io.DocuDirectory</tt> implementation. You can change this implementation to change the way digilib finds image files (including different resolutions).</p></div></div> |
423 | |
424 <div class="source"> | |
425 <div class="source"> | |
426 <pre><parameter name="docuimage-class" value="digilib.image.ImageLoaderDocuImage" /> | |
427 </pre></div></div> | |
428 <p>Class for the <tt>DocuImage</tt> instance, <b>TODO</b> elaborate intended use</p> | |
429 | |
430 <div class="source"> | |
431 <div class="source"> | |
432 <pre><parameter name="docuimage-hacks" value="" /> | |
433 </pre></div></div> | |
434 <p><b>TODO</b> elaborate</p> | |
435 | |
436 <div class="source"> | |
437 <div class="source"> | |
438 <pre><parameter name="filemeta-class" value="digilib.meta.IndexMetaFileMeta" /> | |
439 </pre></div></div> | |
440 <p>Class for <b>TODO</b>.</p></div></div> | |
441 </div> | 437 </div> |
442 </div> | 438 </div> |
443 </div> | 439 </div> |
444 | 440 |
445 <hr/> | 441 <hr/> |