OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Getting a "volume number" and "issue" number from issueid

OCS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, michael

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.

Getting a "volume number" and "issue" number from issueid

Postby tarek » Tue Oct 19, 2010 6:36 pm

Hello all,

I am having some tremendous success with the rolling TOC that I've finally had the chance to work on. One interesting issue remains: I can't derive the Volume and Issue numbers.

The goal is to have it look like:

Vol. 4(1) (for example)

The code I used:

Code: Select all
Vol. {$issue->getVolume($article->getIssueId())}({$issue->getNumber($article->getIssueId())})


Predictably, $issue->getVolume() actually takes no notice of what's inside the brackets. I also tried to set the issue with $issue->setIssueId($article->getIssueId()) before executing the above, but - unsurprisingly - that didn't work either.

Before I create a new function akin to getVolume, am I missing something?

tarek : )
tarek
 
Posts: 14
Joined: Thu Jun 21, 2007 4:00 am

Re: Getting a "volume number" and "issue" number from issueid

Postby tarek » Wed Oct 20, 2010 4:59 am

Oops. I just noticed this got posted to OCS Development. I'll repost to OJS Development. Please ignore this thread.

tarek : )
tarek
 
Posts: 14
Joined: Thu Jun 21, 2007 4:00 am


Return to OCS Development

Who is online

Users browsing this forum: No registered users and 0 guests