Align code with DTD/schema
svn: r17117
This commit is contained in:
parent
ac9fd67e10
commit
9c38eddab2
@ -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,7 +1791,8 @@ class GrampsParser(UpdateCallback):
|
||||
|
||||
self.reporef.ref = handle
|
||||
self.reporef.call_number = attrs.get('callno', '')
|
||||
self.reporef.media_type.set_from_xml_str(attrs['medium'])
|
||||
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
|
||||
# reporefs can only be found within source
|
||||
|
Loading…
Reference in New Issue
Block a user