-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Item #37
Comments
For collection be aware of: https://github.com/iiif-prezi/iiif-prezi3/blob/main/iiif_prezi3/helpers/collection_add_methods.py It would be useful if a user can use this method for a collection and pass in a full Manifest and the method should convert it into a reference. Main use for other classes is to add the item and return the reference to the one that is added into the class:
AnnotationPage -> annotationCollection is always a reference |
Considerations:
|
Discussed in meeting all done. |
Description
This helper takes a reference to an appropriate object (e.g for a Collection, it would accept a Collection or a Manifest) and adds it to the end of the
items
propertyFunction name / Parameters / Return
Function name:
.add_item(item)
Parameters:
item
- the Prezi3 objetc to be addedReturns:
None
Objects
Considerations
Different objects will have different acceptable inputs (i.e you can't add a Manifest to a Canvas object's
items
), so this should be validated by the helper code.The text was updated successfully, but these errors were encountered: