Skip to content

Commit

Permalink
Update rules for requesting (03/11/24) (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenoir authored Dec 6, 2024
1 parent a9ea08c commit 6c00a35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.")),
Expand Down

0 comments on commit 6c00a35

Please sign in to comment.