[GeoNetwork-users] Template don´t come up at textbox

Hi all,

if I want to choose my own template at creating new metadata page there is
an empty place. My title of that template is not shown (is blank). But I can
open that template choosing that blank field.

Where or which file do I have to change to see my title?

Thanks.

best regards
Sarah

--
View this message in context: http://n2.nabble.com/Template-don-t-come-up-at-textbox-tp3711764p3711764.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi all,

I have insert at metadata-utils.xsl this:
<xsl:when test="$schema='mytest'">
        <xsl:call-template name="dublin-coreBrief"/> <!-- dublin-coreBrief is
still not correct -->
      </xsl:when>
so I can read the title of my template at textbox. But I can´t open that
template ("IllegalStateException : Root element not set "). So I copied
metadata-dublin-core, changed name to metadata-mytest and changed some text
from dublin-core to mytest and so on. At this case I can´t open main page of
geonetwork and get this error:

TransformerConfigurationException : Failed to compile stylesheet. 1 error
detected.

Can anybody give me a hint where to look of?
Thanks.

best regards
Sarah

Sarah_S wrote:

Hi all,

if I want to choose my own template at creating new metadata page there is
an empty place. My title of that template is not shown (is blank). But I
can open that template choosing that blank field.

Where or which file do I have to change to see my title?

Thanks.

best regards
Sarah

--
View this message in context: http://n2.nabble.com/Template-don-t-come-up-at-textbox-tp3711764p3735490.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi all,

now I can open my template at input form (default view) but my labels came
up like dc:title and not Title. It seems like GN could not find label
segment at labels.xml. Anybody there who know what the problem is?

Thanks.

best regards
Sarah

Sarah_S wrote:

Hi all,

I have insert at metadata-utils.xsl this:
<xsl:when test="$schema='mytest'">
        <xsl:call-template name="dublin-coreBrief"/> <!-- dublin-coreBrief is
still not correct -->
      </xsl:when>
so I can read the title of my template at textbox. But I can´t open that
template ("IllegalStateException : Root element not set "). So I copied
metadata-dublin-core, changed name to metadata-mytest and changed some
text from dublin-core to mytest and so on. At this case I can´t open main
page of geonetwork and get this error:

TransformerConfigurationException : Failed to compile stylesheet. 1 error
detected.

Can anybody give me a hint where to look of?
Thanks.

best regards
Sarah

Sarah_S wrote:

Hi all,

if I want to choose my own template at creating new metadata page there
is an empty place. My title of that template is not shown (is blank). But
I can open that template choosing that blank field.

Where or which file do I have to change to see my title?

Thanks.

best regards
Sarah

--
View this message in context: http://n2.nabble.com/Template-don-t-come-up-at-textbox-tp3711764p3747983.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hello Sarah, not sure if you added a new schema or not, but if that
the case, you need to update in config.xml the gui section to load
translation :
<gui>
      <xml name="strings" file="xml/strings.xml" />
      <xml name="countries" file="xml/countries.xml" />
      <xml name="iso19115" base="xml/schemas/iso19115/loc" file="labels.xml" />
      <xml name="iso19115" base="xml/schemas/iso19115/loc" file="codelists.xml" />
      <xml name="iso19139" base="xml/schemas/iso19139/loc" file="labels.xml" />
      <xml name="iso19139" base="xml/schemas/iso19139/loc" file="codelists.xml" />
      <xml name="fgdc-std" base="xml/schemas/fgdc-std/loc" file="labels.xml" />
      <xml name="dublin-core" base="xml/schemas/dublin-core/loc"
file="labels.xml" />
...
    </gui>

HTH.
Francois

2009/10/1 Sarah_S <Sarah_flip@anonymised.com>:

Hi all,

now I can open my template at input form (default view) but my labels came
up like dc:title and not Title. It seems like GN could not find label
segment at labels.xml. Anybody there who know what the problem is?

Thanks.

best regards
Sarah

Sarah_S wrote:

Hi all,

