Skip to content

Commit

Permalink
Update bootstrap5
Browse files Browse the repository at this point in the history
  • Loading branch information
maccabeelevine committed Oct 22, 2024
1 parent 6203cb0 commit 1846426
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<h2>
<?php
$ilsDetails = $driver->getExtraDetail('ils_details');
$id = $this->record($driver)->getUniqueHtmlElementId();
// If this is a non-missing Solr record, we should display a link:
if (is_a($driver, \VuFind\RecordDriver\SolrDefault::class) && !is_a($driver, \VuFind\RecordDriver\Missing::class)) {
$title = $driver->getTitle();
$title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title);
echo '<a href="' . $this->escapeHtmlAttr($this->recordLinker()->getUrl($driver))
. '" class="title">' . $title . '</a>';
. '" class="title" id="' . $id . '">' . $title . '</a>';
} elseif (!empty($ilsDetails['title'])) {
// If the record is not available in Solr, perhaps the ILS driver sent us a title we can show...
echo '<span class="title">' . $this->escapeHtml($ilsDetails['title']) . '</span>';
echo '<span class="title" id="' . $id . '">' . $this->escapeHtml($ilsDetails['title']) . '</span>';
} else {
// Last resort -- indicate that no title could be found.
echo $this->transEsc('Title not available');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="media-body">
<div class="result-body">
<h2>
<a href="<?=$this->escapeHtmlAttr($recordLinker->getUrl($this->driver))?>" class="title getFull" data-view="<?=isset($this->params) ? $this->params->getOptions()->getListViewOption() : 'list' ?>">
<a href="<?=$this->escapeHtmlAttr($recordLinker->getUrl($this->driver))?>" class="title getFull" data-view="<?=isset($this->params) ? $this->params->getOptions()->getListViewOption() : 'list' ?>" id="<?=$this->record($this->driver)->getUniqueHtmlElementId()?>">
<?=$this->record($this->driver)->getTitleHtml()?>
</a>
<?php foreach ($this->driver->tryMethod('getTitlesAltScript', [], []) as $altTitle): ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<div class="resultItemLine1">
<?php if ('Ti' == $item['Group']): ?>
<h2>
<a href="<?=$this->escapeHtmlAttr($recordLinker->getUrl($this->driver))?>" class="title getFull _record_link" data-view="<?=$this->escapeHtmlAttr($this->params->getOptions()->getListViewOption())?>">
<a href="<?=$this->escapeHtmlAttr($recordLinker->getUrl($this->driver))?>" class="title getFull _record_link" data-view="<?=$this->escapeHtmlAttr($this->params->getOptions()->getListViewOption())?>" id="<?=$this->record($this->driver)->getUniqueHtmlElementId()?>">
<?=$item['Data']?> </a>
</h2>
<?php elseif ('Au' == $item['Group'] && strtolower($edsConfig->AuthorDisplay->ResultListFormat ?? 'Short') == 'short'): ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="media-body">
<div class="result-body">
<div>
<a href="<?=$this->escapeHtmlAttr($recordLinker->getUrl($this->driver))?>" class="title getFull" data-view="<?=isset($this->params) ? $this->params->getOptions()->getListViewOption() : 'list' ?>">
<a href="<?=$this->escapeHtmlAttr($recordLinker->getUrl($this->driver))?>" class="title getFull" data-view="<?=isset($this->params) ? $this->params->getOptions()->getListViewOption() : 'list' ?>" id="<?=$this->record($this->driver)->getUniqueHtmlElementId()?>">
<?=$this->record($this->driver)->getTitleHtml()?>
</a>
<?php foreach ($this->driver->tryMethod('getTitlesAltScript', [], []) as $altTitle): ?>
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap5/templates/myresearch/checkedout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
<?php if (isset($ilsDetails['renewable']) && $ilsDetails['renewable'] && isset($ilsDetails['renew_details'])): ?>
<?php $safeId = preg_replace('/[^a-zA-Z0-9]/', '', $ilsDetails['renew_details']); ?>
<label>
<input class="checkbox-select-item" type="checkbox" name="renewSelectedIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['renew_details'])?>" id="checkbox_<?=$safeId?>" aria-label="<?=$this->transEscAttr('select_item_checked_out_renew')?>">
<input class="checkbox-select-item" type="checkbox" name="renewSelectedIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['renew_details'])?>" id="checkbox_<?=$safeId?>" aria-label="<?=$this->escapeHtmlAttr($ilsDetails['title'])?>">
</label>
<input type="hidden" name="selectAllIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['renew_details'])?>">
<input type="hidden" name="renewAllIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['renew_details'])?>">
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap5/templates/record/checkbox.phtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<label class="record-checkbox hidden-print">
<input class="checkbox-select-item" type="checkbox" name="ids[]" value="<?=$this->escapeHtmlAttr($this->id) ?>"<?php if (isset($this->formAttr)): ?> form="<?=$this->formAttr ?>"<?php endif; ?> aria-label="<?=$this->transEscAttr('select_item')?>">
<input class="checkbox-select-item" type="checkbox" name="ids[]" value="<?=$this->escapeHtmlAttr($this->id) ?>"<?php if (isset($this->formAttr)): ?> form="<?=$this->formAttr ?>"<?php endif; ?> aria-labelledby="<?=$this->checkboxElementId?>">
<span class="checkbox-icon"></span>
<?php if (strlen($this->number ?? '') > 0): ?><span class="sr-only"><?=$this->transEsc('result_checkbox_label', ['%%number%%' => $this->number]) ?></span><?php endif; ?>
</label>
Expand Down

0 comments on commit 1846426

Please sign in to comment.