Exemplo n.º 1
0
 def processInternalLinks(self, html):
     """
     take care of any internal links which are in the form of:
        href="exe-node:Home:Topic:etc#Anchor"
     For this export, go ahead and remove the link entirely,
     leaving only its text, since such links are not to be in the LMS.
     The links to the elp file will not be removed.
     """
     html = common.enableLinksToElp(self.node.package, html)
     return common.removeInternalLinks(html)
Exemplo n.º 2
0
 def processInternalLinks(self, html):
     """
     take care of any internal links which are in the form of:
        href="exe-node:Home:Topic:etc#Anchor"
     For this IMS Export, go ahead and remove the link entirely,
     leaving only its text, since such links are not to be in the LMS.
     Keep the links to the elp file (if the elp file exists).
     """
     html = common.enableLinksToElp(self.node.package,html)
     return common.removeInternalLinks(html)
Exemplo n.º 3
0
def processInternalLinks(package, html):
    """
    take care of any internal links which are in the form of::
       
       href="exe-node:Home:Topic:etc#Anchor"

    For this SinglePage Export, go ahead and keep the #Anchor portion,
    but remove the 'exe-node:Home:Topic:etc', since it is all 
    exported into the same file.
    
    Keep the links to the elp file (if the elp file exists).
    """
    html = common.enableLinksToElp(package, html)
    return common.renderInternalLinkNodeAnchor(package, html)
Exemplo n.º 4
0
def processInternalLinks(package, html):
    """
    take care of any internal links which are in the form of::
       
       href="exe-node:Home:Topic:etc#Anchor"

    For this SinglePage Export, go ahead and keep the #Anchor portion,
    but remove the 'exe-node:Home:Topic:etc', since it is all 
    exported into the same file.
    
    Keep the links to the elp file (if the elp file exists).
    """
    html = common.enableLinksToElp(package, html) 
    return common.renderInternalLinkNodeAnchor(package, html)