diff --git a/common/source_model/src/main/scala/weco/catalogue/source_model/sierra/rules/SierraRulesForRequesting.scala b/common/source_model/src/main/scala/weco/catalogue/source_model/sierra/rules/SierraRulesForRequesting.scala index 940b2703b1..e88e0337c6 100644 --- a/common/source_model/src/main/scala/weco/catalogue/source_model/sierra/rules/SierraRulesForRequesting.scala +++ b/common/source_model/src/main/scala/weco/catalogue/source_model/sierra/rules/SierraRulesForRequesting.scala @@ -72,6 +72,14 @@ object SierraRulesForRequesting { case i if i.fixedField("88").contains("g") => NotRequestable.SafeguardedItem("Safeguarded item.") + // This line covers the case: + // + // q|i||88||=|j||Deny item request if catalogue record has data issues. + // + // This rule is intended to deny item requests if a catalogue record has data issues. + case i if i.fixedField("88").contains("j") => + NotRequestable.ItemUnavailable() + // These cases cover the lines: // // v|i||88||=|b|| diff --git a/common/source_model/src/test/scala/weco/catalogue/source_model/sierra/rules/SierraRulesForRequestingTest.scala b/common/source_model/src/test/scala/weco/catalogue/source_model/sierra/rules/SierraRulesForRequestingTest.scala index dbace3efac..8c91575f01 100644 --- a/common/source_model/src/test/scala/weco/catalogue/source_model/sierra/rules/SierraRulesForRequestingTest.scala +++ b/common/source_model/src/test/scala/weco/catalogue/source_model/sierra/rules/SierraRulesForRequestingTest.scala @@ -19,6 +19,7 @@ class SierraRulesForRequestingTest ("s", NotRequestable.ItemOnSearch("This item is on search.")), ("x", NotRequestable.ItemWithdrawn("This item is withdrawn.")), ("r", NotRequestable.ItemUnavailable("This item is unavailable.")), + ("j", NotRequestable.ItemUnavailable("This item is unavailable.")), ("z", NotRequestable.NoPublicMessage("fixed field 88 = z")), ("v", NotRequestable.AtConservation("This item is with conservation.")), ("h", NotRequestable.ItemClosed("This item is closed.")),