1.5 Highlights

Name change

KDRS Innsyn is now called KDRS Search & View.
På norsk: KDRS Søk & Vis

Download multiple files

It is now possible to download multiple files at once as a Zip-archive, by checking the checkboxes for the files you want.

See <export> and <filename> to use this feature.

Easier installation and configuration

Installation and is made easier, by including an install script. This ensures correct Docker version and loads the Docker image.

  • Configuration of the system is now done by modifying a simple .env file, rather than the full docker-compose.yml.
  • docker-compose.yml is now compose.yaml
  • innsyn/vendor is now /sv/templates

Many XML simplifications

To make writing and reading XML templates easier, we have removed several unnecessary tags.

Before

<root>
    <meta>
        <version>0.1.0</version>
        <description>sakila movie database</description>
    </meta>
    <views>
        <view>
            <name>movies</name>
            <tables>
                <table>
                    <name>film</name>
                    <heading>movies</heading>
                    <fields>title,description</fields>
                    <primarykey>film_id</primarykey>
                </table>
            </tables>
        </view>
    </views>
</root>

After

<views>
    <version>0.1.0</version>
    <description>sakila movie database</description>
    <view>
        <name>movies</name>
        <table>
            <name>film</name>
            <title>movies</title>
            <fields>title,description</fields>
            <primarykey>film_id</primarykey>
        </table>
    </view>
</views>

Before

      <edit>
        <field>first_name.titleize</field>
        <field>last_name.titleize</field>
      </edit>
    

After

    <edit>first_name.titleize</edit>
    <edit>last_name.titleize</edit>
  

Verification

To detect common mistakes and ensure validity of templates, we have introduced a verification system, available to archivists and administrators. This system checks every template (XML and Ruby) as well as system settings. This tool can be helpful when updating templates to 1.5, as all deprecated tags will be detected. It is accessed through the navigation menu.

Better error messages

Instead of the “Something went wrong” page, selected code errors will now be displayed in app for archivists and administrators. In this way we try to keep security while providing better developer feedback.

Ruby simplifications

Before

customers = @catalog.get_table("customers", {active:true}, fl:"name, email")

After

customers = table("customers", active:true, fields:"name, email")
  • name corresponds to xml tag ‘table’
  • no parenthesis needed for criteria
  • fl is now fields

Before

To get more than the default 20 rows

  rows: Catalog::MAX_ROWS

After

  rows: MAX_ROWS

Before

@docs = @catalog.join_table(main:@docs, fk:"city_id", table:"city",pk:"city_id", fl:"city")

After

lookup(main:@docs, foreignkey:"city_id", table:"city", primarykey:"city_id", fields:"city")
  • @docs variable will be modified in place
  • method name equal to xml tag ‘lookup’
  • named parameters equal to xml tags

Before

render 'table', vi:@si, ti:@ti

After

render 'table'

Better documentation

All changes

See Release Notes for full list of changes