[GeoNetwork-devel] Questions about GeoNetwork 3.0 and Metadata Viewer

Hi,

From what I understand there isn’t currently a strong vision on how the Metadata Viewer is going to be implemented for GeoNetwork 3.0.

As I see it there are two obvious options:

  1. Use the same framework as is used by the editor and have another configuration file which maps each widget to each metadata element (similar to how the editor works but simplified because the editing capabilities are not required. In this case all widgets would be read-only
  2. Use the Metadata formatters and provide an XSLT to display the metadata. The styling would use bootstrap to give a consistent visual experience.
    The advantage of 2 is that javascript would not be required displaying the metadata which makes it easier to support older browsers and tools like screen readers.

A second advantage is that we have support for generating PDFs from formatter pages so we don’t need to do anything special for PDF creation.

What is the communities opinion of these options (and others you can think of)?

Jesse

On Wed, Mar 5, 2014 at 9:04 PM, Jesse Eichar <jesse.eichar@anonymised.com>wrote:

Hi,

From what I understand there isn't currently a strong vision on how the
Metadata Viewer is going to be implemented for GeoNetwork 3.0.

As I see it there are two obvious options:

   1. Use the same framework as is used by the editor and have another
   configuration file which maps each widget to each metadata element (similar
   to how the editor works but simplified because the editing capabilities are
   not required. In this case all widgets would be read-only
   2. Use the Metadata formatters and provide an XSLT to display the
   metadata. The styling would use bootstrap to give a consistent visual
   experience.

The advantage of 2 is that javascript would not be required displaying the
metadata which makes it easier to support older browsers and tools like
screen readers.

A second advantage is that we have support for generating PDFs from
formatter pages so we don't need to do anything special for PDF creation.

What is the communities opinion of these options (and others you can think
of)?

Hi,

It is not an easy choice. As a developer I think I prefer option 1 because
it will be probably much easier to maintain.

On the other hand... are there really many users that can't run javascript?
http://a11yproject.com/posts/myth-screen-readers-dont-use-javascript/
http://webaim.org/projects/screenreadersurvey4/#javascript

As Windows is going to shut down Windows XP shortly, should we really worry
about old IE browsers?

I mean: is this really a strong requirement, this not having javascript
enabled?

On Thu, Mar 6, 2014 at 8:11 AM, María Arias de Reyna <delawen@anonymised.com> wrote:

On Wed, Mar 5, 2014 at 9:04 PM, Jesse Eichar <jesse.eichar@anonymised.com> wrote:

Hi,

From what I understand there isn't currently a strong vision on how the Metadata Viewer is going to be implemented for GeoNetwork 3.0.

As I see it there are two obvious options:

Use the same framework as is used by the editor and have another configuration file which maps each widget to each metadata element (similar to how the editor works but simplified because the editing capabilities are not required. In this case all widgets would be read-only
Use the Metadata formatters and provide an XSLT to display the metadata. The styling would use bootstrap to give a consistent visual experience.

The advantage of 2 is that javascript would not be required displaying the metadata which makes it easier to support older browsers and tools like screen readers.

A second advantage is that we have support for generating PDFs from formatter pages so we don't need to do anything special for PDF creation.

What is the communities opinion of these options (and others you can think of)?

Hi,

It is not an easy choice. As a developer I think I prefer option 1 because it will be probably much easier to maintain.

On the other hand... are there really many users that can't run javascript?
http://a11yproject.com/posts/myth-screen-readers-dont-use-javascript/
http://webaim.org/projects/screenreadersurvey4/#javascript

And on this webaim page there is specific info for javascript:

http://webaim.org/techniques/javascript/

However, JavaScript can also introduce accessibility issues. These
issues may include:

* Navigation. Inability or difficulty navigating using a keyboard or
assistive technology.
* Hidden content. Presentation of content or functionality that is
not accessible to assistive technologies.
* User control. Lack of user control over automated content changes.
* Confusion/Disorientation. Altering or disabling the normal
functionality of the user agent (browser) or triggering events that
the user may not be aware of.

Do you think we can modify (if not already being done) our editor so
we can avoid as much as possible this things? There are things that
can be done to avoid this kind of problems. I am not an expert on
accesibility, but on a quick search on the web I can see many
workarounds for screen readers (that have javascript enabled but may
be confused on position of elements, for example).

Hi Jesse,

···

2014-03-05 21:04 GMT+01:00 Jesse Eichar <jesse.eichar@anonymised.com>:

Hi,

From what I understand there isn’t currently a strong vision on how the Metadata Viewer is going to be implemented for GeoNetwork 3.0.

As I see it there are two obvious options:

  1. Use the same framework as is used by the editor and have another configuration file which maps each widget to each metadata element (similar to how the editor works but simplified because the editing capabilities are not required. In this case all widgets would be read-only
  2. Use the Metadata formatters and provide an XSLT to display the metadata. The styling would use bootstrap to give a consistent visual experience.

The main thing we should avoid is to mix the process generating the editor and the metadata view - which make all quite complex for schema like ISO.

The first option which use the editor configuration (https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/layout/config-editor.xml#L166) to build the view could be useful if you need to have a metadata view which looks like the editor. BTW, I think we won’t often do that and end user would prefer to keep the metadata view quite simple or organized for reading/previewing the information (eg. column layout, map on the top right corner, be able to browse related WMS layers on the map, use the contact role as a label instead of the ISO labels + field layout we need for editing, navigate associated ressources …). For example, the simple view in the widget is a custom one which is not available for editing.

We should really avoid to mix editing and browsing function, I think.

Then formatters have been used in a number of situations (see http://sextant.ifremer.fr/fr/web/sextant/geoservices/catalogue) and it works well. It allows user to easily build a new layout. We could provide pure XSLT formatters or try to rely on an XML document like the editor does now. This will be more or less the same.

The advantage of 2 is that javascript would not be required displaying the metadata which makes it easier to support older browsers and tools like screen readers.

I don’t think we should bring the noJS story here. If you want to create a noJS formatter you can, and if you want to use JS you can also.

A second advantage is that we have support for generating PDFs from formatter pages so we don’t need to do anything special for PDF creation.

This is a good point for using formatter.

So using formatter services and optionally having an XML document for configuring the view if the XSLT looks too complex sounds like a good option for me.

Francois

What is the communities opinion of these options (and others you can think of)?

Jesse


Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork