ContributorCollection class
ContributorCollection class
Represents bibliography source contributors.
Properties
Name | Description |
---|---|
artist | Gets the artist of a source. |
author | Gets the author of a source. |
book_author | Gets the book author of a source. |
compiler | Gets the compiler of a source. |
composer | Gets the composer of a source. |
conductor | Gets the conductor of a source. |
counsel | Gets the counsel of a source. |
director | Gets the director of a source. |
editor | Gets the editor of a source. |
interviewee | Gets the interviewee of a source. |
interviewer | Gets the interviewer of a source. |
inventor | Gets the inventor of a source. |
performer | Gets the performer of a source. |
producer | Gets the producer of a source. |
translator | Gets the translator of a source. |
writer | Gets the writer of a source. |
Examples
Shows how to get bibliography sources available in the document.
document = aw.Document(MY_DIR + 'Bibliography sources.docx')
bibliography = document.bibliography
self.assertEqual(12, len(bibliography.sources))
source = bibliography.sources[0]
self.assertEqual('Book 0 (No LCID)', source.title)
authors = source.contributors.author.as_person_collection()
self.assertEqual(2, authors.count)
person = authors[0]
self.assertEqual('Roxanne', person.first)
self.assertEqual('Brielle', person.middle)
self.assertEqual('Tejeda', person.last)
See Also
- module aspose.words.bibliography