Skip to content

Commit

Permalink
Added a README and an example properties file
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeach47 committed Aug 6, 2018
1 parent 20a1f54 commit f82c362
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
12 changes: 12 additions & 0 deletions openequella-toolbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# openEQUELLA Toolbox
Proof-of-concept for a suite of scripts to interface with openEQUELLA in Java.

## Main functions
### Migrate to Kaltura
Search openEQUELLA for items with a given criteria. For each item found, download the appropriate video, upload into Kaltura, and then re-version the openEQUELLA item, replacing the video file and other attachments with the single Kaltura attachment.

### Export Items
Search openEQUELLA for items with a given criteria. For each item found, export the metadata in a given format.

# License
Apache v2
41 changes: 41 additions & 0 deletions openequella-toolbox/blank.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
### Toolbox function
#
# MigrateToKaltura, ExportItems
toolbox.function=

oeq.url=
oeq.oauth.client.id=
oeq.oauth.client.secret=
oeq.search.api.requested.length=10
oeq.search.api=/api/search/?collections=csv-of-collection-uuids&order=name&reverse=false&info=all&showall=false&status=LIVE

// Use \\ for Windows, / for Mac and Linux
general.os.slash=/
general.download.folder=/my/temp/folder/for/openequella-migration-downloads

// Need to be an integer.
// Controls how often the script will give a file download update (higher is less frequent).
general.download.chatter=400

### Needed for MigrateToKaltura

migrate-to-kaltura.kal.partner.id=
migrate-to-kaltura.kal.admin.secret=
migrate-to-kaltura.kal.categories=
migrate-to-kaltura.oeq.kal.id=
migrate-to-kaltura.kal.user.id=
migrate-to-kaltura.kal.service.url=
migrate-to-kaltura.general.max.items.to.migrate=3
migrate-to-kaltura.oeq.search.attachment.description=My Videos
migrate-to-kaltura.oeq.search.kal.tags.xpath=/xml/my/path/to/tags/text()

### Needed for ExportItems
export.items.output=/my/export/file.csv

# Format: YYYY-MM-DD
export.items.filter.dateCreated=2013-01-01

# CSV of metadata paths
# Keywords: UUID, Version, attachment_names, name, description
# The rest of the columns are assumed to be xpaths. The script will automatically add prefix 'xml/' and add a suffix of '/text()'
export.items.columnFormat=my/metadata/title,UUID,Version,attachment_names,my/metadata/data1,my/metadata/data2,my/metadata/data3

0 comments on commit f82c362

Please sign in to comment.