Tim van der Meij b41a2f4d5a
Move the collection logic from the document to the catalog
The `Collection` entry is part of the catalog, not of the document, so
its logic should be placed there instead. The document should look in the
catalog to fetch it, and not have knowledge of `catDict`, which is a
member internal to the catalog.

Moreover, remove the collection member from the document instance. It's
only used internally and was also never intended to be public. For users
it's exposed by the `getMetadata` API endpoint as `IsCollectionPresent`.
Moving this out of the `parse` function makes sure that the getter is
only executed if the document information is actually requested
(potentially making initial parsing a tiny bit faster).
2020-08-25 23:28:55 +02:00
..
2020-04-14 12:28:14 +02:00
2020-04-17 12:24:46 +02:00
2020-04-14 12:28:14 +02:00
2020-08-12 10:32:59 +02:00
2020-08-10 14:15:49 -07:00
2020-04-14 12:28:14 +02:00
2020-04-14 12:28:14 +02:00
2020-04-14 12:28:14 +02:00
2020-04-17 12:24:46 +02:00
2020-04-17 12:24:46 +02:00
2020-04-14 12:28:14 +02:00
2020-08-12 10:32:59 +02:00