From 2c70ef8cdcfcb2cf838f195b1ad4708a39d2bf23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Raddaoui=20Mar=C3=ADn?= Date: Tue, 25 Aug 2015 20:27:36 +0200 Subject: [PATCH] Add missing alt tags, refs #8855 --- .../modules/actor/templates/browseSuccess.php | 2 +- .../contactinformation/templates/_edit.php | 3 +-- .../templates/_sortableTableHeader.php | 4 +-- .../digitalobject/templates/_imageflow.php | 2 +- .../digitalobject/templates/_showAudio.php | 6 ++--- .../digitalobject/templates/_showCompound.php | 4 +-- .../digitalobject/templates/_showDownload.php | 10 +++---- .../templates/_showGenericIcon.php | 4 +-- .../digitalobject/templates/_showImage.php | 12 ++++----- .../digitalobject/templates/_showText.php | 4 +-- .../digitalobject/templates/_showVideo.php | 14 +++++----- .../digitalobject/templates/browseSuccess.php | 26 +++++++++---------- .../function/templates/browseSuccess.php | 2 +- .../informationobject/templates/_event.php | 2 +- .../templates/browseSuccess.php | 2 +- .../templates/editPhysicalObjectsSuccess.php | 3 +-- .../templates/itemListSuccess.php | 2 +- .../modules/menu/templates/_userMenu.php | 2 +- .../modules/menu/templates/listSuccess.php | 4 +-- .../templates/browseSuccess.php | 8 +++--- .../repository/templates/_browseCardView.php | 4 ++- .../repository/templates/_browseTableView.php | 14 +++++----- .../repository/templates/_holdings.php | 2 +- .../modules/repository/templates/_logo.php | 4 ++- .../repository/templates/browseSuccess.php | 2 +- .../search/templates/_searchResult.php | 6 +++-- .../search/templates/autocompleteSuccess.php | 10 +++---- .../templates/descriptionUpdatesSuccess.php | 2 +- .../settings/templates/languageSuccess.php | 2 +- .../taxonomy/templates/browseSuccess.php | 2 +- .../taxonomy/templates/indexSuccess.php | 2 +- .../term/templates/browseTermSuccess.php | 2 +- .../modules/term/templates/indexSuccess.php | 3 ++- .../user/templates/readOnlySuccess.php | 2 +- apps/qubit/templates/_header.php | 2 +- config/error/error.html.php | 2 +- config/unavailable.php | 2 +- js/multiDelete.js | 3 --- .../modules/search/templates/_box.php | 2 +- .../staticpage/templates/homeSuccess.php | 2 +- .../templates/_header.php | 6 ++--- .../accession/templates/_relatedDonor.php | 2 +- .../sfIsaarPlugin/templates/_event.php | 3 +-- .../templates/_relatedAuthorityRecord.php | 3 +-- .../templates/_relatedAuthorityRecord.php | 3 +-- .../templates/_relatedFunction.php | 3 +-- .../templates/_relatedResource.php | 3 +-- .../sfIsdiahPlugin/templates/indexSuccess.php | 2 +- 48 files changed, 104 insertions(+), 107 deletions(-) diff --git a/apps/qubit/modules/actor/templates/browseSuccess.php b/apps/qubit/modules/actor/templates/browseSuccess.php index 9a62dc8f00..d6b3a1bd02 100644 --- a/apps/qubit/modules/actor/templates/browseSuccess.php +++ b/apps/qubit/modules/actor/templates/browseSuccess.php @@ -3,7 +3,7 @@
- + '')) ?>

$pager->getNbResults())) ?>

