Bug 21588

Summary: Add "Collapse/Expand" options on subscription-detail page
Product: Koha Reporter: Séverine Queune <severine.queune>
Component: SerialsAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: colin.campbell, jonathan.druart, katrin.fischer
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
19.11.00
Bug Depends on: 21467    
Bug Blocks:    
Attachments: Bug 21588: Add expand/collapse all links to the "Acquisition details" subscriptions
Bug 21588: Add expand/collapse all links to the "Acquisition details" subscriptions
Bug 21588: Add expand/collapse all links to the "Acquisition details" subscriptions

Description Séverine Queune 2018-10-17 15:02:18 UTC
Linked to bug 21467.
With the new enhancement that allows partial receipt for subscription, orderlines re displayed with a summary line on /cgi-bin/koha/serials/subscription-detail.pl page.
Would be useful to have a "Collapse all" / "Expand all" options.
Comment 1 Jonathan Druart 2019-05-09 17:31:21 UTC
Created attachment 89518 [details] [review]
Bug 21588: Add expand/collapse all links to the "Acquisition details" subscriptions

In order to make the view cleaner, a librarian may need to expand or
collapse all the orders at once.

Test plan:
- Create a subscription
- Create several orders from this subscription (quantity > 1)
- Receive partially the orders
- Go to the subscription detail page, "Acquisition details" tab
=> Notice the 2 new links "Expand all" and "Collapse all"
Make sure they work as expected.

Also note that a bug has been fixed, when the page is loaded the tree is
now expanded.
Comment 2 Liz Rea 2019-05-09 17:46:08 UTC
Created attachment 89519 [details] [review]
Bug 21588: Add expand/collapse all links to the "Acquisition details" subscriptions

In order to make the view cleaner, a librarian may need to expand or
collapse all the orders at once.

Test plan:
- Create a subscription
- Create several orders from this subscription (quantity > 1)
- Receive partially the orders
- Go to the subscription detail page, "Acquisition details" tab
=> Notice the 2 new links "Expand all" and "Collapse all"
Make sure they work as expected.

Also note that a bug has been fixed, when the page is loaded the tree is
now expanded.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Comment 3 Katrin Fischer 2019-05-11 09:40:55 UTC
Created attachment 89589 [details] [review]
Bug 21588: Add expand/collapse all links to the "Acquisition details" subscriptions

In order to make the view cleaner, a librarian may need to expand or
collapse all the orders at once.

Test plan:
- Create a subscription
- Create several orders from this subscription (quantity > 1)
- Receive partially the orders
- Go to the subscription detail page, "Acquisition details" tab
=> Notice the 2 new links "Expand all" and "Collapse all"
Make sure they work as expected.

Also note that a bug has been fixed, when the page is loaded the tree is
now expanded.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 4 Katrin Fischer 2019-05-11 09:41:20 UTC
Small code change, works well. Includes some strings.
Comment 5 Martin Renvoize 2019-06-24 14:47:53 UTC
Nice work!

Pushed to master for 19.11.00