I have insert at metadata-utils.xsl this:
<xsl:when test="$schema='mytest'">
<xsl:call-template name="dublin-coreBrief"/> <!-- dublin-coreBrief is
still not correct -->
</xsl:when>
so I can read the title of my template at textbox. But I can´t open that
template ("IllegalStateException : Root element not set "). So I copied
metadata-dublin-core, changed name to metadata-mytest and changed some
text from dublin-core to mytest and so on. At this case I can´t open main
page of geonetwork and get this error:

TransformerConfigurationException : Failed to compile stylesheet. 1 error
detected.

Can anybody give me a hint where to look of?
Thanks.

best regards
Sarah

Sarah_S wrote:

Hi all,

if I want to choose my own template at creating new metadata page there
is an empty place. My title of that template is not shown (is blank). But
I can open that template choosing that blank field.

Where or which file do I have to change to see my title?

Thanks.

best regards
Sarah

--
View this message in context: http://n2.nabble.com/Template-don-t-come-up-at-textbox-tp3711764p3747983.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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

Hi Francois,

yes I add a new schema (copied dublin-core and changed name to 'mytest'). I
added this line at config.xml for my new schema:
<xml name="mytest" base="xml/schemas/mytest/loc" file="labels.xml" />

Do you need a log-file or anything else?
What I´m missing?

Thanks.

best regards
Sarah

Francois Prunayre wrote:

Hello Sarah, not sure if you added a new schema or not, but if that
the case, you need to update in config.xml the gui section to load
translation :
<gui>
      <xml name="strings" file="xml/strings.xml" />
      <xml name="countries" file="xml/countries.xml" />
      <xml name="iso19115" base="xml/schemas/iso19115/loc" file="labels.xml"
/>
      <xml name="iso19115" base="xml/schemas/iso19115/loc"
file="codelists.xml" />
      <xml name="iso19139" base="xml/schemas/iso19139/loc" file="labels.xml"
/>
      <xml name="iso19139" base="xml/schemas/iso19139/loc"
file="codelists.xml" />
      <xml name="fgdc-std" base="xml/schemas/fgdc-std/loc" file="labels.xml"
/>
      <xml name="dublin-core" base="xml/schemas/dublin-core/loc"
file="labels.xml" />
...
    </gui>

HTH.
Francois

2009/10/1 Sarah_S <Sarah_flip@anonymised.com>:

Hi all,

now I can open my template at input form (default view) but my labels
came
up like dc:title and not Title. It seems like GN could not find label
segment at labels.xml. Anybody there who know what the problem is?

Thanks.

best regards
Sarah

Sarah_S wrote:

Hi all,

I have insert at metadata-utils.xsl this:
<xsl:when test="$schema='mytest'">
<xsl:call-template
name="dublin-coreBrief"/> <!-- dublin-coreBrief is
still not correct -->
</xsl:when>
so I can read the title of my template at textbox. But I can´t open that
template ("IllegalStateException : Root element not set "). So I copied
metadata-dublin-core, changed name to metadata-mytest and changed some
text from dublin-core to mytest and so on. At this case I can´t open
main
page of geonetwork and get this error:

TransformerConfigurationException : Failed to compile stylesheet. 1
error
detected.

Can anybody give me a hint where to look of?
Thanks.

best regards
Sarah

Sarah_S wrote:

Hi all,

if I want to choose my own template at creating new metadata page there
is an empty place. My title of that template is not shown (is blank).
But
I can open that template choosing that blank field.

Where or which file do I have to change to see my title?

Thanks.

best regards
Sarah

--
View this message in context:
http://n2.nabble.com/Template-don-t-come-up-at-textbox-tp3711764p3747983.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register
now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register
now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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

--
View this message in context: http://n2.nabble.com/Template-don-t-come-up-at-textbox-tp3711764p3748134.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

