I am using LyX to manage a multi-part document (my thesis) and I would like to be able to produce stand alone sub-documents (e.g. a chapter) that include a bibliography, but only when the sub-document is produced on its own. When I produce the full master document, the only bibliography should be at the end.
How can I make the bibliography in a LyX subdocument only show up when the document is used by itself (and not when it is included in the master document)?