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
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.

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: Bing [Bot], Google [Bot], Yahoo [Bot] and 4 guests