Skip to content

Instantly share code, notes, and snippets.

View drh-stanford's full-sized avatar

Darren Hardy drh-stanford

  • Stanford University
  • California, USA
View GitHub Profile
lane | step | waiting | ready | error | queued | completed
---- | ---- | ------- | ----- | ----- | ------ | ---------
default | start-accession | 11 | 11 | 0 | 0 | 11249
default | descriptive-metadata | 11 | 0 | 52 | 0 | 11198
default | rights-metadata | 13 | 0 | 47 | 0 | 11203
default | content-metadata | 11 | 0 | 33 | 0 | 11216
default | technical-metadata | 46 | 0 | 1301 | 0 | 9916
default | remediate-object | 90 | 0 | 38 | 0 | 4024
default | shelve | 820 | 0 | 58 | 0 | 10383
default | publish | 655 | 0 | 21 | 0 | 10589
lane step waiting ready error queued completed
default start-accession 11 11 0 0 11249
default descriptive-metadata 11 0 52 0 11198
default rights-metadata 13 0 47 0 11203
default content-metadata 11 0 33 0 11216
default technical-metadata 46 0 1301 0 9916
default remediate-object 90 0 38 0 4024
default shelve 820 0 58 0 10383
default publish 655 0 21 0 10589
module BasicGeoMetadata
extend ActiveSupport::Concern
included do
property :georss_box, predicate: ::RDF::URI.new("http://www.georss.org/georss/box"), multiple: false do |index|
index.as :stored_searchable
end
validates_presence_of :georss_box, message: 'Your work must have a bbox.'
<?xml version="1.0"?>
<contentMetadata type="image" objectId="bb216pz1705">
<resource type="image" sequence="1" id="bb216pz1705_1">
<label>Image 1</label>
<file preserve="yes" shelve="no" publish="no" id="00002746_0014.tif" mimetype="image/tiff" size="16361763">
<checksum type="md5">d75f7123e0155b09fc3e22908dec4956</checksum>
<checksum type="sha1">f8c747669e16d6a054688ee90aa5c967075e6068</checksum>
<imageData width="4184" height="1492"/>
</file>
<file id="00002746_0014.jp2" mimetype="image/jp2" size="1175422" preserve="no" publish="yes" shelve="yes">
QUERY: ("Hardy,Darren" or "HARDY,D" or "HARDY,DR")
FILTER: None
RESULTS: ["6984997", "33169567", "26790214", "73102490", "53868012", "24805897", "24787486", "26724262", "29686569", "60977096", "47328876", "39264563", "25106343", "68922582", "71513", "75296119", "73693769", "70809070", "65339133", "63646287", "62331780", "62039222", "59959762", "58225457", "58042580", "56676937", "55576305", "54386280", "54084265", "53008153", "52913078", "49085823", "48647432", "46819051", "31700019", "30943287", "30037135", "29299295", "28557203", "4592921", "3442504", "1690394", "64815121", "63271819", "61501021", "60684728", "29643741", "29504753", "2916724", "75091375", "75083326", "69210847", "68765599", "65373210", "64162533", "60060595", "54516898", "34157693", "33334714", "33188250", "30294830", "27653146", "8278417", "4165192", "63100787", "53213676", "37877509", "33862328", "31071295", "29909620", "23071665", "10065273", "9953574", "6694392", "6229217", "4235067", "4217058", "4045583", "4032083", "729713", "561556",
[drh@macbookpro 15:00 sul-pub (tester*)] % bundle exec rails runner script/tester.rb
QUERY: ("Cheng,Y" or "CHENG,Y") and ("The Pennsylvania State University")
FILTER: First & Last Name
HEAD: ArrayOfPublicationItem
RESULTS: ["54871167", "32810549", "32583635", "30698745"]
NUMBER_OF_PUBLICATIONS: 4
<Title>Survival and death of endoplasmic-reticulum-stressed cells: Role of autophagy.</Title>
<Title>Longitudinal Predictors of Change in Number of Sexual Partners across Adolescence and Early Adulthood</Title>
<Title>Primary sequence and epigenetic determinants of in vivo occupancy of genomic DNA by GATA1</Title>
<Title>Transcriptional enhancement by GATA1-occupied DNA segments is strongly associated with evolutionary constraint on the binding site motif</Title>
#!/usr/bin/env ruby
#
# Usage: upload.rb http://localhost:8080/my-collection file1.xml [file2.json...]
#
require 'rsolr'
require 'nokogiri'
require 'benchmark'
if ARGV.size < 2
puts 'Usage: upload.rb http://localhost:8080/my-collection file1.xml [file2.json...]'
@drh-stanford
drh-stanford / Survey of geospatial repository efforts.md
Created February 16, 2017 20:21
Survey of geospatial repository efforts

Survey of geospatial repository efforts

I sent out a brief survey and have some results to share. Here are the primary questions from the survey:

  1. Do you currently have an institutional repository for non-geospatial content in production?
  2. Are you interested in implementing geospatial data repository?
  3. What are the primary function(s) you want in a geospatial data repository?
  4. What are you primary challenge(s) to implementing a geospatial data repository?

We had several (n=10) people from 9 institutions answer these questions: Colorado School of Mines, Colorado State University, Colorado at Boulder, Cornell, Harvard, Michigan, NYU, Stanford, and UC Santa Barbara.

Title

Using GeoBlacklight for Geospatial Discovery

Organizers

  • Darren Hardy, Stanford University
  • Jack Reed, Stanford University
  • others?

SUL Exhibits Bibliographies

For background, see this GitHub issue -- it has the UX design in there.

User Action/Data Required

  1. The exhibit users are required to manage Zotero bibliography libraries as the database for an exhibit item's bibliography information.
  2. They are also required to manage the "synchronization" between their exhibit and Zotero (via the Exhibit Settings > Bibliography).

Library