Bug 25238

Summary: Accessibility: Multiple 'H1' headings exist in the full record display
Product: Koha Reporter: Martin Renvoize <martin.renvoize>
Component: OPACAssignee: Martin Renvoize <martin.renvoize>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: aleisha, bolshawh, hayleypelham, lucas, oleonard, testopia, victor
Version: MainKeywords: Academy
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
20.11.00, 20.05.02, 19.11.08, 19.05.14
Bug Depends on:    
Bug Blocks: 25237    
Attachments: Bug 25238: Fix semantic heading for opac-details
Bug 25238: Fix semantic heading for opac-details
Bug 25238: Fix semantic heading for opac-details

Description Martin Renvoize 2020-04-22 06:03:04 UTC
Library Catalogue - OPAC

Multiple level-one headings are present on the book title page. This means that screen reader users may not be able to determine which level-one heading introduces the topic or subject of the page content.

1/ Search for an item
2/ Click through to a records full details disaply

Current Code:
<h1 id="logo">
<a class="brand" href="/cgi-bin/koha/opac-main.pl">
Library name</a>
</h1>

<h1 class="title" property="name">Taxing time for housing </h1>
Comment 1 Martin Renvoize 2020-06-11 11:19:18 UTC
Created attachment 105733 [details] [review]
Bug 25238: Fix semantic heading for opac-details

Prior to this patch the opac-details view contained multiple h1 level
headings.

Test plan
1/ Perform a search in the OPAC that will yield results
2/ Navigate to any results detailed view
3/ Inspect the page and note that two H1 level headings are present
(Page title + Item title)
4/ Apply the patch
5/ Reload the page
6/ Inspect the page and ntoe that the 'Item title' is now a level 2
heading
7/ Note the page still appears nicely
8/ Signoff

Bonus points: Check with XSLT views enabled and disabled, MARC21,
UNIMARC and NORMARC variations.
Comment 2 Owen Leonard 2020-06-11 12:12:15 UTC
Created attachment 105742 [details] [review]
Bug 25238: Fix semantic heading for opac-details

Prior to this patch the opac-details view contained multiple h1 level
headings.

Test plan
1/ Perform a search in the OPAC that will yield results
2/ Navigate to any results detailed view
3/ Inspect the page and note that two H1 level headings are present
(Page title + Item title)
4/ Apply the patch
5/ Reload the page
6/ Inspect the page and ntoe that the 'Item title' is now a level 2
heading
7/ Note the page still appears nicely
8/ Signoff

Bonus points: Check with XSLT views enabled and disabled, MARC21,
UNIMARC and NORMARC variations.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Katrin Fischer 2020-06-21 14:15:29 UTC
I believe there was some discussion about the logo having h1 - was there any conclusion if we should change it?
Comment 4 Katrin Fischer 2020-06-21 14:15:55 UTC
Created attachment 106117 [details] [review]
Bug 25238: Fix semantic heading for opac-details

Prior to this patch the opac-details view contained multiple h1 level
headings.

Test plan
1/ Perform a search in the OPAC that will yield results
2/ Navigate to any results detailed view
3/ Inspect the page and note that two H1 level headings are present
(Page title + Item title)
4/ Apply the patch
5/ Reload the page
6/ Inspect the page and ntoe that the 'Item title' is now a level 2
heading
7/ Note the page still appears nicely
8/ Signoff

Bonus points: Check with XSLT views enabled and disabled, MARC21,
UNIMARC and NORMARC variations.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 5 Martin Renvoize 2020-06-22 07:46:22 UTC
(In reply to Katrin Fischer from comment #3)
> I believe there was some discussion about the logo having h1 - was there any
> conclusion if we should change it?

I think we decided it would be good to change it, but not with this particular set of bugs as it needs more thought going into how we arrange subsequent headings.
Comment 6 Jonathan Druart 2020-06-24 13:32:15 UTC
Pushed to master for 20.11, thanks to everybody involved!
Comment 7 Lucas Gass 2020-07-10 17:09:26 UTC
backported to 20.05.x for 20.05.02
Comment 8 Aleisha Amohia 2020-07-13 02:59:50 UTC
backported to 19.11.x for 19.11.08
Comment 9 Victor Grousset/tuxayo 2020-07-24 00:14:09 UTC
Backported to 19.05.x branch for 19.05.14