Skip to content

pb-browse-docs: sort on modification date returns a request execution error #72

Open
@emmamorlock

Description

@emmamorlock

There's an error on the demo for <pb-browse-docs> ("passing parameters from a custom form") when one tries to sort the list by "modification date" . The French dialog is "Erreur d’exécution de la requête.: undefined".

See https://unpkg.com/@teipublisher/pb-components@1.24.18/dist/api.html#pb-browse-docs.2

I might think it comes from the .html, where the sort options are listed.

sort-options='[{"label": "browse.title", "value": "title"},{"label": "browse.author", "value": "author"},{"label": "browse.modificationDate", "value": "default"}]'

the value is 'default' but should be a date of some sort I guess.

On a standalone app, I was able to get it running, but I wasn't able to get a proper date sort (even though I defined the date option as an xs:date in the index.xql...
Ex. :

case "date" return
               xs:date($header//tei:sourceDesc/(tei:bibl|tei:biblFull)/tei:date/@when)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions