Skip to content

Instantly share code, notes, and snippets.

[aron@lips-128-32-191-42 ~/Documents/VirtualMachines/Vagrant-VMs/mark]$ vagrant up
Bringing machine 'cspace' up with 'virtualbox' provider...
==> cspace: Importing base box 'ubuntu/trusty64'...
==> cspace: Matching MAC address for NAT networking...
==> cspace: Checking if box 'ubuntu/trusty64' is up to date...
==> cspace: Setting the name of the VM: mark_cspace_1418265751397_79664
==> cspace: Clearing any previously set forwarded ports...
==> cspace: Clearing any previously set network interfaces...
==> cspace: Preparing network interfaces based on configuration...
@aronr
aronr / vagrantfile-cspace-install.md
Last active August 29, 2015 14:23
Mark's Vagrantfile-based CSpace installation

An almost completely unattended way to create a VirtualBox VM running Ubuntu 14.04.x LTS, and then run the automated CollectionSpace server installer within that VM:

  • Install both VirtualBox (https://www.virtualbox.org/) and Vagrant (https://www.vagrantup.com/).
  • Create a new directory.
  • cd to that new directory.
  • In a web browser, visit https://github.com/mark-cooper/cspace_vagrantbox
  • Download the file named Vagrantfile into that new directory. (E.g. right-click or Ctrl-click the Vagrantfile link and choose "Save Link As..." or equivalent, and choose that new directory as the place to download this file.)
  • From within the directory you created, enter: vagrant up (This will initiate the automated installer and start displaying progress messages; allow at least 30 minutes for installation to complete.
  • If any serious errors occur during installation, you can also retry that process; exit from the VM, then at your host computer's shell prompt, enter vagrant halt, vagrant destroy, and then `
@aronr
aronr / App layer tests in CSPACE-5183 branch
Created May 18, 2012 22:56
CollectionSpace P/NP schema change-related test failures
Failed tests:
testAllUISpecs(org.collectionspace.chain.csp.webui.main.TestUIRecords)
testMisc(org.collectionspace.chain.csp.webui.main.TestUIRecords)
Tests in error:
testAuthoritiesSearchList(org.collectionspace.chain.csp.persistence.services.vocab.TestOrgThroughWebapp)
testAuthoritiesSearch(org.collectionspace.chain.csp.persistence.services.vocab.TestNameThroughWebapp)
Tests run: 65, Failures: 2, Errors: 2, Skipped: 0
@aronr
aronr / gist:2763357
Created May 21, 2012 17:13
person-search template
<div class="fl-container-flex fl-fix information-group info-column">
<div class="fl-container-flex fl-fix content main">
<div class="info-column">
<div class="info-column2-50 fl-force-left">
<div class="info-pair">
<div class="header">
<div class="label csc-person-termDisplayName-label"></div>
</div>
<div class="content clearfix csc-preferredPA-personTermGroup">
<input type="text" class="csc-personAuthority-termDisplayName"/>
@aronr
aronr / gist:2763366
Created May 21, 2012 17:14
person-search uispec
{
".csc-person-foreName-label": {
"messagekey": "preferredPA-foreNameLabel"
},
".csc-person-gender-label": {
"messagekey": "person-genderLabel"
},
".csc-person-group-label": {
"messagekey": "person-groupLabel"
},
@aronr
aronr / gist:2764031
Created May 21, 2012 19:10
person search uischema
{
"person": {
"properties": {
"genders": {
"items": {
"properties": {
"_primary": {
"default": true,
"type": "boolean"
},
@aronr
aronr / gist:3829229
Created October 3, 2012 19:28
Nuxeo DB after running services tests, late in v3.0 (7ee4c2180e9c3e5415bf673ca6a311a6364ebeb4 as of 2012-10-01)
nuxeo=# SELECT schemaname,relname,n_live_tup FROM pg_stat_user_tables ORDER BY n_live_tup DESC;
schemaname | relname | n_live_tup
------------+--------------------------------------------------+------------
public | hierarchy | 462
public | fulltext | 132
public | hierarchy_read_acl | 132
public | misc | 131
public | dublincore | 131
public | ancestors | 130
public | content | 54
diff --git a/services/JaxRsServiceProvider/pom.xml b/services/JaxRsServiceProvider/pom.xml
index b112a0d..a0f7709 100644
--- a/services/JaxRsServiceProvider/pom.xml
+++ b/services/JaxRsServiceProvider/pom.xml
@@ -22,18 +22,15 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
- <scope>provided</scope>
</dependency>
@aronr
aronr / media-import-example.xml
Last active October 13, 2015 21:52
Example of an XML payload for importing a Media record into CollectionSpace.
<?xml version="1.0" encoding="UTF-8"?>
<imports>
<import service="Media" type="Media">
<schema xmlns:media_common="http://collectionspace.org/services/media/" name="media_common">
<media_common:dateGroupList>
<media_common:dateGroup>
<media_common:dateEarliestSingleQualifier/>
<media_common:scalarValuesComputed>true</media_common:scalarValuesComputed>
<media_common:dateLatestYear/>
<media_common:dateLatestDay/>
@aronr
aronr / intake-import-example.xml
Last active October 13, 2015 21:54
Example of an XML payload for importing an Intake record into CollectionSpace. (Note: the value of the intakes_common:valuer field should match the refName of a real Person record, or you can just omit this value from the payload.)
<?xml version="1.0" encoding="UTF-8"?>
<imports>
<import service="Intakes" type="Intake">
<schema name='intakes_common' xmlns:intakes_common='http://collectionspace.org/intake/'>
<intakes_common:conditionCheckReasons/>
<intakes_common:valuationReferenceNumber>valuationReferenceNumberX</intakes_common:valuationReferenceNumber>
<intakes_common:entryReason>entryReasonX</intakes_common:entryReason>
<intakes_common:currentOwner>currentOwnerX</intakes_common:currentOwner>
<intakes_common:depositor>depositorX</intakes_common:depositor>
<intakes_common:valuer>urn:cspace:org.collectionspace.demo:personauthority:id(9505e049-e367-4b51-9425):person:id(f9e46efa-6286-48b3-827d)'David+Bowie'</intakes_common:valuer>