[GeoNetwork-users] Help viewing XML attributes

Hi
Is there a simple way of entering values for optional XML attributes in the editing screen?
At the moment I can't even see them in that view if I add them directly to the XML, so I probably need help there too!

Cheers
E
Evert Bleys

From my experience, adding them directly in the XML should also make them visible, provided you follow the schematron
rules closely, save and reload your word in the extended view. I've been able to add e.g. download fields or multiple feature lists in this way, by editing the XML directly.

However, you may wish to use an external XML editor such as Notepad++, which does a better job at highlighting the syntax
and keeping nodes indented and properly formed/closed. You can edit your XML there, and then paste it over the one in Geonetwork.

Cheers,
Victor

Hi
Is there a simple way of entering values for optional XML attributes in the editing screen?
At the moment I can't even see them in that view if I add them directly to the XML, so I probably need help there too!

Cheers
E
Evert Bleys

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
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

Thanks Victor
Till now I've been doing all editing on XML parser but am hoping to get authors to do their own in GN but it will need to provide attribute options from the normal editing interface to make it useful, otherwise I might as well keep hand-coding using oXygen.

Evert Bleys

On 29/03/2011, at 21:46, Victor Epitropou <vepitrop@anonymised.com> wrote:

From my experience, adding them directly in the XML should also make them visible, provided you follow the schematron
rules closely, save and reload your word in the extended view. I've been able to add e.g. download fields or multiple feature lists in this way, by editing the XML directly.

However, you may wish to use an external XML editor such as Notepad++, which does a better job at highlighting the syntax
and keeping nodes indented and properly formed/closed. You can edit your XML there, and then paste it over the one in Geonetwork.

Cheers,
Victor

Hi
Is there a simple way of entering values for optional XML attributes in the editing screen?
At the moment I can't even see them in that view if I add them directly to the XML, so I probably need help there too!

Cheers
E
Evert Bleys

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
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 Evert,

Victor's answer is one way you could do this. In the editor in 2.7, you can add/edit/delete optional attributes - they should appear as an expandable group under the element they apply to - take a look for example at the begin date and end date on the temporalextent element in the advanced editor in 2.7.

Can you let us know what attributes you want your users to be able to edit?

Cheers,
Simon
________________________________________
From: Gmail [ebleys@anonymised.com]
Sent: Tuesday, 29 March 2011 10:55 PM
To: vepitrop@anonymised.com
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Fwd: Help viewing XML attributes

Thanks Victor
Till now I've been doing all editing on XML parser but am hoping to get authors to do their own in GN but it will need to provide attribute options from the normal editing interface to make it useful, otherwise I might as well keep hand-coding using oXygen.

Evert Bleys

On 29/03/2011, at 21:46, Victor Epitropou <vepitrop@anonymised.com> wrote:

From my experience, adding them directly in the XML should also make them visible, provided you follow the schematron
rules closely, save and reload your word in the extended view. I've been able to add e.g. download fields or multiple feature lists in this way, by editing the XML directly.

However, you may wish to use an external XML editor such as Notepad++, which does a better job at highlighting the syntax
and keeping nodes indented and properly formed/closed. You can edit your XML there, and then paste it over the one in Geonetwork.

Cheers,
Victor

Hi
Is there a simple way of entering values for optional XML attributes in the editing screen?
At the moment I can't even see them in that view if I add them directly to the XML, so I probably need help there too!

Cheers
E
Evert Bleys

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! Best Open Source Mac Front-Ends 2024
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

Thanks Simon
I'm using 2.7.0 snapshot jar

Is there a template that is better than the others for accessing the
attributes
I can see them for the gml objects but not the gmd objects, is that
right?
Is there a flag I can set for gmd attributes?

Immediate requirements are
gmd:MD_Metadata@anonymised.com
<!-- I use this to store my "(semi-)permanent URL" filetag -->
and
gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification@anonymised.com
  <!-- I use this as one of the many part of defining TransferOption
      The main places I need them for DataQual, Extent,
ResourceConstraint, RefrenceSys, SpatatialRep, DistributeFormat) -->
and
gmd:MD_Metadata/gmd:distributionInfo/gmd:MD_Distribution/gmd:distributor
TransferOptions><gmd:MD_DigitalTransferOptions@anonymised.com
  <!-- I use this as part of defining what the TransferOption is -->
and
gmd:MD_Metadata/gmd:featureAttribute@anonymised.com:href

