Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Commit

Permalink
fixes #345
Browse files Browse the repository at this point in the history
  • Loading branch information
edelm committed Feb 5, 2018
1 parent 1f2271b commit ed96729
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion themes/sbvfrd/templates/RecordTab/holdingsils.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $this->headTitle($this->translate('Holdings') . ': ' . $this->driver->getBreadcr
</div>
</div>
<a data-toggle="collapse" href="#collapse-<?= $groupCode ?>-<?= $institutionCode ?>" aria-expanded="false" aria-controls="collapse-<?= $groupCode ?>-<?= $institutionCode ?>"
id="holding-institution-<?= $groupCode ?>-<?= $institutionCode ?>" class="toggler institutionToggler">
id="holding-institution-<?= $groupCode ?>-<?= $institutionCode ?>" class="toggler institutionToggler" data-isExpandedId="<?= $groupCode ?>-<?= $institutionCode ?>" onclick="window.sessionStorage.setItem('<?= $groupCode ?>-<?= $institutionCode ?>', true)">
<?= $this->escapeHtml($this->zendTranslate($institution['label'], 'institution')) ?>
</a>
</h4>
Expand Down Expand Up @@ -99,6 +99,15 @@ $this->headTitle($this->translate('Holdings') . ': ' . $this->driver->getBreadcr
vufindString.favoriteReload = '<?=$this->transEsc('mylibraries.reload')?>';
</script>

<script type="text/javascript">
$("a.institutionToggler").each(function(){
if (window.sessionStorage.getItem($(this).attr("data-isExpandedId")) == "true") {
$(this).trigger("click");
window.sessionStorage.removeItem($(this).attr("data-isExpandedId"));
}
});
</script>

<? else: ?>

<?= $this->render('RecordTab/holdingils-noholdings') ?>
Expand Down

0 comments on commit ed96729

Please sign in to comment.