From 14c022641e4d798ef23bea3aa9460cea11558714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti-Jussi=20Nyg=C3=A5rd?= Date: Tue, 16 Jun 2026 21:54:22 +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 17bffe25f6..8fc5b4e327 100644 --- a/dbscripts/xml/upgrade.xml +++ b/dbscripts/xml/upgrade.xml @@ -201,6 +201,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 84215058bba489bbb866b35999e0bc40b7e54211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti-Jussi=20Nyg=C3=A5rd?= Date: Tue, 16 Jun 2026 21:55:14 +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 0a52f0f935..cc94150953 160000 --- a/lib/pkp +++ b/lib/pkp @@ -1 +1 @@ -Subproject commit 0a52f0f935d9d5f487f325845af902fc77427a31 +Subproject commit cc941509534179d56c3015a89310b129ef437f4c diff --git a/lib/ui-library b/lib/ui-library index 160a32d28b..5bead85694 160000 --- a/lib/ui-library +++ b/lib/ui-library @@ -1 +1 @@ -Subproject commit 160a32d28bb91bee61975c46460dc8cb481f209b +Subproject commit 5bead856944c0accb954f339be2da1e4dc4c4f44