https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36616

--- Comment #8 from Aleisha Amohia <[email protected]> ---
Created attachment 166747
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166747&action=edit
Bug 36616: Add option to authority cataloguing plugin to show established
headings only

This enhancement adds a Yes/No dropdown option to the authority cataloguing
plugin for showing established headings only. These are headings where the
008/09 is set to 'a' or 'f' (established) or '|' (not coded). When set to Yes,
non-established headings will not show in the authority search results so can't
be chosen to link to the bibliographic record.

This also adds a system preference LinkEstablishedHeadings to determine whether
the Yes/No dropdown should be enabled or disabled by default.

This works for both Zebra and Elasticsearch.

To test:

1) Apply patches and install database updates and restart services
2) Go to Koha Administration -> system preferences. Search for
LinkEstablishedHeadings. This should be disabled by default.
3) Create two PERSO_NAME authority records. Give them similar names so you'd
expect them to come up in a search together i.e. name one "James 1" and the
second "James 2". For "James 1" set the 008/09 to 'a' and for "James 2" set the
008/09 to 'b'.
4) Go to Cataloguing and click New record
5) Go to tab 1 and tag 100. Click the plugin editor for 100$a Personal name.
6) Notice the "Established headings only" dropdown is set to No because
LinkEstablishedHeadings is disabled.
7) Search for "James" and keep "Established headings only" set to No. Confirm
both of your James records show in the results.
8) Change the "Established headings only" to Yes and search again. Confirm only
"James 1" shows in the results.
9) Change the LinkEstablishedHeadings system preference to "Only established
headings, as indicated by the 008/09" and save.
10) Repeat steps 4 and 5. Confirm the "Established headings only" dropdown is
set to Yes by default.

11) If you did the above test plan with Zebra as the search enginge (as set by
SearchEngine system preference), test again with Elasticsearch. The steps and
outcomes should be the same.

12) Confirm tests pass
- t/Koha/SearchEngine/Zebra/QueryBuilder.t
- t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t

Sponsored-by: Education Services Australia SCIS

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to