Skip to content

Commit

Permalink
Editor / Distribution improvements (#7468)
Browse files Browse the repository at this point in the history
* Metadata editor / distributions

* Editor / Distribution / Quick selection or upload from filestore.

* Editor / Distribution / Extract URL alert template. To be discussed if we move more URL validation logic in a service and if we simplify the layout to a simple green/orange/red icon + message.

* Editor / Distribution / Add possibility to customize label per field depending on the type of resource linked.

* Editor / Distribution / Do not set filename in resource name.

* Editor / Distribution / update the directives so can be used in the record view also. Improved conversion of metadata links to the format required by the online resources dialog

* Editor / Distribution / Simplify and add documentation for gnDistributionResourcesContainer directive

* Editor / Distribution / Simplify distributions configurations and cleanup gnRelatedDistribution

* Editor / Distribution / Labels.

* Clean console log.

* Editor / Distribution / Type is required to make distinction of various type of links. The type is used to find the proper process to use.

* Editor / Distribution / Change order - API - legend - download - dq - fcats - link.

* Editor / Distribution / Fix refresh of distributions in the metadata editor after updating the online resources

* Editor / Distribution / Generate thumbnail - set the url automatically with the url of the thumbnail generated

* Editor / Distribution / Synch config between view and edit mode. Add OGC API choices.

* Editor / Distribution / Add group filter.

* Editor / Distribution / Add DOI and WFS component. Move DOI utility to DOIService.

* List styling for related records in the editor sidebar

* Style related distribution lists when displayed in the main column as well as in the side column.

Add an icon before the link

* Harvesting / WFS / Add timeout for displaying alert if WFS service not found. By default, no alert displayed.

* Editor / Distributions / Fix on edit existing link.

* Editor / Distribution / Suggestion / Add info from WMS.

* Editor / Distribution / Remove data downloader in edit mode for WFS and ATOM.

* Editor / Distribution / Suggest data model creation when WFS available.

* Editor / Distribution / More consistent config for ISO schema with same config on all tabs.

* Prettier.

* Editor / Distributions / Avoid refresh call. Convert once.

* Editor / Distributions / Add support for multilingual links.

* Editor / Distribution / Dublin core configuration.

* Add `type` label to the related link in the editor

* Improve whitespace in the related records list

* Display the URL check message inline and not in the footer

* Standard / ISO19115-3 / Suggestion / Avoid error on multilinugal record

* Editor / Distribution / Add configuration for associated panel.

* Editor / Distribution / Add configuration for associated panel / Editor config to default.

* Editor / Distribution / Add some extra space between link and edit action

* Standard / ISO19115-3 / Suggestion / Avoid exception on multilingual records

* Standard / ISO19115-3 / Suggestion / WMS bbox improvements

Better support of adding bbox from WMS from various layers in same record. Avoid to add multiple time the extent.

* Fix 'External links without noopener/noreferrer are a potential security risk' and Prettier formatting

* Editor / Distribution / Fix JS error in non debug mode due to missing var declaration.

---------

Co-authored-by: Francois Prunayre <[email protected]>
Co-authored-by: Michel Gabriel <[email protected]>
  • Loading branch information
3 people authored Jan 30, 2024
1 parent 9e4cb9d commit df6a770
Show file tree
Hide file tree
Showing 34 changed files with 1,793 additions and 412 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,21 @@
<sidePanel>
<directive data-gn-need-help="creating-metadata"/>
<directive data-gn-validation-report=""/>

<directive data-gn-overview-manager=""
data-file-types=".png,.gif,.jpeg,.jpg"/>

<directive data-gn-distribution-resources-panel="gnCurrentEdit.metadata"
data-mode="viewConfig.distributionConfig.layout || ''"
data-editor-config="default"
data-related-config="[{
title: 'links',
filter: 'protocol:.*',
editActions: ['addOnlinesrc']
}]"/>

<directive data-gn-onlinesrc-list=""
data-types="onlinesrc|thumbnail|parent"/>
data-types="parent"/>
</sidePanel>
<tab id="default" default="true" mode="flat">
<section xpath="/simpledc"/>
Expand All @@ -68,8 +81,21 @@
<sidePanel>
<directive data-gn-need-help="creating-metadata"/>
<directive data-gn-validation-report=""/>

<directive data-gn-overview-manager=""
data-file-types=".png,.gif,.jpeg,.jpg"/>

<directive data-gn-distribution-resources-panel="gnCurrentEdit.metadata"
data-mode="viewConfig.distributionConfig.layout || ''"
data-editor-config="default"
data-related-config="[{
title: 'links',
filter: 'protocol:.*',
editActions: ['addOnlinesrc']
}]"/>

<directive data-gn-onlinesrc-list=""
data-types="onlinesrc|thumbnail|parent"/>
data-types="parent"/>
</sidePanel>
<tab id="advanced" default="true">
<section xpath="/simpledc"/>
Expand All @@ -79,8 +105,21 @@
<sidePanel>
<directive data-gn-need-help="creating-metadata"/>
<directive data-gn-validation-report=""/>

<directive data-gn-overview-manager=""
data-file-types=".png,.gif,.jpeg,.jpg"/>

<directive data-gn-distribution-resources-panel="gnCurrentEdit.metadata"
data-mode="viewConfig.distributionConfig.layout || ''"
data-editor-config="default"
data-related-config="[{
title: 'links',
filter: 'protocol:.*',
editActions: ['addOnlinesrc']
}]"/>

<directive data-gn-onlinesrc-list=""
data-types="onlinesrc|thumbnail|parent"/>
data-types="parent"/>
</sidePanel>
<tab id="xml" default="true"/>
</view>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (C) 2001-2016 Food and Agriculture Organization of the
~ United Nations (FAO-UN), United Nations World Food Programme (WFP)
~ and United Nations Environment Programme (UNEP)
~
~ This program is free software; you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation; either version 2 of the License, or (at
~ your option) any later version.
~
~ This program is distributed in the hope that it will be useful, but
~ WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program; if not, write to the Free Software
~ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
~
~ Contact: Jeroen Ticheler - FAO - Viale delle Terme di Caracalla 2,
~ Rome - Italy. email: [email protected]
-->

<!--
Stylesheet used to update metadata adding a reference to a parent record.
-->
<xsl:stylesheet xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">

<xsl:param name="thumbnail_url"/>

<xsl:template match="/simpledc">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:copy-of
select="dc:*|dct:*"/>

<xsl:if test="not(dct:references[text() = $thumbnail_url])">
<dct:references>
<xsl:value-of select="$thumbnail_url"/>
</dct:references>
</xsl:if>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Loading

0 comments on commit df6a770

Please sign in to comment.