Skip to content

Commit

Permalink
Fixed typo in the subjects field.
Browse files Browse the repository at this point in the history
  • Loading branch information
nueces committed Apr 20, 2012
1 parent 4b32672 commit beb0c47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transmogrify/nitf/xmlsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __iter__(self):
# plone.app.dexterity.behaviours.metadata.IBasic
'title': None, 'description': None,
# plone.app.dexterity.behaviours.metadata.ICategorization
'subject': [], 'language': '',
'subjects': [], 'language': '',
# plone.app.dexterity.behaviours.metadata.IPublication
'effective': None, 'expires': None,
# plone.app.dexterity.behaviours.metadata.IOwnership
Expand All @@ -66,7 +66,7 @@ def __iter__(self):

item['_path'] = get_text(head, 'docdata/doc-id', 'id-string').lower()
item['title'] = get_text(head, 'title')
item['subject'] = [k.get('key') for k in \
item['subjects'] = [k.get('key') for k in \
list(head.find('docdata/key-list')) if k.get('key')]
#item['language']
sdate = get_text(head, 'docdata/date.release', 'norm')
Expand Down

0 comments on commit beb0c47

Please sign in to comment.