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

Merge pull request #118 from datavoyager/bootstrap

Fix url / openurlactive initialisation
parents ce036c9c bb47b389
No related merge requests found
<?
/* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
but even if we don't plan to display the link, we still want to get the $openUrl
value for use in generating a COinS (Z3988) tag -- see bottom of file.
*/
$openUrl = $this->driver->getOpenURL();
$openUrlActive = $this->driver->openURLActive('results');
$urls = $this->record($this->driver)->getLinkDetails();
?>
<div class="result <?=$this->driver->supportsAjaxStatus()?' ajaxItem':''?>"> <div class="result <?=$this->driver->supportsAjaxStatus()?' ajaxItem':''?>">
<input type="hidden" value="<?=$this->escapeHtml($this->driver->getUniqueID())?>" class="hiddenId" /> <input type="hidden" value="<?=$this->escapeHtml($this->driver->getUniqueID())?>" class="hiddenId" />
<?=$this->record($this->driver)->getCheckbox() ?></br> <?=$this->record($this->driver)->getCheckbox() ?></br>
...@@ -29,13 +39,6 @@ ...@@ -29,13 +39,6 @@
echo $this->transEsc('Title not available'); echo $this->transEsc('Title not available');
} }
?></a> ?></a>
<? /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
but even if we don't plan to display the link, we still want to get the $openUrl
value for use in generating a COinS (Z3988) tag -- see bottom of file.
*/
$openUrl = $this->driver->getOpenURL();
$openUrlActive = $this->driver->openURLActive('results');
$urls = $this->record($this->driver)->getLinkDetails(); ?>
<? if ($openUrlActive || !empty($urls)): ?> <? if ($openUrlActive || !empty($urls)): ?>
<br/><br/> <br/><br/>
<? if ($openUrlActive): ?> <? if ($openUrlActive): ?>
......
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