Opened 13 years ago

Closed 11 years ago

#151 closed enhancement (fixed)

show all fields from the CMDI file

Reported by: dietuyt Owned by: herste
Priority: critical Milestone:
Component: VLO web app Version:
Keywords: Cc:

Description

Currently only facet fields are shown when displaying a CMDI record. We need a full view functionality, showing *all* fields. This probably requires a general XSLT that transforms any CMDI file into an HTML table or div (with indentation for components/elements that are deeper nested).

This view needs to be integrated into the normal record view, preferrably with a button show all fields that can be collapsed. This can be placed below the Resource List.

Change History (8)

comment:1 Changed 13 years ago by dietuyt

Information from Matej about a CMDI2HTML XSL that might be used for this:

All the xsls are in the svn-repository under: MDService2/src/xsl/
http://trac.clarin.eu/browser/MDService2/trunk/MDService2/src/xsl

mdinst2view.xsl is the one to go with a single CMD-record. But it calls some templates in cmd_commons.xsl (which itself imports: cmd_functions.xsl and params.xsl)

especially the root template match="/" is in the cmd_commons.xsl
(which decides the html-wrapping and passes back to name=continue-root)
(every *2view.xsl in MDService2 relies on the cmd_commons.xsl to make
the start and provides a template name="continue-root" to be called by the
root-template)

and then some generic templates (mode="format-xmlelem") that make nice HTML (nested divs) out of any xml.

In the case of CMD-instances, it is applied from Components-element downwards. (mdinst2view.xsl#ln78)

Before that it does some special processing for ResourceProxies?, IsPartOf? and trying to extract a title for the resource.

The resulting HTML goes especially nice with the css:
http://trac.clarin.eu/browser/MDService2/trunk/MDService2/WebContent/style/cmds-ui.css

I am not sure about the degree of reusability (= not sure how much "special" stuff is in there) and i am pretty sure about the degree of documentation-coverage... (=~0)
but the crash-course above, could get you going.. please ask, if anything ...

Would be willing to cooperate on creating a more clean, generic, reusable (and documented) set of stylesheets for CMD...

(Actually I am in the process of reworking the stylesheets (especially the result-set), but this will take a month or two.)

comment:2 Changed 12 years ago by dietuyt

When this ticket has been addressed we can remove the imdi_browser from catalog.clarin.eu

comment:3 Changed 12 years ago by herste

Current version of the deployed VLO at least links to the full CMDI record.
Not with a pretty-print though.

comment:4 Changed 12 years ago by dietuyt

There now is a XSLT for CMDI to HTML: metadata/trunk/toolkit/xslt/cmdi2xhtml.xsl

Last edited 12 years ago by dietuyt (previous) (diff)

comment:5 Changed 12 years ago by dietuyt

When implementing this we should probably avoid to just provide a link to the result of cmdi2xhtml.xsl, but rather:

  • include all fields within the page generated by the VLO for the CMDI files (eg with a CSS-based show/hide all fields)
  • link to a special page in the VLO that links back to the normal record view

This for usability reasons and to prevent that people end up at the HTML version of the CMDI via google without knowing the broader context (i.e. the VLO)

comment:6 Changed 11 years ago by sanmai

Wasn't this issue fixed by way of the cmdi2xhtml XSLT that I made a few months ago? I'll leave the ticket open for now.

comment:7 Changed 11 years ago by teckart

Added all CMDI fields to result page using a slightly changed XSLT (r2468, r2471), maybe further changes (color, removal of resources etc.) are still necessary

comment:8 Changed 11 years ago by teckart

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.