19
19
from xml .dom import minidom
20
20
21
21
__license__ = "MIT"
22
- __version__ = '1.3.2 '
22
+ __version__ = '1.3.3 '
23
23
24
24
# define log output
25
25
logging .basicConfig (format = '%(levelname)s: %(message)s' )
@@ -91,6 +91,7 @@ def createTextstructure():
91
91
p = SubElement (body , 'p' )
92
92
return text
93
93
94
+
94
95
def createFileDesc (config ):
95
96
# creates a file description from config file
96
97
fileDesc = Element ('fileDesc' )
@@ -110,7 +111,7 @@ def createFileDesc(config):
110
111
else :
111
112
publisher .text = config .get ('Project' , 'editor' )
112
113
idno = SubElement (publicationStmt , 'idno' )
113
- idno .set ('type' , 'URL ' )
114
+ idno .set ('type' , 'url ' )
114
115
idno .text = config .get ('Project' , 'fileURL' , fallback = os .path .splitext (
115
116
os .path .basename (args .filename ))[0 ] + '.xml' )
116
117
date = SubElement (publicationStmt , 'date' )
@@ -226,10 +227,9 @@ def createPlace(placestring):
226
227
227
228
def createEdition (editionTitle , biblID ):
228
229
# creates a new bibliographic entry
230
+ editionType = 'print'
229
231
if ('Edition' in config ) and ('type' in config ['Edition' ]):
230
232
editionType = config .get ('Edition' , 'type' )
231
- if not editionType :
232
- editionType = 'print'
233
233
bibl = Element ('bibl' )
234
234
bibl .text = editionTitle
235
235
bibl .set ('type' , editionType )
0 commit comments