Align code with DTD/schema
svn: r17116
This commit is contained in:
parent
45efb2043c
commit
0df58582b2
@ -139,7 +139,7 @@ GENDER has values of M, F, or U.
|
||||
<!ELEMENT surname (#PCDATA)>
|
||||
<!ATTLIST surname
|
||||
prefix CDATA #IMPLIED
|
||||
primary (1|0) #IMPLIED
|
||||
prim (1|0) #IMPLIED
|
||||
derivation CDATA #IMPLIED
|
||||
connector CDATA #IMPLIED
|
||||
>
|
||||
|
@ -255,7 +255,7 @@
|
||||
<element name="surname">
|
||||
<text/>
|
||||
<optional><attribute name="prefix"><text/></attribute></optional>
|
||||
<optional><attribute name="primary"><choice>
|
||||
<optional><attribute name="prim"><choice>
|
||||
<value>1</value>
|
||||
<value>0</value>
|
||||
</choice></attribute></optional>
|
||||
|
@ -1791,6 +1791,7 @@ class GrampsParser(UpdateCallback):
|
||||
|
||||
self.reporef.ref = handle
|
||||
self.reporef.call_number = attrs.get('callno', '')
|
||||
if 'medium' in attrs:
|
||||
self.reporef.media_type.set_from_xml_str(attrs['medium'])
|
||||
self.reporef.private = bool(attrs.get("priv"))
|
||||
# we count here on self.source being available
|
||||
|
Loading…
Reference in New Issue
Block a user