Skip to content
Snippets Groups Projects
Commit c9334f0c authored by Sebastian Kehr's avatar Sebastian Kehr 🚣🏼
Browse files

refs #16624 [fid]

* handle multi-valued issue attribute in publication meta data
* normalize publication issue only if actually set
parent bb6c0a3f
No related merge requests found
...@@ -44,6 +44,10 @@ class OrderHydrator extends AbstractHydrator { ...@@ -44,6 +44,10 @@ class OrderHydrator extends AbstractHydrator {
$url = $data['url']; $url = $data['url'];
/* Collect special journal data used for subito-article*/ /* Collect special journal data used for subito-article*/
$publishedIn = $driver->tryMethod('getPublishedIn'); $publishedIn = $driver->tryMethod('getPublishedIn');
if (isset($publishedIn['issue'])) {
$publishedIn['issue'] = is_string($publishedIn['issue'])
? $publishedIn['issue'] : implode(', ', $publishedIn['issue']);
}
$record = compact( $record = compact(
'id', 'id',
......
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