From df839db51aab1288e4b4ef36c8323e21662d0141 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Sat, 3 Jul 2021 00:02:25 +0200 Subject: update extra README --- extra/abbrev/README.md | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/extra/abbrev/README.md b/extra/abbrev/README.md index a5c8e06..f903751 100644 --- a/extra/abbrev/README.md +++ b/extra/abbrev/README.md @@ -1,6 +1,6 @@ -# README +# Journal Name Abbreviations -Journal list. +Journal lists: * https://www.library.caltech.edu/journal-title-abbreviations * https://images.webofknowledge.com/images/help/WOS/A_abrvjt.html @@ -9,10 +9,34 @@ Journal list. $ pup 'dl json{}' < A_abrvjt.html | jq -rc .[0].children[] | grep "children" | python parse.py ``` -Generate a full list. +Generate a name mapping as json. ``` $ while read line; do (curl -v "$line" | pup 'dl json{}' | jq -rc .[0].children[] | grep "children" | python parse.py); done < <(curl "https://www.library.caltech.edu/journal-title-abbreviations" | pup 'a attr{href}' | grep "help/WOS") > result.json ``` + +Output example (pretty printed): + +```json +{ + "name": "JOURNAL OF COMPARATIVE PATHOLOGY", + "abbrev": "J COMP PATHOL" +} +{ + "name": "CIRCULAR-GRATING LIGHT-EMITTING SOURCES", + "abbrev": "P SOC PHOTO-OPT INS" +} +{ + "name": "PEST CONTROL & SUSTAINABLE AGRICULTURE" +} +{ + "name": "COMPUTER INFORMATION SYSTEMS AND INDUSTRIAL MANAGEMENT", + "abbrev": "LECT NOTES COMPUT SC" +} +{ + "name": "Flexible Databases Supporting Imprecision and Uncertainty", + "abbrev": "STUD FUZZ SOFT COMP" +} +``` -- cgit v1.2.3