PKP Bugzilla – Bug 8083
Add HTML & PDF links to the reading tools
Last modified: 2013-01-16 19:18:37 PST
Created attachment 3901 [details] Article tools with HTML and PDF links Hello! I'm using 2.4.1. version. Currently it's not so easy to switch from HTML to PDF version and vice versa: I should click to Abstract and then select other format in galleys line. It would be nice to add links to HTML and PDF if available into the reading tools and mark with bold currently selected view if possible. Actually I already did this on my installation changing plugins/blocks/readingTools/block.tpl "if $journalRt->getAbstract()" section was replaced with: {if $journalRt->getAbstract() && $article->getLocalizedAbstract()} <div class="articleToolItem"> <img src="{$baseUrl}/plugins/blocks/readingTools/icons/abstract.png" class="articleToolIcon" /> {if !$galley}<b>{/if}<a href="{url page="article" op="view" path=$articleId}" target="_parent">{translate key="article.abstract"}</a>{if !$galley}</b>{/if}<br /> </div> {foreach from=$article->getLocalizedGalleys() item=artgalley} {if $artgalley->isPdfGalley()} <div class="articleToolItem"> <img src="{$baseUrl}/plugins/blocks/readingTools/icons/pdf.png" class="articleToolIcon" /> {if $galley==$artgalley}<b>{/if}<a href="{url page="article" op="view" path=$articleId}/{$artgalley->getId()}" target="_parent">{$artgalley->getGalleyLabel()}</a>{if $galley==$artgalley}</b>{/if}<br /> </div> {/if} {if $artgalley->isHtmlGalley()} <div class="articleToolItem"> <img src="{$baseUrl}/plugins/blocks/readingTools/icons/html.png" class="articleToolIcon" /> {if $galley==$artgalley}<b>{/if}<a href="{url page="article" op="view" path=$articleId}/{$artgalley->getId()}" target="_parent">{$artgalley->getGalleyLabel()}</a>{if $galley==$artgalley}</b>{/if}<br /> </div> {/if} {/foreach} {/if} I also found some free 24x24 icons for HTML and PDF links. Looks quite nice for mec (screenshot is attached). Sorry, I was too lazy to check subscriptions/permissions as we're going to launch open-access journal and I'm not experienced with both PHP and your project, thus code might be suboptimal.