From 16424303030bab46c827dc084a56470cbc9bf8cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti-Jussi=20Nyg=C3=A5rd?= Date: Sat, 9 May 2026 20:33:53 +0300 Subject: [PATCH 1/2] pkp/pkp-lib#12392 Support Funder Data --- api/v1/submissions/index.php | 2 ++ dbscripts/xml/upgrade.xml | 1 + templates/frontend/objects/monograph_full.tpl | 32 +++++++++++++++++++ 3 files changed, 35 insertions(+) diff --git a/api/v1/submissions/index.php b/api/v1/submissions/index.php index 7d831861407..8fc8def0d16 100644 --- a/api/v1/submissions/index.php +++ b/api/v1/submissions/index.php @@ -29,6 +29,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 3c67e519269..2530f552a08 100644 --- a/dbscripts/xml/upgrade.xml +++ b/dbscripts/xml/upgrade.xml @@ -179,6 +179,7 @@ + diff --git a/templates/frontend/objects/monograph_full.tpl b/templates/frontend/objects/monograph_full.tpl index 1cb3b6418ff..8e6be87fadf 100644 --- a/templates/frontend/objects/monograph_full.tpl +++ b/templates/frontend/objects/monograph_full.tpl @@ -432,6 +432,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} + {* Copyright statement *} {if $publication->getData('copyrightYear') && $publication->getLocalizedData('copyrightHolder')}