Editorial Update/Images

From Legislation Community Editorial Wiki
Jump to navigation Jump to search

Using the Image Tool to insert and substitute images

We can now insert and substitute images using the Editorial Image Tool in the website Preview. The most common images we deal with are formulae and forms. Where, following an amendment in XMetaL, an expected image does not appear as part of the inserted/substituted text when we preview it, or where we simply need to substitute an existing image within a provision, we can now access the image update functionality by clicking on an “Update image” button which will appear in the Preview page in the location of the image. The instructions for using the image update functionality are laid out below.

NOTES:

1. If your amendment only involves substituting an existing image within a provision that otherwise stays the same, don't forget to make sure that the PiT for that amendment is showing on the timeline before you carry out the substitution, otherwise you will substitute the image in a previous PiT. Use the timeline resolver to add in the PiT you are working before you substitute the image.


2. The image tool was developed to work with existing image tagging structures. If your amending document includes an image or form that has been tagged in an unconventional way, such as with <ukl:IncludedDocument> tagging, the image tool cannot currently be used to insert the form or other image as the tagging will not be recognised by the Tool. The form or other image will be missing after you have carried out your amendment and you will need to refer it to TSO in the usual way to get the image or form added.

3. When you use the image tool to carry out an insertion or substitution of an image and the amendment is only made to that image and not the surrounding text, there will not be any square brackets for the amendment and you will need to make sure you insert an F-note for the amendment in a suitable location.

4. If the “Update image” button is missing from your provision when you preview it, you can click on "Image Data View" in the left hand menu in the preview to display it, i.e.

Image data view.png


Image is contained within a newly inserted or substituted provision

Example: Substitution of a provision which includes two formulae

From the Update Details page, select the Preview provision button. You will see the formatted version of the newly substituted provision. Select the first Update Image button:


Image tool 1.png

You will be taken to the Image Data Update page:

Image tool 2.png

Select the radio button for the first formula and then select the Update Affected Image button. You will be taken back to the preview version of the amended provision where the new formula is displayed.

You should then repeat the same process for the second formula, by first selecting the Update Image button, then selecting the radio button for the second formula on the Image Data Update page and then selecting the Update Affected Image button. This will result in the formatting of the images for both formulae in the amended provision:


Image tool 3.png


Substituting an existing image

Before you start, make sure that the PiT for your amendment is showing on the timeline, otherwise you will substitute the image in a previous PiT. Use the timeline resolver to add in the PiT you are working before you substitute the image.


1. From the preview of the provision, select the Update Image button:


Image tool 4.png
Image tool 4a.png


2. On the Image Data Update page, select the radio button of the image to be substituted:


Image tool 5.png


3. Next, select the Update Affected Image button:


Image tool 6.png


4. You will be returned to the amended document where the image is displayed.


Image tool 7.png


5. Check the provision out in XMetaL and insert an F-note for the substitution (using the relevant task to generate the annotation) in a suitable location, for example in a Schedule consisting entirely of forms, the F-note would be placed at the top level:


Image Fnote position.png

What to do if the affecting image is missing from the Image Data Update page

Example 1: One amending image is missing

In the preview of the amended provision, select the Update Image button.


Image tool 9.png


You will be taken to the Image Data Update page, however the affecting image is missing, and you will not be able to select the Update Affected Image button:


Image tool 10.png


