...
Stor med QR
Editor view:
...
Export:
...
Making custom templates: The template editor
We can create our own templates or modify the existing ones using the template editor. To create new template, we need to make a copy of any existing ones. The copy button can be found on the upper right corner.
...
Note that we the name of the templates should be unique.
The template is made of sections and its content. First and foremost, we have the “main-section“ which is basically the canvas - and inside that we will be having subsections. To make any modifications to the section like changing the height/width or adding contents, we need to select the section first. Also, to add subsections, we need to select the section under which we want to create the subsection.
The main section is selected when we click outside the template viewer. Since the main section is the “canvas“, the subsection height total must be within the canvas height. Otherwise the export will break. To identify whether the heights have crossed this limit, a scrollbar will appear. In that case, the canvas height must be increased to accommodate that. The height/width of a section can be changed from the “Width/Height“ accordion menu.
In this menu, we can also see another option - “Center vertically“, this will make make the alignment of the section content vertically aligned (or disable the alignment).
...
We can also add borders of the section from the “Border (pt)“ accordion menu
We can also add background color to sections and clear it if we don’t want it anymore from the color picker and the clear button under section properties accordion
...
Now a section can be of 2 types
Regular content section: This is when the “Array field“ is left blank. With this configuration, we will get all the available contents under “Contents“ section (which we will explore later).
Repeated content section: This is when we select “Serieforeldre“ or “Mapper“ from the array field. Since these two can be multiple, the section will also be repeated N number of times where N = number of Serie, or Mappe. Also, in the content section, now we will see contents relevant to the selected array field type:
Note that this is how the “List of serie“ in Liten and Middel, or list of Mappe in the Stor / Stor med QR are made.
A section can also depend on (be visible or hidden) based on some fields. This is useful when we want a header to show up or not depending on if there is a content. To make a section dependent on some fields, there is a dropdown in the section properties “Dependent Fields“. Observe that the “Arkivdel:“ header section is made to be dependent on arkivdel identifikator and arkivdel Navn. This means this header section will only show up if there are values of both of these fields.
Section contents:
The section content accordion has some content type:
Field
Text (plane text)
QR
However a section can contain either QR or fields (multiple) / Text (multiple)
...
Field
When we add a field, we have to select which field value we want to show. These options will be shown in a dropdown and the option will depend on what we have selected in the array field:
If Serieforeldre is selected, we have:
Identifikator (Serie)
Navn (Serie)
If Mapper is selected, we have:
Identifikator
Navn
Arkivkode fra
Arkivkode till
Arkivkode fra - Arkivkode till
Period start
Period slutt
Period start - Period slutt
If Array field is left blank, we have:
Identifikator / Lagringsenhetsidentifikator - This is the Stykke Identifikator or the Storage unit identifier (used in the footer of all the default templates)
Organisasjons
Navn
kode
Arkiv
Identifikator
Navn
Arkivdel
Identifikator
Navn
Foreldre → This is also used in the footer of all the default templates this will be the parent serie’s identifikator.
Identifikator
Navn
Innhold
Identifikator
Navn
Eget innhold
Arkivkode fra
Arkivkode till
Arkivkode fra - Arkivkode till
Period start
Period slutt
Period start - Period slutt
Note that if we have the “pair fields” e.g. Arkivkode fra - Arkivkode till, the “-“ will show up if both the values are there.
If there are multiple fields / text or a combination of both, a separator must be selected. We have 2 seperator options: “,“ and “-“. This will separate each items with the selected separator
QR:
If we select the QR as content, we won’t be able to select any other field or texts. Note that we can change the dimensions of the QR, and accordingly the section height will also be changed.
The QR contains the stykke amid or the storage unit item id (when we have Serie → Mappe (with a storage unit) )
Plain text:
These can be any text
Text style:
We can also edit the content style. The options for content style are:
Horizontal alignment
Font style: Bold, Italic, Underline → we can also clear the applied style
Font size
Color → can also be cleared
...
Padding
Apart from the content style, we can also add padding to the content for fine adjustments:
Note that the padding are relative the section edges, so the content will move up, if we add more bottom padding.
Reset and Save
In any case, we have to hit save to actually save the changes we have made. When we copy a template, we have to hit save to save it in DB. If we make any changes after hitting save, we can hit reset to go back to the last saved version.