Fix odd inconsistency between platforms for template
authorArt Rhyno <art632000@yahoo.ca>
Sat, 9 Jul 2011 21:30:07 +0000 (17:30 -0400)
committerArt Rhyno <art632000@yahoo.ca>
Sat, 9 Jul 2011 21:30:07 +0000 (17:30 -0400)
handling.

Signed-off-by: Art Rhyno <art632000@yahoo.ca>
conifer/templates/item/common_metadata.xhtml

index 70b1ea4..b1a5a7e 100644 (file)
@@ -84,7 +84,7 @@ if len(authors) < 2:
                <td class="cat_opts">
                <select name="orig_prefix">
                        <option py:for="k,v in item.CALLNO_PREFIX_CHOICES"
-                               py:attrs="{'selected': item.orig_prefix==k or None}"
+                               py:attrs="{'selected': int(item.orig_prefix)==int(k) or None}"
                                value="${k}" py:content="v"/>
                </select>
                </td>
@@ -100,7 +100,7 @@ if len(authors) < 2:
                <td class="cat_opts">
                <select name="orig_suffix">
                        <option py:for="k,v in item.CALLNO_SUFFIX_CHOICES"
-                               py:attrs="{'selected': item.orig_suffix==k or None}"
+                               py:attrs="{'selected': int(item.orig_suffix)==int(k) or None}"
                                value="${k}" py:content="v"/>
                </select>
                </td>