Cheers

e

Evert Bleys
Data Manager
ABARES
Ph + 61 2 6272 5627
Email evert.bleys@anonymised.com
GPO Box 1563 Canberra ACT 2601

Science and economics for decision makers

-----Original Message-----
From: Simon.Pigot@anonymised.com [mailto:Simon.Pigot@anonymised.com]
Sent: Wednesday, 30 March 2011 12:23
To: ebleys@anonymised.com; vepitrop@anonymised.com
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Fwd: Help viewing XML attributes

Hi Evert,

Victor's answer is one way you could do this. In the editor in 2.7, you
can add/edit/delete optional attributes - they should appear as an
expandable group under the element they apply to - take a look for
example at the begin date and end date on the temporalextent element in
the advanced editor in 2.7.

Can you let us know what attributes you want your users to be able to
edit?

Cheers,
Simon
________________________________________
From: Gmail [ebleys@anonymised.com]
Sent: Tuesday, 29 March 2011 10:55 PM
To: vepitrop@anonymised.com
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Fwd: Help viewing XML attributes

Thanks Victor
Till now I've been doing all editing on XML parser but am hoping to get
authors to do their own in GN but it will need to provide attribute
options from the normal editing interface to make it useful, otherwise I
might as well keep hand-coding using oXygen.

Evert Bleys

On 29/03/2011, at 21:46, Victor Epitropou <vepitrop@anonymised.com>
wrote:

From my experience, adding them directly in the XML should also make

them visible, provided you follow the schematron

rules closely, save and reload your word in the extended view. I've

been able to add e.g. download fields or multiple feature lists in this
way, by editing the XML directly.

However, you may wish to use an external XML editor such as Notepad++,

which does a better job at highlighting the syntax

and keeping nodes indented and properly formed/closed. You can edit

your XML there, and then paste it over the one in Geonetwork.

Cheers,
Victor

Hi
Is there a simple way of entering values for optional XML attributes

in the editing screen?

At the moment I can't even see them in that view if I add them

directly to the XML, so I probably need help there too!

Cheers
E
Evert Bleys

------------------------------------------------------------------------
------

Enable your software for Intel(R) Active Management Technology to

meet the

growing manageability and security demands of your customers.

Businesses

are taking advantage of Intel(R) vPro (TM) technology - will your

software

be a part of the solution? Download the Intel(R) Manageability

Checker

today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
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

------------------------------------------------------------------------
------
Enable your software for Intel(R) Active Management Technology to meet
the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your
software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
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

------
IMPORTANT - This email and any attachments have been issued by the Australian Government Department of Agriculture, Fisheries and Forestry (DAFF). The material transmitted is for the use of the intended recipient only and may contain confidential, legally privileged, copyright or personal information. You should not copy, use or disclose it without authorisation from DAFF. It is your responsibility to check any attachments for viruses and defects before opening or forwarding them.

If you are not an intended recipient, please contact the sender of this email at once by return email and then delete both messages. Unintended recipients must not copy, use, disclose, rely on or publish this email or attachments. DAFF is not liable for any loss or damage resulting from unauthorised use or dissemination of, or any reliance on, this email or attachments.

If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one, advise the sender by return e-mail accordingly.

This notice should not be deleted or altered.

------

Hi Evert,

Only had a brief chance to look at this so it's taken a while, but you canmsuggest the optional attributes you would like to appear to the editor by adding them to the schema suggestions file of the schema you are using eg. you could suggest @id on gmd:DQ_DataQuality by adding:

<field name="gmd:DQ_DataQuality">
  <suggest name="id"/>
</field>

to web/geonetwork/schemaPlugins/iso19139.anzlic/schema-suggestions.xml.

The difficulty is that although I can see that the editor has added a blank attribute to the element as per the suggestion, I can't see the editor actually offering the attribute in the interface as a text entry field etc (and indeed the code for displaying complex elements doesn't seem to include any attribute processing that I can see at present either).

So, I think that at the moment, suggested attributes are offered on simple elements by the editor but not on complex elements - maybe this should be the subject of an enhancement request (open a ticket on the geonetwork trac site). The good thing about that is that if I've missed something and this is supported after all, then you should get an answer pretty quick! :slight_smile:

Cheers,
Simon
________________________________________
From: Bleys, Evert [Evert.Bleys@anonymised.com]
Sent: Wednesday, 30 March 2011 2:40 PM
To: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Fwd: Help viewing XML attributes [SEC=UNCLASSIFIED]

