opacclient icon indicating copy to clipboard operation
opacclient copied to clipboard

Offline saving for details of favorites list items

Open akramer-zibra opened this issue 8 years ago • 5 comments

Would be great to have entries in "Merkliste" remembered/stored locally, without dependency on network access. It is not sure that there is network access in public library buildings ;)

akramer-zibra avatar Jan 10 '17 14:01 akramer-zibra

Thanks for your suggestion!

We already planned to do some big improvements to the favorites list, including offline storage, multiple categories/labels, and possibly even backup and/or sync between multiple devices.

The problem is that at the moment, we are unable to invest a large amount of time in this project, so we are more or less only doing the necessary amount of bug fixing and support. We hope this situation will improve in the future, but until then, we could only add this feature if someone helps us by submitting a pull request.

johan12345 avatar Jan 11 '17 09:01 johan12345

I really like your app and I am up to contribute to your code. Is there any class or component yet for storing data "locally" on devices?

akramer-zibra avatar Jan 12 '17 09:01 akramer-zibra

We store a number of things (e.g. accounts, lent and reserved items, starred items). Most of them are stored in SQLite3 databases. This would best be included as an extension to the starred database which is defined in StarDatabase and accessible via the StarDataSource and the StarContentProvider classes.

If you want to give this a try, make sure to contact us if you have any questions or get stuck! Just as a fair warning, it probably won't be a super-easy contribution as it requires touching multiple components of the app at once, but it absolutely is possible.

raphaelm avatar Jan 12 '17 10:01 raphaelm

@raphaelm The easiest way would probably be to store the detailed data as JSON in the StarDatabase (e.g. using the Moshi library we already depend on), wouldn't it? Otherwise this would involve creating additional tables to store Details, Copies and Volumes.

johan12345 avatar Jan 12 '17 10:01 johan12345

Good idea, that sounds easier

raphaelm avatar Jan 12 '17 10:01 raphaelm