4 * Copyright (c) 2003-2008 John Willinsky
5 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
7 * Add/edit a supplementary file.
9 * $Id: suppFile.tpl,v 1.3 2009/05/15 15:58:40 tylerl Exp $
11 {assign var="pageTitle" value="author.submit.step4a"}
12 {include file="author/submit/submitStepHeader.tpl"}
14 <p><a href="{url op="submit" path=5 monographId=$monographId}"><< {translate key="author.submit.backToSupplementaryFiles"}</a></p>
16 <form name="submit" method="post" action="{url op="saveSubmitSuppFile" path=$suppFileId}" enctype="multipart/form-data">
17 <input type="hidden" name="monographId" value="{$monographId|escape}" />
18 {include file="common/formErrors.tpl"}
20 {if count($formLocales) > 1}
21 <table width="100%" class="data">
23 <td width="20%" class="label">{fieldLabel name="formLocale" key="form.formLanguage"}</td>
24 <td width="80%" class="value">
25 {url|assign:"submitFormUrl" path=$suppFileId monographId=$monographId}
26 {form_language_chooser form="submit" url=$submitFormUrl}
27 <span class="instruct">{translate key="form.formLanguage.description"}</span>
33 <h3>{translate key="author.submit.supplementaryFileData"}</h3>
35 <p>{translate key="author.submit.supplementaryFileDataDescription"}</p>
37 <table class="data" width="100%">
39 <td width="20%" class="label">{fieldLabel required="true" name="title" key="common.title"}</td>
40 <td width="80%" class="value"><input type="text" class="textField" name="title[{$formLocale|escape}]" id="title" value="{$title[$formLocale]|escape}" size="60" maxlength="255" /></td>
43 <td width="20%" class="label">{fieldLabel name="creator" key="author.submit.suppFile.createrOrOwner"}</td>
44 <td width="80%" class="value"><input type="text" name="creator[{$formLocale|escape}]" class="textField" id="creator" value="{$creator[$formLocale]|escape}" size="60" maxlength="255" /></td>
47 <td width="20%" class="label">{fieldLabel name="subject" key="common.keywords"}</td>
48 <td width="80%" class="value"><input type="text" name="subject[{$formLocale|escape}]" class="textField" id="subject" value="{$subject[$formLocale]|escape}" size="60" maxlength="255" /></td>
51 <td width="20%" class="label">{fieldLabel name="type" key="common.type"}</td>
52 <td width="80%" class="value"><select name="type" class="selectMenu" id="type" size="1">{html_options_translate output=$typeOptionsOutput values=$typeOptionsValues translateValues="true" selected=$type}</select><br /><label for="typeOther">{translate key="author.submit.suppFile.specifyOtherType"}</label> <input type="text" name="typeOther[{$formLocale|escape}]" id="typeOther" class="textField" value="{$typeOther[$formLocale]|escape}" size="45" maxlength="255" /></td>
55 <td width="20%" class="label">{fieldLabel name="description" key="author.submit.suppFile.briefDescription"}</td>
56 <td width="80%" class="value"><textarea name="description[{$formLocale|escape}]" class="textArea" id="description" rows="5" cols="60">{$description[$formLocale]|escape}</textarea></td>
59 <td width="20%" class="label">{fieldLabel name="publisher" key="common.publisher"}</td>
60 <td width="80%" class="value"><input type="text" name="publisher[{$formLocale|escape}]" class="textField" id="publisher" value="{$publisher[$formLocale]|escape}" size="60" maxlength="255" />
65 <td><span class="instruct">{translate key="author.submit.suppFile.publisherDescription"}</span></td>
68 <td width="20%" class="label">{fieldLabel name="sponsor" key="author.submit.suppFile.contributorOrSponsor"}</td>
69 <td width="80%" class="value"><input type="text" name="sponsor[{$formLocale|escape}]" class="textField" id="sponsor" value="{$sponsor[$formLocale]|escape}" size="60" maxlength="255" /></td>
72 <td width="20%" class="label">{fieldLabel name="dateCreated" key="common.date"}</td>
73 <td width="80%" class="value"><input type="text" name="dateCreated" class="textField" id="dateCreated" value="{$dateCreated|escape}" size="11" maxlength="10" /> YYYY-MM-DD</td>
77 <td><span class="instruct">{translate key="author.submit.suppFile.dateDescription"}</span></td>
80 <td width="20%" class="label">{fieldLabel name="source" key="common.source"}</td>
81 <td width="80%" class="value"><input type="text" name="source[{$formLocale|escape}]" class="textField" id="source" value="{$source[$formLocale]|escape}" size="60" maxlength="255" /></td>
85 <td><span class="instruct">{translate key="author.submit.suppFile.sourceDescription"}</span></td>
88 <td width="20%" class="label">{fieldLabel name="language" key="common.language"}</td>
89 <td width="80%" class="value"><input type="text" name="language" class="textField" id="language" value="{$language|escape}" size="5" maxlength="10" /></td>
93 <td><span class="instruct">{translate key="author.submit.languageInstructions"}</span></td>
97 <div class="separator"></div>
99 <h3>{translate key="author.submit.supplementaryFileUpload"}</h3>
101 <table class="data" width="100%">
102 {if $suppFile && $suppFile->getFileId()}
104 <td width="20%" class="label">{translate key="common.fileName"}</td>
105 <td width="80%" class="value"><a href="{url op="download" path=$monographId|to_array:$suppFile->getFileId()}">{$suppFile->getFileName()|escape}</a></td>
108 <td width="20%" class="label">{translate key="common.originalFileName"}</td>
109 <td width="80%" class="value">{$suppFile->getOriginalFileName()|escape}</td>
112 <td width="20%" class="label">{translate key="common.fileSize"}</td>
113 <td width="80%" class="value">{$suppFile->getNiceFileSize()}</td>
116 <td width="20%" class="label">{translate key="common.dateUploaded"}</td>
117 <td width="80%" class="value">{$suppFile->getDateUploaded()|date_format:$datetimeFormatShort}</td>
121 <table class="data" width="100%">
124 <td class="value"><input type="checkbox" name="showReviewers" id="showReviewers" value="1"{if $showReviewers==1} checked="checked"{/if} />
125 <label for="showReviewers">{translate key="author.submit.suppFile.availableToPeers"}</label></td>
130 <td colspan="2" class="nodata">{translate key="author.submit.suppFile.noFile"}</td>
135 <div class="separator"></div>
137 <table class="data" width="100%">
139 <td width="20%" class="label">{fieldLabel name="uploadSuppFile" key="common.replaceFile"}</td>
140 <td width="80%" class="value"><input type="file" name="uploadSuppFile" id="uploadSuppFile" class="uploadField" /> {translate key="form.saveToUpload"}</td>
145 <td class="value"><input type="checkbox" name="showReviewers" id="showReviewers" value="1"{if $showReviewers==1} checked="checked"{/if} />
146 <label for="showReviewers">{translate key="author.submit.suppFile.availableToPeers"}</label></td>
151 <div class="separator"></div>
153 <p><input type="submit" value="{translate key="common.saveAndContinue"}" class="button defaultButton" /> <input type="button" value="{translate key="common.cancel"}" class="button" onclick="document.location.href='{url op="submit" path="4" monographId=$monographId escape=false}'" /></p>
155 <p><span class="formRequired">{translate key="common.requiredField"}</span></p>
159 {include file="common/footer.tpl"}