Location: PHPKode > projects > Community Learning Network > cln/lib/CLN/interfaces/editMetadata.html
<?php

// set title
// should support multiple languages
$GLOBALS['CLN_PAGE_TITLE'] = 'Change Metadata Description';

?>

<form name="koEdit" action="<?php echo appendToURL(cleanURL($GLOBALS['path']), 'editKoId=' . $this->koId . '&amp;editProcess=Metadata'); ?>" method="post">


<p>Use the form below to edit the information for this Block.</p>
<p>The CLN system uses metadata information to help people find the things they're looking for, much like a library's card catalogue system. As the CLN grows, good descriptions of the objects will become more critical, allowing people to sift efficiently through large amounts of information.</p>

<h2>Required Information</h2>

<!-- required metadata -->
<div class="grRow">
	<span class="grFormLabel"><label for="koMetadataTitle">Title:</label>
	</span>
	<input type="text" class="grFormElement" id="koMetadataTitle" name="koMetadataTitle" size="30" maxlength="128" value="<?php echo $this->currentPart['title']; ?>" />
</div>
<p class="grFormContext">The title will be the name of your
  Block. Try to make it descriptive, but fairly short. Remember
  that other people will use this title to tell what your Block
  is about. Make sure the words you choose will make sense to
  others.</p>

<div class="grRow">
		<span class="grFormLabel">Language:	</span>
<?php
require_once "HTML/Form.php";
$form = new HTML_Form('');

$form->displaySelect("koMetadataLang", $GLOBALS['languages'], $this->currentPart['lang'], '1', '', FALSE, '');
?>
</div>
<p class="grFormContext">The langugage that your Block is written
  in.</p>



<div class="grRow">
	<span class="grFormLabel"><label for="koMetadataContributors">Contributors:</label></span>
	<input type="text" class="grFormElement" id="koMetadataContributors" name="koMetadataContributors" value="<?php echo $this->currentMetadata->contributors; ?>" size="30" maxlength="128" />
</div>
<p class="grFormContext">The person or people who've worked
  on this Block. You should include for each contributing person,
  include their name and role, separated by a colon. Use a comma
  between contributors. For example: John Smith: author, Amy Ting: editor,
  Josephine Fernandes: participant.</p>

<div class="grRow">
	<span class="grFormLabel"><label for="koMetadataUnit">Program: </label></span>
<?php
require_once "HTML/Form.php";
$form = new HTML_Form('');

$units = $this->currentMetadata->getUnits();

$form->displaySelect("koMetadataUnit", $units, $this->currentMetadata->unit, 
						'1', 'Select One:', FALSE, 'id="koMetadataUnit"');
?>
</div>
<p class="grFormContext">The Program at St Christopher House that
  this Block best applies to. Pick one from the list.</p>

<!-- end required metadata -->

<!-- begin optional metadata-->
<h2>Optional Information</h2>

<div class="grRow">
	<span class="grFormLabel"><label  for="koMetadataDescription">Description: </label>
	</span>
	<textarea class="grFormElement" id="koMetadataDescription" name="koMetadataDescription" cols="35" rows="6"><?php echo $this->currentMetadata->description; ?></textarea>
</div>
<p class="grFormContext">Type a short paragraph that describes
  your Block in detail. For example:<br />
  "A help document describing how to correctly fil in the CANCORE-compliant metadta form for the CLN."</p>


<div class="grRow">
	<span class="grFormLabel"><label for="koMetadataVersion">Version: </label>
	</span>
	<input class="grFormElement" type="text" id="koMetadataVersion" name="koMetadataVersion" size="10" maxlength="10" value="<?php echo $this->currentMetadata->version; ?>" />
</div>
<p class="grFormContext">If applicable, enter any version information
  about your Block. Note that the system will not be able to
  use this information to recognize other versions of your Block
  if any exist in the system.</p>


<div class="grRow">
		<span class="grFormLabel">User's Natural Language: </span>
<?php
require_once "HTML/Form.php";
$form = new HTML_Form('');

$form->displaySelect("koMetadataUserLang", $GLOBALS['languages'], $this->currentMetadata->usersNaturalLanguage,
						'1', '', FALSE, '');
?>
</div>
<p class="grFormContext">Your audience's natural (first) language.
  For most Blocks, this will be the same as the language above,
  but for language education, it might be different (e.g. vietnamese)</p>


<div class="grRow">
	<span class="grFormLabel"><label for="koMetadataContext">Context:</label>
	</span>
	<input class="grFormElement" type="text" id="koMetadataContext" name="koMetadataContext" size="50" maxlength="128" value="<?php echo $this->currentMetadata->context; ?>" />
</div>
<p class="grFormContext">The environment in which your Block
  is normally used. Some examples: </p>
<ul class="grFormContext">
	<li>In a one on one tutorial as part of the Adult Literacy program</li>
	<li>In a music reading class at the Music School</li>
	<li>By all staff as an administrative form</li>
</ul>


<div class="grRow">
	<span class="grFormLabel"><label>Age range of audience: </label>
	</span>
<?php
require_once "HTML/Form.php";
$form = new HTML_Form('');

$ageRanges = $this->currentMetadata->getAgeRanges();

$form->displaySelect("koMetadataTypicalAgeRange", $ageRanges, $this->currentMetadata->audienceAgeRange,
						'1', 'Select One:', FALSE, '');
?>
</div>
<p class="grFormContext">The age range of your audience.</p>




<div class="grRow">
	<span class="grFormLabel"><label for="koMetadataRights">Rights:</label>
	</span>
	<input class="grFormElement" type="text" id="koMetadataRights" name="koMetadataRights" size="50" maxlength="255" value="<?php echo $this->currentMetadata->rights; ?>" />
</div>
<p class="grFormContext">Any information about the rights and licenses that are attached to the Block.</p>



<!-- end optional metadata-->



<div class="grRow">
	<span class="grFormLabel">
		<input class="grFormElementSubmit" id="editMetadata" type="submit" name="editMetadata" value="Continue" />	
		<input class="grFormElementSubmit" type="submit" name="ReturnToPanel" value="<?php echo ADMIN_BTN_CANCEL_RETURN; ?>" />
		</span>
</div>

</form>
Return current item: Community Learning Network