(For the sake of brevity, not all classes and metadata fields appear in the console examples.)
There should be 6 classes:
- NewspaperTitle (PCDM Object)
- NewspaperContainer (PCDM Object)
- NewspaperIssue (PCDM Object)
- NewspaperPage (PCDM FileSet)
For each of these JSON word-coordinate file formats of the same OCR word-coordinate data, representing a single newspaper page:
I ran a test in the Rails console, benchmarking the time needed to:
.range_limit { | |
.form-control { | |
&.range_begin, | |
&.range_end { | |
width: 60px; | |
} | |
} | |
} |
# create a static OAI XML file with all records | |
# @param sets [Array] collection ids, e.g. ['c1ee8010-fb87-40d6-ac23-be547344c4f2', '2000d071-a976-4536-b173-8772a11c3588', ...] | |
# @param units_to_ignore [Array] ids of objects to ignore | |
# @param file_path [String] location where static XML file should be written | |
# @param credentials [Hash] Preservica REST API credentials: {un: 'foo', pw: 'bar'} | |
def generate_static_oai_xml(sets, units_to_ignore, file_path, credentials) | |
@oai_doc = initialize_oai_xml | |
@units_to_ignore = units_to_ignore | |
@preservica_rest_api_base = 'https://us.preservica.com/api/entity' |