Ticket #495 (closed enhancement: fixed)

Opened 15 years ago

Last modified 12 years ago

Document HTML view page should contain HTML metadata

Reported by: madarche Owned by: trac
Priority: P2 Milestone: CPS 3.4.6
Component: CPSDocument Version: TRUNK
Severity: normal Keywords: accessibility
Cc:

Description (last modified by madarche) (diff)

The HTML view page of a CPSDocument should contain HTML metadata about this document.

All the CPS documents have metadata and especially Dublin Core metadata. Those metadata should appear in an HTML form in the HTML view page.

This would be useful for example for people using external search engines such as Google to access the information contained in CPS sites.

Adding metadata information in the HTML would also improve the ranking of pages in external search engines.

At the moment we have the following in the HTML head element:

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
  <meta name="generator" content="Nuxeo CPS http://www.cps-project.org/" />
  <title>CPS Portal: My document</title>
  <base href="http://localhost:8080/cps/workspaces/my_document/" />
</head>

... while we should have something like:

<head>
    <title>Openweb.eu.org - Les problèmes de la mise en page par tableaux</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>

    <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"/>
    <meta name="DC.Publisher" content="OpenWebGroup.eu.org"/>
    <meta name="DC.Language" scheme="RFC3066" content="fr"/>
    <meta name="DC.Identifier" content="problemes_tableaux"/>
    <meta name="DC.Creator" content="Mathieu Pillard"/>
    <meta name="DC.Date.created" scheme="W3CDTF" content="2003-10-24"/>
    <meta name="DC.Date.modified" scheme="W3CDTF" content="2003-10-24"/>
    <meta name="DC.Subject" content="debutant, expert, mise_en_page, xhtml"/>

  </head>

OpenWeb? has an article on this subject (in French):  http://www.openweb.eu.org/articles/dublin_core/

Change History

comment:1 Changed 14 years ago by madarche

  • Keywords accessibility added
  • Description modified (diff)

Fixing this bug is required if we want CPS to be WAI AA conformant.

Provide metadata to add semantic information to pages and sites. [Priority 2] For example, use RDF ([RDF]) to indicate the document's author, the type of content, etc.  http://www.w3.org/TR/WAI-WEBCONTENT/#tech-use-metadata

comment:2 Changed 14 years ago by fguillaume

please use WikiFormatting, notably {{{ }}}

comment:3 Changed 14 years ago by madarche

  • Description modified (diff)

comment:4 Changed 14 years ago by madarche

Could this be achieved through the use of a new dedicated portlet, a custom portlet?

Would that be the best way to implement this functionality?

One would also want to trigger which piece of metadata should be included in the generated HTML.

comment:5 Changed 14 years ago by jmorliaguet

I wouldn't use a portlet for that since this is highly related to the information set in the CPSDocument. Also portlets are located in the <body> part of the document.

I would do it in CPSDefault using a fill-slot maybe..

comment:6 Changed 14 years ago by madarche

Also portlets are located in the <body> part of the document.

Ah yes of course!

I would do it in CPSDefault using a fill-slot maybe..

Thanks!

comment:7 Changed 12 years ago by madarche

  • Status changed from new to closed
  • Version changed from unspecified to TRUNK
  • Resolution set to fixed
  • Milestone changed from unspecified to CPS 3.4.6

Fixed by changeset [52720].

comment:8 Changed 12 years ago by madarche

The "Keywords" metadata has also been added with changeset [52726].

Note: See TracTickets for help on using tickets.