Skip to content
Snippets Groups Projects
Commit b704e42d authored by Dorian Merz's avatar Dorian Merz
Browse files

refs #15650 [master] display playing time as-is

* removes string manipulation for playing times
* MARC 306$a is always (?) filled with display-ready playing times
parent 69e24125
No related merge requests found
...@@ -290,16 +290,8 @@ class SolrMarc extends SolrDefault ...@@ -290,16 +290,8 @@ class SolrMarc extends SolrDefault
*/ */
public function getPlayingTimes() public function getPlayingTimes()
{ {
$times = $this->getFieldArray('306', ['a'], false); // we do not need the special re-formatting from the super method
return $this->getFieldArray('306', ['a'], false);
// Format the times to include colons ("HH:MM:SS" format).
for ($x = 0; $x < count($times); $x++) {
$times[$x] = substr($times[$x], 0, 2) . ':' .
substr($times[$x], 2, 2) . ':' .
substr($times[$x], 4, 2);
}
return $times;
} }
/** /**
......
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