Skip to content

Instantly share code, notes, and snippets.

View jeremyboggs's full-sized avatar

Jeremy Boggs jeremyboggs

  • Scholars' Lab, UVa Library
  • Charlottesville, Virginia
View GitHub Profile
@jeremyboggs
jeremyboggs / metadata.html
Created November 4, 2021 17:39
Example HTML with Dublin Core metadata and COinS
<!DOCTYPE html>
<meta charset="utf-8">
<title>Web Page Metadata Example</title>
<!-- Dublin Core -->
<!-- Visit https://www.dublincore.org/specifications/dublin-core/dcmi-terms/ for a list of specific elements -->
<!-- Add a reference to the schema. -->
<link rel="schema.DC" href="https://purl.org/dc/clients/1.1/" />
HTML Workshop
Headings
Level One Heading
Level Two Heading
Level Three
Level Four
Level Five
{
"Cyclosm OSM": [
{
"title": "CyclOSM",
"id": "osm.cycl",
"type": "XYZ",
"properties": {
"urls": [
"https://a.tile-cyclosm.openstreetmap.fr/cyclosm/${z}/${x}/${y}.png",
"https://b.tile-cyclosm.openstreetmap.fr/cyclosm/${z}/${x}/${y}.png",
@jeremyboggs
jeremyboggs / digital-collections.md
Last active September 5, 2023 14:05
Digital Collections

Digital Collections & Archives

Description

Digital archives + collections are a curated set of items pertaining to a specific topic, often described with some form of standardized metadata, that are shared for use with a public user base. These kinds of projects are among the earliest examples of Digital Humanities work, and generally tend to make public otherwise unavailable material, especially in projects focused on marginalized or silenced voices. In addition to gathering historical materials, digital collections can also actively request first-person accounts and materials in response to specific events.

Examples

@jeremyboggs
jeremyboggs / lod-resources.md
Last active September 4, 2021 16:00
Resources for using and sharing Linked Open Data
<?php foreach ($elementsForDisplay as $setName => $setElements): ?>
<div class="element-set">
<?php if ($showElementSetHeadings): ?>
<h2><?php echo html_escape(__($setName)); ?></h2>
<?php endif; ?>
<?php foreach ($setElements as $elementName => $elementInfo): ?>
<div id="<?php echo text_to_id(html_escape("$setName $elementName")); ?>" class="element">
<?php
$label = html_escape(__($elementName));
$item_type_name = metadata('item', 'item_type_name');
@jeremyboggs
jeremyboggs / custom.php
Last active May 12, 2020 15:07
Filtering Element Display in Omeka Classic 2.x. Add these two files your active theme (or update them if they already exist).
<?php
require_once dirname(__FILE__) . '/functions.php';
add_filter(
array('Display', 'Item', 'Dublin Core', 'Title'),
'filter_dc_description'
);
add_filter(
array('Display', 'Item', 'Dublin Core', 'Subject'),
#introduction {
min-height: 15vh;
background-size: contain;
}
@jeremyboggs
jeremyboggs / item-show.php
Created May 4, 2020 16:38
Example snipped for Omeka's items/show.php
<!-- The following returns all of the files associated with an item. -->
<?php if (metadata('item', 'has files')): ?>
<div id="itemfiles" class="element">
<h3><?php echo __('Files'); ?></h3>
<div class="element-text"><?php echo files_for_item(); ?></div>
</div>
<?php endif; ?>
<?php echo all_element_texts('item'); ?>