diff --git a/apps/qubit/modules/contactinformation/templates/_edit.php b/apps/qubit/modules/contactinformation/templates/_edit.php index 7b00bde435..ed8737363b 100644 --- a/apps/qubit/modules/contactinformation/templates/_edit.php +++ b/apps/qubit/modules/contactinformation/templates/_edit.php @@ -19,7 +19,6 @@ - 'top', 'class' => 'deleteIcon')) ?> @@ -40,7 +39,7 @@ ' . image_tag('pencil', array('alt' => 'edit', 'style' => 'align: top')) . ''; +$editHtml = '' . image_tag('pencil', array('alt' => __('Edit'), 'style' => 'align: top')) . ''; $rowTemplate = json_encode(<< diff --git a/apps/qubit/modules/default/templates/_sortableTableHeader.php b/apps/qubit/modules/default/templates/_sortableTableHeader.php index fb665bdccd..8a4d649f54 100644 --- a/apps/qubit/modules/default/templates/_sortableTableHeader.php +++ b/apps/qubit/modules/default/templates/_sortableTableHeader.php @@ -19,9 +19,9 @@ array('title' => __('Sort'), 'class' => 'sortable')) ?> sort): ?> - + __('Sort ascending'))) ?> sort): ?> - + __('Sort descending'))) ?> \ No newline at end of file diff --git a/apps/qubit/modules/digitalobject/templates/_imageflow.php b/apps/qubit/modules/digitalobject/templates/_imageflow.php index 9bc8c0a245..026bc80f16 100644 --- a/apps/qubit/modules/digitalobject/templates/_imageflow.php +++ b/apps/qubit/modules/digitalobject/templates/_imageflow.php @@ -4,7 +4,7 @@
- getFullPath(), array('longdesc' => url_for(array($item->parent->informationObject, 'module' => 'informationobject')), 'alt' => esc_entities(render_title(truncate_text($item->parent->informationObject, 28))))) ?> + getFullPath(), array('longdesc' => url_for(array($item->parent->informationObject, 'module' => 'informationobject')), 'alt' => esc_entities(render_title(truncate_text($item->parent->informationObject, 100))))) ?>
diff --git a/apps/qubit/modules/digitalobject/templates/_showAudio.php b/apps/qubit/modules/digitalobject/templates/_showAudio.php index f9b2426ba5..52c1642e72 100644 --- a/apps/qubit/modules/digitalobject/templates/_showAudio.php +++ b/apps/qubit/modules/digitalobject/templates/_showAudio.php @@ -6,7 +6,7 @@
- getFullPath(), array('style' => 'border: #999 1px solid')) ?> + getFullPath(), array('style' => 'border: #999 1px solid', 'alt' => '')) ?>
@@ -18,14 +18,14 @@ - + __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link) ?>
- + __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link) ?>
diff --git a/apps/qubit/modules/digitalobject/templates/_showCompound.php b/apps/qubit/modules/digitalobject/templates/_showCompound.php index 3df906450a..0376fbac52 100644 --- a/apps/qubit/modules/digitalobject/templates/_showCompound.php +++ b/apps/qubit/modules/digitalobject/templates/_showCompound.php @@ -4,11 +4,11 @@ getCompoundRepresentation()): ?> - mediaType->id, image_tag($representation->getFullPath()), public_path($leftObject->getFullPath(), array('title' => __('View full size')))) ?> + mediaType->id, image_tag($representation->getFullPath(), array('alt' => '')), public_path($leftObject->getFullPath(), array('title' => __('View full size')))) ?> getCompoundRepresentation()): ?> - mediaType->id, image_tag($representation->getFullPath()), public_path($rightObject->getFullPath(), array('title' => __('View full size')))) ?> + mediaType->id, image_tag($representation->getFullPath(), array('alt' => '')), public_path($rightObject->getFullPath(), array('title' => __('View full size')))) ?> diff --git a/apps/qubit/modules/digitalobject/templates/_showDownload.php b/apps/qubit/modules/digitalobject/templates/_showDownload.php index 0343bb4002..08fd485b5e 100644 --- a/apps/qubit/modules/digitalobject/templates/_showDownload.php +++ b/apps/qubit/modules/digitalobject/templates/_showDownload.php @@ -3,25 +3,25 @@ - getFullPath()), $link) ?> + getFullPath(), array('alt' => __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link) ?> - getFullPath()) ?> + getFullPath(), array('alt' => '')) ?> - getFullPath()), $link) ?> + getFullPath(), array('alt' => __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link) ?>
- getFullPath()), $link) ?> + getFullPath(), array('alt' => __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link) ?> - getFullPath()) ?> + getFullPath(), array('alt' => '')) ?> name, 15) ?> diff --git a/apps/qubit/modules/digitalobject/templates/_showGenericIcon.php b/apps/qubit/modules/digitalobject/templates/_showGenericIcon.php index c10ab1dd86..2159280d96 100644 --- a/apps/qubit/modules/digitalobject/templates/_showGenericIcon.php +++ b/apps/qubit/modules/digitalobject/templates/_showGenericIcon.php @@ -4,9 +4,9 @@
- getFullPath()), $link, array('target' => '_blank')) ?> + getFullPath(), array('alt' => __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link, array('target' => '_blank')) ?> - getFullPath()) ?> + getFullPath(), array('alt' => '')) ?>
diff --git a/apps/qubit/modules/digitalobject/templates/_showImage.php b/apps/qubit/modules/digitalobject/templates/_showImage.php index a541914a5a..fa0c37ec24 100644 --- a/apps/qubit/modules/digitalobject/templates/_showImage.php +++ b/apps/qubit/modules/digitalobject/templates/_showImage.php @@ -3,9 +3,9 @@ - getFullPath()), $link, array('target' => '_blank')) ?> + getFullPath(), array('alt' => __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link, array('target' => '_blank')) ?> - getFullPath()) ?> + getFullPath(), array('alt' => '')) ?> @@ -13,9 +13,9 @@ - getFullPath()), $link) ?> + getFullPath(), array('alt' => __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link) ?> - getFullPath()) ?> + getFullPath(), array('alt' => '')) ?> @@ -24,9 +24,9 @@
- getFullPath()), $link) ?> + getFullPath(), array('alt' => __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link) ?> - getFullPath()) ?> + getFullPath(), array('alt' => '')) ?>
diff --git a/apps/qubit/modules/digitalobject/templates/_showText.php b/apps/qubit/modules/digitalobject/templates/_showText.php index dc85fc0930..e055ffd5e4 100644 --- a/apps/qubit/modules/digitalobject/templates/_showText.php +++ b/apps/qubit/modules/digitalobject/templates/_showText.php @@ -1,5 +1,5 @@ - getFullPath()), $link) ?> + getFullPath(), array('alt' => __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link) ?> - getFullPath()) ?> + getFullPath(), array('alt' => '')) ?> diff --git a/apps/qubit/modules/digitalobject/templates/_showVideo.php b/apps/qubit/modules/digitalobject/templates/_showVideo.php index d809c510e3..6cc5df49d3 100644 --- a/apps/qubit/modules/digitalobject/templates/_showVideo.php +++ b/apps/qubit/modules/digitalobject/templates/_showVideo.php @@ -3,9 +3,9 @@ - getFullPath()) ?> + getFullPath(), array('alt' => '')) ?> - getFullPath()), $link) ?> + getFullPath(), array('alt' => __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link) ?> @@ -14,7 +14,7 @@
- getFullPath(), array('style' => 'border: #999 1px solid')) ?> + getFullPath(), array('style' => 'border: #999 1px solid', 'alt' => '')) ?>
@@ -28,9 +28,9 @@ - getFullPath()), $link) ?> + getFullPath(), array('alt' => __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link) ?> - getFullPath()); ?> + getFullPath(), array('alt' => '')) ?> @@ -38,9 +38,9 @@
- getFullPath()), $link) ?> + getFullPath(), array('alt' => __('Open original %1%', array('%1%' => sfConfig::get('app_ui_label_digitalobject'))))), $link) ?> - getFullPath()) ?> + getFullPath(), array('alt' => '')) ?>
diff --git a/apps/qubit/modules/digitalobject/templates/browseSuccess.php b/apps/qubit/modules/digitalobject/templates/browseSuccess.php index 7535c72aff..215fbe0407 100644 --- a/apps/qubit/modules/digitalobject/templates/browseSuccess.php +++ b/apps/qubit/modules/digitalobject/templates/browseSuccess.php @@ -1,10 +1,12 @@ + +
- + '')) ?>

