Files
common_pages/README.md

1.9 KiB

Common pages

Custom MIDAS webpages shared across multiple SuS experiments.

This repository is meant to be included as a submodule in the instrument-specific pages repository such as https://gitea.psi.ch/lin-midas-pages/flame_pages.

Installation

As a prerequisite, the system variable MIDASSYS needs to be defined and point to the MIDAS installation. Then, run:

cmake -S "$(pwd)" -B <directory-to-build-in>
cmake --install <directory-to-build-in>

The first step generates the build rules into <directory-to-build-in>. This is a temporary directory which is recommended to be $(pwd)/build (a folder called "build" in the repository root). The second step then copies everything in pages into $MIDASSYS/custom_pages, the standard location for MIDAS custom pages. Additionally, the installation process also configures the ODB to show the custom pages.

Because the installation does not require compiling any source code, no build step is needed.

Beamline_elements

It is possible to show an image to the right or to the bottom of the table in the Beamline_elements page by providing a custom beamline_overview_images.json manifest file (it is recommended to automate this as part of the installation routine). The default beamline_overview_images.json looks like this:

{
}

To put an image to the right of the table, the custom file should like this:

{
    "right": "image_to_the_right",
}

Similarily, for an image at the bottom:

{
    "bottom": "image_at_the_bottom",
}

And for both right and bottom:

{
    "right": "image_to_the_right",
    "bottom": "image_at_the_bottom",
}

The VMS pages repository has an example.

Contact

Flame: jonas.krieger@psi.ch; LEM: andreas.suter@psi.ch, thomas.prokscha@psi.ch, zaher.salman@psi.ch LIN: edward.wall@psi.ch stefan.mathis@psi.ch