From 0acf0b864b1f71dd920426d151e1af4886b4e655 Mon Sep 17 00:00:00 2001 From: utas-raymondng Date: Fri, 10 May 2024 11:35:41 +1000 Subject: [PATCH 1/3] add logo to harvesters config --- geonetwork-config/README.md | 12 ++++++++++++ geonetwork-config/harvesters/imos-catalogue.json | 2 +- geonetwork-config/harvesters/imos.json | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 geonetwork-config/README.md diff --git a/geonetwork-config/README.md b/geonetwork-config/README.md new file mode 100644 index 0000000..84e630a --- /dev/null +++ b/geonetwork-config/README.md @@ -0,0 +1,12 @@ +# Get setting via API + +You should go to [swagger page](https://geonetwork-edge.edge.aodn.org.au/geonetwork/doc/api/index.html) to get the +geonetwork API. + +# How to update harvesters +You can get the geonetwork4 system setting via this api [setting](https://geonetwork-edge.edge.aodn.org.au/geonetwork/srv/api/site/settings/details) + +However, there are settings that you cannot get it via normal API for example: +* For harvesters, use this [get harvesters call](https://geonetwork-edge.edge.aodn.org.au/geonetwork/srv/api/aodn/setup/harvesters), it returns the whole json config and you just need to copy and paste the portion you need and update the relevant harvesters json file. + + diff --git a/geonetwork-config/harvesters/imos-catalogue.json b/geonetwork-config/harvesters/imos-catalogue.json index f46439a..b04282f 100644 --- a/geonetwork-config/harvesters/imos-catalogue.json +++ b/geonetwork-config/harvesters/imos-catalogue.json @@ -24,7 +24,7 @@ "password": {} }, "capabilitiesUrl": "https://catalogue-imos.aodn.org.au/geonetwork/srv/eng/csw?request=GetCapabilities&service=CSW&version=2.0.2", - "icon": "blank.png", + "icon": "IMOS_logo.gif", "rejectDuplicateResource": "false", "hopCount": "2", "xpathFilter": {}, diff --git a/geonetwork-config/harvesters/imos.json b/geonetwork-config/harvesters/imos.json index 3116541..14ed56e 100644 --- a/geonetwork-config/harvesters/imos.json +++ b/geonetwork-config/harvesters/imos.json @@ -18,6 +18,7 @@ "site": { "name": "IMOS (currently doesn't exclude harvested content)", "uuid": "a83c5159-61cf-40e5-b47a-b6215a738f30", + "icon": "IMOS_logo.gif", "account": { "use": "false", "username": {}, From e60c02683e15ccf58a3492623d27c79e75f027ca Mon Sep 17 00:00:00 2001 From: utas-raymondng Date: Fri, 10 May 2024 11:35:45 +1000 Subject: [PATCH 2/3] add logo to harvesters config --- geonetwork-config/harvesters/ga-marine.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geonetwork-config/harvesters/ga-marine.json b/geonetwork-config/harvesters/ga-marine.json index f2227b6..4d920a8 100644 --- a/geonetwork-config/harvesters/ga-marine.json +++ b/geonetwork-config/harvesters/ga-marine.json @@ -24,7 +24,7 @@ "password": {} }, "capabilitiesUrl": "https://ecat.ga.gov.au/geonetwork/srv/eng/csw?service=CSW&request=GetCapabilities&acceptVersions=2.0.2", - "icon": "blank.png", + "icon": "GA_logo.gif", "rejectDuplicateResource": "false", "hopCount": "2", "xpathFilter": {}, From e11c3504c8ba96214ae2079a34ba7dbc1c73992c Mon Sep 17 00:00:00 2001 From: utas-raymondng Date: Fri, 10 May 2024 11:39:07 +1000 Subject: [PATCH 3/3] fix precommit --- geonetwork-config/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/geonetwork-config/README.md b/geonetwork-config/README.md index 84e630a..04daf8b 100644 --- a/geonetwork-config/README.md +++ b/geonetwork-config/README.md @@ -1,12 +1,10 @@ # Get setting via API You should go to [swagger page](https://geonetwork-edge.edge.aodn.org.au/geonetwork/doc/api/index.html) to get the -geonetwork API. +geonetwork API. # How to update harvesters You can get the geonetwork4 system setting via this api [setting](https://geonetwork-edge.edge.aodn.org.au/geonetwork/srv/api/site/settings/details) However, there are settings that you cannot get it via normal API for example: * For harvesters, use this [get harvesters call](https://geonetwork-edge.edge.aodn.org.au/geonetwork/srv/api/aodn/setup/harvesters), it returns the whole json config and you just need to copy and paste the portion you need and update the relevant harvesters json file. - -