diff --git a/UX-Guide-Metadata/draft/techniques/onix-metadata/index.html b/UX-Guide-Metadata/draft/techniques/onix-metadata/index.html index 22f7abe4..78d17d89 100644 --- a/UX-Guide-Metadata/draft/techniques/onix-metadata/index.html +++ b/UX-Guide-Metadata/draft/techniques/onix-metadata/index.html @@ -61,7 +61,6 @@ code[id]::after { content: "[ID: " attr(id) "]"; } - /*html::before { content: ""; }*/ @@ -217,13 +216,13 @@

Instructions

  1. IF all_textual_content_can_be_modified: - THEN display "Appearance can be modified". + THEN display "Appearance can be modified".
  2. ELSE IF is_fixed_layout: - THEN display "Appearance cannot be modified". + THEN display "Appearance cannot be modified".
  3. -
  4. ELSE display "Appearance modifiability not known".
  5. +
  6. ELSE display "Appearance modifiability not known".
@@ -242,7 +241,104 @@

Charts, diagrams, and formulas

Hazards

This technique relates to Hazards key information.

- +

This algorithm takes the onix_record_as_text argument: a UTF-8 string representing the ONIX record.

+

Understanding the variables

+
+
no_hazards_or_warnings_confirmed
+
+

If true it indicates that the code 00 of codelist 143 (No known hazards or warnings) is present in the ONIX record, otherwise if false it means that the metadata is not present.

+

This means there is a positive indication in the ONIX record confirming there are no associated hazard warnings with this product.

+
+
flashing_hazard
+
+

If true it indicates that the code 13 of codelist 143 (WARNING - Flashing hazard) is present in the ONIX record, otherwise if false it means that the metadata is not present.

+

This means that there is a positive indication that the product has a flashing hazard which must be displayed.

+
+
no_flashing_hazards
+
+

If true it indicates that the code 14 of codelist 143 (No flashing hazard warning necessary) is present in the ONIX record, otherwise if false it means that the metadata is not present.

+

This means there is a positive indication in the ONIX record confirming there are no flashing hazards associated with this product.

+
+
motion_simulation_hazard
+
+

If true it indicates that the code 17 of codelist 143 (WARNING - Motion simulation hazard) is present in the ONIX record, otherwise if false it means that the metadata is not present.

+

This means that there is a positive indication that the product has a motion simulation hazard which must be displayed.

+
+
no_motion_hazards
+
+

If true it indicates that the code 18 of codelist 143 (No motion simulation hazard warning necessary) is present in the ONIX record, otherwise if false it means that the metadata is not present.

+

This means there is a positive indication in the ONIX record confirming there are no motion simulation hazards associated with this product.

+
+
sound_hazard
+
+

If true it indicates that the code 15 of codelist 143 (WARNING - Sound hazard) is present in the ONIX record, otherwise if false it means that the metadata is not present.

+

This means that there is a positive indication that the product has a sound hazard which must be displayed.

+
+
no_sound_hazards
+
+

If true it indicates that the code 16 of codelist 143 (No sound hazard warning necessary) is present in the ONIX record, otherwise if false it means that the metadata is not present.

+

This means there is a positive indication in the ONIX record confirming there are no sound hazards associated with this product.

+
+
unknown_if_contains_hazards
+
+

If true it indicates that the code 08 of codelist 196 (Unknown accessibility) is present in the ONIX record, otherwise if false it means that the metadata is not present.

+

This means that the product has not been assessed for hazards and there is no information about potential hazards.

+
+
+

Variables setup

+
    +
  1. LET onix be the result of calling pre processing given onix_record_as_text.
  2. +
  3. LET no_hazards_or_warnings_confirmed be the result of calling check for node on onix, /ONIXMessage/Product/DescriptiveDetail/ProductFormFeature[ProductFormFeatureType = "12" and ProductFormFeatureValue = "00"].
  4. +
  5. LET flashing_hazard be the result of calling check for node on onix, /ONIXMessage/Product/DescriptiveDetail/ProductFormFeature[ProductFormFeatureType = "12" and ProductFormFeatureValue = "13"].
  6. +
  7. LET no_flashing_hazards be the result of calling check for node on onix, /ONIXMessage/Product/DescriptiveDetail/ProductFormFeature[ProductFormFeatureType = "12" and ProductFormFeatureValue = "14"].
  8. +
  9. LET motion_simulation_hazard be the result of calling check for node on onix, /ONIXMessage/Product/DescriptiveDetail/ProductFormFeature[ProductFormFeatureType = "12" and ProductFormFeatureValue = "17"].
  10. +
  11. LET no_motion_hazards be the result of calling check for node on onix, /ONIXMessage/Product/DescriptiveDetail/ProductFormFeature[ProductFormFeatureType = "12" and ProductFormFeatureValue = "18"].
  12. +
  13. LET sound_hazard be the result of calling check for node on onix, /ONIXMessage/Product/DescriptiveDetail/ProductFormFeature[ProductFormFeatureType = "12" and ProductFormFeatureValue = "15"].
  14. +
  15. LET no_sound_hazards be the result of calling check for node on onix, /ONIXMessage/Product/DescriptiveDetail/ProductFormFeature[ProductFormFeatureType = "12" and ProductFormFeatureValue = "16"].
  16. +
  17. LET unknown_if_contains_hazards be the result of calling check for node on onix, /ONIXMessage/Product/DescriptiveDetail/ProductFormFeature[ProductFormFeatureType = "09" and ProductFormFeatureValue = "08"].
  18. +
+

Instructions

+
    +
  1. + IF no_hazards_or_warnings_confirmed OR (no_flashing_hazards AND no_motion_hazards AND no_sound_hazards): + THEN display "No hazards". +
  2. +
  3. + ELSE IF flashing_hazard OR motion_simulation_hazard OR sound_hazard: + THEN LET hazards be an empty array. +
      +
    1. + IF flashing_hazard: + THEN APPEND "flashing" to hazards. +
    2. +
    3. + IF motion_simulation_hazard: + THEN APPEND "motion" to hazards. +
    4. +
    5. + IF sound_hazard: + THEN APPEND "sound" to hazards. +
    6. +
    7. LET hazards_string be the result of: +
        +
      • calling join on hazards with the separator ", "
      • +
      • making uppercase the first character
      • +
      • replacing the last occurence of ", " with " and "
      • +
      • concatenating " hazards" to the end of the string IF (length of hazards) > 1 ELSE concatenating " hazard" to the end of the string.
      • +
      +
    8. +
    9. display hazards_string.
    10. +
    +
  4. +
  5. + ELSE IF unknown_if_contains_hazards: + THEN display "The presence of hazards is unknown". +
  6. +
  7. + ELSE display "No information about possible hazards". +

    This key information can be hidden if metadata is missing.

    +
  8. +