150 likes | 248 Views
LIS65 4 lecture 4 more on omeka. Thomas Krichel 2011-10-06. plugin example. I demonstrating the CSV import plugin . I do this because I hate interacting with a computer. . CVS. Comma-separated values are a simple text format to represent a table. The table is a sequence of lines.
E N D
LIS654 lecture 4more on omeka Thomas Krichel 2011-10-06
plugin example • I demonstrating the CSV import plugin. • I do this because I hate interacting with a computer.
CVS • Comma-separated values are a simple text format to represent a table. • The table is a sequence of lines. • The first line contains field names. • The next line contains field values.
comma separation • The separation of fields is done by comma. • If the value contains a comma, it has to be surrounded by double quotes. • Example table of economists Name, Birthday “Krichel, Thomas”, 1965-06-05 “Marx, Karl Heinrich”, 1818-05-05
CSV plugin • The CSV plugin allows you to upload a CSV file. • That file will describe resources you want to include in your collection. • The resources can then be included in bulk into your omeka installation.
install • Local computer way • Download the plugin from its URL, say URL to your local machine. • Upload unzipped plugin directory to ssh://user@wotan.liu.edu/omeka/plugins • On wotan • cdomeka/plugins • GET URL > csv.zip • unzip csv.zip • rm csv.zip
activate plugin • From the main menu, look for “Manage Plugins”. • Look for “CSV Import”. If this is not there, you have not put the plugin files into the right place. • Click “install” next to it. • Accept the defaults on the next screen. • You now see the “CSV Import” option on the top.
compose and upload the csv file • A sample csv file is at http://wotan.liu.edu/home/krichel/courses/ lis654/examples/csv/ manhattan.csv • You have to place it into the omeka/plugins/CsvImport/csv_files/ folder of your home directory. Delete test.csv. • I don’t think that the name matters, but avoid blanks and other exotic characters in the name and give it the ending “.csv”.
steps 1 • Step 1: Select File and Item Settings • CSV File • Item Type • Collection • After that step, the CSV file is read and checked to have the proper format. • If that check fails you have to edit the file.
step 2 • The name of your columns has been recognized and you are asked to match it to the omeka information. • You have three option • match to a metadata element • match to tags • mach to a file
map to element • Map To Element” • Dublin Core (common) • Item-type dependent fields • “Use HTML” means interpret value as HTML • “File” Don’t map to metadata, interpret values as file • You can match to several metadata field at once.
match to tags • “Tags” Don’t map to element, interpret values as tags. • Note that tag have to be separated by the tag separator that you have fixed in your general settings. Otherwise a tag string can not be parsed into separate tags.
match to file for uploads • “File” values have to be URLs starting with http. • Pointers to files on wotan are not supported. • No big deal because Thomas has given you the web site. • Omeka will fire up a browser and fetch the file from the web.
successful import • If the import is successful, • go to the public interface with another web browser window • check you like the result • If you don’t like what you see, hit the undo link in the csv import screen. That link may not be available later.
http://openlib.org/home/krichel Please shutdown the computers when you are done. Thank you for your attention!