mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2017-06-05
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
+++
|
||||
date = "2017-05-01T10:14:52+03:00"
|
||||
date = "2017-06-01T10:14:52+03:00"
|
||||
author = "Alan Orth"
|
||||
title = "June, 2017"
|
||||
tags = ["Notes"]
|
||||
@ -23,3 +23,21 @@ tags = ["Notes"]
|
||||
- Run all system updates on DSpace Test and reboot the server
|
||||
- After rebooting the server (and therefore restarting Tomcat) the new metadata field is available
|
||||
- I've sent a message to the dspace-tech mailing list to ask if this is a bug and whether I should file a Jira ticket
|
||||
|
||||
## 2016-06-05
|
||||
|
||||
- Rename WLE's "Research Themes" sub-community to "WLE Phase I Research Themes" on DSpace Test so Macaroni Bros can continue their testing
|
||||
- Macaroni Bros tested it and said it's fine, so I renamed it on CGSpace as well
|
||||
- Working on how to automate the extraction of the CIAT Book chapters, doing some magic in OpenRefine to extract page from–to from cg.identifier.url and dc.format.extent, respectively:
|
||||
- cg.identifier.url: `value.split("page=", "")[1]`
|
||||
- dc.format.extent: `value.replace("p. ", "").split("-")[1].toNumber() - value.replace("p. ", "").split("-")[0].toNumber()`
|
||||
- Finally, after some filtering to see which small outliers there were (based on dc.format.extent using "p. 1-14" vs "29 p."), create a new column with last page number:
|
||||
- `cells["dc.page.from"].value.toNumber() + cells["dc.format.pages"].value.toNumber()`
|
||||
- Then create a new, unique file name to be used in the output, based on a SHA1 of the dc.title and with a description:
|
||||
- dc.page.to: `value.split(" ")[0].replace(",","").toLowercase() + "-" + sha1(value).get(1,9) + ".pdf__description:" + cells["dc.type"].value`
|
||||
- Start processing 769 records after filtering the following (there are another 159 records that have some other format, or for example they have their own PDF which I will process later), using a modified `generate-thumbnails.py` script to read certain fields and then pass to GhostScript:
|
||||
- cg.identifier.url: `value.contains("page=")`
|
||||
- dc.format.extent: `or(value.contains("p. "),value.contains(" p."))`
|
||||
- Command like: `$ gs -dNOPAUSE -dBATCH -dFirstPage=14 -dLastPage=27 -sDEVICE=pdfwrite -sOutputFile=beans.pdf -f 12605-1.pdf`
|
||||
- 17 of the items have issues with incorrect page number ranges, and upon closer inspection they do not appear in the referenced PDF
|
||||
- I've flagged them and proceeded without them
|
||||
|
Reference in New Issue
Block a user