If you look at the audience subtype limit on the advanced search it has only a few choices, but if you edit the audience in the 008 there are many many options. The advanced search should have the same values as the 008 so that you can limit on everything that you might have entered.
Created attachment 10727 [details] opac types Can we grab some code from the staff client which has more subtypes than the OPAC?
Created attachment 10728 [details] staff types
Also the types in the OPAC aren't searching right ... Clicking on Juvenile on the OPAC is actually audience 'c' Preadolescent audience.
Further note: These subtype limits do not even match what the staff side or what is in the marc record (tag 008 position 22). In the OPAC: The subtype limit of Easy is audience 'a' which is Preschool audience on the staff side. The OPAC limit of Juvenile is actually 'c' Preadolescent on the staffside. (NOTE: there is a juvenile audience 'j' which leads to significant confusion by staff who believe this is the same search) Subtype limit of 'd' Young Adult on Opac is 'Adolescent' on staffside. Only the Adult designation is an accurate match to the search on the staffside.
Created attachment 14907 [details] [review] Bug 7507 - Audience Subtype limit on OPAC Advanced Search does not have all Audiences Very simple template change. Just copied the code from the staff client so that the OPAC advanced search drop-down menu shows the correct options for the audience subtype limit.
Created attachment 15053 [details] [review] [SIGNED-OFF] Bug 7507 - Audience Subtype limit on OPAC Advanced Search does not have all Audiences The OPAC audience subtype limit did not have all the audiences defined by the MARC record (and available in the staff client advanced search). It also incorrectly labelled some of the audiences that it did include. This patch copies the (correct) audiences from the staff client template to the OPAC template. Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> Test plan: * Search before applying by audience * Apply patch * Search by a newly appeared audience * Search by an audience that was there before All tests pass!
QA comment: It seems consistent to have the same values at the OPAC and at the intranet. This patch just adds missing entries in the advanced search form. Marked as Passed QA.
Created attachment 15108 [details] [review] Bug 7507 - Audience Subtype limit on OPAC Advanced Search does not have all Audiences The OPAC audience subtype limit did not have all the audiences defined by the MARC record (and available in the staff client advanced search). It also incorrectly labelled some of the audiences that it did include. This patch copies the (correct) audiences from the staff client template to the OPAC template. Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> Test plan: * Search before applying by audience * Apply patch * Search by a newly appeared audience * Search by an audience that was there before All tests pass! Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Replace tab with 4 spaces.
This patch has been pushed to master.
Pushed to 3.10.x and 3.8.x will be in 3.10.3 and 3.8.10