OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Linking to authors' details from table of contents

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Linking to authors' details from table of contents

Postby chameleon2011 » Thu Mar 16, 2006 10:25 pm

I am wanting to be able to link to an author's detail page from a given issue's table of contents page. To [almost] achieve this, I've been editing /templates/issue/issue.tpl :

Code: Select all
{foreach from=$article->getAuthors() item=author name=authorList}
         <a href="{url op="authors" path="view" firstname=$author->getFirstName() middleName=$author->getMiddleName() lastName=$author->getLastName() affiliation=$author->getAffiliation()}">{$author->getFullName()|escape}{if !$smarty.foreach.authorList.last},{/if}</a>
      {/foreach}


This will indeed print out the authors' names, and a link which ALMOST directs users to the author's bio page. Instead, the URL attached to the HREF retains the /issue/ path from the current page. Is there a way of changing the value of the path parameter to jump straight to the /search/author path from the table of contents?
chameleon2011
 
Posts: 5
Joined: Thu Mar 16, 2006 10:19 pm
Location: Brisbane, Australia

Postby asmecher » Fri Mar 17, 2006 10:36 am

Hi chameleon2011,

Yes -- add a "page" attribute to the {url ...} call. For example,
Code: Select all
{url page="search" op="authors" path="view" firstname=$author->getFirstName() middleName=$author->getMiddleName() lastName=$author->getLastName() affiliation=$author->getAffiliation()}

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests