version 1.58, 2005/07/20 11:49:05
|
version 1.60, 2005/09/12 22:23:44
|
Line 352 class ECHO_basis:
|
Line 352 class ECHO_basis:
|
tag += ">" + text + "</a>" |
tag += ">" + text + "</a>" |
return tag |
return tag |
|
|
def createMapAux(self, ob, arrowsrc="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=icons/pfeil", circlesrc="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=icons/kreis", target="_blank"): |
def createMapAux(self, ob, arrowsrc="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=icons/pfeil", circlesrc="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=icons/kreis", target="_blank",backLink=None,alternativArrowsrc="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=icons/pfeil_blau"): |
"""generate map link image, text and other stuff""" |
"""generate map link image, text and other stuff""" |
bt = BrowserCheck(self) |
bt = BrowserCheck(self) |
id = ob.getFullId() |
id = ob.getFullId() |
Line 368 class ECHO_basis:
|
Line 368 class ECHO_basis:
|
if ob.isTypeArrow(): |
if ob.isTypeArrow(): |
# N4 - Arrow |
# N4 - Arrow |
rot = ob.angle |
rot = ob.angle |
|
|
|
if hasattr(getattr(self,link),'link'): |
|
cLink=getattr(self,link).link |
|
# if existing delete virtuell path |
|
cLink=cLink.replace('/'.join(self.REQUEST['VirtualRootPhysicalPath']),'') |
|
|
|
if backLink and hasattr(getattr(self,link),'link') and backLink==self.REQUEST['SERVER_URL']+cLink.lstrip(): |
|
marksrc=alternativArrowsrc |
|
else: |
marksrc = arrowsrc |
marksrc = arrowsrc |
|
|
|
|
if float(rot) < 0: |
if float(rot) < 0: |
marksrc = circlesrc |
marksrc = circlesrc |
tag += '<a href="%s"><img border="0" src="%s&rot=%s" /></a>'%(link,marksrc,rot) |
tag += '<a href="%s"><img border="0" src="%s&rot=%s" /></a>'%(link,marksrc,rot) |
Line 393 class ECHO_basis:
|
Line 404 class ECHO_basis:
|
if ob.isTypeArrow(): |
if ob.isTypeArrow(): |
# DOM - Arrow |
# DOM - Arrow |
rot = ob.angle |
rot = ob.angle |
|
|
|
if hasattr(getattr(self,link),'link'): |
|
cLink=getattr(self,link).link |
|
# if existing delete virtuell path |
|
cLink=cLink.replace('/'.join(self.REQUEST['VirtualRootPhysicalPath']),'') |
|
|
|
if backLink and hasattr(getattr(self,link),'link') and backLink==self.REQUEST['SERVER_URL']+cLink.lstrip(): |
|
marksrc=alternativArrowsrc |
|
else: |
marksrc = arrowsrc |
marksrc = arrowsrc |
|
|
try: |
try: |
rot=float(rot) |
rot=float(rot) |
except: |
except: |