comparison documentViewer.py @ 624:80a0191ae51c

move sslification to only client-visible urls.
author casties
date Mon, 15 Dec 2014 17:05:51 +0100
parents 6012fe93f78c
children 80a3b1fa5705
comparison
equal deleted inserted replaced
623:6012fe93f78c 624:80a0191ae51c
317 return self.availableLayers 317 return self.availableLayers
318 318
319 def findDigilibUrl(self): 319 def findDigilibUrl(self):
320 """try to get the digilib URL from zogilib""" 320 """try to get the digilib URL from zogilib"""
321 url = self.template.zogilib.getDLBaseUrl() 321 url = self.template.zogilib.getDLBaseUrl()
322 return sslifyUrl(url, self, force=True) 322 return url
323 323
324 def getScalerUrl(self, fn=None, pn=None, dw=100, dh=100, docinfo=None): 324 def getScalerUrl(self, fn=None, pn=None, dw=100, dh=100, docinfo=None):
325 """returns URL to digilib Scaler with params""" 325 """returns URL to digilib Scaler with params"""
326 url = None 326 url = None
327 if docinfo is not None: 327 if docinfo is not None:
336 336
337 if pn: 337 if pn:
338 url += "&pn=%s"%pn 338 url += "&pn=%s"%pn
339 339
340 url += "&dw=%s&dh=%s"%(dw,dh) 340 url += "&dw=%s&dh=%s"%(dw,dh)
341 return url 341 return sslifyUrl(url, self, force=True)
342 342
343 def getDocumentViewerURL(self): 343 def getDocumentViewerURL(self):
344 """returns the URL of this instance""" 344 """returns the URL of this instance"""
345 return self.absolute_url() 345 return self.absolute_url()
346 346