# | # #
#
#
#
#
' # yield '%s' % (url, url) # yield ' ' ### de volgende regel geeft een permission denied error ????? hangt ws. samem met javascript handleOpenUrl() #yield '%s ' % url # yield '' ### geen ratings # yield 'Current rating ' # yield rating.showRating(recordId) # yield ' ' # yield rating.showCreateRating(Headers, recordId) # # yield ' ' #### the following can be used for testing mods = any.getMods(recordId) modsRecord = escapeXml(tostring(mods, pretty_print = True)) yield ' mods' yield '%s' % modsRecord header = parse(any.getStream(recordId, 'header')) headerRecord = escapeXml(tostring(header, pretty_print = True)) yield 'header' yield '%s' % headerRecord meta = parse(any.getStream(recordId, 'meta')) metaRecord = escapeXml(tostring(meta, pretty_print = True)) yield ' meta' yield '%s' % metaRecord extra = parse(any.getStream(recordId, 'extra')) extraRecord = escapeXml(tostring(extra, pretty_print = True)) yield ' extra' yield '%s' % extraRecord metadata = parse(any.getStream(recordId, 'metadata')) metadataRecord = escapeXml(tostring(metadata, pretty_print = True)) yield ' metadata' # yield '%s' % metadataRecord yield '%s' % metadataRecord ns = {'meta': 'http://meresco.com/namespace/harvester/meta'} parts = meta.xpath("/meta:meta/meta:parts", ns) if parts: for part in parts[0]: if part.text == "ddi": ddi = parse(any.getStream(recordId, 'ddi')) if ddi: ddiRecord = escapeXml(tostring(ddi, pretty_print = True)) yield ' ddi' yield '%s' % ddiRecord # yield """ # |
#