{**
 * view.tpl
 *
 * Copyright (c) 2003-2008 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * Article View.
 *
 * $Id: view.tpl,v 1.30 2008/06/11 18:55:18 asmecher Exp $
 *}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset={$defaultCharset|escape}" />
	<title>{$article->getFirstAuthor(true)|escape}</title>

	<link rel="stylesheet" href="{$baseUrl}/styles/common.css" type="text/css" />
	<link rel="stylesheet" href="{$baseUrl}/styles/articleView.css" type="text/css" />

	{foreach from=$stylesheets item=cssUrl}
		<link rel="stylesheet" href="{$cssUrl}" type="text/css" />
	{/foreach}

	<script type="text/javascript" src="{$baseUrl}/js/general.js"></script>
	{$additionalHeadData}
</head>
<frameset cols="*,180" style="border: 0;">
	{if !$galley}
		{url|assign:"articleUrl" op="viewArticle" path=$articleId}
		{url|assign:"rstUrl" op="viewRST" path=$articleId}
	{else}
		{url|assign:"rstUrl" op="viewRST" path=$articleId|to_array:$galleyId}
		{if $galley->isHtmlGalley()}
			{url|assign:"articleUrl" op="viewArticle" path=$articleId|to_array:$galleyId}
		{elseif $galley->isPdfGalley()}
			{url|assign:"articleUrl" op="viewPDFInterstitial" path=$articleId|to_array:$galleyId}
		{elseif $galley->isInlineable()}
			{url|assign:"articleUrl" op="viewFile" path=$articleId|to_array:$galleyId}
		{else}
			{url|assign:"articleUrl" op="viewDownloadInterstitial" path=$articleId|to_array:$galleyId}
		{/if}
	{/if}
	<frame src="{$articleUrl}" frameborder="0"/>
	<frame src="{$rstUrl}" noresize="noresize" frameborder="0" scrolling="auto" />
<noframes>
<body>
	<table width="100%">
		<tr>
			<td align="center">
				{translate key="common.error.framesRequired" url=$articleUrl}
			</td>
		</tr>
	</table>
</body>
</noframes>
</frameset>
</html>
