Hello everyone
I made import eml-gbif-sample.mef as template for geonetwork. but I have an
issue when trying to insert a new metadata with this scheme, since the top
menu options: Save, Save & Review, Save and Close, Clean appear disabled.
attached xml code:
<eml:eml xmlns:eml="eml://ecoinformatics.org/eml-2.1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dc="http://purl.org/dc/terms/"
xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.1
http://rs.gbif.org/schema/eml-gbif-profile/1.0/eml.xsd" xml:lang="en"
packageId="619a4b95-1a82-4006-be6a-7dbe3c9b33c5/v7" system="http://gbif.org"
scope="system">
<dataset>
<alternateIdentifier>f1a921f2-d207-4c22-8b22-128273706426</alternateIdentifier>
<title xml:lang="en">Tanzanian Entomological Collection</title>
<title xml:lang="de">Entymologische Sammlung Tansania</title>
<creator>
<individualName>
<givenName>David</givenName>
<surName>Remsen</surName>
</individualName>
<organizationName>GBIF</organizationName>
<positionName>ECAT Programme Officer</positionName>
<address>
<deliveryPoint>Universitestparken 15</deliveryPoint>
<city>Copenhagen</city>
<administrativeArea>Sjaelland</administrativeArea>
<postalCode>2100</postalCode>
<country>DK</country>
</address>
<phone>+4528261487</phone>
<electronicMailAddress>dremsen@anonymised.com</electronicMailAddress>
<onlineUrl>http://www.gbif.org</onlineUrl>
</creator>
<metadataProvider>
<individualName>
<givenName>Tim</givenName>
<surName>Robertson</surName>
</individualName>
<address>
<deliveryPoint>Universitestparken 15</deliveryPoint>
<city>Copenhagen</city>
<administrativeArea>Copenhagen</administrativeArea>
<postalCode>2100</postalCode>
<country>DK</country>
</address>
<phone>+4528261487</phone>
<electronicMailAddress>trobertson@anonymised.com</electronicMailAddress>
<onlineUrl>http://www.gbif.org</onlineUrl>
</metadataProvider>
<associatedParty>
<individualName>
<surName>Doering</surName>
</individualName>
<phone>4535321487</phone>
<role>principleInvestigator</role>
</associatedParty>
<associatedParty>
<individualName>
<surName>Hahn</surName>
</individualName>
<phone>4535321478</phone>
<role>pointOfContact</role>
</associatedParty>
<pubDate>2010-02-02</pubDate>
<language>en_US</language>
<abstract>
<para>Specimens in jars</para>
</abstract>
<keywordSet>
<keyword>Insect</keyword>
<keyword>Fly</keyword>
<keyword>Bee</keyword>
<keywordThesaurus>Zoology Vocabulary Version 1</keywordThesaurus>
</keywordSet>
<keywordSet>
<keyword>Spider</keyword>
<keywordThesaurus>Zoology Vocabulary Version 1</keywordThesaurus>
</keywordSet>
<additionalInfo>
<para>Where can the additional information possibly come from?!</para>
</additionalInfo>
<intellectualRights>
<para>Owner grants XXX a worldwide, non-exclusive right to: (i) use,
reproduce, perform,
display, archive, transmit and distribute the Content
(including any trademarks,
tradenames and logos in the Content) in electronic form in
connection with the Site,
(ii) allow users of the Site to use, search, copy, download
and transmit the
Content, and (iii) modify and reformat the Content, but
solely to the extent
necessary and for the purposes of: (a) conforming to the
format and "look and feel"
of the Site, and (b) creating snippets, headlines or teasers
consisting of selected
lines or sections from the Content to be displayed on the
Site (or displayed on
other websites owned by XXX for the purposes of directing
traffic to the Site).</para>
</intellectualRights>
<distribution scope="document">
<online>
<url
function="information">http://www.any.org/fauna/coleoptera/beetleList.html</url>
</online>
</distribution>
<coverage>
<geographicCoverage>
<geographicDescription>Bounding Box 1</geographicDescription>
<boundingCoordinates>
<westBoundingCoordinate>-1.564</westBoundingCoordinate>
<eastBoundingCoordinate>0.703</eastBoundingCoordinate>
<northBoundingCoordinate>23.975</northBoundingCoordinate>
<southBoundingCoordinate>-22.745</southBoundingCoordinate>
</boundingCoordinates>
</geographicCoverage>
<geographicCoverage>
<geographicDescription>Bounding Box 2</geographicDescription>
<boundingCoordinates>
<westBoundingCoordinate>-10.703</westBoundingCoordinate>
<eastBoundingCoordinate>11.564</eastBoundingCoordinate>
<northBoundingCoordinate>43.975</northBoundingCoordinate>
<southBoundingCoordinate>-32.745</southBoundingCoordinate>
</boundingCoordinates>
</geographicCoverage>
<temporalCoverage>
<rangeOfDates>
<beginDate>
<calendarDate>2009-12-01</calendarDate>
</beginDate>
<endDate>
<calendarDate>2009-12-30</calendarDate>
</endDate>
</rangeOfDates>
</temporalCoverage>
<temporalCoverage>
<singleDateTime>
<calendarDate>2008-06-01</calendarDate>
</singleDateTime>
</temporalCoverage>
<taxonomicCoverage>
<generalTaxonomicCoverage>This is a general taxon coverage with only
the scientific name</generalTaxonomicCoverage>
<taxonomicClassification>
<taxonRankValue>Mammalia</taxonRankValue>
</taxonomicClassification>
<taxonomicClassification>
<taxonRankValue>Reptilia</taxonRankValue>
</taxonomicClassification>
<taxonomicClassification>
<taxonRankValue>Coleoptera</taxonRankValue>
</taxonomicClassification>
</taxonomicCoverage>
<taxonomicCoverage>
<generalTaxonomicCoverage>This is a second taxon coverage with all
fields</generalTaxonomicCoverage>
<taxonomicClassification>
<taxonRankName>Class</taxonRankName>
<taxonRankValue>Aves</taxonRankValue>
<commonName>Birds</commonName>
</taxonomicClassification>
</taxonomicCoverage>
</coverage>
<purpose>
<para>Provide data to the whole world.</para>
</purpose>
<contact>
<individualName>
<givenName>David</givenName>
<surName>Remsen</surName>
</individualName>
<organizationName>GBIF</organizationName>
<positionName>ECAT Programme Officer</positionName>
<address>
<deliveryPoint>Universitestparken 15</deliveryPoint>
<city>Copenhagen</city>
<administrativeArea>Sjaelland</administrativeArea>
<postalCode>2100</postalCode>
<country>DK</country>
</address>
<phone>+4528261487</phone>
<electronicMailAddress>dremsen@anonymised.com</electronicMailAddress>
<onlineUrl>http://www.gbif.org</onlineUrl>
</contact>
<methods>
<methodStep>
<description>
<para>Took picture, identified</para>
</description>
</methodStep>
<sampling>
<studyExtent>
<description>
<para>Daily Obersevation of Pigeons Eating Habits</para>
</description>
</studyExtent>
<samplingDescription>
<para>44KHz is what a CD has... I was more like one a day if I
felt like it</para>
</samplingDescription>
</sampling>
<qualityControl>
<description>
<para>None</para>
</description>
</qualityControl>
<methodStep>
<description>
<para>Themometer based test</para>
</description>
</methodStep>
<methodStep>
<description>
<para>Visual based test</para>
</description>
</methodStep>
</methods>
<project>
<title>Documenting Some Asian Birds and Insects</title>
<personnel>
<individualName>
<surName>Remsen</surName>
</individualName>
<role>publisher</role>
</personnel>
<funding>
<para>My Deep Pockets</para>
</funding>
<studyAreaDescription>
<descriptor name="generic" citableClassificationSystem="false">
<descriptorValue>Turkish Mountains</descriptorValue>
</descriptor>
</studyAreaDescription>
<designDescription>
<description>
<para>This was done in Avian Migration patterns</para>
</description>
</designDescription>
</project>
</dataset>
<additionalMetadata>
<metadata>
<gbif>
<dateStamp>2002-10-23T18:13:51.235+01:00</dateStamp>
<hierarchyLevel>dataset</hierarchyLevel>
<citation identifier="doi:tims-ident.2135.ex43.33.d">Tims assembled
checklist</citation>
<bibliography>
<citation>title 1</citation>
<citation>title 2</citation>
<citation>title 3</citation>
</bibliography>
<physical>
<objectName>INV-GCEM-0305a1_1_1.shp</objectName>
<characterEncoding>ASCII</characterEncoding>
<dataFormat>
<externallyDefinedFormat>
<formatName>shapefile</formatName>
<formatVersion>2.0</formatVersion>
</externallyDefinedFormat>
</dataFormat>
<distribution>
<online>
<url
function="download">http://metacat.lternet.edu/knb/dataAccessServlet?docid=knb-lter-gce.109.10&urlTail=accession=INV-GCEM-0305a1&filename=INV-GCEM-0305a1_1_1.TXT</url>
</online>
</distribution>
</physical>
<physical>
<objectName>INV-GCEM-0305a1_1_2.shp</objectName>
<characterEncoding>ASCII</characterEncoding>
<dataFormat>
<externallyDefinedFormat>
<formatName>shapefile</formatName>
<formatVersion>2.0</formatVersion>
</externallyDefinedFormat>
</dataFormat>
<distribution>
<online>
<url
function="download">http://metacat.lternet.edu/knb/dataAccessServlet?docid=knb-lter-gce.109.10&urlTail=accession=INV-GCEM-0305a1&filename=INV-GCEM-0305a1_1_2.TXT</url>
</online>
</distribution>
</physical>
<resourceLogoUrl>http://www.tim.org/logo.jpg</resourceLogoUrl>
<collection>
<parentCollectionIdentifier>urn:lsid:tim.org:12:1</parentCollectionIdentifier>
<collectionIdentifier>urn:lsid:tim.org:12:2</collectionIdentifier>
<collectionName>Mammals</collectionName>
</collection>
<formationPeriod>During the 70s</formationPeriod>
<specimenPreservationMethod>alcohol</specimenPreservationMethod>
<livingTimePeriod>Jurassic</livingTimePeriod>
<jgtiCuratorialUnit>
<jgtiUnitType>jars</jgtiUnitType>
<jgtiUnitRange>
<beginRange>500</beginRange>
<endRange>600</endRange>
</jgtiUnitRange>
</jgtiCuratorialUnit>
</gbif>
</metadata>
</additionalMetadata>
</eml:eml>
I test through the database and delete the following lines:
<geographicCoverage>
<geographicDescription> Bounding Box 1 </ geographicDescription>
<boundingCoordinates>
<westBoundingCoordinate> 1564 </ westBoundingCoordinate>
<eastBoundingCoordinate> 0703 </ eastBoundingCoordinate>
<northBoundingCoordinate> 23,975 </ northBoundingCoordinate>
<southBoundingCoordinate> 22745 </ southBoundingCoordinate>
</ boundingCoordinates>
</ geographicCoverage>
<geographicCoverage>
<geographicDescription> Bounding Box 2 </ geographicDescription>
<boundingCoordinates>
<westBoundingCoordinate> 10703 </ westBoundingCoordinate>
<eastBoundingCoordinate> 11,564 </ eastBoundingCoordinate>
<northBoundingCoordinate> 43975 </ northBoundingCoordinate>
<southBoundingCoordinate> 32745 </ southBoundingCoordinate>
</ boundingCoordinates>
</ geographicCoverage>
Restart tomcat, access to geonetwork, select template eml-gbif, insert a new
metadata, now if the top menu options appear. Apparently there are problems
with the module that represents the coverage
Additional there are several fields that can not be modified, in the case
of:
electronicMailAddress
Abstract
Additional info
Intellectual Rights
Begindate ->
Enddata ->
Purpose ->
Methods ---> Description -
description -
Sampling Description
description -
description -
Funding
By testing and I managed to have field "electronicMailAddress"
In the following path: / opt / tomcat / webapps / geonetwork / WEB-INF /
data / config / schema_plugins / eml-gbif / present
the metadata.xsl file, comment the following lines
<! - Mailto link ->
<xsl: template mode = "eml-gbif" match = "electronicMailAddress">
<xsl: param name = "schema" />
<xsl: param name = "edit" />
<xsl: apply\-templates mode = "simpleElement" select = "\.">
<xsl: with\-param name = "schema" select = "$ schema" />
<xsl: with\-param name = "edit" select = "$ edit" />
<xsl: with\-param name = "text">
<mailto:\{\.\}> <xsl: value\-of select = / "\.">
</ xsl: with\-param>
</ xsl: apply\-templates>
</ xsl: template>
and file metadata-edit.xsl
<! - Mailto link ->
<xsl: template mode = "eml-gbif" match = "electronicMailAddress">
<xsl: param name = "schema" />
<xsl: param name = "edit" />
<xsl: apply\-templates mode = "simpleElement" select = "\.">
<xsl: with\-param name = "schema" select = "$ schema" />
<xsl: with\-param name = "edit" select = "$ edit" />
<xsl: with\-param name = "text">
<mailto:\{\.\}> <xsl: value\-of select = / "\.">
</ xsl: with\-param>
</ xsl: apply\-templates>
</ xsl: template>
But I have not gotten to other fields.
Can you help me with this problem, it is important to have properly achieve
this template.
Thank you very much for your help.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Import-eml-gbif-sample-mef-tp5178295p5182388.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.