Skip to content

Commit

Permalink
Header now includes button to view accessions
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Andrews committed May 30, 2016
1 parent f6c0090 commit e67de2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions themes/robert/faheader.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ function js_highlighttoplink(selectedSpan)
$SubjectsClass = $arrP[0] == 'subjects' ? 'currentBrowseLink' : 'browseLink';
$CreatorsClass = $arrP[0] == 'creators' ? 'currentBrowseLink' : 'browseLink';
$DigitalLibraryClass = $arrP[0] == 'digitallibrary' ? 'currentBrowseLink' : 'browseLink';
$AccessionsClass = $arrP[0] == 'accessions' ? 'currentBrowseLink' : 'browseLink';
?>
<div id="browsebyblock">
<span id="browsebyspan">
Expand All @@ -224,6 +225,9 @@ function js_highlighttoplink(selectedSpan)
<span class="<?php echo($ClassificationsClass); ?>">
<a href="?p=collections/classifications" onclick="js_highlighttoplink(this.parentNode); return true;">Campus Units</a>
</span>
<span class="<?php echo($AccessionsClass); ?>">
<a href="?p=accessions/accessions" onclick="js_highlighttoplink(this.parentNode); return true;">Accessions</a>
</span>

</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion themes/robert/header.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ function js_highlighttoplink(selectedSpan)
$SubjectsClass = $arrP[0] == 'subjects' ? 'currentBrowseLink' : 'browseLink';
$CreatorsClass = $arrP[0] == 'creators' ? 'currentBrowseLink' : 'browseLink';
$DigitalLibraryClass = $arrP[0] == 'digitallibrary' ? 'currentBrowseLink' : 'browseLink';
$AccessionsClass = $arrP[0] == 'accessions' ? 'currentBrowseLink' : 'browseLink';
?>
<div id="browsebyblock">
<span id="browsebyspan">
Expand All @@ -238,6 +239,9 @@ function js_highlighttoplink(selectedSpan)
<span class="<?php echo($ClassificationsClass); ?>">
<a href="?p=collections/classifications" onclick="js_highlighttoplink(this.parentNode); return true;">Campus Units</a>
</span>
<span class="<?php echo($AccessionsClass); ?>">
<a href="?p=accessions/accessions" onclick="js_highlighttoplink(this.parentNode); return true;">Accessions</a>
</span>

</div>
</div>
Expand All @@ -264,4 +268,4 @@ function js_highlighttoplink(selectedSpan)
}
/* ]]> */
</script>
<div id="main">
<div id="main">

0 comments on commit e67de2c

Please sign in to comment.