OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Displaying all ToC from a Volume

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.

Displaying all ToC from a Volume

Postby chameleon2011 » Wed Jun 14, 2006 10:41 pm

Target ouput:

http://journal.media-culture.org.au/journal/past_vol_8.php

Current code in archive.tpl

Code: Select all
<select name="VolumeNav" onchange="MM_jumpMenu('parent',this,0)">
          <option>Jump to Volume...</option>
          <option value="past_vol_1.php">1 - (1998)</option>
          <option value="past_vol_2.php">2 - (1999)</option>
          <option value="past_vol_3.php">3 - (2000)</option>
          <option value="past_vol_4.php">4 - (2001)</option>
          <option value="past_vol_5.php">5 - (2002)</option>
          <option value="past_vol_6.php">6 - (2003)</option>
          <option value="past_vol_7.php">7 - (2004)</option>
          <option value="past_vol_8.php">8 - (2005)</option>
          <option value="past_vol_9.php">9 - (2006)</option>
</select>

{iterate from=issues item=issue}
   {if $issue->getYear() != $lastYear}
      {if !$notFirstYear}
         {assign var=notFirstYear value=1}
      {else}
         </div>
         <br />
         <div class="separator"></div>
      {/if}
      <div>
      <h3>{$issue->getYear()|escape}</h3>
      {assign var=lastYear value=$issue->getYear()}
   {/if}

   <div class="issuePubDetails">

      <a href="{url op="view" path=$issue->getBestIssueId($currentJournal)}">
         {$issue->getIssueIdentification()}
      </a>

      {$issue->setLabelFormat(ISSUE_MC_FORMAT)}{$issue->getIssueIdentification()}
   </div> <!-- issuePubDetails -->
   
   {include file="issue/issue.tpl"}
   
{/iterate}


The select box will hopefully one day be dynamically generated by OJS, but I'm hoping to be able to use the issue template to show the ToC for each issue displayed on the archives page for a given year (volume).

Is there a variable I need to set before I include the issue.tpl file and re-iterate through the loop for the next issue in the volume?

Current output (only one issue at the moment):

http://dev.mediaculture.ci.qut.edu.au/ojs/index.php/mcjournal/issue/archive
chameleon2011
 
Posts: 5
Joined: Thu Mar 16, 2006 10:19 pm
Location: Brisbane, Australia

Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests