Project

General

Profile

Actions

Bug #7000

closed

MetadataView.js?v=1.11.0:154 Uncaught TypeError: viewRef.model.get is not a function

Added by Bryce Mecum over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
03/27/2016
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

I've been able to produce this a couple of times with some of my recent, weird resource maps. Here's a reproducible-ish bug report:

What I did: (using dev.nceas' Metacat)

- Inserted an EML metadata object
- Inserted a resource map aggregating that metadata object

What I expected:

- The UI to show a standard EML and data table for the metadata file

What happened instead:

- The spinner spun indefinitely and I received the following error in the JS console:

MetadataView.js?v=1.11.0:154 Uncaught TypeError: viewRef.model.get is not a function

Here's the resource map. Those PIDs exist on dev.nceas so you can check them out.

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix provone: <http://purl.dataone.org/provone/2015/01/15/ontology#> .
@prefix ore: <http://www.openarchives.org/ore/terms/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix cito: <http://purl.org/spar/cito/> .
@prefix dcterms: <http://purl.org/dc/terms/> .

<https://cn.dataone.org/cn/v2/resolve/resourceMap_urn%3Auuid%3A5c964418-8c24-4855-9172-3f1c5c5507f4>
    dcterms:identifier "resourceMap_urn:uuid:5c964418-8c24-4855-9172-3f1c5c5507f4"^^<http://www.w3.org/2001/XMLSchema#string> ;
    ore:describes <https://cn.dataone.org/cn/v2/resolve/resourceMap_urn%3Auuid%3A5c964418-8c24-4855-9172-3f1c5c5507f4#aggregation> ;
    a ore:ResourceMap .

<https://cn.dataone.org/cn/v2/resolve/resourceMap_urn%3Auuid%3A5c964418-8c24-4855-9172-3f1c5c5507f4#aggregation>
    dc:title "DataONE Aggregation" ;
    ore:aggregates <https://cn.dataone.org/cn/v2/resolve/urn%3Auuid%3A5c964418-8c24-4855-9172-3f1c5c5507f4> ;
    a ore:Aggregation .

<https://cn.dataone.org/cn/v2/resolve/urn%3Auuid%3A5c964418-8c24-4855-9172-3f1c5c5507f4>
    dcterms:identifier "urn:uuid:5c964418-8c24-4855-9172-3f1c5c5507f4"^^<http://www.w3.org/2001/XMLSchema#string> ;
    ore:isAggregatedBy <https://cn.dataone.org/cn/v2/resolve/resourceMap_urn%3Auuid%3A5c964418-8c24-4855-9172-3f1c5c5507f4#aggregation> .

The index shows that the metadata PID doesn't have a "documents" index entry (expected).

Actions

Also available in: Atom PDF