To locate the affecting image, you need to enter the affecting document’s URL (including affecting provision) in the Fetch Custom Provision box on the Image Data Update page (in this example, the URL is https://www.legislation.gov.uk/uksi/2018/425/regulation/5):


Image tool 11.png


The affecting image should then appear on the Image Data Update page, and you will be able to select the radio button to the right of the new formula and then select the Update Affected Image button:


Image tool 12.png


You will be returned to the preview of the amended provision with the new image formula having replaced the old image formula and you can proceed with the next step of the amendment. In this instance the amendment was exclusively to substitute the image formula without any text, so insertion of an F-Note in XMetal was necessary, with the F-note reference being placed just before the substituted formula (note there are no square brackets needed in this scenario):


Image tool 13.png

Example 2: Two amending images are missing

1. From the provision preview, select the first Update Image button:


Image tool 14.png


2. You will be taken to the Image Data Update page where the affecting images are missing. To locate the affecting images, you need to enter the affecting document’s URL (including affecting provision) in the Fetch Custom Provision box on the Image Data Update page. In this example, the affecting provision for both images is:

https://www.legislation.gov.uk/uksi/2016/257/regulation/23/made#regulation-23


Image tool 16.png


3. Once the Fetch Custom Provision button is selected, the options of the new images from the affecting provision are displayed. Select the appropriate radio button for the first image and then select the Update Affected Image button.


Image tool 17.png


4. You will be taken back to the updated amended provision preview, where the first formula has been substituted:


Image tool 18.png


5. Next, repeat this process for the second image by selecting the second Update Image button. You will again be taken through to the Image Data Update page. Again, paste the URL of the amending document into the Fetch Custom Provision box.


Image tool 20.png


6. Select the appropriate radio button for the second image and then select the Update Affected Image button.


Image tool 22.png


7. You will be returned to the updated amended provision preview, with both formulae now having been substituted:


Image tool 23.png


8. You can then proceed with the next step of your amendment, as appropriate. In this instance the amendment was exclusively to substitute the image formulae without any text, so insertion of F-Notes in XMetal was necessary, with the F-note reference being placed just before each substituted formula (note there are no square brackets needed in this scenario).


Image tool 24.png


Substitution of a Form in a Schedule

The relevant Update Image button in the Schedule of the affected document document was selected to get to the Image Data Update page, however the affecting image was missing:


Images schedule forms sub 2.png


The amending provision URL was pasted into the Fetch Custom Provision box and button selected.

https://editorial.legislation.gov.uk/uksi/2010/671/schedule/1


Images schedule forms sub 2a.png



Images schedule forms sub 3.png


The radio button of the appropriate image was selected and the Update Affected Image was selected.


Editor automatically navigated back to the amended provision, - Sch. 1 where the image of the Form has been formatted. See below.

Image tool 42.png


Images schedule forms sub.png

Unequal substitution of images

Two images replaced by one image

This might occur where, for example, a form made up of two images is substituted and the new version is made up of only one image.

  • Substitute the first image using the image tool as normal.
  • Check the provision out in XMetaL and delete the second set of image tagging.
  • Check back in and preview your amendment.

More images substituted for less/adding new images in

This might occur where a form is substituted, and the new version is made up of more images than the previous version.

  • Substitute the first image using the image tool as normal.
  • Check the provision out in XMetaL and copy the new image tagging and paste it in as many times as there are new images to be inserted.
  • Check back in and preview your amendment.
  • Use the update image tool to update the images to the correct versions.

Other amendments to images

Textual amendments to images

If an image is not being wholly inserted or substituted, but there are textual amendments being made to the details of forms, maps, diagrams, etc. that are held as image files, we are unable to edit the image files ourselves. Instead, Update Editors should manually insert an F-note annotation in a suitable position, invariably at Provision/Part/Schedule/ level, in relation to the form/map/diagram tagging and provide a more explanatory annotation using the drafter’s text.

See Annotation Conventions - textual amendments to images for examples of the form of words to use in the F-note.

A suitable position for the F-note reference might be within the <ukl:Number> tags of the Schedule that contains the form, or within the <ukl:Title> tags of the form if available (see examples below). The Element List window will show you whether it is possible to insert a <ukl:CommentaryRef> tag in your chosen location.

S.I. 2013/3156, Sch. para. 23:

Image amendment 1.png

Image amendment 2.png

S.S.I. 2018/155:

Image amendment 3.png

If the amendments are more complex or so large that it seems unfeasible to include details in the annotation, then we could summarise the amendments in the annotation rather than giving verbatim text, but there should still be a more explanatory F-note than usual. If you have any difficulty formulating such an annotation, consult a Review Editor.

See also Annotation Conventions - textual amendments to images.

Omission of an image

If an amendment requires that an image is omitted, the tagging for the image should be repealed and the image replaced with a dotty line with an F-note:

Image omitted 1.png

Image omitted 2.png

In this example, the forms are located within a Schedule paragraph that has been tagged as a ukl:P1Group, and it was possible to include the dotty line in the XML as follows:


Repeal of a form 3.png


Alternatively, where the image is not contained in a paragraph with its own set of tagging, but is located directly in the ukl:ScheduleBody, a set of ukl:P tags containing the dotty line followed by a non-breaking space and F-note reference may be inserted at the appropriate place, and the existing image and it's tagging can be removed. For example:


Repeal of a form.png


Repeal of a form 2.png


If you are unsure how to do this, contact a Review Editor and they can ask TSO to do the amendment if neccessary.