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:
parent
91130937c5
commit
49c4036a5a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue