Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor / Distribution improvements #7468

Merged
merged 42 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ae51003
Metadata editor / distributions
josegar74 Oct 17, 2023
1ff0de6
Editor / Distribution / Quick selection or upload from filestore.
fxprunayre Oct 18, 2023
aa955c0
Editor / Distribution / Extract URL alert template. To be discussed i…
fxprunayre Oct 18, 2023
e7da216
Editor / Distribution / Add possibility to customize label per field …
fxprunayre Oct 18, 2023
8a63906
Editor / Distribution / Do not set filename in resource name.
fxprunayre Oct 18, 2023
88448c5
Editor / Distribution / update the directives so can be used in the …
josegar74 Oct 19, 2023
9fb91ac
Editor / Distribution / Simplify and add documentation for gnDistribu…
josegar74 Oct 19, 2023
bf1c3ab
Editor / Distribution / Simplify distributions configurations and cle…
josegar74 Oct 19, 2023
97eab04
Editor / Distribution / Labels.
fxprunayre Oct 20, 2023
5c69500
Clean console log.
fxprunayre Oct 20, 2023
9787459
Editor / Distribution / Type is required to make distinction of vario…
fxprunayre Oct 20, 2023
73306b5
Editor / Distribution / Change order - API - legend - download - dq -…
fxprunayre Oct 20, 2023
d40c774
Editor / Distribution / Fix refresh of distributions in the metadata …
josegar74 Oct 20, 2023
19afcf7
Editor / Distribution / Generate thumbnail - set the url automaticall…
josegar74 Oct 20, 2023
4d9e483
Editor / Distribution / Synch config between view and edit mode. Add …
fxprunayre Oct 20, 2023
a192425
Editor / Distribution / Add group filter.
fxprunayre Oct 23, 2023
1f2c8cc
Editor / Distribution / Add DOI and WFS component. Move DOI utility t…
fxprunayre Oct 23, 2023
c7930ce
List styling for related records in the editor sidebar
MichelGabriel Oct 24, 2023
b2d2ad3
Style related distribution lists when displayed in the main column as…
MichelGabriel Oct 25, 2023
83c364a
Harvesting / WFS / Add timeout for displaying alert if WFS service no…
fxprunayre Oct 24, 2023
971f12e
Editor / Distributions / Fix on edit existing link.
fxprunayre Oct 25, 2023
c330f11
Editor / Distribution / Suggestion / Add info from WMS.
fxprunayre Oct 25, 2023
b1f46fd
Editor / Distribution / Remove data downloader in edit mode for WFS a…
fxprunayre Oct 25, 2023
450245e
Editor / Distribution / Suggest data model creation when WFS available.
fxprunayre Oct 25, 2023
e8588d3
Editor / Distribution / More consistent config for ISO schema with sa…
fxprunayre Oct 25, 2023
b5d623b
Prettier.
fxprunayre Oct 26, 2023
7e9b7c0
Editor / Distributions / Avoid refresh call. Convert once.
fxprunayre Oct 26, 2023
eaad65f
Editor / Distributions / Add support for multilingual links.
fxprunayre Oct 26, 2023
bd9c617
Editor / Distribution / Dublin core configuration.
fxprunayre Oct 26, 2023
01bfd4d
Add `type` label to the related link in the editor
MichelGabriel Oct 30, 2023
6e76c79
Improve whitespace in the related records list
MichelGabriel Oct 30, 2023
4ac20e2
Display the URL check message inline and not in the footer
MichelGabriel Oct 30, 2023
8abeee5
Standard / ISO19115-3 / Suggestion / Avoid error on multilinugal record
fxprunayre Nov 3, 2023
dd61ad9
Editor / Distribution / Add configuration for associated panel.
fxprunayre Nov 3, 2023
e87a0bd
Editor / Distribution / Add configuration for associated panel / Edit…
fxprunayre Nov 6, 2023
b6e65cd
Merge branch 'main' into 44-metadataeditor-distributions
fxprunayre Dec 15, 2023
be9957f
Editor / Distribution / Add some extra space between link and edit ac…
fxprunayre Dec 19, 2023
155a4e2
Standard / ISO19115-3 / Suggestion / Avoid exception on multilingual …
fxprunayre Dec 19, 2023
ddfde6f
Standard / ISO19115-3 / Suggestion / WMS bbox improvements
fxprunayre Dec 19, 2023
b2aa92e
Merge branch 'main' into 44-metadataeditor-distributions
josegar74 Jan 29, 2024
885a102
Fix 'External links without noopener/noreferrer are a potential secur…
josegar74 Jan 29, 2024
1910e50
Editor / Distribution / Fix JS error in non debug mode due to missing…
fxprunayre Jan 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading