From 5a2d79bfa93ac2b33d411febe423544fd79c7e82 Mon Sep 17 00:00:00 2001 From: Maccabee Levine Date: Tue, 2 Apr 2024 18:58:44 +0000 Subject: [PATCH 1/8] VUFIND-1673 Set unique labels for checkboxes --- module/VuFind/src/VuFind/View/Helper/Root/Record.php | 3 ++- themes/bootstrap3/templates/record/checkbox.phtml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/View/Helper/Root/Record.php b/module/VuFind/src/VuFind/View/Helper/Root/Record.php index ca257e87a9c..021a19bf562 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/Record.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/Record.php @@ -421,8 +421,9 @@ public function getCheckbox($idPrefix = '', $formAttr = false, $number = null) { $id = $this->driver->getSourceIdentifier() . '|' . $this->driver->getUniqueId(); + $titleHtml = $this->getTitleHtml(); $context - = ['id' => $id, 'number' => $number, 'prefix' => $idPrefix]; + = ['id' => $id, 'number' => $number, 'prefix' => $idPrefix, 'titleHtml' => $titleHtml]; if ($formAttr) { $context['formAttr'] = $formAttr; } diff --git a/themes/bootstrap3/templates/record/checkbox.phtml b/themes/bootstrap3/templates/record/checkbox.phtml index d1f9e536a37..edfba1b18dc 100644 --- a/themes/bootstrap3/templates/record/checkbox.phtml +++ b/themes/bootstrap3/templates/record/checkbox.phtml @@ -1,5 +1,6 @@ From 0ea1a8bf443234b1d7c2b4e204a52d514a7096f3 Mon Sep 17 00:00:00 2001 From: Maccabee Levine Date: Tue, 2 Apr 2024 19:11:57 +0000 Subject: [PATCH 2/8] Handle checkedout.phtml checkboxes --- themes/bootstrap3/templates/myresearch/checkedout.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/bootstrap3/templates/myresearch/checkedout.phtml b/themes/bootstrap3/templates/myresearch/checkedout.phtml index 7ff627da041..84e7a9ee562 100644 --- a/themes/bootstrap3/templates/myresearch/checkedout.phtml +++ b/themes/bootstrap3/templates/myresearch/checkedout.phtml @@ -98,7 +98,7 @@ From 71ae34fab523a3ddef7583387db047580061ec33 Mon Sep 17 00:00:00 2001 From: Maccabee Levine Date: Tue, 23 Apr 2024 14:57:13 +0000 Subject: [PATCH 3/8] Strip tags on title --- themes/bootstrap3/templates/record/checkbox.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/bootstrap3/templates/record/checkbox.phtml b/themes/bootstrap3/templates/record/checkbox.phtml index edfba1b18dc..d907a04e013 100644 --- a/themes/bootstrap3/templates/record/checkbox.phtml +++ b/themes/bootstrap3/templates/record/checkbox.phtml @@ -1,5 +1,5 @@