We're currently adding CC-BY-SA and GDFL to every book's metadata. This is incorrect for Public Domain works, and likely to be wrong for other works too. The content of the exported books is not (with the exception of the About page) covered by the wiki's default license.
Many books have copyright templates on their front pages (e.g. the templates discussed in T274452). This means that the correct license is at least identified, but it's not very machine readable, and it conflicts with what's in the metadata of the EPUBs. The metadata currently looks like this:
<dc:rights xml:lang="en">Creative Commons BY-SA 3.0</dc:rights> <link rel="cc:license" href="http://creativecommons.org/licenses/by-sa/3.0/" /> <dc:rights xml:lang="en">GNU Free Documentation License</dc:rights> <link rel="cc:license" href="http://www.gnu.org/copyleft/fdl.html" />
This should be changed to
- look up the correct copyright status from copyright status (P6216) (from the edition's item, or the work's)
- the status could be determined via the text content of the template or categories (such as Category:PD-old (Q19754287)), but these aren't very machine readable at the moment;
- add this to the metadata; and
- show an error message for books that have no copyright status.