我发现某些具有个人详细信息的元数据字段以元数据xml的形式显示在我的商品页面的源代码中,有没有办法隐藏它们?我确实在配置文件中设置了“ metadata.hide。[...]”字段以隐藏这些值。预先感谢。
这是我的元数据。隐藏,它工作正常,并且对于普通用户而言,这些字段不会显示在完整的项目记录,会议等中,但是它们确实会出现在Google元数据的源代码中。
metadata.hide.dc.creator.ID = true
metadata.hide.dc.contributor.advisor1ID = true
metadata.hide.dc.contributor.advisor1ID = true
metadata.hide.dc.contributor.advisor2ID = true
metadata.hide.dc.contributor.advisor-co1ID = true
metadata.hide.dc.contributor.advisor-co2ID = true
metadata.hide.dc.contributor.referee1ID = true
metadata.hide.dc.contributor.referee2ID = true
metadata.hide.dc.contributor.referee3ID = true
metadata.hide.dc.contributor.referee4ID = true
metadata.hide.dc.contributor.referee5ID = true
新编辑: xhtml-head-item.properties:
dc.contributor = DC.contributor
dc.contributor.author = DC.creator
dc.coverage.spatial = DCTERMS.spatial
dc.coverage.temporal = DCTERMS.temporal
dc.creator = DC.creator
dc.date = DC.date,DCTERMS.W3CDTF
dc.date.accessioned = DCTERMS.dateAccepted,DCTERMS.W3CDTF
dc.date.available = DCTERMS.available,DCTERMS.W3CDTF
dc.date.copyright = DCTERMS.dateCopyrighted,DCTERMS.W3CDTF
dc.date.created = DCTERMS.created,DCTERMS.W3CDTF
dc.date.issued = DCTERMS.issued,DCTERMS.W3CDTF
dc.identifier = DC.identifier
dc.identifier.citation = DCTERMS.bibliographicCitation
dc.identifier.uri = DC.identifier,DCTERMS.URI
dc.description = DC.description
dc.description.abstract = DCTERMS.abstract
dc.description.tableofcontents = DCTERMS.tableOfContents
dc.description.uri = DC.description,DCTERMS.URI
dc.format = DC.format
dc.format.extent = DCTERMS.extent
dc.format.medium = DCTERMS.medium
dc.language = DC.language
dc.language.iso = DC.language,DCTERMS.RFC1766
dc.publisher = DC.publisher
dc.relation = DC.relation
dc.relation.isformatof = DCTERMS.isFormatOf
dc.relation.ispartof = DCTERMS.isPartOf
dc.relation.haspart = DCTERMS.hasPart
dc.relation.isversionof = DCTERMS.isVersionOf
dc.relation.hasversion = DCTERMS.hasVersion
dc.relation.isreferencedby = DCTERMS.isReferencedBy
dc.relation.requires = DCTERMS.requires
dc.relation.replaces = DCTERMS.replaces
dc.relation.isreplacedby = DCTERMS.isReplacedBy
dc.relation.uri = DC.relation,DCTERMS.URI
dc.rights = DC.relation
dc.rights.uri = DC.rights,DCTERMS.URI
dc.source = DC.source
dc.source.uri = DC.source,DCTERMS.URI
dc.subject = DC.subject
dc.subject.ddc = DC.subject,DCTERMS.DDC
dc.subject.lcc = DC.subject,DCTERMS.LCC
dc.subject.lcsh = DC.subject,DCTERMS.LCSH
dc.subject.mesh = DC.subject,DCTERMS.MESH
dc.title = DC.title
dc.title.alternative = DCTERMS.alternative
dc.type = DC.type
google-metadata.properties:
google.identifiers.dissertation = dc.type:Thesis
google.identifiers.patent = dc.type:Patent
google.identifiers.technical_report = dc.type:Technical Report
google.citation_title = dc.title
google.citation_publisher = dc.publisher
google.citation_author = dc.author | dc.contributor.author | dc.creator
google.citation_date = dc.date.copyright | dc.date.issued | dc.date.available | dc.date.accessioned
google.citation_language = dc.language.iso
google.citation_pmid =
google.citation_abstract_html_url = $handle
google.citation_fulltext_html_url =
google.citation_pdf_url = $simple-pdf
google.citation_keywords = dc.subject, dc.type
google.citation_journal_title =
google.citation_volume =
google.citation_issue =
google.citation_firstpage =
google.citation_lastpage =
google.citation_doi =
google.citation_issn = dc.identifier.issn
google.citation_isbn = dc.identifier.isbn
google.citation_conference =
google.citation_dissertation_name = dc.title
google.citation_dissertation_institution = dc.publisher
google.citation_patent_country =
google.citation_patent_number =
google.citation_technical_report_number =
google.citation_technical_report_institution = dc.publisher
google.citation.prioritized_types = Adobe PDF, Postscript, Microsoft Word XML, Microsoft Word, RTF, EPUB
答案 0 :(得分:2)
理论上,在dspace.cfg中设置metadata.hide。[metadata模式]。[metadata元素]。[metadata限定符] = true应该为非管理员用户从mets xml页面隐藏相应的元数据字段。 / p>
我已经在DSpace 6.3上尝试过。代码库(https://demo.dspace.org/xmlui/)。 打开此页面https://demo.dspace.org/xmlui/metadata/handle/10673/7/mets.xml时:
作为匿名用户->我看不到dc.description.provenance,该文件在dspace.cfg中配置为“元数据。隐藏字段”
作为管理员用户->我可以看到dc.description.provenance
通过搜索Duraspace Jira,除了https://jira.duraspace.org/browse/DS-3355之外,我没有发现其他有关此问题的抱怨。
起初我不明白您是指页面源代码。 在您提供的链接中(查看源:http://demo.dspace.org/jspui/handle/10673/6),我找不到配置为“ metadata.hide”元数据的元数据dc.description.provenance。
如果您引用元名称标记(例如meta name =“ DC.creator”或meta name =“ citation_keywords”),则可能是您试图隐藏的私有元数据已在应显示在HTML中的元数据中进行了配置头。 请查看此文档:https://wiki.duraspace.org/display/DSDOC5x/Search+Engine+Optimization#SearchEngineOptimization-EnsureItemMetadataappearsintheHTMLHEAD
您可能特别想检查以下文件之一是否未定义您的私有元数据: [dspace] /config/crosswalks/xhtml-head-item.properties [dspace] /config/crosswalks/google-metadata.properties