GibbonEdu / core

Gibbon is a flexible, open source school management platform designed to make life better for teachers, students, parents and leaders.
https://gibbonedu.org
GNU General Public License v3.0
460 stars 299 forks source link

Library: enable copies of books to be attached to a main record #1745

Closed SKuipers closed 1 year ago

SKuipers commented 1 year ago

Many library catalog system have a catalog record and a separate set of instances of that record, so that certain fields and information are not duplicated. Our library data in not structured in this way, but it is ideal to reduce the duplication of data especially when data gets out of sync for multiple copies of the same book. A compromise to this, since rearchitecting the entire library database wasn't feasible, was to introduce a main record + copy record system, enabling a record to be attached to another record and inherit many of it's fields from it. Editing either main or copy record will sync its data from the main/with copies.

In this PR:

How Has This Been Tested? Locally and in production

Screenshots

Screen Shot 2023-03-27 at 11 59 22 AM Screen Shot 2023-03-27 at 11 59 34 AM Screen Shot 2023-03-27 at 11 59 44 AM