[GeoNetwork-users] Customize defaule metadata view

Hi list,

I have GeoNetwork (v 3.0.4) installed and I want to add the Supplemental
Information attributes to the default metadata view. That is, when i look
at the

geonetwork/srv/por/catalog.search#/metadata/01f90c54-1de6-4a87-8567-0fec94ebdb94

address, it will show the basic info (abstract, author, links) and also
Supplemental Information.

How can it be done? I'm a newbie in both Geonetwork AND web programing but
have a good understanding of linux

Thanks
Daniel

Hi Daniel

The basic view in the metadata detail page is managed an AngularJs with
this template:
https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/templates/recordView.html,
to display additional items you need to make sure that are available in
mdView.current.record.

Regards,
Jose García

On Tue, Jul 19, 2016 at 8:23 PM, Daniel Victoria <daniel.victoria@anonymised.com>
wrote:

Hi list,

I have GeoNetwork (v 3.0.4) installed and I want to add the Supplemental
Information attributes to the default metadata view. That is, when i look
at the

geonetwork/srv/por/catalog.search#/metadata/01f90c54-1de6-4a87-8567-0fec94ebdb94

address, it will show the basic info (abstract, author, links) and also
Supplemental Information.

How can it be done? I'm a newbie in both Geonetwork AND web programing but
have a good understanding of linux

Thanks
Daniel

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and
traffic
patterns at an interface-level. Reveals which users, apps, and protocols
are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*

Hi Jose,

Thanks for the tip. I saw that
src/main/resources/catalog/views/default/templates/recordView.html
<https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/templates/recordView.html&gt;
is what makes up the Default metadata page. But where do I control what is
available in mdView.current.record?

Thanks
Daniel

On Wed, Jul 20, 2016 at 3:28 AM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Daniel

The basic view in the metadata detail page is managed an AngularJs with
this template:
https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/templates/recordView.html,
to display additional items you need to make sure that are available in
mdView.current.record.

Regards,
Jose García

On Tue, Jul 19, 2016 at 8:23 PM, Daniel Victoria <
daniel.victoria@anonymised.com> wrote:

Hi list,

I have GeoNetwork (v 3.0.4) installed and I want to add the Supplemental
Information attributes to the default metadata view. That is, when i look
at the

geonetwork/srv/por/catalog.search#/metadata/01f90c54-1de6-4a87-8567-0fec94ebdb94

address, it will show the basic info (abstract, author, links) and also
Supplemental Information.

How can it be done? I'm a newbie in both Geonetwork AND web programing but
have a good understanding of linux

Thanks
Daniel

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and
traffic
patterns at an interface-level. Reveals which users, apps, and protocols
are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*

I can give you one example.

You need to change config-lucene.xml

and maybe also iso19139/index-fields/default.xml

and finally recordView.html

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Customize-defaule-metadata-view-tp5277170p5278000.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Jose and all,

I think I'm halfway there.

Following Jose's tip and this post from amacar [1] I was able to place the
supplementalInformation in the default metadata view.
These are the steps I've done:

a) add Supplemental Information in config-lucene.xml, in the dumpFields
<field name="supplementalInformation" tagName="supplementalInformation"/>

b) add Supplemental Information in
schema_plugins\iso19139\index-fields\defauls.xsl
            <xsl:for-each
select="gmd:supplementalInformation/gco:CharacterString">
                <Field name="supplementalInformation" string="{string(.)}"
store="true" index="true"/>
            </xsl:for-each>

c) add Supplemental Information in default\tempaltes\recordView.html
    <div class="well"
         data-ng-bind-html="mdView.current.record.supplementalInformation |
newlines"
         data-title="Supplemental Information">
    </div>

With this I can see the supplemental Information text in a gray box,
similar to the abstract box and right bellow it. What I'd like to do now is
add a title before the supplemental information box. I tried using the
data-title but that did not work. I don't know much about html or css. How
can that be done?

Thanks
Daniel

[1] -
http://osgeo-org.1560.x6.nabble.com/Extend-Default-Metadata-View-td5262029.html

On Wed, Jul 20, 2016 at 9:03 AM, Daniel Victoria <daniel.victoria@anonymised.com>
wrote:

Hi Jose,

Thanks for the tip. I saw that
src/main/resources/catalog/views/default/templates/recordView.html
<https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/templates/recordView.html&gt;
is what makes up the Default metadata page. But where do I control what is
available in mdView.current.record?

Thanks
Daniel

On Wed, Jul 20, 2016 at 3:28 AM, Jose Garcia <jose.garcia@anonymised.com>
wrote:

Hi Daniel

The basic view in the metadata detail page is managed an AngularJs with
this template:
https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/templates/recordView.html,
to display additional items you need to make sure that are available in
mdView.current.record.

Regards,
Jose García

On Tue, Jul 19, 2016 at 8:23 PM, Daniel Victoria <
daniel.victoria@anonymised.com> wrote:

Hi list,

I have GeoNetwork (v 3.0.4) installed and I want to add the Supplemental
Information attributes to the default metadata view. That is, when i look
at the

geonetwork/srv/por/catalog.search#/metadata/01f90c54-1de6-4a87-8567-0fec94ebdb94

address, it will show the basic info (abstract, author, links) and also
Supplemental Information.

How can it be done? I'm a newbie in both Geonetwork AND web programing
but
have a good understanding of linux

Thanks
Daniel

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and
traffic
patterns at an interface-level. Reveals which users, apps, and protocols
are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*