Skip to content

Commit c52acdc

Browse files
committed
Rename kba connector to kbga
1 parent 8c73758 commit c52acdc

4 files changed

Lines changed: 16 additions & 15 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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

5252
You 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
```

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
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
},
@@ -105,17 +106,17 @@
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
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios from 'axios';
22
import { 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[] = [];

src/panel.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as vscode from 'vscode';
2-
import { KBA } from "./connectors/kba";
2+
import { KBGA } from "./connectors/kbga";
33
import { Metagrid } from "./connectors/metagrid";
44
import { GooglePlaces } from "./connectors/gplaces";
55
import { 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);

0 commit comments

Comments
 (0)