I notice that click on a label there are a error (line 7 of labels.xml is:
<description>Test</description>) :
org.jdom.input.JDOMParseException: Error on line 7 of document
file:/C:/temp/geonetwork/web/geonetwork/xml/schemas/mytest/loc/en/labels.xml:
Invalid byte 1 of 1-byte UTF-8 sequence.
  at org.jdom.input.SAXBuilder.build(SAXBuilder.java:465)
  at org.jdom.input.SAXBuilder.build(SAXBuilder.java:810)
  at org.jdom.input.SAXBuilder.build(SAXBuilder.java:789)
  at jeeves.utils.Xml.loadFile(Xml.java:143)
  at jeeves.utils.XmlFileCacher.load(XmlFileCacher.java:103)
  at jeeves.utils.XmlFileCacher.get(XmlFileCacher.java:65)
  at jeeves.server.dispatchers.guiservices.XmlFile.exec(XmlFile.java:98)
  at
jeeves.server.dispatchers.AbstractPage.invokeGuiService(AbstractPage.java:119)
  at
jeeves.server.dispatchers.AbstractPage.invokeGuiServices(AbstractPage.java:103)
  at
jeeves.server.dispatchers.ServiceManager.dispatchOutput(ServiceManager.java:640)
  at
jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:383)
  at jeeves.server.JeevesEngine.dispatch(JeevesEngine.java:621)
  at jeeves.server.sources.http.JeevesServlet.execute(JeevesServlet.java:174)
  at jeeves.server.sources.http.JeevesServlet.doGet(JeevesServlet.java:89)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
  at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:394)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
  at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
  at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
  at java.lang.Thread.run(Thread.java:619)
Caused by: org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8
sequence.
  at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
  at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
  at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
  ... 29 more
Caused by: org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8
sequence.
  at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
  at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
  at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
  at org.jdom.input.SAXBuilder.build(SAXBuilder.java:810)
  at org.jdom.input.SAXBuilder.build(SAXBuilder.java:789)
  at jeeves.utils.Xml.loadFile(Xml.java:143)
  and further on...
I get no tooltip with the description of the label but an error message
(Cannot get tooltips from server
Error : operation-aborted
Message : Can't load xml file :
C:\temp\geonetwork\web\geonetwork\xml\schemas\mytest\loc\en\labels.xml
Class : OperationAbortedEx
Object : org.jdom.input.JDOMParseException: Error on line 7 of document
file:/C:/temp/geonetwork/web/geonetwork/xml/schemas/mytest/loc/en/labels.xml:
Invalid byte 1 of 1-byte UTF-8 sequence) .

Any ideas are appreciated.

Thanks.
best regards
Sarah

Sarah_S wrote:

Hi Francois,

yes I add a new schema (copied dublin-core and changed name to 'mytest').
I added this line at config.xml for my new schema:
<xml name="mytest" base="xml/schemas/mytest/loc" file="labels.xml" />

Do you need a log-file or anything else?
What I´m missing?

Thanks.

best regards
Sarah

Francois Prunayre wrote:

Hello Sarah, not sure if you added a new schema or not, but if that
the case, you need to update in config.xml the gui section to load
translation :
<gui>
      <xml name="strings" file="xml/strings.xml" />
      <xml name="countries" file="xml/countries.xml" />
      <xml name="iso19115" base="xml/schemas/iso19115/loc" file="labels.xml"
/>
      <xml name="iso19115" base="xml/schemas/iso19115/loc"
file="codelists.xml" />
      <xml name="iso19139" base="xml/schemas/iso19139/loc" file="labels.xml"
/>
      <xml name="iso19139" base="xml/schemas/iso19139/loc"
file="codelists.xml" />
      <xml name="fgdc-std" base="xml/schemas/fgdc-std/loc" file="labels.xml"
/>
      <xml name="dublin-core" base="xml/schemas/dublin-core/loc"
file="labels.xml" />
...
    </gui>

HTH.
Francois

2009/10/1 Sarah_S <Sarah_flip@anonymised.com>:

Hi all,

now I can open my template at input form (default view) but my labels
came
up like dc:title and not Title. It seems like GN could not find label
segment at labels.xml. Anybody there who know what the problem is?

Thanks.

best regards
Sarah

Sarah_S wrote:

Hi all,

