A few notes:
* This applies to the Angular catalog *only*, since I see that as the future. At the very least, it provides a treat for catalogers who use the Angular catalog.
* I turned the "Add to bucket" interface into a tabbed interface, since it was collecting a lot of options. Once we move to Angular 9, this code will have to migrate from the deprecated ngb-tabset.
* I also added a confirmation for adding to the shared bucket, since it is easy enough to mistype an ID number.
Here are some testing notes from the commit message:
To test:
1) As User A, create a bucket.
2) As User B, search in the Staff Catalog, and add some items to your
basket.
3) As User B, click Basket Actions, and choose add Basket to Bucket
4) Click on the "Shared Bucket" tab and enter the id of User A's bucket
Some potential scenarios to test:
* Trying to add to a bucket that does not exist
* Trying to add to an unshared bucket when User B does not have the
VIEW_CONTAINER permission
* Trying to add to existing and new buckets as before
Here is a branch implementing this in the Angular catalog: user/sandbergja /lp1837802_ add_records_ to_shared_ bucket_ from_catalog
Here is a link: https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ sandbergja/ lp1837802_ add_records_ to_shared_ bucket_ from_catalog
A few notes:
* This applies to the Angular catalog *only*, since I see that as the future. At the very least, it provides a treat for catalogers who use the Angular catalog.
* I turned the "Add to bucket" interface into a tabbed interface, since it was collecting a lot of options. Once we move to Angular 9, this code will have to migrate from the deprecated ngb-tabset.
* I also added a confirmation for adding to the shared bucket, since it is easy enough to mistype an ID number.
Here are some testing notes from the commit message:
To test:
1) As User A, create a bucket.
2) As User B, search in the Staff Catalog, and add some items to your
basket.
3) As User B, click Basket Actions, and choose add Basket to Bucket
4) Click on the "Shared Bucket" tab and enter the id of User A's bucket
Some potential scenarios to test:
* Trying to add to a bucket that does not exist
* Trying to add to an unshared bucket when User B does not have the
VIEW_CONTAINER permission
* Trying to add to existing and new buckets as before