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

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: 4191
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