Changes in [615:d6eca930a534:618:54d3498a6e78] in documentViewer
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r615 r618 22 22 def getMDText(node): 23 23 """returns the @text content from the MetaDataProvider metadata node""" 24 25 26 24 27 if isinstance(node, dict): 25 28 return node.get('@text', None) 26 29 30 if isinstance(node,list): #more than one text file if there is an attribute don't choose it 31 for nodeInList in node: 32 attr = nodeInList.get("@attr",None) 33 if attr is None: 34 return node.get('@text',None) 35 return None 36 37 38 27 39 return node 28 40 … … 256 268 logging.error("template folder missing!") 257 269 return "ERROR: template folder missing!" 258 270 271 272 259 273 if not getattr(self, 'digilibBaseUrl', None): 260 274 self.digilibBaseUrl = self.findDigilibUrl() or "http://digilib.mpiwg-berlin.mpg.de/digitallibrary" … … 751 765 # old style text URL 752 766 textUrl = getMDText(texttool.get('text', None)) 767 768 769 770 753 771 if textUrl and docPath: 754 772 if urlparse.urlparse(textUrl)[0] == "": #keine url -
zpt/viewer/layer_image_annotator.zpt
r599 r616 24 24 dlOpts.annotationUser='$annUser'; 25 25 dlOpts.annotatorPlugins=['Auth','Permissions','Store','Markdown','DigilibIntegrator']; 26 dlOpts.annotationPageUri='$annUrl'; 26 27 dlOpts.annotatorPluginSettings={'Store':{'annotationData':{'uri':'$annUrl','resource':'$resUrl'},'loadFromSearch':{'uri':'$annUrl'}}, 27 28 'Permissions':{'read':[],'update':['$permUser'],'delete':['$permUser'],'admin':['$permUser']}};
Note: See TracChangeset
for help on using the changeset viewer.