From c0e8c60911614984e4d2473ff55d13b915e4daf7 Mon Sep 17 00:00:00 2001 From: rhigman <73792779+rhigman@users.noreply.github.com> Date: Wed, 29 Apr 2026 15:11:08 +0100 Subject: [PATCH 1/4] Add new checksum field to createLocation method --- thothlibrary/mutation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thothlibrary/mutation.py b/thothlibrary/mutation.py index 76180ce..f5096c4 100644 --- a/thothlibrary/mutation.py +++ b/thothlibrary/mutation.py @@ -88,7 +88,7 @@ def _upload_spec(field_names, quoted_fields, return_fields): NEW_INSTITUTION = ["institutionName", "institutionDoi", "ror", "countryCode"] NEW_LOCATION = [ "publicationId", "landingPage", "fullTextUrl", "locationPlatform", - "canonical", + "canonical", "checksum", ] NEW_FUNDING = [ "workId", "institutionId", "program", "projectName", "projectShortname", From 7ccd552e46ae1cc3423ef3200ab1d85eefee2334 Mon Sep 17 00:00:00 2001 From: rhigman <73792779+rhigman@users.noreply.github.com> Date: Thu, 30 Apr 2026 10:37:13 +0100 Subject: [PATCH 2/4] Location checksum field renamed to sha256 --- thothlibrary/mutation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thothlibrary/mutation.py b/thothlibrary/mutation.py index f5096c4..fa94d9f 100644 --- a/thothlibrary/mutation.py +++ b/thothlibrary/mutation.py @@ -88,7 +88,7 @@ def _upload_spec(field_names, quoted_fields, return_fields): NEW_INSTITUTION = ["institutionName", "institutionDoi", "ror", "countryCode"] NEW_LOCATION = [ "publicationId", "landingPage", "fullTextUrl", "locationPlatform", - "canonical", "checksum", + "canonical", "sha256", ] NEW_FUNDING = [ "workId", "institutionId", "program", "projectName", "projectShortname", From fb40e12d5b4c99c31e825305b49244e9d3fd8c52 Mon Sep 17 00:00:00 2001 From: rhigman <73792779+rhigman@users.noreply.github.com> Date: Thu, 30 Apr 2026 12:03:33 +0100 Subject: [PATCH 3/4] Revert "Location checksum field renamed to sha256" This reverts commit 7ccd552e46ae1cc3423ef3200ab1d85eefee2334. --- thothlibrary/mutation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thothlibrary/mutation.py b/thothlibrary/mutation.py index fa94d9f..f5096c4 100644 --- a/thothlibrary/mutation.py +++ b/thothlibrary/mutation.py @@ -88,7 +88,7 @@ def _upload_spec(field_names, quoted_fields, return_fields): NEW_INSTITUTION = ["institutionName", "institutionDoi", "ror", "countryCode"] NEW_LOCATION = [ "publicationId", "landingPage", "fullTextUrl", "locationPlatform", - "canonical", "sha256", + "canonical", "checksum", ] NEW_FUNDING = [ "workId", "institutionId", "program", "projectName", "projectShortname", From a439a669418bf2e9f97f4cb0b725e091444e2e35 Mon Sep 17 00:00:00 2001 From: rhigman <73792779+rhigman@users.noreply.github.com> Date: Thu, 30 Apr 2026 12:03:54 +0100 Subject: [PATCH 4/4] Add checksumAlgorithm field --- thothlibrary/mutation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thothlibrary/mutation.py b/thothlibrary/mutation.py index f5096c4..557b388 100644 --- a/thothlibrary/mutation.py +++ b/thothlibrary/mutation.py @@ -88,7 +88,7 @@ def _upload_spec(field_names, quoted_fields, return_fields): NEW_INSTITUTION = ["institutionName", "institutionDoi", "ror", "countryCode"] NEW_LOCATION = [ "publicationId", "landingPage", "fullTextUrl", "locationPlatform", - "canonical", "checksum", + "canonical", "checksum", "checksumAlgorithm", ] NEW_FUNDING = [ "workId", "institutionId", "program", "projectName", "projectShortname",