ojs - How can I display the Author's bio on the Author's View page? -
i'm new tpl (smarty) have been using php years.
is there roadmap/guide customising ojs?
as far understand involve php script retrieve/assign information , tpl script display information.
thanks petras
for references, have @ ojs quick reference , ojs technical reference, both available here: https://pkp.sfu.ca/wiki/index.php?title=ojs_documentation
by "author's view page", i'm assuming mean pages urls http://.../index.php/[journalpath]/authors/view
. modifying these include author biography may difficult because of way ojs stores author records.
each article may have several authors, , author records not disambiguated -- 2 articles "joe smith" author, there 2 different entries in authors
table. on author listing disambiguation done matching same first name, last name, affiliation, , country. (see pages/search/searchhandler.inc.php
in authors
function code this.) many author records may match set of data, each potentially own biography data.
the reason data stored way permit users' identities evolve -- may change last names, move between institutions, etc. -- without affecting metadata of existing publications, should not change.
if want determine single biography statement, you'll need decide how pick bio statement among potentially many match set of data described above. once you've done that, displaying simple assigning value template:
$templatemgr->assign('myvariablename', $somephpvariable);
...and using variable in templates/search/authordetails.tpl
template:
{$myvariablename|strip_usnafe_html}
fyi, our future plans include using third-party identifiers such orcids disambiguate author identities; however, far our orcid integration pretty limited. in current release it's possible users , authors enter orcids they're stored user , author records.
Comments
Post a Comment