Skip to content

Instantly share code, notes, and snippets.

View jeremyboggs's full-sized avatar

Jeremy Boggs jeremyboggs

View GitHub Profile
@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'); ?>
@jeremyboggs
jeremyboggs / wget-single-omeka-classic-exhibit.txt
Created September 17, 2019 12:12 — forked from triplingual/wget-single-omeka-classic-exhibit.txt
wget a single Omeka Classic exhibit not hosted on Omeka.net
# Caveats
# I'm no shell expert
# This is in Bash on a Mac running Mojave
# You may need to read the whole thing before using
#
# Explanation
# (hopefully intelligible to the advanced beginner or low intermediate Bash user)
#
# * Slashes at the line ends tell the shell to consider the next line part of the command
#