OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



moving file links on abstract page

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

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

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 OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

moving file links on abstract page

Postby downtheroad » Wed Jan 21, 2009 3:24 pm

On the abstract page, the links to the html and pdf versions of a file appear below the abstract. I would like to move these up to the right alongside the abstract text. While I was able to find where the abstract itself was written to the page, these links are not written in the script and I cannot uncover where they are written. Does anyone know?

dr
downtheroad
 
Posts: 25
Joined: Tue Jan 13, 2009 9:48 am

Re: moving file links on abstract page

Postby jmacgreg » Wed Jan 21, 2009 4:44 pm

Hi dr,

The code to generate those links is actually quite extensive, and involves a fair bit of Smarty template code to allow for several different possible variables. The chunk is:

Code: Select all
{if $galleys}
      {translate key="reader.fullText"}
      {if $hasAccess || ($subscriptionRequired && $showGalleyLinks)}
         {foreach from=$article->getLocalizedGalleys() item=galley name=galleyList}
            <a href="{url page="article" op="view" path=$article->getBestArticleId($currentJournal)|to_array:$galley->getBestGalleyId($currentJournal)}" class="file" target="_parent">{$galley->getGalleyLabel()|escape}</a>
            {if $subscriptionRequired && $showGalleyLinks && $restrictOnlyPdf}
               {if $article->getAccessStatus() || !$galley->isPdfGalley()}   
                  <img class="accessLogo" src="{$baseUrl}/templates/images/icons/fulltext_open_medium.gif" alt="{translate key="article.accessLogoOpen.altText"}" />
               {else}
                  <img class="accessLogo" src="{$baseUrl}/templates/images/icons/fulltext_restricted_medium.gif" alt="{translate key="article.accessLogoRestricted.altText"}" />
               {/if}
            {/if}
         {/foreach}
         {if $subscriptionRequired && $showGalleyLinks && !$restrictOnlyPdf}
            {if $article->getAccessStatus()}
               <img class="accessLogo" src="{$baseUrl}/templates/images/icons/fulltext_open_medium.gif" alt="{translate key="article.accessLogoOpen.altText"}" />
            {else}
               <img class="accessLogo" src="{$baseUrl}/templates/images/icons/fulltext_restricted_medium.gif" alt="{translate key="article.accessLogoRestricted.altText"}" />
            {/if}
         {/if}               
      {else}
         &nbsp;<a href="{url page="about" op="subscriptions"}" target="_parent">{translate key="reader.subscribersOnly"}</a>
      {/if}
   {/if}


You can try moving that around.

Cheers,
James
jmacgreg
 
Posts: 4181
Joined: Tue Feb 14, 2006 10:50 am


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest