Commit dbbf1356 authored by Mark Jordan's avatar Mark Jordan
Browse files

Some cleanup.

parent ef076e1c
......@@ -40,15 +40,8 @@ function digitallibsfuca_custom_navigation_collection_home_link_visibility($pid)
$root_collection = variable_get('islandora_repository_pid', 'islandora:root');
$object_collections = $object->relationships->get(FEDORA_RELS_EXT_URI, 'isMemberOfCollection');
foreach ($object_collections as $object_collection) {
if ($host = $base_url) {
if (in_array('islandora:collectionCModel', $object->models)) {
return TRUE;
}
}
else {
if ($object_collection['object']['value'] == $root_collection) {
return TRUE;
}
if ($object_collection['object']['value'] == $root_collection) {
return TRUE;
}
}
}
......@@ -80,7 +73,7 @@ function digitallibsfuca_custom_navigation_get_pid_from_url_to_arg($arg) {
$pid = arg(2);
global $base_url;
$host = 'http://newspapers.lib.sfu.ca';
if ($host = $base_url) {
if ($host == $base_url) {
// Get the object with PID arg(2), if it's a newspaper then
// get the PID of its parent collection and return its PID.
if ($object = islandora_object_load($pid)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment