Skip to content

Add script to update pasta.js when the catalog page is loaded #1

@clnsmth

Description

@clnsmth

Configuration parameters such as pagination are set outside of /public/pasta.js and /harvester/pasta_harvester.mjs'. That way, commits to pasta.js` can purely be about improving functionality rather than changing settings.

That can be done in a script that calls pasta.js if the window.onload function in pasta.js was replaced with a regular function definition, and then the calling function (either in a separate script or inline in the HTML) would modify settings as desired (either inline or from a config file) and call the function to initiate the catalog.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions