Skip to content

Commit 4a4dfaa

Browse files
committed
adjust and update metadata, begin adding films as collection items
1 parent d74750c commit 4a4dfaa

7 files changed

Lines changed: 3710 additions & 3699 deletions

File tree

_data/config-browse-other.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
field,display_name,btn,hidden,sort_name,facet_name
22
title,Title,,true,,
3-
creator,Creator,,,Creator,Creator
3+
creator,,,true,Creator,Creator
44
film,,,,Film,Film
55
type,,true,,Type,Type

_data/pta-metadata.csv

Lines changed: 3698 additions & 3688 deletions
Large diffs are not rendered by default.

_includes/js/browse-js.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77

88
{% if site.data.theme.browse-child-objects == true %}
99
{% if page.collection == "Screenshots" %}
10-
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid and item.type == "Image;IIIF;Screenshot"' -%}
10+
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid and item.collection == "Screenshots"' -%}
1111
{% elsif page.collection == "Other" %}
12-
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid and item.type != "Image;IIIF;Screenshot"' -%}
12+
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid and item.collection != "Screenshots"' -%}
1313
{% else %}
1414
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid' -%}
1515
{% endif %}
1616
{% else %}
1717
{% if page.collection == "Screenshots" %}
18-
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid and item.parentid == nil and item.type == "Image;IIIF;Screenshot"' -%}
18+
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid and item.parentid == nil and item.collection == "Screenshots"' -%}
1919
{% elsif page.collection == "Other" %}
20-
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid and item.parentid == nil and item.type != "Image;IIIF;Screenshot"' -%}
20+
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid and item.parentid == nil and item.collection != "Screenshots"' -%}
2121
{% else %}
2222
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid and item.parentid == nil' -%}
2323
{% endif %}

_includes/js/timeline-js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// highlight active year row
1010
function highlightYear() {
1111
var hashfilter = "tr#" + decodeURIComponent(location.hash.substr(1));
12-
document.querySelectorAll("table#timeline tr").forEach(row => { row.classList.remove('table-info'); });
13-
if (document.querySelector(hashfilter)) { document.querySelector(hashfilter).classList.add("table-info"); }
12+
document.querySelectorAll("table#timeline tr").forEach(row => { row.classList.remove('table-active'); });
13+
if (document.querySelector(hashfilter)) { document.querySelector(hashfilter).classList.add("table-active"); }
1414
}
1515
// if in initial hash
1616
if (window.location.hash) { highlightYear(); }

_layouts/film.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ <h2 class="display-4 text-center font-{{ page.code | downcase }}">{{ page.title
2121
<div class="essay-page-narrow">
2222
<a class="btn mx-2 mb-2 btn-lg btn-primary" href="{{ '/browse.html' | relative_url }}?b0=AND&f0=film&v0={{ page.title | replace: ' ', '+' }}&b1=AND&f1=type&v1=Screenshot&sort=film">Browse screenshots</a>
2323
<a class="btn mx-2 mb-2 btn-lg btn-primary" href="{{ '/essays.html' | relative_url }}#{{ page.title | slugify }}">See related essays</a>
24+
<a class="btn mx-2 mb-2 btn-lg btn-primary" href="{{ '/items/' | append: page.code | downcase | append: '.html' | relative_url }}">View source record</a>
2425
</div>
2526
</div>
2627
</div>

_layouts/timeline.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737

3838
<h3><a href="#y{{ uniqueYears | first }}">{{ uniqueYears | first }}</a> to <a href="#y{{ uniqueYears | last }}">{{ uniqueYears | last }}</a></h3>
3939

40-
<table id="timeline" class="table table-striped">
40+
<table id="timeline" class="table">
4141
<tbody>
4242
{% for year in uniqueYears %}
4343
<tr id="y{{ year }}">
4444
<th>
45-
<h3>{{ year }}</h3>
45+
<h3 class="text-light">{{ year }}</h3>
4646
</th>
4747
<td>
4848
<div class="row">
@@ -55,7 +55,7 @@ <h3>{{ year }}</h3>
5555
{% else %}
5656
<div class="card">
5757
<div class="card-body text-center">
58-
<div class="h5 text-dark">{{ item.title }}</div>
58+
<div class="h5 text-light">{{ item.title }}</div>
5959
<svg class="bi timeline-thumb text-body" fill="currentColor" aria-hidden="true">
6060
{%- assign icon_template = item.display_template | default: item.format -%}
6161
<use xlink:href="{{ '/assets/lib/cb-icons.svg' | relative_url }}#{% if icon_template contains 'image' %}icon-image{% elsif icon_template contains 'pdf' %}icon-pdf{% elsif icon_template contains 'audio' %}icon-audio{% elsif icon_template contains 'video' %}icon-video{% elsif icon_template contains 'panorama' %}icon-panorama{% elsif icon_template contains 'compound' %}icon-compound-object{% elsif icon_template contains 'multiple' %}icon-multiple{% else %}icon-default{% endif %}"/>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Timeline
33
layout: timeline
44
permalink: /timeline.html
5-
published: false
5+
published: true
66
---
77

88
## Collection Timeline

0 commit comments

Comments
 (0)