Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
add german #3
Browse files Browse the repository at this point in the history
  • Loading branch information
mshd committed Jun 5, 2020
1 parent 7d7bdd3 commit 75606a5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ var_dump($sruCatalog->parse([

(can be generated by ```php tests/supportByService.php```)

| . | gvkk10plus | bvb | dnb | k10plus | loc |
|-|-|-|-|-|-|
| all | x | | x | | x |
| title | x | x | x | x | x |
| author | x | x | x | x | x |
| subject | x | x | x | x | x |
| idn | x | x | x | x | x |
| isxn | x | x | x | x | x |
| isbn | x | x | | | x |
| issn | x | | | | x |
| publisher | x | | x | | |
| publisherPlace | x | | x | | |
| year | x | | x | x | |
| language | x | | x | | |
| corperation | x | | x | | x |
| key | German-trans | gvkk10plus | bvb | dnb | k10plus | loc |
|-|-|-|-|-|-|-|
| all | Alles | x | | x | | x |
| title | Titel | x | x | x | x | x |
| author | Autor | x | x | x | x | x |
| subject | Stichwort | x | x | x | x | x |
| idn | Identifikationnr des Catalogs (ppn) | x | x | x | x | x |
| isxn | ISXN | x | x | x | x | x |
| isbn | ISBN | x | x | | | x |
| issn | ISSN | x | | | | x |
| publisher | Verleger/Firma | x | | x | | |
| publisherPlace | Verleger Ort | x | | x | | |
| year | Jahr | x | | x | x | |
| language | Sprache | x | | x | | |
| corperation | Körperschaft | x | | x | | x |m

## Testing

Expand Down
8 changes: 6 additions & 2 deletions tests/supportByService.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@
foreach($sruCatalog->supportedKeys as $key=>$val){
$table[$key] = [];
}
$html = "| . |";
$html = "| key | German-trans |";
foreach($sruCatalog->getServices() as $serviceKey=>$serviceValue){
$html .= " ".$serviceKey." |";
foreach($table as $searchKey => $searchValue){
array_push($table[$searchKey],array_key_exists($searchKey,$serviceValue["search"]));
}
}
$html .="\n|-|-|-|-|-|-|";
$html .="\n|-|-|-|-|-|-|-|";

foreach($table as $key => $value){
$html .= "\n| ".$key." |";

//German
$html .= " ".$sruCatalog->supportedKeys[$key]["de"]." |";

foreach($value as $exists){
$html .= " ".($exists?"x":"")." |";
}
Expand Down

0 comments on commit 75606a5

Please sign in to comment.