Hi Kathy,
In Geonetwork 3.0 The print prints essentially the same as the MetadataViewer. Is that sufficient for your purposes?
All viewers have multiple output types one of the output types is PDF so you can configure your own print viewer so that it behaves as needed for your purposes.
Jesse
Sent: Friday, October 23, 2015 12:56 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] printing to PDF
Came across an old (2013) query in OSGEO regarding printing to pdf (see original post below). This answers a question I was having around better printing of the metadata (since the print to pdf option from the GeoNetwork menu does not print the full pdf record). So a few questions on this:
-
I really like the first one Jesse lists for end users. While not a requirement, just wondering if there is a way to modify the current print to pdf option in the GN interface to look like what you can do with the browser command line?
-
I also really like what geocat.ch has done for my purposes as admin/editor - it lays out the metadata exactly like it is in the edit mode which is what I need for checking documents or for sending examples to colleagues. Therefore, can someone tell me how to implement what geocat has done (not sure what Jesse means by ‘have to be ported to the system’)?
-
Where is this sort of thing documented (using the command pdf?)? I stumbled on this purely by accident and don’t find anything in the documentation that gives me info about this capability. Which makes me wonder what other command line types of things I could be doing that I don’t even know about.
In the new version there is a PDF print option. FOr example:
http://ids.pigma.org/geonetwork/srv/fre/pdf?uuid=23fd6088-0e69-4e16-89a0-ad0854119e5e<http://ids.pigma.org/geonetwork/apps/georchestra/?hl=fre>
I think that is more or less the default PDF print now. (With some custom branding I am sure).
Also with a bit of development you can have an output like geocat.ch<http://geocat.ch> has:
http://www.geocat.ch/geonetwork/srv/eng/pdf?uuid=b7630e06-7e06-4ab0-9ed5-9fd2e66b6433
The difference between the two is that the first is an xslt transform that creates a PDF. This means that >>> it is not identical to the output of the metadata.show service. The second option (the one used by
geocat). Takes the HTML and converts it a PDF it is literally identical to the output of the metadata.show >>> output.The first is available in 2.8 and 2.10. The second would have to be ported to the system.
Jesse
Kathy
On Thu, Nov 12, 2015 at 6:39 PM <geonetwork-devel-request@lists.sourceforge.net> wrote:
Send GeoNetwork-devel mailing list submissions to
geonetwork-devel@lists.sourceforge.netTo subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
or, via email, send a message with subject or body ‘help’ to
geonetwork-devel-request@anonymised.comorge.netYou can reach the person managing the list at
geonetwork-devel-owner@anonymised.com.netWhen replying, please edit your Subject line so it is more specific
than “Re: Contents of GeoNetwork-devel digest…”
Today’s Topics:
- Re: CFV / Florent Gravin as PSC member (Emanuele Tajariol)
- Re: CFV / Florent Gravin as PSC member (Jeroen Ticheler)
- R: CFV / Florent Gravin as PSC member (Monteduro, Patrizia (NRL))
- Fw: printing to PDF (Kathy Koch)
- Re: Custom error 500 page for ‘Operation not allowed’
(BERNARD Cyril)---------- Forwarded message ----------
From: Emanuele Tajariol <etj@anonymised.com…>
To: Francois Prunayre <fx.prunayre@anonymised.com>, Florent Gravin <florent.gravin@anonymised.com>
Cc: geonetwork-devel <geonetwork-devel@anonymised.comsts.sourceforge.net>, “Monteduro, Patrizia (NRL)” <patrizia.monteduro@anonymised.com>, Jesse Eichar <jesse.eichar@anonymised.com>
Date: Thu, 12 Nov 2015 10:13:35 +0100
Subject: Re: [GeoNetwork-devel] CFV / Florent Gravin as PSC member
+1Cheers,
EmanueleAlle 09:52:49 di Thursday 12 November 2015, Jose Garcia ha scritto:
Hi
+1
Regards,
Jose GarcíaOn Thu, Nov 12, 2015 at 8:45 AM, Simon.Pigot@anonymised.com wrote:
+1 - Welcome Florent!
From: Jesse Eichar [jesse.eichar@anonymised.com]
Sent: Thursday, 12 November 2015 6:57 PM
To: Francois Prunayre; Devel geonetwork-devel@anonymised.comnet;
Emanuele Tajariol; Jeroen Ticheler; Jose Benito Garcia Segura; Patrizia
Monteduro; Pigot, Simon (O&A, Hobart)
Cc: Florent Gravin
Subject: Re: CFV / Florent Gravin as PSC memberMy vote is also +1
On Thu, Nov 12, 2015, 08:46 Francois Prunayre <fx.prunayre@anonymised.com
mailto:[fx.prunayre@anonymised.com](mailto:fx.prunayre@anonymised.com)> wrote:
Dear PSC members,Florent has been contributing a lot to the GeoNetwork project since he
joined us as committer in October 2013. He had a major role in the move
to AngularJS, dedicated quite some time on reviewing pull requests and
proposals from all contributors and is also now giving directions on how
the project should evolve (eg. map visualization, Solr).So I would like to propose Florent as PSC member.
Looking forward to your votes.
My vote is +1.
Regards.
Francois
–
GeoServer Professional Services from the experts!
Visit http://goo.gl/NWWaa2 for more information.Ing. Emanuele Tajariol
Technical LeadGeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 380 2116282http://www.geo-solutions.it
http://twitter.com/geosolutions_it
---------- Forwarded message ----------
From: Jeroen Ticheler <jeroen.ticheler@anonymised.com>
To: “François Prunayre” <fx.prunayre@anonymised.com>
Cc: GeoNetwork GeoNetwork Developer GeoNetwork Developer list <geonetwork-devel@lists.sourceforge.net>, Patrizia Monteduro <patrizia.monteduro@anonymised.com>, Jesse Eichar <jesse.eichar@anonymised.com>
Date: Thu, 12 Nov 2015 10:24:00 +0100
Subject: Re: [GeoNetwork-devel] CFV / Florent Gravin as PSC member+1 from me! Welcome Florent!
Cheers,
JeroenOn 12 nov. 2015, at 08:46, Francois Prunayre <fx.prunayre@anonymised.com> wrote:
Dear PSC members,
Florent has been contributing a lot to the GeoNetwork project since he joined us as committer in October 2013. He had a major role in the move to AngularJS, dedicated quite some time on reviewing pull requests and proposals from all contributors and is also now giving directions on how the project should evolve (eg. map visualization, Solr).
So I would like to propose Florent as PSC member.
Looking forward to your votes.
My vote is +1.
Regards.
Francois
---------- Forwarded message ----------
From: “Monteduro, Patrizia (NRL)” <Patrizia.Monteduro@anonymised.com>
To: Francois Prunayre <fx.prunayre@anonymised.com>, “Devel geonetwork-devel@lists.sourceforge.net” <geonetwork-devel@lists.sourceforge.net>, Emanuele Tajariol <etj@anonymised.com>, Jeroen Ticheler <Jeroen.Ticheler@anonymised.com>, Jesse Eichar <jesse.eichar@anonymised.com>, Jose Benito Garcia Segura <jose.garcia@anonymised.com>, Simon Pigot Simon.Pigot@anonymised.com
Cc:
Date: Thu, 12 Nov 2015 16:16:38 +0100
Subject: [GeoNetwork-devel] R: CFV / Florent Gravin as PSC member
+1
Thank you Florent!Patrizia
Da: Francois Prunayre [fx.prunayre@anonymised.com]
Inviato: giovedì 12 novembre 2015 8.46
A: Devel geonetwork-devel@lists.sourceforge.net; Emanuele Tajariol; Jeroen Ticheler; Jesse Eichar; Jose Benito Garcia Segura; Monteduro, Patrizia (NRL); Simon Pigot
Cc: Florent Gravin
Oggetto: CFV / Florent Gravin as PSC memberDear PSC members,
Florent has been contributing a lot to the GeoNetwork project since he joined us as committer in October 2013. He had a major role in the move to AngularJS, dedicated quite some time on reviewing pull requests and proposals from all contributors and is also now giving directions on how the project should evolve (eg. map visualization, Solr).
So I would like to propose Florent as PSC member.
Looking forward to your votes.
My vote is +1.
Regards.
Francois
---------- Forwarded message ----------
From: Kathy Koch <kkoch@anonymised.com>
To: “geonetwork-devel@lists.sourceforge.net” <geonetwork-devel@lists.sourceforge.net>
Cc:
Date: Thu, 12 Nov 2015 15:58:19 +0000
Subject: [GeoNetwork-devel] Fw: printing to PDF
Apologies for cross-posting but since I did not get any response on -users, thought I’d try the developers list. Does anyone have any thoughts/assistance?TIA!
—Kathy
Sent: Friday, October 23, 2015 12:56 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] printing to PDFCame across an old (2013) query in OSGEO regarding printing to pdf (see original post below). This answers a question I was having around better printing of the metadata (since the print to pdf option from the GeoNetwork menu does not print the full pdf record). So a few questions on this:
I really like the first one Jesse lists for end users. While not a requirement, just wondering if there is a way to modify the current print to pdf option in the GN interface to look like what you can do with the browser command line?
I also really like what geocat.ch has done for my purposes as admin/editor - it lays out the metadata exactly like it is in the edit mode which is what I need for checking documents or for sending examples to colleagues. Therefore, can someone tell me how to implement what geocat has done (not sure what Jesse means by ‘have to be ported to the system’)?
Where is this sort of thing documented (using the command pdf?)? I stumbled on this purely by accident and don’t find anything in the documentation that gives me info about this capability. Which makes me wonder what other command line types of things I could be doing that I don’t even know about.
In the new version there is a PDF print option. FOr example:
http://ids.pigma.org/geonetwork/srv/fre/pdf?uuid=23fd6088-0e69-4e16-89a0-ad0854119e5e<http://ids.pigma.org/geonetwork/apps/georchestra/?hl=fre>
I think that is more or less the default PDF print now. (With some custom branding I am sure).
Also with a bit of development you can have an output like geocat.ch<http://geocat.ch> has:
http://www.geocat.ch/geonetwork/srv/eng/pdf?uuid=b7630e06-7e06-4ab0-9ed5-9fd2e66b6433
The difference between the two is that the first is an xslt transform that creates a PDF. This means that >>> it is not identical to the output of the metadata.show service. The second option (the one used by
geocat). Takes the HTML and converts it a PDF it is literally identical to the output of the metadata.show >>> output.The first is available in 2.8 and 2.10. The second would have to be ported to the system.
Jesse
Kathy
---------- Forwarded message ----------
From: BERNARD Cyril <Cyril.BERNARD@anonymised.com>
To: Julien Acroute <julien.acroute@anonymised.com>
Cc: “geonetwork-devel@lists.sourceforge.net” <geonetwork-devel@lists.sourceforge.net>
Date: Thu, 12 Nov 2015 17:39:06 +0000
Subject: Re: [GeoNetwork-devel] Custom error 500 page for ‘Operation not allowed’Hi Julien,
Thank you for your answer.
Sorry I am very new to Spring and Geonetwork architecture … I made a quick research in project files but I don’t know where is the controller and which file to update …
Regards,
Cyril Bernard
CEFE-CNRS
De : Julien Acroute [mailto:julien.acroute@anonymised.com…189…]
Envoyé : jeudi 12 novembre 2015 09:43
À : BERNARD Cyril <Cyril.BERNARD@anonymised.com>
Cc : geonetwork-devel@lists.sourceforge.net
Objet : Re: [GeoNetwork-devel] Custom error 500 page for ‘Operation not allowed’Hello,
You can use
@ExceptionHandler()`` annotation in order to catch specific exception.
@ExceptionHandler(
OperationNotAllowed.class)
public String handle
OperationNotAllowed(){return “error/500”
}
You can add previous method in controller that throw OperationNotAllowed exception. If you have many controller, maybe you can try
@ControllerAdvice`` annotation.
best,
Julien
2015-11-11 16:45 GMT+01:00 BERNARD Cyril <Cyril.BERNARD@anonymised.com1…>:
Hello,
I have created a catalog with Geonetwork 3.0.2. In my catalog, most of the files associated with metadata are private : everyone can see metadata, but only authenticated users can access data.
Now everything works fine for authentied users. But links to the data are still visible in the search page for everyone (http://cartotheque.cefe.cnrs.fr/catalogue/srv/fre/catalog.search#/search) , and whenever the users are not authentified, these links open an disgraceful error page with java stack trace …
Example :
Etat HTTP 500 - Request processing failed; nested exception is OperationNotAllowedEx : Operation not allowed
type Rapport d’‘exception
message Request processing failed; nested exception is OperationNotAllowedEx : Operation not allowed
description Le serveur a rencontré une erreur interne qui l’'a empêché de satisfaire la requête.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is OperationNotAllowedEx : Operation not allowed
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
etc.Now I would like :
- links to the data not to be visible in the search page (they are still visible now). Is there an easy way to do that ?
- custom error 500 page for ‘OperationNotAllowed’ exception.
It works, if I add a customize error page in WEB-INF/web.xml like this :
500
/error/500.html
But the problem is that error 500 can have other causes … and I was wondering if there is another way to deal with error 500 + OperationNotAllowed (more ‘Spring compliant’ … but I don’t know Spring at all).
Regards,
Cyril Bernard
CEFE-CNRS
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
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