Logically, a collection is designed to hold objects. Lots of objects serve the same purpose, but they are generally used when a set of objects comes from the same donor, for example, in order to record information about the coherence of that set.
When you create a new collection, you can enter metadata that describes to all the items it contains. And from within these objects, you can display the information extracted from that collection.
As Monica said, make your own theme, so if you break something in a file, you can revert to the original file.
It's easy to add new metadata to "object" or "collection" or "objects lot":
- If not yet existing, you can create these new metadata in MANAGE > ADMINISTRATION > METADATA ELEMENTS > + New. Then, give a name for the metadata, a short description that will appear in the edit form, an element code that will be used to handle the metadata ("dates", "materials" and "caption" are good choices), a datatype "daterange" for "dates" and "Text" for "materials and "caption" (Be sure to choose which constraints you need for these metadata.). Select for which kind of elements this metadata will be attached, with Type restrictions part (Bind attribute to objects). Save.
- Once created, add them to the User Interface for objects (or collections) in MANAGE > ADMINISTRATION > USER INTERFACES > choose the "Standard object editor" (or "Standard collection editor") to edit, then choose in which "SCREEN" you want to add the metadata (for example "Basic info"), then in the "Screen content" part, search for your metadata in the left side an drag them on the right side at the position you want). Save.
- Go to edit an objet to see if your metadata is well located in the form. Enter a content and save.
To display your metadata in the Pawtucket Detail page, go to the Pawtucket folder /themes/<your_theme>/views/Details/. Duplicate the ca_objects_default_html.php file (just in case you break something) (the ca_collections_default_html.php), edit the file and at the right place you want to display the metadata, add it with {{{ ^ca_objects.my_metadata }}} tag. For example: {{{^ca_objects.dates}}} (for a collection: {{{^ca_collections.dates}}})
You should have a text before your metadata, so you need to check if the metadata is empty or not and only display it if it's not empty. So you will add a "ifdef" like this:
{{{<ifdef code="ca_objects.dates"><p><b>Dates:</b> ^ca_objects.dates</p></ifdef>}}}
{{{<ifdef code="ca_objects.materials"><p><b>Materials:</b> ^ca_objects.materials</p></ifdef>}}}
{{{<ifdef code="ca_objects.caption"><p><b>Caption:</b> ^ca_objects.caption</p></ifdef>}}}
If the metada to display come from the collection:
{{{<ifdef code="ca_collections.dates"><p><b>Collection dates:</b> ^ca_collections.dates</p></ifdef>}}}
{{{<ifdef code="ca_collections.materials"><p><b>Collection materials:</b> ^ca_collections.materials</p></ifdef>}}}
{{{<ifdef code="ca_collections.caption"><p><b>Collection caption:</b> ^ca_collections.caption</p></ifdef>}}}
Then go to the public page and see the result. (In some case, you'll have to flush the cache files in /app/tmp, and flush the cache files in your web browser.)