Formatter geonetwork

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Formatter geonetwork

Gaëtan Bruel - JDev

Hi,

 

I try to create a new very simple formatter. To do that, i follow this topic :

https://georchestra.example.org/geonetwork/srv/fre/md.format.xml?uuid=01ca64b3-6d69-43b7-b953-7743e11daafe&xsl=view

 

But when i use admin UI to insert my formatter (zip that contain a simple view.groovy file) i get this error :

 

This XML file does not appear to have any style information associated with it. The document tree is shown below.

 

Indeed, GN3 seems to search some sources with this URL  http://localhost:8080/geonetwork.

 

<url>http://localhost:8080/geonetwork/srv/fre/../..</url>

<nodeUrl>http://localhost:8080/geonetwork/srv/</nodeUrl>

<baseUrl>http://localhost:8080/geonetwork/</baseUrl>

<serverUrl>http://localhost:8080</serverUrl>

<language>fre</language>

 

 

But my webapp don’t use 8080.

How could i change this config and use correct URL ? Maybe have you another idea about this problem ?

 

Thanks a lot !

 

 

----- Groovy file content ----

handlers.add 'gco:CharacterString', {el -> "<div>${el.text()}</div>"}

 

 

https://github.com/fgravin/core-geonetwork/commit/7b8ff448ea857b405ec446a62a86636436ee3584

 

Regards.

--

Gaëtan Bruel



_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork