Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Generate a batch import folder for DSpace ingestion
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.bundle
lib
spec
.gitignore
.rspec
.rvmrc
Gemfile
Gemfile.lock
LICENSE
README.markdown
Rakefile
jester-0.0.1.gem
jester.gemspec

README.markdown

jester

A Ruby project for making batch imports into DSpace simpler

Dependencies

Description

The first release solves a pretty specific problem. If you have some HTML articles that you want to ingest into DSpace with some metadata in the <head> element, then this should work well. You can create your own XSL and CSS then pass them to the to_pdf function. They will execute and then generate the resulting PDF

1. article = Jester::Article.new('path/to/file', 'dir/to/save/to')
2. stylesheets = [Jester::CSS.bold('body'), Jester::CSS.italicize('div#references')]
3. xslts = [Jester::XSL(do_something), Jester::XSL(do_something_else)]
4. article.to_pdf('file.pdf', 'A4', stylesheets, xslts)
5. article.to_txt('file.txt')
6. article.generate_contents`
  1. Create a new article object. Pass it the html file to read and the dir to save to.
  2. Create an array of stylesheets to apply to the html.
  3. Create an array of XSLTransformations to apply to the html.
  4. Generate the PDF on A4 paper size after applying the xslts and the CSSs
  5. Generate a textfile
  6. Generate a contents file
Something went wrong with that request. Please try again.