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

Commit

Permalink
Ergänzung Tab Beschreibung
Browse files Browse the repository at this point in the history
*siehe auch #300
*ergänzt 516, 518, 521, 546, 246 $b, 247 $b
  • Loading branch information
witzigs committed Dec 11, 2015
1 parent f1234db commit d6015b0
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 4 deletions.
4 changes: 4 additions & 0 deletions local/languages/de.ini
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ Publication = "Ort, Verlag, Jahr"
Year = "Jahr"
Your_Search = "Ihre Suche"
Other_Title = "Titelvariante"
Former_Title = "Früherer Titel"
Library_Information = "Bibliotheksinformation"
Item_Information = "Exemplarinformation"
No_Item_Information = "Keine Exemplarinformation"
Expand All @@ -343,6 +344,9 @@ Numeration = "Zählung"
Original_Version_Note = "Originalausgabe"
Original_Title = "Originaltitel"
Performer = "Darsteller / Interpreten"
File_Note = "Dateityp"
Event_Note = "Datum/Ort der Aufzeichnung"
Langugage_Note = "Sprache und Schrift"
Copy_Note = "Exemplarnotiz"
Show_Location_Map = "Lageplan anzeigen"
Order_EBook_tooltip = "Bestellen Sie dieses Buch als E-Book"
Expand Down
4 changes: 4 additions & 0 deletions local/languages/en.ini
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ Publication = "Place, publisher, year"
Year = "Year"
Your_Search = "Your search"
Other_Title = "Other title"
Former_Title = "Former title"
Library_Information = "Library Info"
Item_Information = "Item information"
No_Item_Information = "No item information"
Expand All @@ -343,6 +344,9 @@ Numeration = "Numeration"
Original_Version_Note = "Original Edition"
Original_Title = "Original Title"
Performer = "Performers / Interpreters"
File_Note = "Type of file"
Event_Note = "Date and place of capture"
Langugage_Note = "Language and script"
Copy_Note = "Copy Note"
Show_Location_Map = "Show location"
Order_EBook_tooltip = "Order this book as eBook"
Expand Down
4 changes: 4 additions & 0 deletions local/languages/fr.ini
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ Publication = "Lieu, éditeur, dates"
Year = "Date"
Your_Search = "Votre recherche"
Other_Title = "Variante du titre"
Former_Title = "Titre antérieur"
Library_Information = "Informations sur la bibliothèque"
Item_Information = "Informations sur les exemplaires"
No_Item_Information = "Informations sur l'exemplaire n'est pas disponible"
Expand All @@ -343,6 +344,9 @@ Numeration = "Numérotation"
Original_Version_Note = "Edition originale"
Original_Title = "Titre original"
Performer = "Acteurs / Interprètes"
File_Note = "Type de fichier"
Event_Note = "Date/lieu de captation"
Langugage_Note = "Langue et écriture"
Copy_Note = "Note locale"
Show_Location_Map = "Plan de situation"
Order_EBook_tooltip = "Commandez ce livre comme livre numérique"
Expand Down
4 changes: 4 additions & 0 deletions local/languages/it.ini
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ Publication = "Luogo, editore, anno"
Year = "Anno"
Your_Search = "Ricerca per"
Other_Title = "Altro titolo"
Former_Title = "Titolo anteriore"
Library_Information = "Info biblioteca"
Item_Information = "Esemplari"
No_Item_Information = "Senza informazione"
Expand All @@ -343,6 +344,9 @@ Numeration = "Numerazione"
Original_Version_Note = "Edizione originale"
Original_Title = "Titolo originale"
Performer = "Interprete"
File_Note = "Tipo di file"
Event_Note = "Data/luogo di registrazione"
Langugage_Note = "Lingua e scrittura"
Copy_Note = "Copy Note"
Show_Location_Map = "Piano di ubicazione"
Order_EBook_tooltip = "Ordina questo libro comme libro elettronico"
Expand Down
41 changes: 40 additions & 1 deletion module/Swissbib/src/Swissbib/RecordDriver/SolrMarc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,17 @@ public function getEdition()
*/
public function getAltTitle()
{
return $this->getFieldArray('246', '247');
return $this->getFieldArray('246', ['a', 'b']);
}

/**
* Get former title
*
* @return array
*/
public function getFormerTitle()
{
return $this->getFieldArray('247', ['a', 'b']);
}

/**
Expand Down Expand Up @@ -1426,6 +1436,26 @@ public function getPerformerNote()
return $this->getFieldArray('511');
}

/**
* Get type of computer file or data note for the record.
*
* @return array
*/
public function getFileNote()
{
return $this->getFieldArray('516');
}

/**
* Get date/time and place of an event note for the record.
*
* @return array
*/
public function getEventNote()
{
return $this->getFieldArray('518');
}

/**
* Get original version note for the record.
*
Expand All @@ -1436,6 +1466,15 @@ public function getOriginalVersionNotes()
return $this->getFieldArray('534', ['p', 't', 'c']);
}

/**
* Get language information
* @return array
*/
public function getLangData()
{
return $this->getFieldArray('546', ['a', 'b']);
}

