# HG changeset patch # User dwinter # Date 1372769269 -7200 # Node ID 3562adeaba8b58f1261f45d8b3d3b739790bdefe # Parent c91cfc8c3603de5f3c29bd3d3951c3c97292adc6 only show non private links in getPublicationsFromContext diff -r c91cfc8c3603 -r 3562adeaba8b zopePubmanConnector.py --- a/zopePubmanConnector.py Tue Jul 02 13:04:39 2013 +0200 +++ b/zopePubmanConnector.py Tue Jul 02 14:47:49 2013 +0200 @@ -470,6 +470,7 @@ volumepath=".//{http://escidoc.mpg.de/metadataprofile/schema/0.1/types}volume" linkspath=""".//{http://www.escidoc.de/schemas/components/0.8}component/{http://www.escidoc.de/schemas/components/0.8}content[@storage="internal-managed"]""" + visibility=""".//{http://www.escidoc.de/schemas/components/0.8}component/{http://www.escidoc.de/schemas/components/0.8}properties/{http://escidoc.de/core/01/properties/}visibility""" #linkspath=""".//{http://www.escidoc.de/schemas/components/0.8}component/{http://www.escidoc.de/schemas/components/0.8}content[@storage="external-url"]""" #linkspath=".//{http://www.escidoc.de/schemas/components/0.8}component/{http://www.escidoc.de/schemas/components/0.8}content" citations=root.findall(objxpath) @@ -502,9 +503,20 @@ # # - # + # - src= citation.find(linkspath) + vis= citation.find(visibility) + + visText="" + if vis is not None: + visText =vis.text + + + print vis + scr=None + + if visText != "private": + src= citation.find(linkspath) if src is not None: link=src.get("{http://www.w3.org/1999/xlink}href")