diff --git a/README.md b/README.md index fb083a2..1c44857 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tests/supportByService.php b/tests/supportByService.php index f8da46a..2238d87 100644 --- a/tests/supportByService.php +++ b/tests/supportByService.php @@ -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":"")." |"; }