forked from openlp/openlp
Now the footer displays both bible versions and their copyright in dual bible view. Also made another small fix (in rev827): "Permission" -> "Permissions"
bzr-revno: 827
This commit is contained in:
commit
95aba542d7
@ -463,7 +463,19 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
bible2_verses.extend(self.parent.manager.get_verses(bible2, scripture))
|
bible2_verses.extend(self.parent.manager.get_verses(bible2, scripture))
|
||||||
bible2_version = self.parent.manager.get_meta_data(bible2, u'Version')
|
bible2_version = self.parent.manager.get_meta_data(bible2, u'Version')
|
||||||
bible2_copyright = self.parent.manager.get_meta_data(bible2, u'Copyright')
|
bible2_copyright = self.parent.manager.get_meta_data(bible2, u'Copyright')
|
||||||
bible2_permission = self.parent.manager.get_meta_data(bible2, u'Permission')
|
bible2_permission = self.parent.manager.get_meta_data(bible2, u'Permissions')
|
||||||
|
if bible2_version:
|
||||||
|
bible2_version = bible2_version.value
|
||||||
|
else:
|
||||||
|
bible2_version = u''
|
||||||
|
if bible2_copyright:
|
||||||
|
bible2_copyright = bible2_copyright.value
|
||||||
|
else:
|
||||||
|
bible2_copyright = u''
|
||||||
|
if bible2_permission:
|
||||||
|
bible2_permission = bible2_permission.value
|
||||||
|
else:
|
||||||
|
bible2_permission = u''
|
||||||
# Let's loop through the main lot, and assemble our verses
|
# Let's loop through the main lot, and assemble our verses
|
||||||
for item in items:
|
for item in items:
|
||||||
bitem = self.ListView.item(item.row())
|
bitem = self.ListView.item(item.row())
|
||||||
@ -492,8 +504,8 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
if footer not in raw_footer:
|
if footer not in raw_footer:
|
||||||
raw_footer.append(footer)
|
raw_footer.append(footer)
|
||||||
if bible2:
|
if bible2:
|
||||||
footer = u'%s (%s %s)' % (book, version, copyright)
|
footer = u'%s (%s %s)' % (book, bible2_version, bible2_copyright)
|
||||||
#If not found add to footer
|
#If not found add second version and copyright to footer
|
||||||
if footer not in raw_footer:
|
if footer not in raw_footer:
|
||||||
raw_footer.append(footer)
|
raw_footer.append(footer)
|
||||||
bible_text = u'%s %s \n\n %s %s' % \
|
bible_text = u'%s %s \n\n %s %s' % \
|
||||||
@ -580,7 +592,7 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
def displayResults(self, bible):
|
def displayResults(self, bible):
|
||||||
version = self.parent.manager.get_meta_data(bible, u'Version')
|
version = self.parent.manager.get_meta_data(bible, u'Version')
|
||||||
copyright = self.parent.manager.get_meta_data(bible, u'Copyright')
|
copyright = self.parent.manager.get_meta_data(bible, u'Copyright')
|
||||||
permission = self.parent.manager.get_meta_data(bible, u'Permission')
|
permission = self.parent.manager.get_meta_data(bible, u'Permissions')
|
||||||
if not permission:
|
if not permission:
|
||||||
permission = u''
|
permission = u''
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user