File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ The _teipublisher.endpoint_ configuration property defines the HTTP or HTTPS URL
4242
4343### API Connectors
4444
45- The extension supports various authorities to query for entities:
45+ The extension supports various authorities to query for entities (plugin name in parentheses) :
4646
47- 1 . Karl Barth Archiv, Basel
48- 2 . Metagrid
49- 3 . Google Places
50- 4 . GND
47+ 1 . Karl Barth Archiv, Basel (kbga)
48+ 2 . Metagrid (metagrid)
49+ 3 . Google Places (google)
50+ 4 . GND (gnd)
5151
5252You can define a different connector for each entity type. The configuration is a JSON snippet like below:
5353
@@ -62,12 +62,12 @@ You can define a different connector for each entity type. The configuration is
6262 {
6363 "name" : " actors" ,
6464 "label" : " Akteure" ,
65- "plugin" : " metagrid "
65+ "plugin" : " gnd "
6666 },
6767 {
6868 "name" : " terms" ,
6969 "label" : " Sachen" ,
70- "plugin" : " kba "
70+ "plugin" : " kbga "
7171 }
7272]
7373```
Original file line number Diff line number Diff line change 44 "description" : " Visual Studio Code extension to support TEI editing" ,
55 "repository" : {
66 "type" : " git" ,
7- "url" : " https://gitlab .com/karl-barth/kb -vscode.git"
7+ "url" : " https://github .com/eeditiones/tei-publisher -vscode.git"
88 },
99 "publisher" : " eXist-db" ,
1010 "version" : " 0.0.2" ,
11+ "license" : " GPL-3.0-or-later" ,
1112 "engines" : {
1213 "vscode" : " ^1.51.0"
1314 },
105106 {
106107 "name" : " places" ,
107108 "label" : " Orte" ,
108- "plugin" : " kba "
109+ "plugin" : " kbga "
109110 },
110111 {
111112 "name" : " actors" ,
112113 "label" : " Akteure" ,
113- "plugin" : " kba "
114+ "plugin" : " kbga "
114115 },
115116 {
116117 "name" : " terms" ,
117118 "label" : " Sachen" ,
118- "plugin" : " kba "
119+ "plugin" : " kbga "
119120 }
120121 ]
121122 }
Original file line number Diff line number Diff line change 11import axios from 'axios' ;
22import { Registry , RegistryResultItem } from "../registry" ;
33
4- export class KBA extends Registry {
4+ export class KBGA extends Registry {
55
66 async query ( key :string ) {
77 const results :RegistryResultItem [ ] = [ ] ;
Original file line number Diff line number Diff line change 11import * as vscode from 'vscode' ;
2- import { KBA } from "./connectors/kba " ;
2+ import { KBGA } from "./connectors/kbga " ;
33import { Metagrid } from "./connectors/metagrid" ;
44import { GooglePlaces } from "./connectors/gplaces" ;
55import { GND } from "./connectors/gnd" ;
@@ -59,8 +59,8 @@ export class RegistryPanel implements vscode.WebviewViewProvider {
5959 configs . forEach ( ( config ) => {
6060 let registry ;
6161 switch ( config . plugin ) {
62- case 'kba ' :
63- registry = new KBA ( config ) ;
62+ case 'kbga ' :
63+ registry = new KBGA ( config ) ;
6464 break ;
6565 case 'google' :
6666 registry = new GooglePlaces ( config ) ;
You can’t perform that action at this time.
0 commit comments