Contribution Form in Element Sets

30 views
Skip to first unread message

Jennifer Marck Moran

unread,
Mar 11, 2010, 2:05:47 PM3/11/10
to Omeka Dev
Hello,

In an effort to be rid of the heading "contribution form" in my
detailed item view, I deleted the element set "contribution form" in
the admin panel, with disastrous results. I can no longer view the
dublin core metadata and it no longer appears on the public view
either.

(I also had been hoping to get rid of the heading "dublin core" from
my item level detailed view, but now it's all gone!)

Any help would be greatly appreciated.

This is our archive: www.digitalarchive.cityandcountry.org

Thanks!
Jennifer

Kris Kelly

unread,
Mar 11, 2010, 2:56:02 PM3/11/10
to omek...@googlegroups.com
Hi,

Unfortunately, deleting the element set deletes all the data that goes along with it. Not the items themselves, but everything that was filed under the header of "Contribution Form", for each item. That means elements like the "Online Submission" flag, etc. would be deleted. Without a database backup, that data is most likely unrecoverable. On the other hand, your Dublin Core data would be unaffected, and indeed it looks like none of that has been deleted, so that's a plus.

What kind of errors do you see? It could be that deleting that element set has broken the Contribution plugin, which could be causing those errors. Try deactivating the contribution plugin via the Plugins panel on the admin and let us know if that works.

Hope that helps a bit.

Thanks,
Kris

> --
> You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
> To post to this group, send email to omek...@googlegroups.com.
> To unsubscribe from this group, send email to omeka-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/omeka-dev?hl=en.
>

Jennifer Marck Moran

unread,
Mar 11, 2010, 6:02:07 PM3/11/10
to Omeka Dev
Hi Kris,

Thanks so much! I didn't have any submissions, so I reinstalled the
Contribution plugin and all is restored. But, I am still wondering how
I can get rid of the headings "Dublin Core" and "Contribution Form"
from the item detailed view? I'm not sure where the code is for those
headings.

Thanks!
Jennifer

Kris Kelly

unread,
Mar 11, 2010, 6:25:26 PM3/11/10
to omek...@googlegroups.com
Hi,

Those headings are being displayed by a file that is built in to Omeka. The easiest way to get rid of them would be to copy that file into your theme (Omeka checks for the file in your theme first, and then if it can't find it, it looks in one or more other locations).

Just copy the following file:

application/views/scripts/items/item-metadata.php

into your theme's items/ directory, then remove the following line from the copy:

<h2><?php echo html_escape($setName); ?></h2>

That should do it. Let me know if that doesn't work for some reason.

Kris

Jennifer M Moran

unread,
Mar 11, 2010, 7:34:17 PM3/11/10
to omek...@googlegroups.com
Fabulous! Thanks so very much.

Jennifer

Jennifer M Moran

unread,
Mar 13, 2010, 7:44:07 PM3/13/10
to omek...@googlegroups.com
I have another pesky question:

Where can I find the file so I can edit the homepage? I'm using the Berlin theme, and the show file for the CSS allows me to change some things, but it doesn't allow me to edit whether the featured item includes the description or not, whether the recently added items include the titles or not, etc...

Thanks!
Jennifer

Jeremy Boggs

unread,
Mar 14, 2010, 1:46:37 AM3/14/10
to omek...@googlegroups.com
On Mar 13, 2010, at 4:44 PM, Jennifer M Moran wrote:

> Where can I find the file so I can edit the homepage? I'm using the
> Berlin
> theme, and the show file for the CSS allows me to change some
> things, but it
> doesn't allow me to edit whether the featured item includes the
> description
> or not, whether the recently added items include the titles or not,
> etc...

The homepage is 'index.php' in the main folder for the theme...so
themes/berlin/index.php. You can modify the recent items loop there.

For the random featured item: The themes generally use a helper called
display_random_featured_item(), which provides a lot more
predetermined HTML than some other helpers. If you want to change the
way the homepage displays the random featured item, you could look at
how to use the random_featured_item() helper; There's actually a brief
example at the bottom of this page that shows you how to get a random
featured item, then display whatever metadata for that item you wish,
instead of using display_random_featured_item() to display the
predetermined HTML.

http://omeka.org/codex/Theme_API/random_featured_item

Hope this helps!
Jeremy

Reply all
Reply to author
Forward
0 new messages