Changeset 477:17f0290b2327 in documentViewer


Ignore:
Timestamp:
Aug 10, 2011, 7:18:03 PM (13 years ago)
Author:
casties
Branch:
elementtree
Message:

small fixes.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r476 r477  
    258258                        # seems to be text-only - update page count
    259259                        docinfo['numPages'] = np
    260                         pageinfo['end'] = min(pageinfo['end'], np)
     260                        #pageinfo['end'] = min(pageinfo['end'], np)
    261261                        pageinfo['numgroups'] = int(np / pageinfo['groupsize'])
    262262                        if np % pageinfo['groupsize'] > 0:
  • documentViewer.py

    r476 r477  
    177177            logging.error("Unable to find MetaDataFolder 'metadata': "+str(e))
    178178           
     179        if digilibBaseUrl is not None:
     180            self.digilibBaseUrl = digilibBaseUrl
     181           
    179182       
    180183    # proxy text server methods to fulltextclient
     
    448451        # add self url
    449452        docinfo['viewerUrl'] = self.getDocumentViewerURL()
     453        docinfo['digilibBaseUrl'] = self.digilibBaseUrl
    450454        # get index.meta DOM
    451455        docUrl = None
     
    516520        # image path
    517521        if mode != 'texttool':
    518             # override image path from texttool
     522            # override image path from texttool with url
    519523            docinfo['imagePath'] = url.replace('/mpiwg/online/', '', 1)
     524
     525           
    520526
    521527        # number of images from digilib
  • zpt/changeDocumentViewer.zpt

    r87 r477  
    1818        <p class="form-text">Access groups (separated by ',') that are considered local, i.e. when a ressource restricts access
    1919        to one of these groups, local access to the ressource is granted.</p>
     20        <p class="form-optional">Digilib base URL</p>
     21        <p class="form-element"><input size="80" tal:attributes="value here/digilibBaseUrl | nothing" name="digilibBaseUrl"></p>
     22        <p class="form-text">Leave empty for autoconfiguration.</p>
    2023               
    2124                <p><input type="submit" value="change"></p>
Note: See TracChangeset for help on using the changeset viewer.