Changed to use the potentially faster form of bsGetMetadataValue which fetches all metadata at once instead of one at a time.

This commit is contained in:
paul 2006-11-23 07:15:26 +00:00
parent 91130937c5
commit 49c4036a5a
1 changed files with 3 additions and 2 deletions

View File

@ -429,11 +429,12 @@ class DataEngine {
}
$eres = array();
// echo "\n---\n"; var_dump($res); echo"\n---\n";
$categoryNames = array('dc:title', 'dc:creator', 'dc:source', 'dcterms:extent');
//$categoryNames = array('dc:title', 'dc:creator', 'dc:source', 'dcterms:extent');
foreach ($res as $it) {
if (!$browse) {
$gunid = StoredFile::_normalizeGunid($it['gunid']);
$values = $this->gb->bsGetMetadataValue($it['id'], $categoryNames);
//$values = $this->gb->bsGetMetadataValue($it['id'], $categoryNames);
$values = $this->gb->bsGetMetadataValue($it['id']);
$eres[] = array(
'id' => $it['id'],
'gunid' => $gunid,