projects/dvl-fw-isi/src/lib/data-model/isi-record.ts
Properties |
abstract |
abstract:
|
Type : string
|
authors |
authors:
|
Type : string[]
|
authorsAddress |
authorsAddress:
|
Type : string[]
|
authorsFullname |
authorsFullname:
|
Type : string[]
|
eissn |
eissn:
|
Type : string
|
id |
id:
|
Type : string
|
issn |
issn:
|
Type : string
|
issue |
issue:
|
Type : number
|
journalFullname |
journalFullname:
|
Type : string
|
journalName |
journalName:
|
Type : string
|
numCites |
numCites:
|
Type : number
|
publicationType |
publicationType:
|
Type : string
|
publicationYear |
publicationYear:
|
Type : number
|
title |
title:
|
Type : string
|
import { parseRISRecords, TagMapping } from './ris-reader';
export interface ISIRecord {
id: string;
title: string;
issn: string;
eissn: string;
journalName: string;
journalFullname: string;
authors: string[];
authorsFullname: string[];
authorsAddress: string[];
publicationYear: number;
abstract: string;
publicationType: string;
issue: number;
numCites: number;
}
// See https://images.webofknowledge.com/images/help/WOK/hs_wos_fieldtags.html for a list of tags
export const ISI_TAGS: TagMapping = {
'FN': { ignored: true },
'VR': { ignored: true },
'ER': { endrecord: true },
'default': { list: true },
'UT': { string: true, separator: ' ', remap: 'id'},
'TI': { string: true, separator: ' ', remap: 'title' },
'SN': { string: true, separator: ' ', remap: 'issn' },
'EI': { string: true, separator: ' ', remap: 'eissn' },
'J9': { string: true, separator: ' ', remap: 'journalName' },
'JI': { string: true, separator: ' ', remap: 'journalFullname' },
'AU': { list: true, remap: 'authors' },
'AF': { list: true, remap: 'authorsFullname' },
'C1': { list: true, remap: 'authorsAddress' },
'PY': { number: true, remap: 'publicationYear' },
'AB': { string: true, separator: ' ', remap: 'abstract' },
'PT': { string: true, separator: ' ', remap: 'publicationType' },
// 'IS': { number: true, remap: 'issue' },
'TC': { number: true, remap: 'numCites' }
};
export function parseISIFile(fileContents: string): ISIRecord[] {
return parseRISRecords(fileContents, ISI_TAGS);
}