Skip to content

1.3 How the Structure Manager works

Randall Floyd edited this page May 24, 2018 · 1 revision

This describes the components involved to allow the user to drag and drop pages and sections around to represent structure and then save it to the work resource. The resulting data representing the structure is saved as described here.

The actual post to the controller /concern/scanned_resources/:id/structure with the resulting data happens here.

Example of JSON data representing logical order that is posted:

{"nodes":[{"label":"Front matter","nodes":[{"proxy":"tj6731378c"},{"proxy":"t6q182k16k"},{"proxy":"t3f4625410"}]},{"proxy":"tdb78tc03k"},{"label":"Section 1","nodes":[{"proxy":"tdf65v787x"},{"proxy":"t6d56zw60x"},{"proxy":"t7h149p86f"}]},{"proxy":"t6d56zw617"}],"label":"Logical"}

Views:

Javascript:

Stylesheets: