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
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page. While these are OJS-specific, the OCS codebase is similar enough to OJS they should be of help. There is also an [url=http://pkp.sfu.ca/ocs_documentation[/url]OCS Documentation[/url] page with some more general documentation that might also be of interest.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a technical support question, try the OCS Technical Support subforum.

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 2 guests