$pager->getNbResults())) ?>

@@ -55,21 +57,19 @@ getData() ?>
- - getId()), 'readThumbnail') && - QubitGrantedRight::checkPremis($hit->getId(), 'readThumb')): ?> - - 'informationobject', 'slug' => $doc['slug'])) ?> - - 'informationobject', 'slug' => $doc['slug'])) ?> - + getId()), 'readThumbnail') + && QubitGrantedRight::checkPremis($hit->getId(), 'readThumb')): ?> + __('Go to %1%', array('%1%' => esc_entities(render_title(truncate_text(get_search_i18n($doc, 'title', array('allowEmpty' => false)), 100))))))), + array('module' => 'informationobject', 'slug' => $doc['slug'])) ?> - 'informationobject', 'slug' => $doc['slug'])) ?> + __('Go to %1%', array('%1%' => esc_entities(render_title(truncate_text(get_search_i18n($doc, 'title', array('allowEmpty' => false)), 100))))))), + array('module' => 'informationobject', 'slug' => $doc['slug'])) ?>
-

+

false))) ?>

- + '')) ?>

$pager->getNbResults())) ?>

diff --git a/apps/qubit/modules/informationobject/templates/_event.php b/apps/qubit/modules/informationobject/templates/_event.php index b2436fbd95..989ca341d3 100644 --- a/apps/qubit/modules/informationobject/templates/_event.php +++ b/apps/qubit/modules/informationobject/templates/_event.php @@ -8,7 +8,7 @@ use_helper('Javascript'); // Template for new display table rows -$editHtml = image_tag('pencil', array('alt' => 'edit', 'style' => 'align: top')); +$editHtml = image_tag('pencil', array('alt' => __('Edit'), 'style' => 'align: top')); $rowTemplate = json_encode(<< diff --git a/apps/qubit/modules/informationobject/templates/browseSuccess.php b/apps/qubit/modules/informationobject/templates/browseSuccess.php index 3d4564ed8d..75491208fd 100644 --- a/apps/qubit/modules/informationobject/templates/browseSuccess.php +++ b/apps/qubit/modules/informationobject/templates/browseSuccess.php @@ -3,7 +3,7 @@
- + '')) ?>

