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
campcaster/src/modules/storageServer/var
|
@ -429,11 +429,12 @@ class DataEngine {
|
||||||
}
|
}
|
||||||
$eres = array();
|
$eres = array();
|
||||||
// echo "\n---\n"; var_dump($res); echo"\n---\n";
|
// 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) {
|
foreach ($res as $it) {
|
||||||
if (!$browse) {
|
if (!$browse) {
|
||||||
$gunid = StoredFile::_normalizeGunid($it['gunid']);
|
$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(
|
$eres[] = array(
|
||||||
'id' => $it['id'],
|
'id' => $it['id'],
|
||||||
'gunid' => $gunid,
|
'gunid' => $gunid,
|
||||||
|
|
Loading…
Reference in New Issue