Skip to content
Snippets Groups Projects
Commit d82c439a authored by Demian Katz's avatar Demian Katz
Browse files

Added "more info" toggle for collections.

parent 3becb817
Branches
Tags
No related merge requests found
......@@ -627,6 +627,7 @@ map_results_label = "At this location:"
medium = "Medium"
mobile_link = "You appear to be on a mobile device; switch to mobile view?"
more = more
more_info_toggle = "Show/hide more info."
navigate_back = "Back"
no_description = "Description not available."
no_items_selected = "No Items were Selected"
......
......@@ -627,6 +627,7 @@ map_results_label = "At this location:"
medium = "Medium"
mobile_link = "You appear to be on a mobile device; switch to mobile view?"
more = more
more_info_toggle = "Show/hide more info."
navigate_back = "Back"
no_description = "Description not available."
no_items_selected = "No Items were Selected"
......
$(document).ready(function() {
showMoreInfoToggle();
});
function showMoreInfoToggle() {
toggleCollectionInfo();
$("#moreInfoToggle").show();
$("#moreInfoToggle").click(function(e) {
e.preventDefault();
toggleCollectionInfo();
});
}
function toggleCollectionInfo() {
$("#collectionInfo").toggle();
}
<? $this->headScript()->appendFile('collection_record.js'); ?>
<? /* Display thumbnail if appropriate: */ ?>
<? $mediumThumb = $this->record($this->driver)->getThumbnail('medium'); $largeThumb = $this->record($this->driver)->getThumbnail('large'); ?>
<? if ($mediumThumb): ?>
......@@ -11,6 +12,7 @@
<? $summ = $this->driver->getSummary(); if (!empty($summ)): ?>
<p><?=$this->escapeHtml($summ[0])?></p>
<? endif; ?>
<a id="moreInfoToggle" href="#" style="display:none"><?=$this->transEsc('more_info_toggle')?></a>
<div id="collectionInfo" class="collectionInfo">
<table cellpadding="2" cellspacing="0" border="0" class="citation" summary="{translate text='Bibliographic Details'}">
<? $authors = $this->driver->getDeduplicatedAuthors(); ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment