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

Commit

Permalink
Anzeige von MARC-Feldern 581 & 585
Browse files Browse the repository at this point in the history
* im Tab "Beschreibung"
* @ToVie z.K.
  • Loading branch information
Oliver Schihin committed Mar 16, 2016
1 parent 286b123 commit 3d33af8
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 11 deletions.
2 changes: 2 additions & 0 deletions local/languages/de.ini
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Email this Search = "Per E-Mail versenden"
email_link = "Link"
email_selected = "Per E-Mail versenden"
email_selected_favorites = "Per E-Mail versenden"
Exhibitions = "Ausstellungen"
Export Favorites = "Exportieren"
Export Items = "Exportieren"
Export Record = "Exportieren"
Expand Down Expand Up @@ -194,6 +195,7 @@ print_selected = "Drucken"
Profile = "Profil"
PublicationDate = "Erscheinungsjahr"
publishDate = "Erscheinungsjahr"
Publications = "Publikationen"
Recall This = "Reservieren"
Record Count = "Anzahl"
Related Author = "Verfasser/Beitragende"
Expand Down
2 changes: 2 additions & 0 deletions local/languages/en.ini
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Email this Search = "Email this"
email_link = "Link"
email_selected = "Email selected"
email_selected_favorites = "Email selected"
Exhibitions = "Exhibitions"
Export Favorites = "Export"
Export Items = "Export"
Export Record = "Export"
Expand Down Expand Up @@ -193,6 +194,7 @@ print_selected = "Print"
Profile = "Profile"
PublicationDate = "Year of publication"
publishDate = "Year of publication"
Publications = "Publications"
Recall This = "Place a hold request"
Record Count = "Record count"
Related Author = "Authors/Contributors"
Expand Down
2 changes: 2 additions & 0 deletions local/languages/fr.ini
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Email this Search = "Envoyer par e-mail"
email_link = "Link"
email_selected = "Envoyer par e-mail"
email_selected_favorites = "Envoyer par e-mail"
Exhibitions = "Expositions"
Export Favorites = "Exporter"
Export Items = "Exporter"
Export Record = "Exporter"
Expand Down Expand Up @@ -193,6 +194,7 @@ print_selected = "Imprimer"
Profile = "Profil"
PublicationDate = "Date de publication"
publishDate = "Date de publication"
Publications = "Publications"
Recall This = "Réserver"
Record Count = "Nombre de notices"
Related Author = "Auteurs/Contributeurs"
Expand Down
2 changes: 2 additions & 0 deletions local/languages/it.ini
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Email this Search = "Inviare per e-mail"
email_link = "Link"
email_selected = "Inviare per e-mail"
email_selected_favorites = "Inviare per e-mail"
Exhibitions = "Esposizioni"
Export Favorites = "Esporta"
Export Items = "Esporta"
Export Record = "Esporta"
Expand Down Expand Up @@ -193,6 +194,7 @@ print_selected = "Stampa"
Profile = "Profilo"
PublicationDate = "Anno di pubblicazione"
publishDate = "Anno di pubblicazione"
Publications = "Pubblicazioni"
Recall This = "Prenotare"
Record Count = "Conteggio dei record"
Related Author = "Autori/Contribuenti"
Expand Down
32 changes: 22 additions & 10 deletions module/Swissbib/src/Swissbib/RecordDriver/SolrMarc.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ class SolrMarc extends VuFindSolrMarc implements SwissbibRecordDriver
'OriginalVersionNotes',
'CopyNotes',
'SystemDetails',
'Publications',
'Exhibitions',
'RelationshipNotes',
'HierarchicalPlaceNames',
'RelatedEntries',
Expand Down Expand Up @@ -1560,16 +1562,6 @@ public function getLangData()
return $this->getFieldArray('546', ['a', 'b']);
}

/**
* Get Copy and Version Identification Note
*
* @return array
*/
public function getCopyIdentificationNote()
{
return $this->getFieldArray('562', ['c']);
}

/**
* Get original version note for the record (MARC21: field 562)
* and item-specific note for the record (swissbib MARC: field 590)
Expand All @@ -1586,6 +1578,26 @@ public function getCopyNotes()
return $copynotes;
}

/**
* Get publications about described materials note (581)
*
* @return array
*/
public function getPublications()
{
return $this->getFieldArray('581');
}

/**
* Get exhibitions note (585)
*
* @return array
*/
public function getExhibitions()
{
return $this->getFieldArray('585');
}

/**
* Get group-id from solr-field to display FRBR-Button
*
Expand Down
29 changes: 28 additions & 1 deletion themes/sbvfrd/templates/RecordTab/description.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,17 @@ $prevTitles = $record->getPreviousTitles();
$langData = $record->getLangData();
$copynotes = $record->getCopyNotes();
$system = $record->getSystemDetails();
$publications = $record->getPublications();
$exhibitions = $record->getExhibitions();
$relatedEntries = $record->getRelatedEntries();
?>

<? 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) or
!empty($langData) or !empty($audience) or !empty($eventNote) or !empty($fileNote) or !empty($worktitle)): ?>
!empty($langData) or !empty($audience) or !empty($eventNote) or !empty($fileNote) or !empty($publications) or
!empty($exhibitions) or !empty($worktitle)): ?>
<? $contentDisplayed = true; ?>

<? /* Display general notes (field 500) */ ?>
Expand Down Expand Up @@ -468,6 +471,30 @@ $prevTitles = $record->getPreviousTitles();
</tr>
<? endif; ?>

<? /* Display Publications About Described Materials Note (field 581) */ ?>
<? if (!empty($publications)): ?>
<tr>
<th><?= $this->transEsc('Publications') ?>: </th>
<td>
<? foreach ($publications as $field): ?>
<?= $this->escapeHtml($field) ?><br/>
<? endforeach; ?>
</td>
</tr>
<? endif; ?>

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

<? /* Display award notes (field 586) */ ?>
<? if (!empty($awards)): ?>
<tr>
Expand Down

0 comments on commit 3d33af8

Please sign in to comment.