Skip to content
Snippets Groups Projects
Commit 47a25b9d authored by Alexander Purr's avatar Alexander Purr Committed by Dorian Merz
Browse files

refs #18441 [finc: VF5.1] landmarks

* give landmarks translated titles
* moves skip links and intro text inside header
* removes 'Toolbar' title from toolbar.phtml (already in h2 above)

co-authored by: "Claas Kazzer <kazzer@uni-leipzig.de>"
parent d984616a
No related merge requests found
......@@ -2050,3 +2050,6 @@ select_item = "Titel auswählen"
Email = "Mailen"
Print = "Drucken"
bookbag_email_selected = "Links zu ausgewählten Medien per E-Mail versenden"
; #18441
Skip_navigation_links = "Sprunglinks zur Suche und zum Inhalt"
......@@ -2131,4 +2131,7 @@ form-button-submit = "Submit the completed form"
offcanvas-toggler-search-tips = "Show search help"
; #18019 remove if using VuFind 7.0
select_item = "Select item"
\ No newline at end of file
select_item = "Select item"
; #18441
Skip_navigation_links = "Skip navigation links"
......@@ -1540,7 +1540,7 @@ header,
.search.container {
padding-right: 0;
// Make wider to fit searchbox and right-hand nav-elements in
// Make wider to fit searchbox and right-hand nav-elements
@media (min-width: $screen-sm-min) {
flex: 0 1 auto;
padding-top: $button-top-padding;
......@@ -1550,14 +1550,26 @@ header,
// Float "Find" button next to searchbox on XS and SM
@media (max-width: $screen-sm-max) {
padding-left: 0;
}
@media only screen and (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
flex: content;
}
.searchForm_lookfor {
@media (max-width: $screen-xs-max) {
//max-width: 80%;
}
}
.searchForm {
.searchForm {
@media only screen and (max-width: $screen-sm-max) {
display: flex;
input {
flex-grow: 2;
flex-shrink: 2;
max-width: 43%;
// max-width: 43%;
}
.navbar {
......@@ -1571,23 +1583,8 @@ header,
top: 40px;
}
}
}
@media only screen and (max-width: $screen-xs-max) {
.searchForm_lookfor {
max-width: 80%;
}
}
@media only screen and (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
flex: content;
.btn,
.form-control {
float: left;
}
.searchForm {
@media only screen and (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
display: block;
.checkbox {
......@@ -1595,6 +1592,13 @@ header,
}
}
}
.btn,
.form-control {
@media only screen and (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
float: left;
}
}
}
//// this will get search box and buttons in line
......
......@@ -153,28 +153,30 @@ if (!isset($this->layout()->searchbox)) {
$this->layout()->searchbox = $this->render('search/searchbox.phtml');
}
?>
<?php if (isset($this->layout()->srmessage)): // message for benefit of screen-reader users ?>
<span class="sr-only" role="heading" aria-level="1"><?=$this->layout()->srmessage?></span>
<?php endif; ?>
<?php /* Add landmark role to avoid 'all content must be inside landmarks error', CK */ ?>
<div role="navigation" aria-label="Skip_navigation_links">
<?php /* Show skip to search link only when page is not "advanced" search, CK */ ?>
<?php if (strtolower($this->layout()->templateName) !== 'advanced'): ?>
<a class="sr-only" href="#searchForm_lookfor"><?=$this->transEsc('Skip to search')?></a>
<?php /* Move skip links inside header landmark;
Start header here, not above, custom finc, CK */ ?>
<header class="hidden-print">
<?php if (isset($this->layout()->srmessage)): // message for benefit of screen-reader users ?>
<span class="sr-only" role="heading" aria-level="1"><?=$this->layout()->srmessage?></span>
<?php endif; ?>
<a class="sr-only" href="#content"><?=$this->transEsc('Skip to content')?></a>
<?php if (substr_count(strtolower($this->layout()->templateName), 'results') > 0): ?>
<?php if (strcmp($this->layout()->userLang, 'de') == 0): ?>
<a class="sr-only hidden-xs" href="#myresearch-sidebar"><?=$this->transEsc(isset($this->overrideSideFacetCaption) ? $this->overrideSideFacetCaption : 'Narrow Search')?></a>
<?php else: ?>
<a class="sr-only hidden-xs" href="#myresearch-sidebar"><?=$this->transEsc('skip-to')?><?=strtolower($this->transEsc(isset($this->overrideSideFacetCaption) ? $this->overrideSideFacetCaption : 'Narrow Search'))?></a>
<?php /* Add landmark role to avoid 'all content must be inside landmarks error', CK */ ?>
<div role="navigation" aria-label="<?=$this->transEsc('Skip_navigation_links')?>">
<?php /* Show skip to search link only when page is not "advanced" search, CK */ ?>
<?php if (strtolower($this->layout()->templateName) !== 'advanced'): ?>
<a class="sr-only" href="#searchForm_lookfor"><?=$this->transEsc('Skip to search')?></a>
<?php endif; ?>
<?php endif; ?>
</div>
<?php /* Start header here, not above, custom finc, CK */ ?>
<header class="hidden-print">
<a class="sr-only" href="#content"><?=$this->transEsc('Skip to content')?></a>
<?php if (substr_count(strtolower($this->layout()->templateName), 'results') > 0): ?>
<?php if (strcmp($this->layout()->userLang, 'de') == 0): ?>
<a class="sr-only hidden-xs" href="#myresearch-sidebar"><?=$this->transEsc(isset($this->overrideSideFacetCaption) ? $this->overrideSideFacetCaption : 'Narrow Search')?></a>
<?php else: ?>
<a class="sr-only hidden-xs" href="#myresearch-sidebar"><?=$this->transEsc('skip-to')?><?=strtolower($this->transEsc(isset($this->overrideSideFacetCaption) ? $this->overrideSideFacetCaption : 'Narrow Search'))?></a>
<?php endif; ?>
<?php endif; ?>
</div>
<?=$this->render('header.phtml')?>
</header>
<nav class="breadcrumbs" aria-label="<?=$this->transEsc('Breadcrumbs')?>">
......
......@@ -60,7 +60,7 @@ $hiddenFilterParams = $this->searchTabs()->getCurrentHiddenFilterParams($this->s
<?php endif; ?>
<button type="submit" class="btn btn-primary"><i class="fa fa-search" aria-hidden="true"></i> <span class="find-label sr-only"><?=$this->transEsc("Find")?></span></button>
<?php if ($advSearch): ?>
<a href="<?=$this->url($advSearch) . ((isset($this->searchId) && $this->searchId) ? '?edit=' . $this->escapeHtmlAttr($this->searchId) : $hiddenFilterParams)?>" class="btn btn-transparent" role="button" rel="nofollow"><i class="fa fa-cog"></i> <span class="hidden-xs hidden-sm hidden-md"><?=$this->transEsc("Advanced")?></span></a>
<a href="<?=$this->url($advSearch) . ((isset($this->searchId) && $this->searchId) ? '?edit=' . $this->escapeHtmlAttr($this->searchId) : $hiddenFilterParams)?>" class="btn btn-transparent" role="button" rel="nofollow" aria-label="<?=$this->transEsc("Advanced")?>"><i class="fa fa-cog"></i> <span class="hidden-xs hidden-sm hidden-md"><?=$this->transEsc("Advanced")?></span></a>
<?php endif; ?>
<?php if ($geoUrl = $this->geocoords()->getSearchUrl($options)) : ?>
<a href="<?=$geoUrl?>" class="btn btn-link"><?=$this->transEsc('Geographic Search')?></a>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment