Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
- page title: I want it to be just "Article information" and therefore included this in view.tpl:
{assign var=pageTitle value="Article information"}
Problem: it is displayed like this both in the header title and in the page heading:
##Article information##
Where do the sharps come from? And how can I get rid of them?
For the download link, I use this code:
<a href="{url page="article" op="download" path=$article->getBestArticleId($currentJournal)|to_array:$galley->getBestGalleyId($currentJournal)}" class="file" target="_parent">{$galley->getGalleyLabel()|escape}</a>
In my Firefox installation, a click pulls up the application chooser menu; it doesn't load the plugin. Any idea how I could make it do so?
Also, I can access the article title, author(s) and page numbers, but not the issue information. It seems that $issue is not available to this template - I'd appreciate suggestions as to how I can retrieve this data.
Finally, I was wondering how I could include links to citation formats like BibTeX (click opens up page that displays BibTeX record as plain text).
Also, I can access the article title, author(s) and page numbers, but not the issue information. It seems that $issue is not available to this template - I'd appreciate suggestions as to how I can retrieve this data.
$issueDao =& DAORegistry::getDAO('IssueDAO');
$issue =& $issueDao->getIssueByArticleId($this->getArticleId());
$templateMgr->assign_by_ref('issue', $issue);$templateMgr->assign_by_ref('journal',$journal)$citationPlugins =& PluginRegistry::loadCategory('citationFormats');
uasort($citationPlugins, create_function('$a, $b', 'return strcmp($a->getDisplayName(), $b->getDisplayName());'));
$templateMgr->assign_by_ref('citationPlugins', $citationPlugins);
if (isset($citationPlugins[$citeType])) {
// A citation type has been selected; display citation.
$citationPlugin =& $citationPlugins[$citeType];
} else {
// No citation type chosen; choose a default off the top of the list.
$citationPlugin = $citationPlugins[array_shift(array_keys($citationPlugins))];
}
$citationPlugin->cite($article, $issue); Users browsing this forum: No registered users and 1 guest