Skip to content

Commit

Permalink
fixes for tickets ISLANDORA-596 and ISLANDORA-597
Browse files Browse the repository at this point in the history
  • Loading branch information
ppound committed May 9, 2012
1 parent d230f27 commit 06907b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CollectionClass.inc
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,9 @@ class CollectionClass {
global $base_url;
$collection_pid = $pid; //we will be changing the pid later maybe
$parsedContent = NULL;
if(!isset($this->collectionObject)){
$this->collectionObject = new ObjectHelper($pid);
}
$contentModels = $this->collectionObject->get_content_models_list($pid);
$isCollection = FALSE;
//if this is a collection object store the $pid in the session as it will come in handy
Expand Down
4 changes: 2 additions & 2 deletions plugins/tagging_form.inc
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ function fedora_repository_image_tagging_form($form_state, $pid) {
$tagset = new TagSet($obj);
$tags = array();
foreach ($tagset->tags as $tag) {
$form_tag =& $form['tags-wrapper']['tags'][$tag['name']] = array(
$form_tag = $form['tags-wrapper']['tags'][$tag['name']] = array(
'#prefix' => '<li>',
'#suffix' => '</li>',
);

$tag_title_text = t('Added by @creator.', array(
'@creator' => $tag['creator'],
));
$tag_mnpl_search_path = "fedora/repository/mnpl_advanced_search/tag:{$tag['name']}"
$tag_mnpl_search_path = "fedora/repository/mnpl_advanced_search/tag:{$tag['name']}";
$form_tag['tag'] = array(
'#value' => l($tag['name'], $tag_mnpl_search_path, array('attributes' => array(
'title' => $tag_title_text
Expand Down

0 comments on commit 06907b7

Please sign in to comment.