This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ar hashfilter = location.hash.substr(1).replace("%20"," ").replace("%20"," ").replace("%20"," ").replace("%20"," "); | |
var hashfilterclass = "." + location.hash.substr(1).replace("%20","-").replace("%20","-").replace("%20","-").replace(" ","-").replace(" ","-").replace(" ","-"); | |
if (hashfilter == ''){ | |
$(document).ready(function() | |
{ $("#quicksearch").focus();});} | |
else { | |
$(document).ready(function() { | |
$("#quicksearch").focus(); | |
$("#quicksearch").val(''); | |
$('#quicksearch').val($('#quicksearch').val() + hashfilter); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var filterit = function() { | |
$('#quicksearch').val(''); | |
$(this).addClass('selectfilter'); | |
$('a.vocab').not(this).removeClass('selectfilter'); | |
var filterValue = $(this).attr('data-filter'); | |
var filterClass = $(this).attr('data-filter').replace(" ","-").replace(" ","-"); | |
$('#quicksearch').val($('#quicksearch').val() + filterValue); | |
$('#quicksearch').keyup(); | |
window.location.hash = filterValue; | |
var filterValueclass = "." + filterClass; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> | |
<xsl:output method="text"/> | |
<xsl:output method="html" indent="yes" name="html"/> | |
<xs:element name="//date" type="xs:date"/> | |
<xsl:template match="/"> | |
<xsl:for-each select="//person"> | |
<xsl:variable name="filename" select="concat('people/', lower-case(page))"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->data = array( | |
'cachefile' => $cachefile, | |
'title' => (string)$ohfile->record->title, | |
'accession' => (string)$ohfile->record->accession, | |
'chunks' => (string)$ohfile->record->sync, | |
'time_length' => (string)$ohfile->record->duration, | |
'collection' => (string)$ohfile->record->collection_name, | |
'series' => (string)$ohfile->record->series_name, | |
'fmt' => (string)$ohfile->record->fmt, | |
'media_url' => (string)$ohfile->record->media_url, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function formatIndex() { | |
if (!empty($this->index)) { | |
if (count($this->index->point) == 0) { | |
$this->indexHTML = ''; | |
return; | |
} | |
$indexHTML = "<div id=\"accordionHolder\">\n"; | |
foreach ($this->index->point as $point) { | |
$timePoint = (floor((int)$point->time / 60)) . ':' . str_pad(((int)$point->time % 60), 2, '0', STR_PAD_LEFT); | |
$synopsis = $point->synopsis; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box3"> | |
<p style="margin:0px 0px 0px -10px;"><a href="/digital/lcoh/people/<?php $page = strtolower(str_replace(", ", "_", str_replace(" & ", "and",$cacheFile->interviewee)));$webpage = strstr($page, ' ', true); if (strpos($page,' ') !== false) { | |
echo $webpage;} else {echo $page;}?>.html" class="prev1" title="Go to all interviews">« View All <?php | |
$name = $cacheFile->interviewee; | |
$pieces = explode(",", $name); | |
echo $pieces[1]; | |
echo " "; | |
echo $pieces[0]; ?> interviews</a></p> | |
<div style=" float: right; font-size: 13px; margin-top: -38px;" > | |
<p><a href="mailto:dbecker@uidaho.edu?subject=<?php echo $cacheFile->interviewee; ?>--<?php echo $cacheFile->intnum; ?>">Report a problem with this interview.</a></p></div> |