Changeset 595:ee91a19633a0 in documentViewer


Ignore:
Timestamp:
Nov 16, 2012, 7:32:10 PM (12 years ago)
Author:
casties
Branch:
default
Message:

use dri and uri for ocrsearch (should be either or).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer/layer_image_search.zpt

    r594 r595  
    1313  <script type="text/javascript"
    1414    tal:define="global annServerUrl string:http://md.mpiwg-berlin.mpg.de/searchLines;
    15     annUri docinfo/documentPath;
    16     annPf pageinfo/pf | nothing;"
     15    dri docinfo/DRI | nothing;
     16    uri dri | docinfo/documentPath;
     17    uriParam python:test(dri, 'dri', 'uri');
     18    pf pageinfo/pf | nothing;"
    1719    tal:content="structure string:
    1820    dlOpts.digilibFrontendPath='/jquery/digilib-ann.html';
     
    2022    dlOpts.annotationsReadOnly=true;
    2123    dlOpts.annotatorPlugins=['Store','Markdown','DigilibIntegrator'];
    22     dlOpts.annotatorPluginSettings={'Store':{'loadFromSearch':{'uri':'$annUri','pf':'$annPf','query':'$query'}}};
     24    dlOpts.annotatorPluginSettings={'Store':{'loadFromSearch':{'$uriParam':'$uri','pf':'$pf','query':'$query'}}};
    2325    "></script>
    2426</metal:block>
Note: See TracChangeset for help on using the changeset viewer.