pane = CGI.param("pane") || "advanced";
loc = ctx.search_ou;
-%]
+ <h2 class="sr-only">[% l('Advanced Search') %]</h2>
<div id="search-wrapper">
<div id="search-box">
<span class="search_catalog_lbl mobile_hide">[% l('Search the Catalog') %]</span>
depart_list = ['blimit', 'bterm', 'bpivot'];
%]
+ <h2 class="sr-only">[% l('Catalog Browse') %]</h2>
<div id="search-wrapper">
[%# XXX TODO Give searchbar.tt2 more smarts so we can just do:
# INCLUDE "opac/parts/searchbar.tt2" %]
WRAPPER "opac/parts/base.tt2";
INCLUDE "opac/parts/topnav.tt2";
ctx.page_title = l("Call Number Browse"); %]
+ <h2 class="sr-only">[% l('Call Number Browse') %]</h2>
[% INCLUDE "opac/parts/searchbar.tt2" %]
<div id="content-wrapper">
<div id="main-content">
table#acct_holds_main_header td.hold_notes:before { content: "[% l('Notes') %]"; }
}
+
+/*
+For text which is visible only to screen readers.
+Borrowed from http://getbootstrap.com/css/#helper-classes-screen-readers
+See also http://webaim.org/techniques/css/invisiblecontent/
+*/
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ border: 0;
+}
WRAPPER "opac/parts/base.tt2";
INCLUDE "opac/parts/topnav.tt2";
ctx.page_title = l("Home") %]
+ <h2 class="sr-only">[% l('Catalog Home') %]</h2>
[% INCLUDE "opac/parts/searchbar.tt2" %]
<div id="content-wrapper">
<div id="main-content-home">
INCLUDE "opac/parts/topnav.tt2";
basic_search = "f";
ctx.page_title = l("Account Login") %]
+ <h2 class="sr-only">[% l('Account Login') %]</h2>
<div class='mobile_hide'>
[% INCLUDE "opac/parts/searchbar.tt2" %]
</div>
<div id="content-wrapper">
<div id="main-content">
+ <h3 class="sr-only">[% l('Account Login Form') %]</h3>
[% INCLUDE "opac/parts/login/form.tt2" %]
<div class="clear-both very-big-height"></div>
</div>
WRAPPER "opac/parts/base.tt2";
INCLUDE "opac/parts/topnav.tt2";
ctx.page_title = l("Record Detail") %]
+ <h2 class="sr-only">[% l('Temporary List') %]</h2>
<div class="mobile_hide">
[% INCLUDE "opac/parts/searchbar.tt2" %]
</div>
[% INCLUDE 'opac/parts/goog_analytics.tt2' %]
</head>
<body[% IF want_dojo; ' class="tundra"'; END %]>
+ <h1 class="sr-only">[% l('Catalog') %]</h1>
+ [%#Each content page needs (at minimum) an <h2> describing the content%]
[% content %]
+ <h2 class="sr-only">[% l('Additional Resources') %]</h2>
[% INCLUDE 'opac/parts/footer.tt2' %]
[% INCLUDE 'opac/parts/js.tt2' %]
[%- IF ENV.OILS_CHILIFRESH_ACCOUNT %]
+<h3 class="sr-only">[% l('Catalog Search') %]</h3>
[% PROCESS "opac/parts/org_selector.tt2" %]
<div id="search-wrapper">
[% UNLESS took_care_of_form -%]
INCLUDE "opac/parts/topnav.tt2";
ctx.page_title = l('Library system password reset request form');
-%]
+<h2 class="sr-only">[% l('Reset Password') %]</h2>
<div class="mobile_hide">
[% INCLUDE "opac/parts/searchbar.tt2" %]
</div>
basic_search = "f";
END;
ctx.page_title = l("Place Hold") %]
+ <h2 class="sr-only">[% l('Hold Placement') %]</h2>
[% INCLUDE "opac/parts/searchbar.tt2" %]
<div id="content-wrapper">
<div id="main-content">
ctx.page_title = l("Record Detail");
IF CGI.param("expand"); basic_search = "f"; END;
-%]
+ <h2 class="sr-only">[% l('Record Details') %]</h2>
[% INCLUDE "opac/parts/searchbar.tt2" %]
<br class="clear-both" />
<div id="content-wrapper" class="content-wrapper-record-page">
%]
+<h2 class="sr-only">[% l('Account Registration') %]</h2>
<div id="content-wrapper">
<div id="main-content-register">
<div class="common-full-pad"></div>
PROCESS "opac/parts/misc_util.tt2";
PROCESS get_library;
-%]
+ <h2 class="sr-only">[% l('Search Results') %]</h2>
<form action="[% ctx.opac_root %]/results" method="get">
[% INCLUDE "opac/parts/searchbar.tt2" took_care_of_form=1 %]
<div class="almost-content-wrapper">
WRAPPER "opac/parts/base.tt2";
INCLUDE "opac/parts/topnav.tt2";
ctx.page_title = l("Send Call Number via Text/SMS") %]
+ <h2 class="sr-only">[% l('Send Call Number via Text/SMS') %]</h2>
<div class="mobile_hide">
[% INCLUDE "opac/parts/searchbar.tt2" %]
</div>
WRAPPER "opac/parts/base.tt2";
INCLUDE "opac/parts/topnav.tt2";
ctx.page_title = l("Temporary List Warning") %]
+ <h2 class="sr-only">[% l('Temporary List Warning') %]</h2>
[% INCLUDE "opac/parts/searchbar.tt2" %]
<div id="content-wrapper">
<div id="main-content">