Display of Transcribe & SocialBookmarking

Hello,

Two little issues in the Seasons theme in Omeka 2.1:

1. How can I get rid of the link to "Transcribe" on an item's show page? I've broken my page trying to find the right place to get rid of it.

2. How can I make the white box extend to cover the heading for my SocialBookmarking plugin?
I have a link to a screen shot here that is more explanatory:
http://imageshack.us/a/img191/2828/ag4x.jpg

Thanks for your help!

I had the same problem with the SocialBookmarking plugin. I fixed it by adding some div tags.

In the SocialBookmarkingPlugin.php file, find the following lines:

echo '<h2>' . __('Social Bookmarking') . '</h2>';
echo social_bookmarking_toolbar($url, $title, $description);

And replace it with:

echo '<div><h2>' . __('Social Bookmarking') . '</h2>';
echo social_bookmarking_toolbar($url, $title, $description);
echo '</div>';

Note how you are adding a new "echo" line to the code. This code shows up two times in the file, so replace it both times.

Hope that helps! As for your first issue, where did the "Transcribe This Item" come from? I've never seen that before. Is it from another plugin?

Thank you for showing me the proper place to put the div tags! It was a small problem, but one that was very noticeable.

As for "Transcribe This Item", it is a link to the plugin Scripto (I've just re-named the label).

The plugin generates a link on an item's show page for each uploaded file. The link takes you to the transcription page, but I don't want this link on every item record. I feel like it may cause confusion if it's just a visual resource, like a photograph.

On earlier versions of Omeka, I think I was able to edit the plugin's files quite easily, but I just keep breaking my site by deleting this on ScriptoPlugin.php:

/**
* Append the transcribe link to the public items show page.
*/
public function hookPublicItemsShow()
{
$this->_appendToItemsShow();
}

AND

/**
* Append the transcribe link to the items show page.
*/
protected function _appendToItemsShow()
{
$item = get_current_record('item');
$scripto = self::getScripto();
// Do not show page links if document is not valid.
if (!$scripto->documentExists($item->id)) {
return;
}
$doc = $scripto->getDocument($item->id);
?>
<h2><?php echo __('Transcribe This Item'); ?></h2>

    <?php foreach ($doc->getPages() as $pageId => $pageName): ?>

  1. 'transcribe',
    'item-id' => $item->id,
    'file-id' => $pageId),
    'scripto_action_item_file'); ?>" id="scripto-transcribe-item"><?php echo $pageName; ?>
  2. <?php endforeach; ?>

<?php
}

I am not sure where else I could be editing, so I would appreciate any thoughts or suggestions.

Thanks!

I'm happy that worked for you! You're very welcome.

Hmm, without downloading the plugin and tinkering with it myself, I couldn't tell you for sure, but I would try just deleting the following line:

<h2><?php echo __('Transcribe This Item'); ?></h2>

Thanks, you are very helpful.
I ended up removing this:

<h2><?php echo __('Transcribe This Item'); ?></h2>

    <?php foreach ($doc->getPages() as $pageId => $pageName): ?>

  1. 'transcribe',
    'item-id' => $item->id,
    'file-id' => $pageId),
    'scripto_action_item_file'); ?>" id="scripto-transcribe-item"><?php echo $pageName; ?>
  2. <?php endforeach; ?>

It worked very well. I was making it way too hard. Thanks!