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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

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: 9234
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest