Skip to content
Snippets Groups Projects
Commit 22e37ede authored by Dorian Merz's avatar Dorian Merz
Browse files

refs #19547 [fid_bbi] cart design

* fix flashmessages
** use div instead of p
** fixes html rendering problem and clickable close button
* streamline German wording for book bag
* uncomment delete-all button
parent 4561c0ab
No related merge requests found
...@@ -63,13 +63,13 @@ class Flashmessages extends \VuFind\View\Helper\Bootstrap3\Flashmessages ...@@ -63,13 +63,13 @@ class Flashmessages extends \VuFind\View\Helper\Bootstrap3\Flashmessages
); );
foreach (array_unique($messages, SORT_REGULAR) as $msg) { foreach (array_unique($messages, SORT_REGULAR) as $msg) {
$html .= '<p class="' . $this->getClassForNamespace($ns) . '"'; $html .= '<div class="' . $this->getClassForNamespace($ns) . '"';
if (isset($msg['dataset'])) { if (isset($msg['dataset'])) {
foreach ($msg['dataset'] as $attr => $value) { foreach ($msg['dataset'] as $attr => $value) {
$html .= ' data-' . $attr . '="' . htmlspecialchars($value) . '"'; $html .= ' data-' . $attr . '="' . htmlspecialchars($value) . '"';
} }
} }
$html .= '>'; $html .= ' role="alert">';
// BBI-specific // BBI-specific
// Add icon based on namespace // Add icon based on namespace
...@@ -102,7 +102,7 @@ class Flashmessages extends \VuFind\View\Helper\Bootstrap3\Flashmessages ...@@ -102,7 +102,7 @@ class Flashmessages extends \VuFind\View\Helper\Bootstrap3\Flashmessages
$html .= $transEsc($msg); $html .= $transEsc($msg);
} }
$html .= '</p>'; $html .= '</div>';
} }
$this->fm->clearMessages($ns); $this->fm->clearMessages($ns);
......
...@@ -4,6 +4,7 @@ Active Filters = Aktive Filter ...@@ -4,6 +4,7 @@ Active Filters = Aktive Filter
Add filter = Filter hinzufügen Add filter = Filter hinzufügen
add_filter_not = Filter hinzufügen: NICHT %%text%% add_filter_not = Filter hinzufügen: NICHT %%text%%
Add to Book Bag = Zur Merkliste hinzufügen Add to Book Bag = Zur Merkliste hinzufügen
Remove from Book Bag = Aus der Merkliste entfernen
Add to favorites = Zu Favoriten hinzufügen Add to favorites = Zu Favoriten hinzufügen
Back = Zurück Back = Zurück
BBI Blog = BBI-Blog BBI Blog = BBI-Blog
......
...@@ -79,12 +79,6 @@ $this->headTitle($this->translate('Book Bag')); ...@@ -79,12 +79,6 @@ $this->headTitle($this->translate('Book Bag'));
</ul> </ul>
</div> </div>
<?php
// TODO: Empty button commented out; it would lead to a second button
// column, and since the same result can be achieved by clicking
// "Select page" and then "Delete", it is not really needed.
/*
<div class="btn-group"> <div class="btn-group">
<button type="submit" class="button -small dropdown-toggle" name="empty" data-toggle="dropdown" id="cart-empty-label" value="1"> <button type="submit" class="button -small dropdown-toggle" name="empty" data-toggle="dropdown" id="cart-empty-label" value="1">
<!-- TODO: Icon? --> <!-- TODO: Icon? -->
...@@ -108,8 +102,6 @@ $this->headTitle($this->translate('Book Bag')); ...@@ -108,8 +102,6 @@ $this->headTitle($this->translate('Book Bag'));
</li> </li>
</ul> </ul>
</div> </div>
*/
?>
</div> </div>
<?php endif; ?> <?php endif; ?>
......
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