Generates PBCore xml files from data exported from CONTENTdm and derives technical metadata from any data files that are located in the same folder.
You have a few options. You most likely want to use the first one as it is the easiest.
If you are setting up Conda/Anaconda for the first time, please look at the readme document here first
- In the launcher program, open a Python 3.4 environment or higher.
- Click on the install button for this script
-
Download the latest version from the releases section of the project's Github page https://github.com/cavpp/PBCore/releases and copy the URL of the most current version.
-
Open a terminal and type:
sudo pip3 install #paste the URL here
The actual name of the file will change with each version.
If you have a problem that pip isn't installed, you can install it with the following command.
sudo easy_install pip
-
Download the latest version (or eariler) in the dist folder to your Download folder
-
In a terminal window, type:
cd Downloads sudo pip install CAVPP PBCore Tools-0.1.tar.gz
-
Enter your computer password and the script will install along with all the dependencies.
-
Open a terminal window and type:
cd Downloads git clone https://github.com/cavpp/PBCore.git cd PBCore sudo python setup.py install
-
Enter your computer password and the script will install along with all the dependencies.
Note: This currently will only work with CSV and not the tab-delimited txt files that are saved directly by CONTENTdm. In order to use this files you must convert them first. See below instructions on how to convert the this file into a properly-formatted csv files.
Note: Only works with the Conda installation method.
-
In a terminal window type:
launcher
-
Click Environment and select the correct evironment.
-
Click on the launch button next to the script name
In a terminal, simply type "makepbcore" followed by a csv files containing the data from a CONTENTdm export.
makepbcore /Volumes/CAPPS-01/Headlands/Headlands_caps_export.txt
In a terminal windows, simple type the following command::
makepbcore -g
In a terminal window, type "tsv2csv" and the file name.
tsv2csv /Volumes/CAPPS-01/Headlands/Headlands_caps_export.txt
Author: Henry Borchers