annotate zpt/changeMetadataMapping.zpt @ 23:5ed16f971297

getDomFromPathOrUrl does not throw exception but returns None.
author casties
date Wed, 25 Jul 2012 12:53:17 +0200
parents 00147a1ab4ac
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
e4bae49e657b more renovation
casties
parents:
diff changeset
1 <div tal:replace="structure here/manage_page_header">Header</div>
e4bae49e657b more renovation
casties
parents:
diff changeset
2 <!-- ZOPE management tabs -->
e4bae49e657b more renovation
casties
parents:
diff changeset
3 <div tal:define="manage_tabs_message options/manage_tabs_message | nothing"
e4bae49e657b more renovation
casties
parents:
diff changeset
4 tal:replace="structure here/manage_tabs">Tabs</div>
e4bae49e657b more renovation
casties
parents:
diff changeset
5 <!-- end of ZOPE management tabs -->
e4bae49e657b more renovation
casties
parents:
diff changeset
6 <form name="form" action="manage_changeMetaDataMapping" method="post">
6
00147a1ab4ac division between MetaDataFolder and Metadata looks good now (to me :-)
casties
parents: 3
diff changeset
7 <p><b>Title (=Reference Type): </b><input type="text" name="titleOfObject" tal:attributes="value here/title"></p>
1
e4bae49e657b more renovation
casties
parents:
diff changeset
8 <ul>
6
00147a1ab4ac division between MetaDataFolder and Metadata looks good now (to me :-)
casties
parents: 3
diff changeset
9 <li><b>Tag-Name:</b> Should be lower case only (e.g. author, number-of-pages,
1
e4bae49e657b more renovation
casties
parents:
diff changeset
10 ...)
e4bae49e657b more renovation
casties
parents:
diff changeset
11 <li><b>Label: </b> Human readable name for display purposes (Author, Number of
e4bae49e657b more renovation
casties
parents:
diff changeset
12 Pages, ...)
e4bae49e657b more renovation
casties
parents:
diff changeset
13 <li><b>Explanation:</b> Should contain a help text, what and how to enter in this
e4bae49e657b more renovation
casties
parents:
diff changeset
14 field. Can contain HTML tags.
e4bae49e657b more renovation
casties
parents:
diff changeset
15 </ul>
e4bae49e657b more renovation
casties
parents:
diff changeset
16 <p>(Leave Tag-Name empty to delete field. Add Tag-Name in empty row to add field.)</p>
e4bae49e657b more renovation
casties
parents:
diff changeset
17
e4bae49e657b more renovation
casties
parents:
diff changeset
18 <table border=1>
e4bae49e657b more renovation
casties
parents:
diff changeset
19 <tr>
e4bae49e657b more renovation
casties
parents:
diff changeset
20 <th>Tag-name</th>
e4bae49e657b more renovation
casties
parents:
diff changeset
21 <th>Label</th>
e4bae49e657b more renovation
casties
parents:
diff changeset
22 <th>Explanation</th>
e4bae49e657b more renovation
casties
parents:
diff changeset
23 <th>Optional</th>
e4bae49e657b more renovation
casties
parents:
diff changeset
24 <th>Valuelist</th>
e4bae49e657b more renovation
casties
parents:
diff changeset
25 <th>DC-map</th>
e4bae49e657b more renovation
casties
parents:
diff changeset
26 </tr>
3
3dadf0d89261 more renovation
casties
parents: 1
diff changeset
27 <tal:block tal:repeat="idx python:range(0,30)">
1
e4bae49e657b more renovation
casties
parents:
diff changeset
28 <tr tal:define="name python:here.getAt(here.fieldList,idx);
e4bae49e657b more renovation
casties
parents:
diff changeset
29 desc python:here.fields.get(name, {'tag':'','label':'','explanation':'','status':'optional','valuelist':'','dcmap':''})">
e4bae49e657b more renovation
casties
parents:
diff changeset
30 <td valign="top"><input type="text"
3
3dadf0d89261 more renovation
casties
parents: 1
diff changeset
31 tal:attributes="name string:field_$idx; value desc/tag | nothing" size="10" /></td>
1
e4bae49e657b more renovation
casties
parents:
diff changeset
32 <td valign="top"><input type="text"
3
3dadf0d89261 more renovation
casties
parents: 1
diff changeset
33 tal:attributes="name string:label_$idx; value desc/label | nothing" size="20" /></td>
3dadf0d89261 more renovation
casties
parents: 1
diff changeset
34 <td valign="top"><textarea rows="3" cols="30"
3dadf0d89261 more renovation
casties
parents: 1
diff changeset
35 tal:attributes="name string:explanation_$idx" tal:content="desc/explanation | nothing"></textarea>
1
e4bae49e657b more renovation
casties
parents:
diff changeset
36 </td>
e4bae49e657b more renovation
casties
parents:
diff changeset
37 <td valign="top"><input type="checkbox"
e4bae49e657b more renovation
casties
parents:
diff changeset
38 tal:attributes="name string:status_$idx; checked python:desc['status']=='optional'"
e4bae49e657b more renovation
casties
parents:
diff changeset
39 value="optional" /></td>
e4bae49e657b more renovation
casties
parents:
diff changeset
40 <td valign="top"><textarea rows="3" cols="20"
3
3dadf0d89261 more renovation
casties
parents: 1
diff changeset
41 tal:attributes="name string:values_$idx" tal:content="desc/valuelist | nothing"></textarea>
1
e4bae49e657b more renovation
casties
parents:
diff changeset
42 </td>
e4bae49e657b more renovation
casties
parents:
diff changeset
43 <td valign="top"><input type="text"
3
3dadf0d89261 more renovation
casties
parents: 1
diff changeset
44 tal:attributes="name string:dcmap_$idx; value desc/dcmap | nothing" size="10" /></td>
1
e4bae49e657b more renovation
casties
parents:
diff changeset
45 </tr>
e4bae49e657b more renovation
casties
parents:
diff changeset
46 </tal:block>
e4bae49e657b more renovation
casties
parents:
diff changeset
47 </table>
e4bae49e657b more renovation
casties
parents:
diff changeset
48 <input type="submit" value="Change"><br/>
e4bae49e657b more renovation
casties
parents:
diff changeset
49 </form>