We're updating the issue view to help you get more done. 

Working with Set Metadata

Description

I recently posted on the forum about working with set metadata - http://www.collectiveaccess.org/forum/topic.php?id=11947

Seth told me to file a bug here.

The auth details for my Collective Access instance on the website given is -

administrator
7d0f84

The PHP script I am running that tries to access metadata is at this URL -
http://www.sifxtreme.com/collectiveaccess-providence-1.2/test/set.php

The code in this script is
<?php

require('../setup.php');
require(_CA_LIB_DIR_.'/ca/Search/ObjectSearch.php');
require(_CA_LIB_DIR_.'/ca/Browse/ObjectBrowse.php');
require(_CA_MODELS_DIR_.'/ca_objects.php');
require(_CA_LIB_DIR_.'/ca/Search/SetSearch.php');
require(_CA_MODELS_DIR_.'/ca_sets.php');

$c_object = new ca_set_items();
$cArray = $c_object->getApplicableElementCodes();
print_r($cArray);
print "<br />";

$c_search = new SetSearch();
$cr_res = $c_search->search("*");
while($cr_res->nextHit()){
print "<br />".$cr_res->get("ca_sets.preferred_labels.name");
print "<br />".$cr_res->get("ca_sets.set_description");
print "<br />".$cr_res->get("ca_sets.set_code");
print "<br />".$cr_res->get("ca_set_items.caption");
print "<br />".$cr_res->get("ca_objects.idno");
print "<br />".$cr_res->get("ca_set_items.ca_objects.idno");
print "<br />";
}

?>

By looking at the results from clicking on the URL and looking at the script, it seems that any data related to Objects in a Set cannot be accessed.

Environment

Assignee

User known

Reporter

Asif Ahmed

Labels

Components

Affects versions

Priority

Minor
Configure