Hi,
i'm customizing our GN 2.6.0 install, and i'm looking for a way to show metadata owner in search results, just below 'abstract' and 'keywords'.
So far, i found out that i had to hack xsl/search-results-xhtml.xsl, but the information i'm looking for (pointOfContact/CI_ResponsibleParty/organisationName when role=owner) is not available in 'metadata' param for templates hit and hit2. So where does 'metadata' parameter is constructed when returning search results, and how/where can i add the information i need into it ?
It doesn't look like a full xml metadata..
If it's not possible to add this information to 'metadata', what would be the best way ? get the full xml document with an ajax call using metadata uuid, and extract the information from it ?
Thanks!
--
Landry Breuil
On 10/05/10 16:41, Landry Breuil wrote:
Hi,
i'm customizing our GN 2.6.0 install, and i'm looking for a way to show
metadata owner in search results, just below 'abstract' and 'keywords'.
So far, i found out that i had to hack xsl/search-results-xhtml.xsl, but
the information i'm looking for
(pointOfContact/CI_ResponsibleParty/organisationName when role=owner) is
not available in 'metadata' param for templates hit and hit2. So where
does 'metadata' parameter is constructed when returning search results,
and how/where can i add the information i need into it ?
It doesn't look like a full xml metadata..
If it's not possible to add this information to 'metadata', what would
be the best way ? get the full xml document with an ajax call using
metadata uuid, and extract the information from it ?
For the list archives.. here's a diff showing how to implement that.
'metadata' is created in the various metadata-xxx.xsl stylesheets, in 'brief' templates.
I only did that in metadata-iso19139.xsl as all my metadatas are in this schema.
--
Landry Breuil
Administrateur de données du CRAIG
(attachments)
gn-print-owner-org.diff (1.92 KB)