Project

General

Profile

« Previous | Next » 

Revision 59072

[Trunk | Library]:
1. resultLanding.component.ts: Get provenanceAction vocabulary from ISVocabulariesService.
2. resultLanding.service.ts: Remove methods for "provenanceAction" vocabulary | [Bug fix] Do not stringify "dateofacceptance" when undefined.
3. ISVocabularies.service.ts: Add BehaviorSubjects for vocabularies | Add methods for provenanceAction vocabulary (called by result landing pages).
4. staticAutoComplete.module.ts: Remove ISVocabulariesService from providers (singleton service, providedIn: 'root').

View differences:

resultLanding.component.ts
18 18
import {FormBuilder, FormGroup} from "@angular/forms";
19 19
import {StringUtils} from "../../utils/string-utils.class";
20 20
import {properties} from "../../../../environments/environment";
21
import {ISVocabulariesService} from "../../utils/staticAutoComplete/ISVocabularies.service";
21 22

  
22 23

  
23 24
@Component({
......
102 103
    'Persistent identifiers', 'Other'];
103 104
  
104 105
  constructor(private _resultLaningService: ResultLandingService,
106
              private _vocabulariesService: ISVocabulariesService,
105 107
              private _piwikService: PiwikService,
106 108
              private route: ActivatedRoute,
107 109
              private router: Router,
......
262 264
    this.resultLandingInfo = null;
263 265
    
264 266
    if (typeof document !== 'undefined') {
265
      this._resultLaningService.getProvenanceActionVocabulary(this.properties).subscribe(
267
      this._vocabulariesService.getProvenanceActionVocabulary(this.properties).subscribe(
266 268
        provenanceActionVocabulary => {
267 269
          this.getResultLandingInfo(provenanceActionVocabulary);
268 270
        }, err => {

Also available in: Unified diff