-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added test1 tenant sample data file
- Loading branch information
1 parent
b055016
commit 1858ebe
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
service/src/main/okapi/tenant/sample_data/test1-data.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// DEV NOTE -- This is what will be used for the default rancher-desktop-db/dc environments | ||
// For vagrant development (which I think is deprecated now) there may need to be a different file | ||
// to avoid making changes to diku-data or _data. | ||
log.info "Running test1-data tenant sample data file" | ||
|
||
import org.olf.kb.RemoteKB | ||
|
||
/* RemoteKB.findByName('GOKb_TEST') ?: (new RemoteKB( | ||
name:'GOKb_TEST', | ||
type:'org.olf.kb.adapters.GOKbOAIAdapter', | ||
uri:'https://gokbt.gbv.de/gokb/oai/index', | ||
fullPrefix:'gokb', | ||
rectype: RemoteKB.RECTYPE_PACKAGE, | ||
active:Boolean.TRUE, | ||
supportsHarvesting:true, | ||
activationEnabled:false, | ||
//cursor: "2022-08-09T19:34:42Z" | ||
).save(failOnError:true)) */ | ||
|
||
RemoteKB.findByName('GOKb') ?: (new RemoteKB( | ||
name:'GOKb', | ||
type:'org.olf.kb.adapters.GOKbOAIAdapter', | ||
uri:'https://gokb.org/gokb/oai/index', | ||
fullPrefix:'gokb', | ||
rectype: RemoteKB.RECTYPE_PACKAGE, | ||
active:Boolean.TRUE, | ||
supportsHarvesting:true, | ||
activationEnabled:false | ||
).save(failOnError:true)) | ||
|
||
/* RemoteKB.findByName('DEBUG') ?: (new RemoteKB( | ||
name:'DEBUG', | ||
type:'org.olf.kb.adapters.DebugGoKbAdapter', | ||
// uri can be used to directly force a package from the resources folder | ||
// uri: 'src/integration-test/resources/DebugGoKbAdapter/borked_ids.xml' | ||
rectype: RemoteKB.RECTYPE_PACKAGE, | ||
active:Boolean.TRUE, | ||
supportsHarvesting:true, | ||
activationEnabled:false | ||
).save(failOnError:true)) */ |