[[BackLinksMenu]]

[[TicketQuery(summary=PUBLISHED_BOOK_FORMAT_R0, format=table,  col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|)]]


= Analysis =

== Overview ==

The user may want to publish his book. A published book cannot be edited. Sophie books do not need to be published to be read in Sophie Reader, but publishing can make sense when the user has finished editing a book. 

== Task requirements ==

 * A book can be saved in a Published Sophie Book Format (.psbf) by File > Publish Book [[BR]]
    First the .spbf book is saved and closed. [[BR]]
    Then a published book is generated and opened.  [[BR]]

 * A published book has the extension .psbf. 

 * When a book is published the unused resources should be striped from it. 

 * (optional for R0)If opened in Sophie Author a published book should behave as if it is in Test mode - links are always active, and it cannot be edited.

== Task result ==

The result of this task is source code. 

== Implementation idea ==

Add a flag indicating that a book is published. 

== Related ==

[wiki:SOPHIE2_BOOK_FORMAT_R0]

== How to demo ==

 * Publish book and show that a new .sophie copy of the book is generated and opened. 
 * Show that in the .sophie book there are no unused resources. 

= Design =


= Implementation =
^(Implementation results should be described and linked here (from the wiki or the repository))^

= Testing =

= Comments =
^(Write comments for this or later revisions here.)