4 * Copyright (c) 2003-2008 John Willinsky
5 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
7 * Form for changing metadata of a monograph.
9 * $Id: metadataEdit.tpl,v 1.8 2009/09/09 21:53:57 tylerl Exp $
12 {assign var="pageTitle" value="submission.editMetadata"}
13 {include file="common/header.tpl"}
16 <form name="metadata" method="post" action="{url op="saveMetadata"}" enctype="multipart/form-data">
17 <input type="hidden" name="monographId" value="{$monographId|escape}" />
18 {include file="common/formErrors.tpl"}
21 {if count($formLocales) > 1}
22 <table width="100%" class="data">
24 <td width="20%" class="label">{fieldLabel name="formLocale" key="form.formLanguage"}</td>
25 <td width="80%" class="value">
26 {url|assign:"formUrl" path=$monographId escape=false}
27 {* Maintain localized author info across requests *}
28 {foreach from=$authors key=authorIndex item=author}
29 {foreach from=$author.biography key="thisLocale" item="thisBiography"}
30 {if $thisLocale != $formLocale}<input type="hidden" name="authors[{$authorIndex|escape}][biography][{$thisLocale|escape}]" value="{$thisBiography|escape}" />{/if}
33 {form_language_chooser form="metadata" url=$formUrl}
34 <span class="instruct">{translate key="form.formLanguage.description"}</span>
40 {include file="inserts/monographComponents/MonographComponentsInsert.tpl"}
42 <h3>{translate key="submission.titleAndAbstract"}</h3>
44 <table width="100%" class="data">
46 <td width="20%" class="label">{fieldLabel name="title" required="true" key="monograph.title"}</td>
47 <td width="80%" class="value"><input type="text" name="title[{$formLocale|escape}]" id="title" value="{$title[$formLocale]|escape}" size="60" maxlength="255" class="textField" /></td>
51 <td colspan="2" class="separator"> </td>
54 <td class="label">{translate key="monograph.abstract"}</td>
55 <td class="value"><textarea name="abstract[{$formLocale|escape}]" id="abstract" rows="15" cols="60" class="textArea">{$abstract[$formLocale]|escape}</textarea></td>
59 <div class="separator"></div>
61 <h3>{translate key="submission.supportingAgencies"}</h3>
63 <p>{translate key="author.submit.submissionSupportingAgenciesDescription"}</p>
65 <table width="100%" class="data">
67 <td width="20%" class="label">{fieldLabel name="sponsor" key="author.submit.agencies"}</td>
68 <td width="80%" class="value">
69 <input type="text" name="sponsor[{$formLocale|escape}]" id="sponsor" value="{$sponsor[$formLocale]|escape}" size="60" maxlength="255" class="textField" />
75 <div class="separator"></div>
78 <p><input type="submit" value="{translate key="submission.saveMetadata"}" class="button defaultButton" /> <input type="button" value="{translate key="common.cancel"}" class="button" onclick="history.go(-1)" /></p>
80 <p><span class="formRequired">{translate key="common.requiredField"}</span></p>
84 {include file="common/footer.tpl"}