Skip to content

Instantly share code, notes, and snippets.

View richard-srnsw's full-sized avatar

Retiring account: goto richardlehane richard-srnsw

View GitHub Profile
@richard-srnsw
richard-srnsw / MODS_changes.js
Created May 27, 2011 00:51
Proposed changes to MODS import
if(mods.m::location.m::shelfLocator.length()) {
// change behaviour
newItem.archiveLocation = mods.m::location.m::shelfLocator.text().toString();
newItem.archive = mods.m::location.m::physicalLocation.text().toString();
} else {
// leave as is
newItem.archiveLocation = mods.m::location.m::physicalLocation.text().toString();
}