Skip to content

Commit

Permalink
Removed unused templates
Browse files Browse the repository at this point in the history
  • Loading branch information
LuomaJuha committed Oct 2, 2024
1 parent 99e17f6 commit b9e543c
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 109 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function deleteBulkAction()
$listID,
$this->url()->fromRoute('reservationlist-deletebulk'),
$this->url()->fromRoute('reservationlist-home'),
'confirm_delete_bulk',
'confirm_delete_brief',
[],
[
'listID' => $listID,
Expand Down
15 changes: 0 additions & 15 deletions themes/finna2/templates/Email/reservation-list.phtml

This file was deleted.

4 changes: 2 additions & 2 deletions themes/finna2/templates/Helpers/reservationlist-reserve.phtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- START of: -->
<!-- START of: helpers/reservationlist-reserve.phtml -->
<?php if (empty($this->lists)) {
return;
} ?>
Expand Down Expand Up @@ -38,4 +38,4 @@ return;
</div>
<?php endif; ?>
</div>
<!-- END of: -->
<!-- END of: helpers/reservationlist-reserve.phtml -->
Original file line number Diff line number Diff line change
Expand Up @@ -89,38 +89,6 @@
<?php endif; ?>
<?php endif; ?>
</div>

<div class="last">
<?php if(!$this->driver->isCollection()) {
if ($snippet = $this->driver->getHighlightedSnippet()) {
if (!empty($snippet['caption'])) {
echo '<strong>' . $this->transEsc($snippet['caption']) . ':</strong> ';
}
if (!empty($snippet['snippet'])) {
echo $this->translate(
'highlight_snippet_html',
['%%snippet%%' => $this->highlight($snippet['snippet'])]
) . '<br>';
}
}
} ?>

<?php
/** @var \Finna\View\Helper\Root\Record */
$recordHelper = $this->record($this->driver);
?>
<?=$recordHelper->renderTemplate('holdings.phtml');?>
<?=$recordHelper->getOnlineUrls('results');?>
<?=$recordHelper->getPreviews();?>
</div>
<div class="myresearch-notes">
<?php
if (!empty($notes)):
$notes = trim(implode('', $notes));
?>
<div class="note-info <?= $notes ? '' : ' hide' ?>"><strong><?=$this->transEsc('Note')?>:</strong></div>
<?php endif; ?>
</div>
</div>
</div>
</div>
Expand Down
38 changes: 0 additions & 38 deletions themes/finna2/templates/myresearch/reservationlist.phtml

This file was deleted.

2 changes: 1 addition & 1 deletion themes/finna2/templates/reservationlist/add-list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<h2><?=$this->transEsc($pageTitle); ?></h2>

<form class="form-edit-list" method="post" name="FinnaResourceList">
<form class="form-edit-list" method="post" name="finnareservationlist">
<input type="hidden" name="recordId" value="<?=$this->escapeHtmlAttr($this->recordId)?>">
<input type="hidden" name="source" value="<?=$this->escapeHtmlAttr($this->source)?>">
<input type="hidden" name="institution" value="<?=$this->escapeHtmlAttr($this->institution)?>">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- START of: finna - myresearch/bulk-action-buttons.phtml -->
<!-- START of: finna - reservationlist/bulk-action-buttons.phtml -->
<?php if (isset($list)): ?>
<input type="hidden" name="listID" value="<?=$this->escapeHtmlAttr($list['id'])?>">
<input type="hidden" name="listName" value="<?=$this->escapeHtmlAttr($list['title'])?>">
Expand Down Expand Up @@ -42,4 +42,4 @@
</ul>
<div class="clearfix"></div>
</div>
<!-- END of: finna - myresearch/bulk-action-buttons.phtml -->
<!-- END of: finna - reservationlist/bulk-action-buttons.phtml -->
18 changes: 0 additions & 18 deletions themes/finna2/templates/reservationlist/delete.phtml

This file was deleted.

0 comments on commit b9e543c

Please sign in to comment.