Permalink
Browse files

Added in a local curation config for people harvests

  • Loading branch information...
1 parent 1bea464 commit 2997d447d9ce32a1a5007a969b09a79e88a71ec8 Duncan Dickinson committed Sep 25, 2012
Showing with 58 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +56 −0 src/main/config/home/harvest/Parties_People_Multi.json
View
@@ -1 +1,3 @@
target/
+.settings/
+.project
@@ -0,0 +1,56 @@
+{
+ "harvester": {
+ "type": "csv",
+ "csv": {
+ "fileLocation": "${fascinator.home}/data/People_Sample_Multi.csv",
+ "idColumn": "ID",
+ "recordIDPrefix": "redbox-mint.googlecode.com/parties/people/",
+ "headerRow": true,
+ "delimiter": ",",
+ "ignoredFields": [],
+ "includedFields" : ["ID", "Given_Name", "Other_Names", "Family_Name", "Pref_Name", "Honorific", "Email", "Job_Title", "Groups", "ANZSRC_FOR", "URI", "NLA_Party_Identifier", "ResearcherID", "openID", "Personal_URI", "Personal_Homepage", "Staff_Profile_Homepage", "Description"],
+ "multiValueFields": ["Groups", "ANZSRC_FOR"]
+ }
+ },
+
+ "transformer": {
+ "curation": ["local"],
+ "metadata": ["ingest-relations", "jsonVelocity"]
+ },
+ "curation": {
+ "neverPublish": false,
+ "alreadyCurated": false
+ },
+
+ "transformerOverrides": {
+ "ingest-relations": {
+ "sourcePid": "metadata.json",
+ "sourcePath": ["data"],
+ "relations": {
+ "Groups": {
+ "prefix": "redbox-mint.googlecode.com/parties/group/",
+ "relation": "isMemberOf",
+ "reverseRelation": "hasMember"
+ }
+ }
+ },
+ "local": {
+ "template": "${server.url.base}published/detail/[[OID]]"
+ },
+ "jsonVelocity": {
+ "templatesPath" : "${fascinator.home}/templates/people",
+ "portalId": "Parties_People"
+ }
+ },
+
+ "indexer": {
+ "script": {
+ "type": "python",
+ "rules": "Parties_People_Multi.py"
+ },
+ "params": {
+ "repository.name": "People",
+ "repository.type": "Parties"
+ }
+ }
+}

0 comments on commit 2997d44

Please sign in to comment.