// Helper for preparation of author names
$names = explode(";", $this->authors);
$nameout = '';
foreach ($names as $name) {
$lastName = explode(",", $name);
$nameout .= '' .trim($lastName[0]) .', ' .trim($lastName[1]) ;
$nameout .= "; ";
}
if (strlen($nameout) > 2) $nameout = substr($nameout, 0 , strlen($nameout) - 2);
if (strcmp($this->role, "edt") == 0) {
$nameout .= " (Hrsg.):";
} else{
// $nameout .= ":";
}
// Offene Zusammenhänge : Open Access in der Berufsbildungsforschung /Hubert Ertl [Hrsg.]; Bodo Rödel [Hrsg.]
$seriesout = '';
$pos = strrpos($journal,"/");
if ($pos !== false) {
$vol = str_replace(" :",".", substr($journal,0, $pos-1));
$authors = str_replace(["[","]"], ["(",")"],substr($journal, $pos+1));
$au = explode(";",$authors);
$editorSwitch = false;
$authors = "";
foreach ($au as $author) {
// Abtrennen Funktionsbezeichnung
$pos = strpos($author,"(");
if ($pos !== false) {
$editorSwitch = true;
$author = trim(substr($author,0,$pos-1));
}
// Name und Vorname drehen
$a = explode(" ",$author);
if (count($a) >= 1) {
$author = '' .$a[1] .", " .substr($a[0],0,1) .'.';
}
$authors .= $author ."; ";
}
$authors = substr($authors, 0, strlen($authors) - strlen("; "));
if ($editorSwitch == true) {
$authors .= " (Hrsg.): ";
}
} else {
$vol = $journal;
$authors = '';
}
?>
if (!empty($this->authors)): ?>=$nameout?> endif; ?>
if (!empty($this->title)) : ?>=$this->escapeHtml($this->title)?> if ($this->periodAfterTitle): ?> endif; ?> endif; ?>
In:
= $authors ?> = trim(str_replace(array(":", ","), array("–",""),$vol)) ?>
if (!empty($this->volume) || !empty($vol)): ?> endif; ?>
if (!empty($this->issue)): ?>
(
=$this->escapeHtml($this->issue)?>
)
endif; ?>
if (!empty($this->volume) || !empty($this->issue)): ?>
endif; ?>
if (!empty($this->pubPlace)) : ?>=$this->escapeHtml($this->pubPlace)?> endif; ?>
if (!empty($this->volume)): ?>=$this->escapeHtml(str_replace(array("H.",",") ,array("",""),$this->volume))?>, endif; ?>
if (empty($this->volume)) : ?> if (!empty($this->year)) : ?> =$this->escapeHtml($this->year)?> endif; ?> endif; ?>
if (!empty($this->pageRange)) : ?> =$this->escapeHtml(str_replace("Seite","S.",$this->pageRange))?>
if (isset($this->doi)): ?>. doi:=$this->escapeHtml($this->doi)?> endif; ?>