Return to the Archive
Return to the Post Builder

Sahaptin/Yakama Archive Post Builder

Help and Documentation

Purpose and Background:

Each resource or item in the archive needs to have accompanying information in Extensible Markup Language (XML) which can tell current and future users and distribution systems/archives as much as possible. To a human reader XML is less than felicitous. Editing XML manually is a time consuming process and the potential for errors is high. There are commercial software options that provide ways of streamlining the process, but were cost prohibitive for this project. Therefore, this XML generator was created to help. The system is a mix of PHP, HTML and CSS and is intended for portability and ease of modification. All of it, excluding this help page, It is contained in a single PHP file.

Process & Workflow:

  1. Input fields. Complete all of the fields that are relevant to the resource. Most likely you will never have to edit the Linguistic field, Subject or Type. These are set to default values. Just leave them as is unless you want to change them. Complete at least Title, Date and Description and then as many other fields that are relevant to the resource.
  2. Click Submit.
  3. After the XML is generated, select all of the text and copy it (right-click 'copy' or ctrl-c).
  4. Paste it into the Wordpress (the main archive site) Post field at the bottom of the entry.

Why is the generated XML font size so small?:

The text is especially small to make the process of selecting and copying easier and quicker. PHP, unfortunately, does not have a quick way of sending echoed text or text in a div to the clipboard. Thus, the selecting and copying must be done manually. If you need to examine the generated codes, you can paste it into a texteditor or Wordpress.

Wordpress:

This builder also generates some tags that will allow a seamless transition to the current Wordpress archive. Copy the generated code and paste it in Wordpress and it will all be formatted automatically.

Audio Files in Wordpress:

If you select "Sound" for type and "FLAC" for format, the system assumes that there is an MP3 file with the same URN as the FLAC file in the same location. Put the full URL to the FLAC file in the Resource URL box and the system will find the MP3 in the same location and embed it for streaming in the Wordpress CMS.

Example:
If you put this URL to the FLAC in the URL blank:
http://depts.washington.edu/sahteach/wordpress/wp-content/uploads/2015/04/Recording_of_the_Language_101.FLAC

After you click 'submit' the builder will create a link to the FLAC for downloading and then also create the code for auto embedding of the MP3 in the code that looks like this:
[audio mp3="http://depts.washington.edu/sahteach/wordpress/wp-content/uploads/2015/04/Recording_of_the_Language_101.MP3"][/audio]

Input Field Background:

Most of the code that will be generated will never need to be altered (e.g., the Dublic Core and Olac declarations). The input fields in the generator represent the XML tags that are the most likely to be altered for the purposes of this archive and are arranged in the predicted frequency for which they will be edited (i.e., top=more, bottom=less). Any tags that are not represented with a field may always be edited manually after the generation process.

Input Field Descriptions:

Below are simplified descriptions. Please refer to Dublin Core and OLAC for more info.

Acknowledgements:

Thank you to Theodore Gerontakos at the UW Libraries for the help on this project and inspiration for this XML generator.