plazi / BLR-website

1 stars 0 forks source link

Publications Objec Type #8

Open teodorgeorgiev opened 4 years ago

teodorgeorgiev commented 4 years ago

GET: /v2/publications

We need to get requests with sortBy: title [ASC|DESC] parameter

Facets

{
    "taxonomicRanks": [
            {
                "name": "Domain"
            },
            {
                "name": "Kingdom"
            }
        ],
        "journalTitles": [
            {
                "journalTitles": "Zookeys",
                "c": 1
            }
        ],
        "articleAuthors": [
            {
                "name": "Author name"
            }
        ],
        "publicationYears": [
            {
                "publicationYears": "2011",
                "c": 1
            }
        ],
        "publicationVolume": [
            {
                "publicationVolume": "12(4)",
                "c": 1
            }
        ],
        "publicationType": [
            {
                "publicationType": "research article",
                "c": 1
            }
        ],
        "includeTreatments": [
            {
                "includeTreatments": "yes",
                "c": 1
            }
            {
                "includeTreatments": "no",
                "c": 1
            }
        ],
        "hasFigures": [
            {
                "hasFigures": "yes",
                "c": 1
            }
            {
                "hasFigures": "no",
                "c": 1
            }
        ],
}

In records object missing

{
    "records": [
        {
            "hasFigures": (true|false),
            "hasTreatment" : (true|false)
        }
    ]

}
punkish commented 4 years ago

Zenodo records can be sorted only by a very limited set of params (I could be wrong on this so we need to confirm this from Alex). As far as I can tell, sorting is available by

punkish commented 4 years ago
In records object missing

{
    "records": [
        {
            "hasFigures": (true|false),
            "hasTreatment" : (true|false)
        }
    ]

}

I don't understand this. Please explain more. Better yet, please open a new issue. It would be great if we can restrict one issue for one item, as narrow as possible. Many thanks.