metacatui icon indicating copy to clipboard operation
metacatui copied to clipboard

Suggestion: Show primary (documenting) metadata record first in DataPackageTableView

Open amoeba opened this issue 7 years ago • 0 comments

While looking at https://search.dataone.org/#view/https://doi.org/10.5061/dryad.db6177b/11?ver=2018-03-20T20:12:59.717+00:00 I noticed that the package has multiple metadata records and the one I expected to see at the top of the table was listed a ways down. What do we think about showing the primary metadata record first in the table?

Only one metadata record documents (in the cito:documents sense) the other metadata and data files. You can verify this easily with the Solr index result for objects in this package: http://cn.dataone.org/cn/v2/query/solr/?q=id:10.5061/dryad.db6177b&fl=id,formatid,formatType,documents&rows=100

{
  "responseHeader": {
    "status": 0,
    "QTime": 6,
    "params": {
      "q": "id:*10.5061/dryad.db6177b*",
      "fl": "id,formatid,formatType,documents",
      "rows": "100",
      "wt": "json"
    }
  },
  "response": {
    "numFound": 26,
    "start": 0,
    "docs": [{
      "id": "https://doi.org/10.5061/dryad.db6177b?ver=2018-03-20T20:12:50.998+00:00",
      "formatType": "METADATA",
      "documents": ["https://doi.org/10.5061/dryad.db6177b/1/bitstream", "https://doi.org/10.5061/dryad.db6177b/11?ver=2018-03-20T20:12:59.717+00:00", "https://doi.org/10.5061/dryad.db6177b/11/bitstream", "https://doi.org/10.5061/dryad.db6177b/8?ver=2018-03-20T20:12:58.567+00:00", "https://doi.org/10.5061/dryad.db6177b/12?ver=2018-03-20T20:13:01.647+00:00", "https://doi.org/10.5061/dryad.db6177b/10/bitstream", "https://doi.org/10.5061/dryad.db6177b/12/bitstream", "https://doi.org/10.5061/dryad.db6177b/9/bitstream", "https://doi.org/10.5061/dryad.db6177b/3/bitstream", "https://doi.org/10.5061/dryad.db6177b/7/bitstream", "https://doi.org/10.5061/dryad.db6177b/8/bitstream", "https://doi.org/10.5061/dryad.db6177b/2/bitstream", "https://doi.org/10.5061/dryad.db6177b/10?ver=2018-03-20T20:12:59.341+00:00", "https://doi.org/10.5061/dryad.db6177b/9?ver=2018-03-20T20:12:58.174+00:00", "https://doi.org/10.5061/dryad.db6177b/5/bitstream", "https://doi.org/10.5061/dryad.db6177b/3?ver=2018-03-20T20:13:00.472+00:00", "https://doi.org/10.5061/dryad.db6177b/1?ver=2018-03-20T20:12:58.958+00:00", "https://doi.org/10.5061/dryad.db6177b/4?ver=2018-03-20T20:13:02.045+00:00", "https://doi.org/10.5061/dryad.db6177b/2?ver=2018-03-20T20:12:57.774+00:00", "https://doi.org/10.5061/dryad.db6177b/6/bitstream", "https://doi.org/10.5061/dryad.db6177b/7?ver=2018-03-20T20:13:01.254+00:00", "https://doi.org/10.5061/dryad.db6177b/4/bitstream", "https://doi.org/10.5061/dryad.db6177b/5?ver=2018-03-20T20:13:00.118+00:00", "https://doi.org/10.5061/dryad.db6177b/6?ver=2018-03-20T20:13:02.405+00:00"]
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/1/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/11?ver=2018-03-20T20:12:59.717+00:00",
      "formatType": "METADATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/8?ver=2018-03-20T20:12:58.567+00:00",
      "formatType": "METADATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/10/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/12/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/3/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/8/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/10?ver=2018-03-20T20:12:59.341+00:00",
      "formatType": "METADATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/3?ver=2018-03-20T20:13:00.472+00:00",
      "formatType": "METADATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/1?ver=2018-03-20T20:12:58.958+00:00",
      "formatType": "METADATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/4?ver=2018-03-20T20:13:02.045+00:00",
      "formatType": "METADATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/6/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/7?ver=2018-03-20T20:13:01.254+00:00",
      "formatType": "METADATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/4/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/5?ver=2018-03-20T20:13:00.118+00:00",
      "formatType": "METADATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/6?ver=2018-03-20T20:13:02.405+00:00",
      "formatType": "METADATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/11/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/12?ver=2018-03-20T20:13:01.647+00:00",
      "formatType": "METADATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b?format=d1rem&ver=2018-03-20T20:12:50.998+00:00",
      "formatType": "RESOURCE"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/9/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/7/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/2/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/9?ver=2018-03-20T20:12:58.174+00:00",
      "formatType": "METADATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/5/bitstream",
      "formatType": "DATA"
    }, {
      "id": "https://doi.org/10.5061/dryad.db6177b/2?ver=2018-03-20T20:12:57.774+00:00",
      "formatType": "METADATA"
    }]
  }
}

amoeba avatar Mar 20 '18 23:03 amoeba