/**
* Get Copy and Version Identification Note
*
Expand Down
71 changes: 68 additions & 3 deletions themes/sbvfrd/templates/RecordTab/description.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ $dois = $record->getDOIs();
$urns = $record->getURNs();

$alttitle = $record->getAltTitle();
$formerTitle = $record->getFormerTitle();

$series = $record->getSeries();
$collectionTitle = $record->getCollectionTitle();
Expand Down Expand Up @@ -97,6 +98,18 @@ $prevTitles = $record->getPreviousTitles();
</tr>
<? endif; ?>

<? if (!empty($formerTitle)): ?>
<? $contentDisplayed = true; ?>
<tr>
<th> <?=$this->transEsc('Former_Title') ?>: </th>
<td>
<? foreach ($formerTitle as $field): ?>
<?= $this->escapeHtml($field) ?><br/>
<? endforeach; ?>
</td>
</tr>
<? endif; ?>

<? if (!empty($series)): ?>
<? $contentDisplayed = true; ?>
<tr>
Expand Down Expand Up @@ -194,10 +207,14 @@ $prevTitles = $record->getPreviousTitles();
$credits = $record->getProductionCredits();
$origtitle = $record->getOriginalTitle();
$perfomer = $record->getPerformerNote();
$fileNote = $record->getFileNote();
$eventNote = $record->getEventNote();
$audience = $record->getTargetAudienceNotes();
$awards = $record->getAwards();
$citenotes = $record->getCitationNotes();
$orignotes = $record->getOriginalVersionNotes();
$histData = $record->getHistData();
$langData = $record->getLangData();
$copynotes = $record->getCopyNotes();
$system = $record->getSystemDetails();
$relatedEntries = $record->getRelatedEntries();
Expand All @@ -206,7 +223,8 @@ $prevTitles = $record->getPreviousTitles();
<? if (!empty($notes) or !empty($freq) or !empty($contDates) or !empty($diss) or
!empty($bib) or !empty($access) or !empty($related) or !empty($credits) or !empty($awards) or
!empty($citenotes) or !empty($orignotes) or !empty($copynotes) or !empty($histData) or
!empty($origtitle) or !empty($perfomer) or !empty($system) or !empty($relatedEntries)): ?>
!empty($origtitle) or !empty($perfomer) or !empty($system) or !empty($relatedEntries) or
!empty($langData) or !empty($audience) or !empty($eventNote) or !empty($fileNote)): ?>
<? $contentDisplayed = true; ?>

<? /* Display general notes (field 500) */ ?>
Expand Down Expand Up @@ -329,7 +347,7 @@ $prevTitles = $record->getPreviousTitles();
</tr>
<? endif; ?>

<? /* Display participant / performers note */ ?>
<? /* Display participant / performers note (field 511) */ ?>
<? if (!empty($perfomer)): ?>
<tr>
<th><?= $this->transEsc('Performer') ?>: </th>
Expand All @@ -341,6 +359,42 @@ $prevTitles = $record->getPreviousTitles();
</tr>
<? endif; ?>

<? /* Display type of computer file or data note (field 516) */ ?>
<? if (!empty($fileNote)): ?>
<tr>
<th><?= $this->transEsc('File_Note') ?>: </th>
<td>
<? foreach ($fileNote as $field): ?>
<?= $this->escapeHtml($field) ?><br/>
<? endforeach; ?>
</td>
</tr>
<? endif; ?>

<? /* Display date/time and place of an event note (field 518) */ ?>
<? if (!empty($eventNote)): ?>
<tr>
<th><?= $this->transEsc('Event_Note') ?>: </th>
<td>
<? foreach ($eventNote as $field): ?>
<?= $this->escapeHtml($field) ?><br/>
<? endforeach; ?>
</td>
</tr>
<? endif; ?>

<? /* Display target audience note (field 521) */ ?>
<? if (!empty($audience)): ?>
<tr>
<th><?=$this->transEsc('Audience')?>: </th>
<td>
<? foreach ($audience as $field): ?>
<?=$this->escapeHtml($field)?><br/>
<? endforeach; ?>
</td>
</tr>
<? endif; ?>

<? /* Display original version note (field 534) */ ?>
<? if (!empty($orignotes)): ?>
<tr>
Expand All @@ -353,7 +407,7 @@ $prevTitles = $record->getPreviousTitles();
</tr>
<? endif; ?>

<? /* Display biographical info and administrative history */ ?>
<? /* Display biographical info and administrative history (field 545) */ ?>
<? if (!empty($histData)): ?>
<tr>
<th><?= $this->transEsc('Bio_Adm_Hist') ?>: </th>
Expand All @@ -365,6 +419,17 @@ $prevTitles = $record->getPreviousTitles();
</tr>
<? endif; ?>

<? /* Display language info (field 546) */ ?>
<? if (!empty($langData)): ?>
<tr>
<th><?= $this->transEsc('Language_Note') ?>: </th>
<td>
<? foreach ($langData as $field): ?>
<?= $this->escapeHtml($field) ?><br/>
<? endforeach; ?>
</td>
</tr>
<? endif; ?>

<? /* Display copy and version identification note (fields 562 and 590) */ ?>
<? if (!empty($copynotes)): ?>
Expand Down

0 comments on commit d6015b0

Please sign in to comment.