File:  [Repository] / OSAS / OSA_system / zpt / index_meta.zpt
Revision 1.7: download - view: text, annotated - select for diffs - revision graph
Thu Aug 17 17:19:05 2006 UTC (17 years, 10 months ago) by casties
Branches: MAIN
CVS tags: HEAD
added form for access-conditions in add_metadata

<?xml version="1.0" encoding="UTF-8"?>
<resource xmlns:tal="http://xml.zope.org/namespaces/tal" type="MPIWG" tal:define="global add_metadata here/REQUEST/SESSION/add_metadata">
	<description tal:content="python:add_metadata['description'].decode('utf-8')">SHORT SOURCE DESCRIPTION</description>
	<archive-creation-date tal:content="python:add_metadata['archive-creation-date'].decode('utf-8')">CREATION DATE</archive-creation-date>
	<name tal:content="python:add_metadata['folder_name']">FOLDER NAME</name>
	<archive-path tal:content="python:add_metadata['archive-path']+'/'+add_metadata['folder_name']">ARCHIVE PATH</archive-path>
	<creator tal:content="python:add_metadata['creator'].decode('utf-8')">CREATOR</creator>
	<content-type tal:content="python:add_metadata['content-type'].decode('utf-8')">CONTENT</content-type>
    <derived-from tal:condition="python:add_metadata['derived-from']">
      <archive-path tal:content="python:add_metadata['derived-from'].decode('utf-8')"/>
    </derived-from>
	<meta tal:condition="python:len(here.metadataprint)>0">
		<bib type="XX" tal:attributes="type python:here.reftype">
		 <span tal:replace="structure python:here.metadataprint.decode('utf-8')"/> 
		</bib>
      <access-conditions tal:condition="python:add_metadata['access-type']">
        <access tal:condition="python:add_metadata['access-type']=='free'" type="free"/>
        <access tal:condition="python:add_metadata['access-type']!='free'" type="institution">
          <name tal:content="python:add_metadata['access-type'].decode('utf-8')"/>
        </access>
      </access-conditions>
	</meta>
</resource>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>