From 12036976fa52ae549b2ed7fb2aeeb40154f483ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti-Jussi=20Nyg=C3=A5rd?= Date: Sat, 9 May 2026 20:45:29 +0300 Subject: [PATCH 1/2] pkp/pkp-lib#12392 Support Funder Data --- api/v1/submissions/index.php | 2 ++ dbscripts/xml/upgrade.xml | 1 + .../frontend/objects/preprint_details.tpl | 32 +++++++++++++++++++ 3 files changed, 35 insertions(+) diff --git a/api/v1/submissions/index.php b/api/v1/submissions/index.php index 68804ed661..32c2f7fb8c 100644 --- a/api/v1/submissions/index.php +++ b/api/v1/submissions/index.php @@ -27,6 +27,8 @@ return new \PKP\handler\APIHandler(new \PKP\API\v1\submissions\tasks\EditorialTaskController()); } elseif (strpos($requestPath, '/dataCitations')) { return new \PKP\handler\APIHandler(new \PKP\API\v1\dataCitations\PKPDataCitationController()); +} elseif (strpos($requestPath, '/funders')) { + return new \PKP\handler\APIHandler(new \PKP\API\v1\funders\PKPFunderController()); } elseif (strpos($requestPath, '/mediaFiles')) { return new \PKP\handler\APIHandler(new \PKP\API\v1\submissions\MediaFilesController()); } else { diff --git a/dbscripts/xml/upgrade.xml b/dbscripts/xml/upgrade.xml index 06551fec84..1fb9459ae4 100644 --- a/dbscripts/xml/upgrade.xml +++ b/dbscripts/xml/upgrade.xml @@ -169,6 +169,7 @@ + diff --git a/templates/frontend/objects/preprint_details.tpl b/templates/frontend/objects/preprint_details.tpl index 317d92de61..6c1bc54f0e 100644 --- a/templates/frontend/objects/preprint_details.tpl +++ b/templates/frontend/objects/preprint_details.tpl @@ -476,6 +476,38 @@ {/if} + {* Funders *} + {if $publication->getData('funders')} +
+

+ {translate key="submission.funders"} +

+
+
    + {foreach from=$publication->getData('funders') item=funder} +
  • + + {$funder->getLocalizedData('name')|escape} + {if $funder->ror}{$rorIdIcon}{/if} + + {if $funder->grants} +
      + {foreach from=$funder->grants item=grant} +
    • + {if $grant.grantName}{$grant.grantName|escape}
      {/if} + {if $grant.grantNumber}{translate key="submission.funders.funder.grant.number"} {$grant.grantNumber|escape}
      {/if} + {if $grant.grantDoi}{translate key="submission.funders.funder.grant.doi"} https://doi.org/{$grant.grantDoi|escape}{/if} +
    • + {/foreach} +
    + {/if} +
  • + {/foreach} +
+
+
+ {/if} + {* PubIds (requires plugins) *} {foreach from=$pubIdPlugins item=pubIdPlugin} {if $pubIdPlugin->getPubIdType() == 'doi'} From 7ede8a0024406f2a0191ef81a51879b617ad6f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti-Jussi=20Nyg=C3=A5rd?= Date: Sat, 9 May 2026 20:45:39 +0300 Subject: [PATCH 2/2] pkp/pkp-lib#12392 Submodule update ##ajnyga/f12392## --- lib/pkp | 2 +- lib/ui-library | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pkp b/lib/pkp index 1a5a8b1d7e..2ac85d373c 160000 --- a/lib/pkp +++ b/lib/pkp @@ -1 +1 @@ -Subproject commit 1a5a8b1d7e52ad079e4a669d4a6f3795cab9e61f +Subproject commit 2ac85d373cc627f7563940bc09263d8f517faed2 diff --git a/lib/ui-library b/lib/ui-library index 3f97137cef..1988c00397 160000 --- a/lib/ui-library +++ b/lib/ui-library @@ -1 +1 @@ -Subproject commit 3f97137cef11b99042ee8bcc96ff0dfe5dcf84e4 +Subproject commit 1988c0039783751772da3be406524ddf7e0f8b80