From f930c0def9baca14f7894a228d51dcf74aab5cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Rodri=CC=81guez?= Date: Fri, 17 Jul 2020 00:09:30 +0200 Subject: [PATCH 1/2] Add some config files/directories to .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index f501c1a..f063a35 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ target doc/en/iso19115-3.2018.rst doc/fr/iso19115-3.2018.rst +.classpath +.project +.settings From 0c61a6e927efbea0b107606ddfdf5a1c6446753e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Rodri=CC=81guez?= Date: Fri, 17 Jul 2020 00:26:37 +0200 Subject: [PATCH 2/2] Propagate isDisabled property through boxed elements and codelists as select With this change a user can define a boxed element as disabled. This commit propagates that parameter through these templates to render the fields as readonly. For example, you could use it to set the /mdb:MD_Metadata/mdb:identificationInfo/mri:MD_DataIdentification/mri:citation/cit:CI_Citation/cit:citedResponsibleParty children fields as not editable because you want the users to select the contact from a search contact widget. --- .../layout/layout-custom-fields-contact.xsl | 19 +++++++++++++------ .../plugin/iso19115-3.2018/layout/layout.xsl | 9 ++++++++- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/main/plugin/iso19115-3.2018/layout/layout-custom-fields-contact.xsl b/src/main/plugin/iso19115-3.2018/layout/layout-custom-fields-contact.xsl index 002664a..af3e742 100644 --- a/src/main/plugin/iso19115-3.2018/layout/layout-custom-fields-contact.xsl +++ b/src/main/plugin/iso19115-3.2018/layout/layout-custom-fields-contact.xsl @@ -35,10 +35,12 @@ + + @@ -51,6 +53,9 @@ match="cit:number[parent::node()/name() = 'cit:CI_Telephone']"> + + + @@ -73,7 +78,7 @@ - + @@ -93,7 +98,7 @@ type="tel" name="{concat('_', gco:CharacterString/gn:element/@ref)}" value="{normalize-space(gco:CharacterString)}"> - + @@ -112,10 +117,12 @@
- - - - + + + + + +
diff --git a/src/main/plugin/iso19115-3.2018/layout/layout.xsl b/src/main/plugin/iso19115-3.2018/layout/layout.xsl index 7397a97..568c1c2 100644 --- a/src/main/plugin/iso19115-3.2018/layout/layout.xsl +++ b/src/main/plugin/iso19115-3.2018/layout/layout.xsl @@ -43,11 +43,13 @@ + + @@ -145,6 +147,7 @@ not(gco:CharacterString)]"> + @@ -174,14 +177,16 @@ + +
@@ -484,6 +489,7 @@ + @@ -516,6 +522,7 @@ +