Bug 27269

Summary: Move C4::Biblio::GetMarcSubjects to Koha namespace
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: Failed QA --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: joonas.kylmala, kyle, phan-tung.bui, tomascohen
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29441
Change sponsored?: Sponsored Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 27269: Move GetMarcSubjects to Koha namespace
Bug 27269: Move GetMarcSubjects to Koha namespace
Bug 27269: Move GetMarcSubjects to Koha namespace
Bug 27269: Move GetMarcSubjects to Koha namespace
Bug 27269: Move GetMarcSubjects to Koha namespace

Description Aleisha Amohia 2020-12-18 02:14:10 UTC

    
Comment 1 Aleisha Amohia 2020-12-18 02:49:50 UTC
Created attachment 114505 [details] [review]
Bug 27269: Move GetMarcSubjects to Koha namespace

This patch moves C4::Biblio::GetMarcSubjects to
Koha::Biblio->get_marc_subjects. This is so get_marc_subjects can be
used in templates and notices.

To test:
1. Find a record that has a subject (6xx).
2. Add the record to the cart and a list.
3. View your cart and click 'more details'. Confirm subjects show as
normal.
4. Click 'send' and confirm the email sent shows the subjects as normal.
5. Go to the list you added the record to and click 'send list'. Confirm
the email sent shows the ubjectsas normal.
6. Set the OPACXSLTDetailsDisplay system preference to empty (for no xslt)
7. Log in to the OPAC. Find the record and add it to the cart and a list
8. View the cart and click 'more details'. Confirm subjects show as
normal.
9. Click 'send' and confirm the email sent shows the subjects as normal.
10. Go to the list you added the record to and click 'send list'.
Confirm the email sent shows the subjects as normal.
11. View the record detail page and confirm the subjects show as normal.
12. Confirm tests pass:
- t/Biblio.t
- t/db_dependent/Koha/Biblio.t

Sponsored-by: Bibliotheksservice-Zentrum Baden-Württemberg (BSZ)
Comment 2 Joonas Kylmälä 2021-11-13 14:46:47 UTC
Doesn't apply anymore :(
Comment 3 Aleisha Amohia 2023-02-13 02:01:13 UTC Comment hidden (obsolete)
Comment 4 Owen Leonard 2023-05-26 12:44:27 UTC
Sorry this needs to be rebased again
Comment 5 Aleisha Amohia 2023-05-29 01:38:02 UTC Comment hidden (obsolete)
Comment 6 Owen Leonard 2023-05-30 11:46:44 UTC
Created attachment 151793 [details] [review]
Bug 27269: Move GetMarcSubjects to Koha namespace

This patch moves C4::Biblio::GetMarcSubjects to
Koha::Biblio->get_marc_subjects. This is so get_marc_subjects can be
used in templates and notices.

To test:
1. Find a record that has a subject (6xx).
2. Add the record to the cart and a list.
3. View your cart and click 'more details'. Confirm subjects show as
normal.
4. Click 'send' and confirm the email sent shows the subjects as normal.
5. Go to the list you added the record to and click 'send list'. Confirm
the email sent shows the ubjectsas normal.
6. Set the OPACXSLTDetailsDisplay system preference to empty (for no xslt)
7. Log in to the OPAC. Find the record and add it to the cart and a list
8. View the cart and click 'more details'. Confirm subjects show as
normal.
9. Click 'send' and confirm the email sent shows the subjects as normal.
10. Go to the list you added the record to and click 'send list'.
Confirm the email sent shows the subjects as normal.
11. View the record detail page and confirm the subjects show as normal.
12. Confirm tests pass:
- t/Biblio.t
- t/db_dependent/Koha/Biblio.t

Sponsored-by: Bibliotheksservice-Zentrum Baden-Württemberg (BSZ)
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 7 Owen Leonard 2023-05-30 11:48:37 UTC
> 4. Click 'send' and confirm the email sent shows the subjects as normal.

None of the emails sent according to the test plan include subject information, but that is true in master too.
Comment 8 Aleisha Amohia 2023-11-17 00:14:51 UTC
Created attachment 159069 [details] [review]
Bug 27269: Move GetMarcSubjects to Koha namespace

This patch moves C4::Biblio::GetMarcSubjects to
Koha::Biblio->get_marc_subjects. This is so get_marc_subjects can be
used in templates and notices.

To test:
1. Find a record that has a subject (6xx).
2. Add the record to the cart and a list.
3. View your cart and click 'more details'. Confirm subjects show as
normal.
4. Click 'send' and confirm the email sent shows the subjects as normal.
5. Go to the list you added the record to and click 'send list'. Confirm
the email sent shows the ubjectsas normal.
6. Set the OPACXSLTDetailsDisplay system preference to empty (for no xslt)
7. Log in to the OPAC. Find the record and add it to the cart and a list
8. View the cart and click 'more details'. Confirm subjects show as
normal.
9. Click 'send' and confirm the email sent shows the subjects as normal.
10. Go to the list you added the record to and click 'send list'.
Confirm the email sent shows the subjects as normal.
11. View the record detail page and confirm the subjects show as normal.
12. Confirm tests pass:
- t/Biblio.t
- t/db_dependent/Koha/Biblio.t

Sponsored-by: Bibliotheksservice-Zentrum Baden-Württemberg (BSZ)
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 9 Phan Tung Bui 2024-01-10 16:13:15 UTC
So here how i do the test

- Apply the patch
- Add a record which contains 2-3 subjects into the cart
- Send it to a random selected Email
- Go to the database and find the email in message_queue
- Absence of subject in the email
Comment 10 Phan Tung Bui 2024-01-10 16:49:25 UTC
phan
Comment 11 Tomás Cohen Arazi (tcohen) 2024-07-26 11:12:05 UTC
Hi all. Is this still going to be pursued?
The codebase has moved into a pattern implemented by Koha::Biblio::Metadata::Extractor. This is where this needs to be moved.
Comment 12 Aleisha Amohia 2024-07-29 02:19:12 UTC
I'm not working on this right now. I'll remove myself as Assignee.