$pager->getNbResults())) ?>

diff --git a/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php b/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php index aad7d28a56..4f364bd9e2 100644 --- a/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php +++ b/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php @@ -24,7 +24,6 @@ - 'top', 'class' => 'deleteIcon')) ?> @@ -33,7 +32,7 @@
subject->getLabel() ?>
- 'top')), array($item->subject, 'module' => 'physicalobject', 'action' => 'edit')) ?> + 'align: top', 'alt' => __('Edit')), array($item->subject, 'module' => 'physicalobject', 'action' => 'edit')) ?>
diff --git a/apps/qubit/modules/informationobject/templates/itemListSuccess.php b/apps/qubit/modules/informationobject/templates/itemListSuccess.php index 3b6d328b39..a15c06ec8e 100644 --- a/apps/qubit/modules/informationobject/templates/itemListSuccess.php +++ b/apps/qubit/modules/informationobject/templates/itemListSuccess.php @@ -40,7 +40,7 @@ getDigitalObject()) && (null != $do->thumbnail)): ?> - thumbnail->getFullPath()) ?> + thumbnail->getFullPath(), array('alt' => '')) ?> diff --git a/apps/qubit/modules/menu/templates/_userMenu.php b/apps/qubit/modules/menu/templates/_userMenu.php index 01bd6000dd..06cfa05d8e 100644 --- a/apps/qubit/modules/menu/templates/_userMenu.php +++ b/apps/qubit/modules/menu/templates/_userMenu.php @@ -51,7 +51,7 @@
-   + '')) ?> 

$sf_user->user->username)) ?>

