diff --git a/mapping-tools/README.md b/mapping-tools/README.md index 4f8ecbc..774b8ff 100644 --- a/mapping-tools/README.md +++ b/mapping-tools/README.md @@ -13,20 +13,18 @@ - `@ezs/basics` - `@ezs/analytics` -Et jusqu'à `@ezs/analytics@1.16.4`, il faut ajouter `node-object-hash@2.3.10`. - -Exemple: - ```json { "packages": [ - "@ezs/analytics@1.16.4", - "@ezs/basics@1.14.0", - "node-object-hash@2.3.10" + "@ezs/core@1.28.2", + "@ezs/analytics@1.18.5", + "@ezs/basics@1.17.1" ] } ``` +Exemple + ## Utilisation - [v1/halAuthorId/idRef/json](#v1/halauthorid/idref/json) @@ -182,6 +180,81 @@ }] ``` +### v1/inspire-category/meta-category/json + +Prend en entrée du JSON avec deux champs: `id` et `value`. +Le champ `value` doit contenir une catégorie [Inspire](https://inspirehep.net/). +Renvoie un JSON avec une méta-catégorie [IN2P3](https://www.in2p3.cnrs.fr/) dans +le champ `value`. + +> **Remarque**: quand on ne trouve pas de méta-catégorie correspondante, la +> valeur est `n/a` (*not available*) + +#### Paramètres de v1/inspire-category/meta-category/json + +| nom | description | +| :----- | :--------------------------------------------------------------------- | +| indent | `true` ou `false`, indente le JSON résultat ou non (`true` par défaut) | + +#### Exemple + +```bash +cat < **Remarque**: quand on ne trouve pas un code labo IN2P3 correspondant, la +> valeur est `n/a` (*not available*) + +#### Paramètres de v1/inspire-labos/in2p3-labos/json + +| nom | description | +| :----- | :--------------------------------------------------------------------- | +| indent | `true` ou `false`, indente le JSON résultat ou non (`true` par défaut) | + +#### Exemple + +```bash +cat <