Skip to content

Conversation

@fgravin
Copy link

@fgravin fgravin commented Aug 21, 2018

No description provided.

@fgravin
Copy link
Author

fgravin commented Aug 21, 2018

@fxprunayre please have a look thanks.

isofunc = new iso19139.Functions(handlers: handlers, f:f, env:env, commonHandlers: commonHandlers)
matchers = new Matchers(handlers: handlers, f:f, env:env)
packageViews = [
'mdb:identificationInfo', 'gmd:metadataMaintenance', 'gmd:metadataConstraints', 'mdb:spatialRepresentationInfo',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still some gmd namespace ref. Should be mdb here for most of them.

handlers.add name: 'BBox Element', select: matchers.isBBox, bboxEl(false)
handlers.add name: 'Polygon Element', select: matchers.isPolygon, polygonEl(false)
handlers.add 'gex:geographicElement', commonHandlers.processChildren{it.children()}
handlers.add 'gmd:extentTypeCode', extentTypeCodeEl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gex here.

def localeEls = { els ->
def locales = []
els.each {
it.'gmd:PT_Locale'.each { loc ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lan here, and not gmd after for charset and language. Charset is now characterEncoding

String thumbnailUrl;
if (img.startsWith("http://") || img.startsWith("https://")) {
thumbnailUrl = img.replace("&fname", "&fname");
} else if (!isSmallImage(img) || !hasLargeGraphic) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed. Not used anymore in GN

def f
def env

def isUrlEl = {!it.'gmd:URL'.text().isEmpty()}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URL does not exist anymore here. They are CharacterString and can be multilingual.

* Rome - Italy. email: geonetwork@osgeo.org
*/

package iso191153
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would name it iso19115_3 like the package name for Java classes:

package org.fao.geonet.schema.iso19115_3;

/**
* Creates the {@link org.fao.geonet.api.records.formatters.groovy.util.Summary} instance for the iso19139 class.
*
* @author Jesse on 11/18/2014.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really ;)

* Rome - Italy. email: geonetwork@osgeo.org
*/

def isoHandlers = new iso19139.Handlers(handlers, f, env)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 139 ?

# Rome - Italy. email: geonetwork@osgeo.org
#

schemasToLoad=iso19139
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed ?

fxprunayre added a commit to camptocamp/iso19115-3 that referenced this pull request Sep 12, 2018
* Address most of the comments requested in PR metadata101#34
* Remove all 19139 namespace ref
* URL is a normal CharacterString now
* Aggregates are AssociatedResources
* Remove small/large thumbnails concept code which does not exist anymore
* Remove useless translation. This plugin is only available in english and french for now

... we should probably plan for more testing in here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants