Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Hiding or changing the heading 'Dublin Core' that appears on /items/show.php
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Merrin B.  
View profile  
 More options Nov 21 2011, 4:59 pm
From: "Merrin B." <brewstm...@gmail.com>
Date: Mon, 21 Nov 2011 13:59:27 -0800 (PST)
Local: Mon, Nov 21 2011 4:59 pm
Subject: Hiding or changing the heading 'Dublin Core' that appears on /items/show.php
Apologies if the answer is obvious....

I am trying to hide or change the heading 'Dublin Core' that appears
on /items/show.php.  It appears to wrapped up in the following:  <?php
echo custom_show_item_metadata(); ?>

It displays on a web page as <h2>Dublin Core</h2>.

Has anyone successfully achieved hiding/deleting this or other parts
of the item metadata?

Thanks for your help,

Merrin (University of Otago Library, Dunedin, New Zealand)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sdj loret  
View profile  
 More options Nov 21 2011, 5:33 pm
From: sdj loret <sdj.lo...@gmail.com>
Date: Mon, 21 Nov 2011 23:33:05 +0100
Local: Mon, Nov 21 2011 5:33 pm
Subject: Re: [omeka-dev] Hiding or changing the heading 'Dublin Core' that appears on /items/show.php

Hi Merrin,

Certainly you have a custom.php in your theme's folder. In this file,
you'll find in function custom_show_item_metadata() the h2 tag and you can
change it.

Best,

Sdj

2011/11/21 Merrin B. <brewstm...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Boggs  
View profile  
 More options Nov 21 2011, 8:42 pm
From: Jeremy Boggs <jer...@clioweb.org>
Date: Mon, 21 Nov 2011 20:42:32 -0500
Local: Mon, Nov 21 2011 8:42 pm
Subject: Re: [omeka-dev] Hiding or changing the heading 'Dublin Core' that appears on /items/show.php
The answer is not quite so obvious, but pretty easy to implement.

There is a template file, 'item-metadata.php', in application/view/scripts/items, that governs the display of item metadata. custom_show_item_metadata(), which uses show_item_metadata(), uses this template file for formatting.

If you want to remove the 'Dublin Core' heading, you could just copy the 'item-metadata.php' file to your own theme (in theme-name/items/), and remove the line '<h2><?php echo html_escape(__($setName)); ?></h2>'. this will remove the Dublin Core heading, adn all subsequent headings for element sets. (I wouldn't recomment directly editing application/views/scripts/item-metadata.php, since you would potentially lose those changes with any upgrades.)

If you only want to remove it for Dublin Core, you could just do a check on $setName, something like this:

<?php if ($setName != 'Dublin Core'): ?>
<h2><?php echo html_escape(__($setName)); ?></h2>
<?php endif; ?>

While you're at it, you can of course modify any of the other HTML for element sets, element names, and values as you'd like in this template file.

Best,
Jeremy

On Nov 21, 2011, at 4:59 PM, Merrin B. wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sdj loret  
View profile  
 More options Nov 22 2011, 1:45 pm
From: sdj loret <sdj.lo...@gmail.com>
Date: Tue, 22 Nov 2011 19:45:27 +0100
Local: Tues, Nov 22 2011 1:45 pm
Subject: Re: [omeka-dev] Hiding or changing the heading 'Dublin Core' that appears on /items/show.php

Yes, of course, so confused...

sdj

2011/11/22 Jeremy Boggs <jer...@clioweb.org>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Merrin B.  
View profile  
 More options Nov 27 2011, 5:49 pm
From: "Merrin B." <brewstm...@gmail.com>
Date: Sun, 27 Nov 2011 14:49:53 -0800 (PST)
Local: Sun, Nov 27 2011 5:49 pm
Subject: Re: [omeka-dev] Hiding or changing the heading 'Dublin Core' that appears on /items/show.php

Thank you Jeremy!! That suggestion worked perfectly.

Kind regards,

Merrin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Durrell Bowman  
View profile  
 More options Jul 15 2012, 11:59 am
From: Durrell Bowman <d...@durrellbowman.com>
Date: Sun, 15 Jul 2012 08:59:24 -0700 (PDT)
Local: Sun, Jul 15 2012 11:59 am
Subject: Re: [omeka-dev] Hiding or changing the heading 'Dublin Core' that appears on /items/show.php

I'm also trying to get rid of those h2 headings, which are going to be
confusing for most people, and they show up even when irrelevant and
without data for people not logged in (such as with Comments, for
example).  I've gotten rid of that line in a copy of item-metadata.php in
my theme folder (dark), tried putting that modified file in a subdirectory
called "items" in that theme folder (because there wasn't one), and in
desperation even tried taking the line out of the template version.
However, none of these things worked, and the h2 headings seem to be stuck
there.  Help!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Durrell Bowman  
View profile  
 More options Jul 15 2012, 12:26 pm
From: Durrell Bowman <d...@durrellbowman.com>
Date: Sun, 15 Jul 2012 09:26:01 -0700 (PDT)
Local: Sun, Jul 15 2012 12:26 pm
Subject: Re: [omeka-dev] Hiding or changing the heading 'Dublin Core' that appears on /items/show.php

Followup: The h2 headings actually are going away, but only starting with
the Dublin Core one, which I've moved nearer the bottom (instead of leaving
it at the top). I wanted the discussion element nearer to the top, so the
Comments h2 heading stays there. I'd still like to hide the "Comments"
heading (because it's going to be confusing for people not logged in and
not having that permission), and I'd also like to change at least the name
of the "Comment" field to "Discussion." Where would I do that? Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Boggs  
View profile  
 More options Jul 15 2012, 5:21 pm
From: Jeremy Boggs <jer...@clioweb.org>
Date: Sun, 15 Jul 2012 23:21:01 +0200
Local: Sun, Jul 15 2012 5:21 pm
Subject: Re: [omeka-dev] Hiding or changing the heading 'Dublin Core' that appears on /items/show.php

The Comments heading sounds like it's getting added separately, by a plugin, using the 'append_to_items_show' plugin hook, and not through the item metadata itself. If you are using a plugin, which one is it? I can poke around the plugins code to see where it might be added.

Jeremy

On Jul 15, 2012, at 6:26 PM, Durrell Bowman wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Durrell Bowman  
View profile  
 More options Jul 16 2012, 12:02 am
From: Durrell Bowman <d...@durrellbowman.com>
Date: Sun, 15 Jul 2012 21:02:08 -0700 (PDT)
Local: Mon, Jul 16 2012 12:02 am
Subject: Re: [omeka-dev] Hiding or changing the heading 'Dublin Core' that appears on /items/show.php

Thanks, Jeremy. I got it. It's the Commenting plugin, and I changed the h2
header from "Comments" to "Discussion of the Content of This Item" in
plugins/Commenting/helper/commenting.php and the element label from
"Comment" to "Your Contribution" in plugins/Commenting/CommentForm.php.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Pollitt  
View profile  
 More options Feb 16, 2:21 pm
From: Chris Pollitt <chris.poll...@gmail.com>
Date: Sat, 16 Feb 2013 11:21:38 -0800 (PST)
Local: Sat, Feb 16 2013 2:21 pm
Subject: Re: Hiding or changing the heading 'Dublin Core' that appears on /items/show.php

Easiest way is via css.

Add these lines below the "h2 {...}" block in
"themes/default/css/style.css" file:

.element-set h2 {
   display:none;


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gus Urban  
View profile  
 More options Feb 28, 7:47 am
From: Gus Urban <gusunava...@gmail.com>
Date: Thu, 28 Feb 2013 04:47:46 -0800 (PST)
Local: Thurs, Feb 28 2013 7:47 am
Subject: Re: [omeka-dev] Hiding or changing the heading 'Dublin Core' that appears on /items/show.php

Jeremy
sorry for my question but I need the line dublin core in my display of
elements.....but I don't understand any..

El lunes, 21 de noviembre de 2011 22:42:32 UTC-3, Jeremy Boggs escribió:

> The answer is not quite so obvious, but pretty easy to implement.

> There is a template file, 'item-metadata.php', in
> application/view/scripts/items, that governs the display of item metadata.
> custom_show_item_metadata(), which uses show_item_metadata(), uses this
> template file for formatting.

What is the file that has the template file, 'item-metadata.php', in
application/view/scripts/

items?

> If you want to remove the 'Dublin Core' heading, you could just copy the
> 'item-metadata.php' file to your own theme (in theme-name/items/),

I use theme seasons and in my directory I have two files

random-featured.php  show.php

sorry for my questions

gus


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Boggs  
View profile  
 More options Feb 28, 12:39 pm
From: Jeremy Boggs <jer...@clioweb.org>
Date: Thu, 28 Feb 2013 12:39:05 -0500
Local: Thurs, Feb 28 2013 12:39 pm
Subject: Re: [omeka-dev] Hiding or changing the heading 'Dublin Core' that appears on /items/show.php

On Feb 28, 2013, at 7:47 AM, Gus Urban <gusunava...@gmail.com> wrote:

> What is the file that has the template file, 'item-metadata.php', in application/view/scripts/
> items?

the item-metadata.php file was replaced by common/record-metadata.php. That template isn't included by another file, but rather is used by the view helpers for displaying record metadata.

> If you want to remove the 'Dublin Core' heading, you could just copy the 'item-metadata.php' file to your own theme (in theme-name/items/),

> I use theme seasons and in my directory I have two files

> random-featured.php  show.php

> sorry for my questions

So yeah, if you want to change the output that's governed by that template, first you'd need to copy the core file to your own theme.

Copy: your_omeka_dir/applications/views/scripts/common/record-metadata.php

To: your_omeka_dir/themes/seasons/common/record-metadata.php

If your Seasons theme doesn't have a directory called 'common' you'll need to create that directory first.

And then edit the file in your theme as you wish. The Omeka codex has a good page explaining the relationship between Omeka's core view files and custom themes:

http://omeka.org/codex/Understanding_Default_Theme_Files

Best,
Jeremy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gus Urban  
View profile  
 More options Feb 28, 2:45 pm
From: Gus Urban <gusunava...@gmail.com>
Date: Thu, 28 Feb 2013 11:45:23 -0800 (PST)
Local: Thurs, Feb 28 2013 2:45 pm
Subject: Re: [omeka-dev] Hiding or changing the heading 'Dublin Core' that appears on /items/show.php

Jeremy
also work ok with these
it is ok or not?
gus

now I see the problem..
the file
record-metadata.php
that is in the directory
var/www/application/views/scripts/common#

In these file I must remove the line
<?php echo html_escape(__($setName)); ?></h2>

Thanks
Gus

El jueves, 28 de febrero de 2013 14:39:05 UTC-3, Jeremy Boggs escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »