当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript bib-record.service.BibRecordService类代码示例

本文整理汇总了TypeScript中@eg/share/catalog/bib-record.service.BibRecordService的典型用法代码示例。如果您正苦于以下问题:TypeScript service.BibRecordService类的具体用法?TypeScript service.BibRecordService怎么用?TypeScript service.BibRecordService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了service.BibRecordService类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1:

        ).pipe(mergeMap(meta => {
            const target: HoldRequestTarget = meta;
            target.bibId = target.bibrecord.id();

            return this.bib.getBibSummary(target.bibId)
            .pipe(map(sum => {
                target.bibSummary = sum;
                return target;
            }));
        }));
开发者ID:StephenGWills,项目名称:Evergreen,代码行数:10,代码来源:holds.service.ts

示例2:

                    ()  => {
                        this.bib.fleshBibUsers(
                            Object.values(bibSummaries).map(sum => sum.record)
                        ).then(() => {
                            matches.forEach(match => {
                                const row = {
                                    id: match.id(),
                                    eg_record: match.eg_record(),
                                    bre_quality: match.quality(),
                                    vqbr_quality: this.queuedRecord.quality(),
                                    match_score: match.match_score(),
                                    bib_summary: bibSummaries[match.eg_record()]
                                };

                                observer.next(row);
                            });

                            observer.complete();
                        });
                    }
开发者ID:StephenGWills,项目名称:Evergreen,代码行数:20,代码来源:queued-record-matches.component.ts

示例3: loadRecord

    loadRecord(): void {

        // Avoid re-fetching the same record summary during tab navigation.
        if (this.staffCat.currentDetailRecordSummary &&
            this.recordId === this.staffCat.currentDetailRecordSummary.id) {
            this.summary = this.staffCat.currentDetailRecordSummary;
            return;
        }

        this.summary = null;
        this.bib.getBibSummary(
            this.recordId,
            this.searchContext.searchOrg.id(),
            this.searchContext.searchOrg.ou_type().depth()).toPromise()
        .then(summary => {
            this.summary =
                this.staffCat.currentDetailRecordSummary = summary;
            this.bib.fleshBibUsers([summary.record]);
        });
    }
开发者ID:jamesrf,项目名称:Evergreen,代码行数:20,代码来源:record.component.ts

示例4:

 .then(copy => {
     this.copy = copy;
     return this.bib.getBibSummary(
         copy.call_number().record()).toPromise();
 }).then(summary => {
开发者ID:StephenGWills,项目名称:Evergreen,代码行数:5,代码来源:mark-damaged-dialog.component.ts

示例5:

 .then(summary => {
     this.summary =
         this.staffCat.currentDetailRecordSummary = summary;
     this.bib.fleshBibUsers([summary.record]);
 });
开发者ID:jamesrf,项目名称:Evergreen,代码行数:5,代码来源:record.component.ts


注:本文中的@eg/share/catalog/bib-record.service.BibRecordService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。