Thanks Simon
I'm using 2.7.0 snapshot jar

Is there a template that is better than the others for accessing the
attributes
I can see them for the gml objects but not the gmd objects, is that
right?
Is there a flag I can set for gmd attributes?

Immediate requirements are
gmd:MD_Metadata@anonymised.com
<!-- I use this to store my "(semi-)permanent URL" filetag -->
and
gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification@anonymised.com
  <!-- I use this as one of the many part of defining TransferOption
      The main places I need them for DataQual, Extent,
ResourceConstraint, RefrenceSys, SpatatialRep, DistributeFormat) -->
and
gmd:MD_Metadata/gmd:distributionInfo/gmd:MD_Distribution/gmd:distributor
TransferOptions><gmd:MD_DigitalTransferOptions@anonymised.com
  <!-- I use this as part of defining what the TransferOption is -->
and
gmd:MD_Metadata/gmd:featureAttribute@anonymised.com:href

Cheers

e

Evert Bleys
Data Manager
ABARES
Ph + 61 2 6272 5627
Email evert.bleys@anonymised.com
GPO Box 1563 Canberra ACT 2601

Science and economics for decision makers

-----Original Message-----
From: Simon.Pigot@anonymised.com [mailto:Simon.Pigot@anonymised.com]
Sent: Wednesday, 30 March 2011 12:23
To: ebleys@anonymised.com; vepitrop@anonymised.com
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Fwd: Help viewing XML attributes

Hi Evert,

Victor's answer is one way you could do this. In the editor in 2.7, you
can add/edit/delete optional attributes - they should appear as an
expandable group under the element they apply to - take a look for
example at the begin date and end date on the temporalextent element in
the advanced editor in 2.7.

Can you let us know what attributes you want your users to be able to
edit?

Cheers,
Simon
________________________________________
From: Gmail [ebleys@anonymised.com]
Sent: Tuesday, 29 March 2011 10:55 PM
To: vepitrop@anonymised.com
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Fwd: Help viewing XML attributes

Thanks Victor
Till now I've been doing all editing on XML parser but am hoping to get
authors to do their own in GN but it will need to provide attribute
options from the normal editing interface to make it useful, otherwise I
might as well keep hand-coding using oXygen.

Evert Bleys

On 29/03/2011, at 21:46, Victor Epitropou <vepitrop@anonymised.com>
wrote:

From my experience, adding them directly in the XML should also make

them visible, provided you follow the schematron

rules closely, save and reload your word in the extended view. I've

been able to add e.g. download fields or multiple feature lists in this
way, by editing the XML directly.

However, you may wish to use an external XML editor such as Notepad++,

which does a better job at highlighting the syntax

and keeping nodes indented and properly formed/closed. You can edit

your XML there, and then paste it over the one in Geonetwork.

Cheers,
Victor

Hi
Is there a simple way of entering values for optional XML attributes

in the editing screen?

At the moment I can't even see them in that view if I add them

directly to the XML, so I probably need help there too!

Cheers
E
Evert Bleys

------------------------------------------------------------------------
------

Enable your software for Intel(R) Active Management Technology to

meet the

growing manageability and security demands of your customers.

Businesses

are taking advantage of Intel(R) vPro (TM) technology - will your

software

be a part of the solution? Download the Intel(R) Manageability

Checker

today! Best Open Source Mac Front-Ends 2024
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at

------------------------------------------------------------------------
------
Enable your software for Intel(R) Active Management Technology to meet
the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your
software
be a part of the solution? Download the Intel(R) Manageability Checker
today! Best Open Source Mac Front-Ends 2024
_______________________________________________
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

------
IMPORTANT - This email and any attachments have been issued by the Australian Government Department of Agriculture, Fisheries and Forestry (DAFF). The material transmitted is for the use of the intended recipient only and may contain confidential, legally privileged, copyright or personal information. You should not copy, use or disclose it without authorisation from DAFF. It is your responsibility to check any attachments for viruses and defects before opening or forwarding them.

If you are not an intended recipient, please contact the sender of this email at once by return email and then delete both messages. Unintended recipients must not copy, use, disclose, rely on or publish this email or attachments. DAFF is not liable for any loss or damage resulting from unauthorised use or dissemination of, or any reliance on, this email or attachments.

If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one, advise the sender by return e-mail accordingly.

This notice should not be deleted or altered.

------