Skip to content

Instantly share code, notes, and snippets.

View dgcliff's full-sized avatar

David Cliff dgcliff

  • Northeastern University
  • Indianapolis, IN
View GitHub Profile
{"label":"coverage","message":"90.38%","schemaVersion":1,"color":"hsl(120, 100%, 40%)"}

AuditEvent — Implementation Plan

Summary

AuditEvent is an append-only ActiveRecord model that records who did what, when, where, and why for actions taken against Valkyrie repository resources (Community, Collection, Work). It is intentionally decoupled from the Valkyrie lifecycle — it must survive the deletion or corruption of its correlated object and has no Solr indexing requirement.

It is surfaced via a history action on the resources controller, returning a JSON response via JBuilder.


<?xml version="1.0" encoding="UTF-8"?>
<schema name="Hydra" version="1.5">
<!-- NOTE: various comments and unused configuration possibilities have been purged
from this file. Please refer to http://wiki.apache.org/solr/SchemaXml,
as well as the default schema file included with Solr -->
<uniqueKey>id</uniqueKey>
<fields>
<field name="id" type="string" stored="true" indexed="true" multiValued="false" required="true"/>
11-06 15:17:29.484 i: Resuming HomeActivity.
11-06 15:17:29.551 i: [HomeHubsManager] Discovering. Force: false. Partial: false. Reason: home view model
11-06 15:17:29.562 i: [MergingHubManager] Notifying listeners with status: SUCCESS
11-06 15:17:29.564 i: [Home] Reusing results from previous discovery.
11-06 15:17:29.567 i: [CustomHome] createDiscoveryTask
11-06 15:17:29.567 i: [Home] Starting new discovery task because there are stale content sources.
11-06 15:17:29.582 i: [Home] Discovered 5 hubs.
11-06 15:17:29.584 i: [Home] Finished discovering Home hubs (cancelled: false)
11-06 15:17:29.585 i: [HomeHubsManager] There are new hubs. Total size: 5.
11-06 15:17:29.598 i: [HomeHubsManager] Notifying listeners with status: SUCCESS
<?xml version="1.0" encoding="UTF-8"?>
<rightsMetadata xmlns="http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1" version="0.1">
<copyright>
<human type="title"/>
<human type="description"/>
<machine type="uri"/>
</copyright>
<access type="discover">
<human/>
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-6.xsd">
<mods:titleInfo usage="primary">
<mods:title>Growing uncultured bacteria from the human gut microbiome</mods:title>
<mods:subTitle>potential influence of the hidden majority on host physiology, including mental health</mods:subTitle>
<mods:nonSort/>
</mods:titleInfo>
<mods:name type="personal" authority="local">
<mods:namePart type="given">Philip P.</mods:namePart>
<mods:namePart type="family">Strandwitz</mods:namePart>
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://data.ucd.ie/api/img/manifests/ivrla:7173",
"rendering": {
"@id": "https://digital.ucd.ie/get/ivrla:7173/content",
"format": "application/pdf",
"label": "Download as PDF"
},
"seeAlso": [
{
@dgcliff
dgcliff / demo.xml
Created August 10, 2018 13:51
TEI demo
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title/>
</titleStmt>
<publicationStmt>
<p/>
</publicationStmt>
<sourceDesc>
$.urlParam = function(name){
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
return results[1] || 0;
}
$("#val4_0").val($.urlParam('YourUrlParamaterName'));

Update doc

Cobbled together instructions for OJS upgrade

Clone

I'd initally done a git clone --recursive https://github.com/pkp/ojs nuwriting-new but I think that may be the hitch (speculating) with the NUWriting upgrade failure. AES (upgraded) is slightly older than master.

So, instead do;

git clone --recursive https://github.com/pkp/ojs INSERTDIRNAMEHERE cd INSERTDIRNAMEHERE