I have insert at metadata-utils.xsl this:
<xsl:when test="$schema='mytest'">
<xsl:call-template
name="dublin-coreBrief"/> <!-- dublin-coreBrief is
still not correct -->
</xsl:when>
so I can read the title of my template at textbox. But I can´t open
that
template ("IllegalStateException : Root element not set "). So I copied
metadata-dublin-core, changed name to metadata-mytest and changed some
text from dublin-core to mytest and so on. At this case I can´t open
main
page of geonetwork and get this error:

TransformerConfigurationException : Failed to compile stylesheet. 1
error
detected.

Can anybody give me a hint where to look of?
Thanks.

best regards
Sarah

Sarah_S wrote:

Hi all,

if I want to choose my own template at creating new metadata page
there
is an empty place. My title of that template is not shown (is blank).
But
I can open that template choosing that blank field.

Where or which file do I have to change to see my title?

Thanks.

best regards
Sarah

--
View this message in context:
http://n2.nabble.com/Template-don-t-come-up-at-textbox-tp3711764p3747983.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register
now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register
now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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

--
View this message in context: http://n2.nabble.com/Template-don-t-come-up-at-textbox-tp3711764p3748779.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

hi,

just to let you know that I solved this:
I had a mistake at my labels.xml. There was another description text that
caused the problem. Changed it to this line for description tag:
       <element name="simplemy">
    <label>Metadata</label>
    <description/>
  </element>
solved incorrect labeling.

Thanks.
best regards
Sarah

Sarah_S wrote:

I notice that click on a label there are a error (line 7 of labels.xml is:
<description>Test</description>) :
org.jdom.input.JDOMParseException: Error on line 7 of document
file:/C:/temp/geonetwork/web/geonetwork/xml/schemas/mytest/loc/en/labels.xml:
Invalid byte 1 of 1-byte UTF-8 sequence.
  
Francois Prunayre wrote:

Hello Sarah, not sure if you added a new schema or not, but if that
the case, you need to update in config.xml the gui section to load
translation :
<gui>
      <xml name="strings" file="xml/strings.xml" />
      <xml name="countries" file="xml/countries.xml" />
      <xml name="iso19115" base="xml/schemas/iso19115/loc" file="labels.xml"
/>
      <xml name="iso19115" base="xml/schemas/iso19115/loc"
file="codelists.xml" />
      <xml name="iso19139" base="xml/schemas/iso19139/loc" file="labels.xml"
/>
      <xml name="iso19139" base="xml/schemas/iso19139/loc"
file="codelists.xml" />
      <xml name="fgdc-std" base="xml/schemas/fgdc-std/loc" file="labels.xml"
/>
      <xml name="dublin-core" base="xml/schemas/dublin-core/loc"
file="labels.xml" />
...
    </gui>

HTH.
Francois

2009/10/1 Sarah_S <Sarah_flip@anonymised.com>:

Hi all,

now I can open my template at input form (default view) but my labels
came
up like dc:title and not Title. It seems like GN could not find label
segment at labels.xml. Anybody there who know what the problem is?

Thanks.

best regards
Sarah

Sarah_S wrote:

Hi all,

I have insert at metadata-utils.xsl this:
<xsl:when test="$schema='mytest'">
<xsl:call-template
name="dublin-coreBrief"/> <!-- dublin-coreBrief is
still not correct -->
</xsl:when>
so I can read the title of my template at textbox. But I can´t open
that
template ("IllegalStateException : Root element not set "). So I copied
metadata-dublin-core, changed name to metadata-mytest and changed some
text from dublin-core to mytest and so on. At this case I can´t open
main
page of geonetwork and get this error:

TransformerConfigurationException : Failed to compile stylesheet. 1
error
detected.

Can anybody give me a hint where to look of?
Thanks.

best regards
Sarah

Sarah_S wrote:

Hi all,

if I want to choose my own template at creating new metadata page
there
is an empty place. My title of that template is not shown (is blank).
But
I can open that template choosing that blank field.

Where or which file do I have to change to see my title?

Thanks.

best regards
Sarah

--
View this message in context:
http://n2.nabble.com/Template-don-t-come-up-at-textbox-tp3711764p3747983.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register
now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register
now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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

--
View this message in context: http://n2.nabble.com/Template-don-t-come-up-at-textbox-tp3711764p3768386.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.