Create an Omeka API Target
You can publish from Forum to your Omeka collections using the Omeka API target option and select element sets and item types that suit your content.
*Currently, the Omeka API will only publish to Omeka.org collections, but we are investigating how to support Omeka.net sites as well.
Suggested Omeka.org Configuration
These are changes we suggest you make to your Omeka.org installation, but because Omeka configurations can vary depending on your institution’s needs, we cannot assist with troubleshooting local Omeka.org settings.
- Disable the file upload validation:
- Log into Omeka.org admin and select Settings then Security.
- Check the box to Disable File Upload Validation and then Save Changes.
- Increase the media size on your Omeka server:
- The default media size is 16MB in a php.ini file. You will need to increase this number to be bigger than the size of the largest files in your project(s). Please consider your server’s capacity when deciding the maximum size. In this example, we use increasing the media size to 128MB, but this will vary depending on your project’s content.
- Locate your php.ini file located at /etc/php5/apache2.
- Update the file and set:
- memory_limit = 128M (maximum amount of memory a script may consume)
- upload_max_filesize = 128M (maximum allowed size for uploaded files)
- post_max_size = 128M (maximum size of POST data that PHP will accept)
- Restart your Apache php server /etc/init.d/apache2 restart.
To create an Omeka API target in Forum Admin:
- Log into Omeka.org admin and select Settings then API.
- Check the box to Enable API and Save Changes.
- Select Users then select Edit under one of your user accounts. Even though Omeka settings require admins enable an API key through the user, there are no constraints on Forum users’ abilities to catalog and publish to an Omeka target from Forum.
- Select API Keys and then enter a new key label to identify the API key (for example Forum key). Select Update API Keys. You should see your new API key label next to an automatically generated key.
- Publishing from Forum to Omeka relies on having collections to publish content. If you don’t already have a collection setup in Omeka, select Collections then Add a Collection. We recommend inputting at least a title for your collection, but this is not required for publishing. Select Add Collection.
- Log into Forum Admin.
- Select the project from where you want to publish and then select Targets.
- Select Add then Omeka API. Input the URL and API key then select Next.
- Using the dropdown, select the Omeka collection to publish to and then Next.
- Check the Element Sets you want enabled for this target then select Next. At least one Element Set needs to be selected in order to proceed. Optionally, you can select Item Types. Select Finish. Your new Omeka API target should be displaying in the list of targets for this project. Proceed to the next section to map your project fields to your new Omeka collection fields.
- You can edit the API key, element sets, and item types enabled for this target anytime by selecting the target then selecting Edit.
Map Project Fields to Omeka Collection
In order for your metadata to display in Omeka, you need to map your project fields to your Omeka collection fields.
To map your project fields to your Omeka collection:
- Select your Omeka API target in Forum Admin then Map Project Fields.
- For each project field you want to display in Omeka, select the dropdown menu and then the field you want to map to your Omeka collection field. For example, you can map your Forum Title field to the Title field in your Omeka collection’s Element Set. You can optionally set prefixes and make fields required before publishing.
- Save your changes. Your content can now be published or republished to your Omeka collection. If you make additional changes to the mappings, please republish any records you previously published.
Omeka Element Sets & Item Types
Element Sets are metadata schemas you can enable within Omeka and then map to your Forum project fields. Omeka supports any metadata schema that has been enabled as a plugin by members of the Omeka user community. The default is Dublin Core, but Omeka admins may enable other Elements Sets such as VRA Core, PB Core, Social Media, and more. Check out the support pages for omeka.org (http://omeka.org/codex/Managing_Element_Sets_2.0) to learn more about how to enable and use Element Sets.
Enabling at least one Element Set is required for setting up publishing to an Omeka collection, Item Types are optional and can be used as supplemental fields for mapping specific data. Item Types may include Moving Images, which incorporates descriptive fields for video content, and Still Images. Omeka has a set of pre-built Item Types, as well as those created by members of the Omeka user community, which you can contribute to in creating local Item Types. Check out the support pages for Omeka.org (http://omeka.org/codex/Managing_Item_Types_2.0 and http://omeka.org/codex/Managing_Item_Type_Elements) to learn more about how to enable, use, and create Item Types.
You can edit the Element Sets and Item Types enabled in your Omeka API publishing target anytime by selecting the target in Forum Admin then Edit.