You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attributions currently have a single available placeholder value of {{CURRENT_YEAR}}, which replaces the token with the current year. We would like the ability to have custom placeholders, and perhaps make attributions customisable per version.
Reason for feature
In some cases, the licence number for a particular layer will be different depending on the version being used, but in order to display this different licence number, a whole new layer/basemap source will need to be created with a different attribution. If we had configurable attribution placeholders, we could keep the same layer/basemap and just have parts of the attribution be configurable.
Examples
DB Structure
Attribution_Placeholders
ID
Placeholder
Default
1
{{OS_Licence_Number}}
AC1010101010
2
{{Something_Else}}
A default value
Version_Attribution_Placeholders
VersionID
PlaceholderID
Value
5
1
AC99999999
5
2
A different value
Example attribution with placeholder
Take the following attributions
Name
AttributionHTML
1
Crown Copyright and Database Rights OS AC1010101010
2
Copyright Dorset Council. OS Licence Number AC1010101010
Both these attributions have the same licence number. If we were to be given a new licence number, we would have to find all attributions containing that number and change them, which is open to mistakes. New attributions requiring this same number would also need to be manually entered. We could replace these attributions with the following
Name
AttributionHTML
1
Crown Copyright and Database Rights {{CURRENT_YEAR}} OS {{OS_Licence_Number}}
2
Copyright Dorset Council {{CURRENT_YEAR}}. OS Licence Number {{OS_Licence_Number}}
And then the OS_Licence_Number would be defined in Attribution_Placeholders and easily replaced.
Example attribution with version specific override
The next level to this is to then override a placeholder at a specific version level. This would allow attributions to change depending on the version they are displayed in. Taking the above examples, by default, the OS_Licence_Number would be AC1010101010, but in the version with ID 5 it would be AC99999999.
Possible simplification
A starting point would be just to add the basic placeholder configuration, without the per-version overrides, as these may be unnecessary, particularly if #290 is implemented as well
The text was updated successfully, but these errors were encountered:
Attributions currently have a single available placeholder value of
{{CURRENT_YEAR}}
, which replaces the token with the current year. We would like the ability to have custom placeholders, and perhaps make attributions customisable per version.Reason for feature
In some cases, the licence number for a particular layer will be different depending on the version being used, but in order to display this different licence number, a whole new layer/basemap source will need to be created with a different attribution. If we had configurable attribution placeholders, we could keep the same layer/basemap and just have parts of the attribution be configurable.
Examples
DB Structure
Attribution_Placeholders
Version_Attribution_Placeholders
Example attribution with placeholder
Take the following attributions
Both these attributions have the same licence number. If we were to be given a new licence number, we would have to find all attributions containing that number and change them, which is open to mistakes. New attributions requiring this same number would also need to be manually entered. We could replace these attributions with the following
And then the OS_Licence_Number would be defined in
Attribution_Placeholders
and easily replaced.Example attribution with version specific override
The next level to this is to then override a placeholder at a specific version level. This would allow attributions to change depending on the version they are displayed in. Taking the above examples, by default, the OS_Licence_Number would be AC1010101010, but in the version with ID 5 it would be AC99999999.
Possible simplification
A starting point would be just to add the basic placeholder configuration, without the per-version overrides, as these may be unnecessary, particularly if #290 is implemented as well
The text was updated successfully, but these errors were encountered: