如何隐藏页面源代码中的元数据字段?
How can I hide metadata fields in page source code?
我发现某些包含个人详细信息的元数据字段在我的项目页面的源代码中显示为元数据 xml,有什么方法可以隐藏它们吗?我确实在我的配置文件中设置了 "metadata.hide.[...]" 字段来隐藏这些值。提前致谢。
这是我的 metadata.hide,它工作正常,这些字段没有显示在完整的项目记录中,mets 等,对普通用户来说,它们确实出现在 [=28= 的源代码中] 元数据。
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
in the image this link takes to, it shows how they look like in the page source code. I've hidden the values.
理论上,在 dspace.cfg 中设置 metadata.hide.[元数据模式].[元数据元素].[元数据限定符] = true 应该从 mets [=53] 中隐藏相应的元数据字段=] 非管理员用户页面。
我已经在 DSpace 6.3 上试过了。代码库(https://demo.dspace.org/xmlui/)。
打开此页面时 https://demo.dspace.org/xmlui/metadata/handle/10673/7/mets.xml :
作为匿名用户 -> 我无法看到 dc.description.provenance 在 dspace.cfg
[ 中配置为 "metadata.hide field"
作为管理员用户 -> 我可以看到 dc.description.provenance
通过在 Duraspace Jira 上搜索,除了 https://jira.duraspace.org/browse/DS-3355 之外,我没有发现其他关于此问题的投诉。
我一开始没明白你说的是页面源码。
在您提供的 link 中(查看源代码: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.属性
[dspace]/config/crosswalks/google-metadata.properties
我发现某些包含个人详细信息的元数据字段在我的项目页面的源代码中显示为元数据 xml,有什么方法可以隐藏它们吗?我确实在我的配置文件中设置了 "metadata.hide.[...]" 字段来隐藏这些值。提前致谢。
这是我的 metadata.hide,它工作正常,这些字段没有显示在完整的项目记录中,mets 等,对普通用户来说,它们确实出现在 [=28= 的源代码中] 元数据。
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
in the image this link takes to, it shows how they look like in the page source code. I've hidden the values.
理论上,在 dspace.cfg 中设置 metadata.hide.[元数据模式].[元数据元素].[元数据限定符] = true 应该从 mets [=53] 中隐藏相应的元数据字段=] 非管理员用户页面。
我已经在 DSpace 6.3 上试过了。代码库(https://demo.dspace.org/xmlui/)。 打开此页面时 https://demo.dspace.org/xmlui/metadata/handle/10673/7/mets.xml :
作为匿名用户 -> 我无法看到 dc.description.provenance 在 dspace.cfg
[ 中配置为 "metadata.hide field"作为管理员用户 -> 我可以看到 dc.description.provenance
通过在 Duraspace Jira 上搜索,除了 https://jira.duraspace.org/browse/DS-3355 之外,我没有发现其他关于此问题的投诉。
我一开始没明白你说的是页面源码。 在您提供的 link 中(查看源代码: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.属性 [dspace]/config/crosswalks/google-metadata.properties