Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 2.09 KB

README.md

File metadata and controls

43 lines (25 loc) · 2.09 KB

Random DSpace Batch Metadata Generator

A very simple Ruby-based script for generating random metadata. It is hard coded to generate 100 rows of data, but it would be very easy to tweak that number. If you're feeling especially helpful, I invite you to fork a copy of this script and make it work with command line options. If you do so, a friendly pull request would be appreciated.

Contents

generate_random_batch_metadata.rb - the star of the show

What does it do?

Generates random metadata, for use in batch importing to DSpace. It's helpful for quickly populating a developement instance of DSpace, so you can test indexing and interface stuff like results paging. Besides, who doesn't like random metadata?

Requirements

Ruby, of course, and the following gems:

To install any of these gems, run gem install GEM_NAME

How to run

The Shebang line uses env, so this script should "just run" in any Unix-like environemnt. You're on your own with Windows, but, I bet you already know how to run a Ruby script in Windows. By "just run" I mean, you type this on your command prompt, after you ensure the script is executable (chmod 755 generate_random_batch_metadata.rb):

./generate_random_batch_metadata.rb

Enjoy!

Similar projects

Check out these other tools that do similar things:

License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.