diff --git a/apps/qubit/modules/menu/templates/listSuccess.php b/apps/qubit/modules/menu/templates/listSuccess.php index ea8efd727f..f18cbcaf58 100644 --- a/apps/qubit/modules/menu/templates/listSuccess.php +++ b/apps/qubit/modules/menu/templates/listSuccess.php @@ -28,13 +28,13 @@ __('Move up'))), array('module' => 'menu', 'action' => 'list', 'move' => $item['id'], 'before' => $item['prev']), array('title' => __('Move item up in list'))) ?> - '5', 'width' => '13')) ?> +    __('Move down'))), array('module' => 'menu', 'action' => 'list', 'move' => $item['id'], 'after' => $item['next']), array('title' => __('Move item down in list'))) ?> - '5', 'width'=>'13')) ?> +    diff --git a/apps/qubit/modules/physicalobject/templates/browseSuccess.php b/apps/qubit/modules/physicalobject/templates/browseSuccess.php index 92734f389e..df5fa5eb38 100644 --- a/apps/qubit/modules/physicalobject/templates/browseSuccess.php +++ b/apps/qubit/modules/physicalobject/templates/browseSuccess.php @@ -23,16 +23,16 @@ ('nameUp' == $sf_request->sort) ? 'nameDown' : 'nameUp') + $sf_data->getRaw('sf_request')->getParameterHolder()->getAll(), array('title' => __('Sort'), 'class' => 'sortable')) ?> sort): ?> - + __('Sort ascending'))) ?> sort): ?> - + __('Sort descending'))) ?> ('locationUp' == $sf_request->sort) ? 'locationDown' : 'locationUp') + $sf_data->getRaw('sf_request')->getParameterHolder()->getAll(), array('title' => __('Sort'), 'class' => 'sortable')) ?> sort): ?> - + __('Sort ascending'))) ?> sort): ?> - + __('Sort descending'))) ?> diff --git a/apps/qubit/modules/repository/templates/_browseCardView.php b/apps/qubit/modules/repository/templates/_browseCardView.php index 0b50ead02a..b955f7a4e0 100644 --- a/apps/qubit/modules/repository/templates/_browseCardView.php +++ b/apps/qubit/modules/repository/templates/_browseCardView.php @@ -1,3 +1,5 @@ + +
getResults() as $hit): ?> @@ -12,7 +14,7 @@
- + __('Go to %1%', array('%1%' => esc_entities(render_title(truncate_text(get_search_i18n($doc, 'authorizedFormOfName', array('allowEmpty' => false, 'culture' => $selectedCulture)), 100))))))) ?>

diff --git a/apps/qubit/modules/repository/templates/_browseTableView.php b/apps/qubit/modules/repository/templates/_browseTableView.php index 5479e65277..6a5f404a65 100644 --- a/apps/qubit/modules/repository/templates/_browseTableView.php +++ b/apps/qubit/modules/repository/templates/_browseTableView.php @@ -7,9 +7,9 @@ array('title' => __('Sort'), 'class' => 'sortable')) ?> sort): ?> - + __('Sort ascending'))) ?> sort): ?> - + __('Sort descending'))) ?> @@ -19,9 +19,9 @@ array('title' => __('Sort'), 'class' => 'sortable')) ?> sort): ?> - + __('Sort ascending'))) ?> sort): ?> - + __('Sort descending'))) ?> @@ -31,9 +31,9 @@ array('title' => __('Sort'), 'class' => 'sortable')) ?> sort): ?> - + __('Sort ascending'))) ?> sort): ?> - + __('Sort descending'))) ?> @@ -48,7 +48,7 @@ - '10%', 'width' => '10%')) ?> + '10%', 'width' => '10%', 'alt' => '')) ?> false, diff --git a/apps/qubit/modules/repository/templates/_holdings.php b/apps/qubit/modules/repository/templates/_holdings.php index bb60159be6..e0d3053dd9 100644 --- a/apps/qubit/modules/repository/templates/_holdings.php +++ b/apps/qubit/modules/repository/templates/_holdings.php @@ -4,7 +4,7 @@

- 'hidden', 'id' => 'spinner')) ?> + 'hidden', 'id' => 'spinner', 'alt' => __('Loading ...'))) ?>