Thank you Dennis for your help with PDF displaying in new tab! I'll just summarize the fix here (you need to add
target="_blank" and change article display method to
op="viewFile"):
in
/templates/article/article.tpl (line 106):
- Code: Select all
<a href="{url page="article" op="viewFile" path=$article->getBestArticleId($currentJournal)|to_array:$galley->getBestGalleyId($currentJournal)}" class="file {$galley->getGalleyLabel()|escape}" target="_blank">{$galley->getGalleyLabel()|escape}</a>
in
/templates/issue/issue.tpl (line 45):
- Code: Select all
<a href="{url page="article" op="viewFile" path=$articlePath|to_array:$galley->getBestGalleyId($currentJournal)}" class="file" target="_blank">{$galley->getGalleyLabel()|escape}</a>
However, it seems that in our installation the PDF loads without the preceding message "PDF will load in that window etc. etc.":
http://862.gvs.arnes.si/ojs/IAS/article ... le/761/664Here is the example how this PDF loading message should look:
http://dandelionjournal.org/index.php/d ... view/32/62Oh, I see the problem. The PDF link should use the method op="view" not "viewFile". The latter should be called by the former. But if I use the method op="view", the PDF galley opens in a div that is too small for viewing PDF easily (because I'm using a fixed layout stylesheet).
Also when looking through ArticleHandler.inc.php I saw that there should be an interstitial page for displaying PDF in
templates/article/pdfInterstitial.tpl, but in my installation there is no such template file.
At this point I got lost, and I don't know what would be the best way to display PDF in a new tab and showing the message about PDF loading before the actual PDF is shown.
-Ales