Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Commit

Permalink
Relatoreneinträge in Beschreibung
Browse files Browse the repository at this point in the history
* #300
* Viewhelper ergänzt
* Übersetzungen erstellt
  • Loading branch information
Oliver Schihin committed Aug 14, 2015
1 parent 1885fba commit fc0ad6a
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 30 deletions.
14 changes: 7 additions & 7 deletions local/languages/de.ini
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ Related Subjects = "Thema"
Related Entries = "Weitere Beteiligte"
relator_ann = "Annotator"
relator_bkd = "Druckerei"
relator_bnd = "???"
relator_dis = "???"
relator_dte = "???"
relator_dto = "???"
relator_bnd = "Buchbinder"
relator_dis = "Praeses"
relator_dte = "Widmungsempfänger"
relator_dto = "Widmungsverfasser"
relator_fmo = "Vorbesitzer"
relator_opn = "???"
relator_ppm = "???"
relator_scr = "???"
relator_opn = "Respondens"
relator_ppm = "Papierhersteller"
relator_scr = "Schreiber"
request_place_text = "Bestellen"
request_title = "Sie bestellen"
request_submit_text = "Bestellen"
Expand Down
14 changes: 7 additions & 7 deletions local/languages/en.ini
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ Related Subjects = "Subject"
Related Entries = "Additionaly involved"
relator_ann = "Annotator"
relator_bkd = "Printer"
relator_bnd = "???"
relator_dis = "???"
relator_dte = "???"
relator_dto = "???"
relator_bnd = "Binder"
relator_dis = "Praeses"
relator_dte = "Dedicatee"
relator_dto = "Dedicator"
relator_fmo = "Previous owner"
relator_opn = "???"
relator_ppm = "???"
relator_scr = "???"
relator_opn = "Opponent"
relator_ppm = "Papermaker"
relator_scr = "Scribe"
request_place_text = "Order"
request_title = "You are ordering"
request_submit_text = "Order"
Expand Down
14 changes: 7 additions & 7 deletions local/languages/fr.ini
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ Related Subjects = "Sujet"
Related Entries = "Participants additionnels"
relator_ann = "Annotateur"
relator_bkd = "Imprimeur"
relator_bnd = "???"
relator_dis = "???"
relator_dte = "???"
relator_dto = "???"
relator_bnd = "Relieur"
relator_dis = "Praeses"
relator_dte = "Dédicataire"
relator_dto = "Auteur de dedicace"
relator_fmo = "Possesseur précédent"
relator_opn = "???"
relator_ppm = "???"
relator_scr = "???"
relator_opn = "Respondens"
relator_ppm = "Papetier"
relator_scr = "Scribe"
request_place_text = "Commander"
request_title = "Vous commandez"
request_submit_text = "Commander"
Expand Down
14 changes: 7 additions & 7 deletions local/languages/it.ini
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ Related Subjects = "Soggetto"
Related Entries = "Partecipi"
relator_ann = "Annotatore"
relator_bkd = "Stampatore"
relator_bnd = "???"
relator_dis = "???"
relator_dte = "???"
relator_dto = "???"
relator_bnd = "Rilegatore"
relator_dis = "Praeses"
relator_dte = "Dedicatee"
relator_dto = "Dedicator"
relator_fmo = "Possessore precedente"
relator_opn = "???"
relator_ppm = "???"
relator_scr = "???"
relator_opn = "Respondens"
relator_ppm = "Papermaker"
relator_scr = "Scriba"
request_place_text = "Ordinare"
request_title = "Ordini"
request_submit_text = "Ordinare"
Expand Down
18 changes: 16 additions & 2 deletions module/Swissbib/src/Swissbib/View/Helper/FormatRelatedEntries.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,16 @@ protected function formatRelatedPerson(array $relatedPerson)
$formattedEntry = $relatedPerson['name'];
}

if (isset($relatedPerson['secondName'])) {
$formattedEntry .= ', ' . $relatedPerson['secondName'];
if (isset($relatedPerson['forename'])) {
$formattedEntry .= ', ' . $relatedPerson['forename'];
}

if (isset($relatedPerson['1titles'])) {
$formattedEntry .= ' ' . $relatedPerson['1titles'];
}

if (isset($relatedPerson['dates'])) {
$formattedEntry .= ' (' . $relatedPerson['dates'] . ')';
}

$formattedEntry .= ' (' . $translatedRelatorCode . ')';
Expand All @@ -134,6 +142,12 @@ protected function formatRelatedCorporation(array $relatedCorporation)
$formattedEntry = $relatedCorporation['name'];
}

if (isset($relatedCorporation['unit'])) {
foreach($relatedCorporation['unit'] as $unit) {
$formattedEntry .= '. ' . $unit;
}
}

$formattedEntry .= ' (' . $translatedRelatorCode . ')';

return $formattedEntry;
Expand Down

0 comments on commit fc0ad6a

Please sign in to comment.