Project

General

Profile

« Previous | Next » 

Revision 59038

[Trunk | Library]:
1. result-preview.ts & resultLanding.service.ts & deletedByInference.service.ts: Add "icon" field in HostedByCollectedFrom interface.
2. availableOn.component.ts: Access mode icons set at parsing (not here).
3. result-preview.component.html: Add access mode icon & remove external link functionality for collected from (provider).
4. parsingFunctions.class.ts:
a. When instance.hostedby has no name (or "Unknown Repository" or "other resources") and no name from "source" found, set url (first 30 chars) as name.
b. Access mode icons set at parsing for HostedByCollectedFrom interface.

View differences:

deletedByInference.service.ts
4 4
import {EnvProperties} from '../../../utils/properties/env-properties';
5 5
import {ParsingFunctions} from '../../landing-utils/parsingFunctions.class';
6 6
import {map} from "rxjs/operators";
7
import {HostedByCollectedFrom} from "../../../utils/result-preview/result-preview";
7 8

  
8 9
@Injectable()
9 10
export class DeletedByInferenceService {
......
86 87
              result.types = new Array<string>();
87 88
              let types = new Set<string>();
88 89

  
89
              result.hostedBy_collectedFrom = new Array<{"downloadName": string, "downloadUrl": string[], "collectedName": string, "collectedId": string, "accessMode": string[], "bestAccessMode": string, "type": string, "year":string}>();
90
              result.hostedBy_collectedFrom = new Array<HostedByCollectedFrom>();
90 91

  
91 92
              let counter = 0;
92 93
              let instance;

Also available in: Unified diff