courtyo

Multicampus Normalization Rule Code

Feb 17th, 2026 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.28 KB | None | 0 0
  1. rule "BrowzineExport"
  2. when
  3. (TRUE)
  4. then
  5.  
  6. changeField "245" to "TITLE"
  7. changeField "022" to "ISSN"
  8. copyField "776.x" to "099.x"
  9. changeField "099" to "ISSN"
  10. copyField "776.z" to "098.z"
  11. changeField "098" to "ISBN"
  12. changeField "020" to "ISBN"
  13. changeField "100" to "CREATOR"
  14.  
  15. removeControlField "LDR"
  16. removeControlField "0*"
  17. removeField "0*"
  18. removeField "1*"
  19. removeField "2*"
  20. removeField "3*"
  21. removeField "4*"
  22. removeField "5*"
  23. removeField "6*"
  24. removeField "7*"
  25. removeField "8*"
  26. removeField "9*"
  27.  
  28. addSubField "ITM.i.Print" if (exists "ITM.p")
  29. addSubField "ITM.i.Publisher direct" if (not exists "ITM.i")
  30. removeSubField "ITM.p"
  31. removeSubField "ITM.8"
  32.  
  33. # --- Multicampus filtering (campus-specific feed) ---
  34. # Marks electronic inventory for the specified campus
  35. # Replace "CAMPUS_CODE" with the Alma code for the relevant campus
  36. addSubField "ITM.x.Electronic" if (exists "ITM.b.CAMPUS_CODE")
  37.  
  38. # OPTIONAL (enable only if your "global" / non-grouped portfolios have NO ITM.b at all)
  39. # to enable, remove the # from the beginning of the FOLLOWING line:
  40. # addSubField "ITM.x.Electronic" if (not exists "ITM.b")
  41.  
  42. removeSubField "ITM.b"
  43. changeField "ITM" to "TMP" if (not exists "ITM.i.Print")
  44. removeField "TMP" if (not exists "TMP.x.Electronic")
  45. changeField "TMP" to "ITM"
  46.  
  47. end
  48.  
Advertisement
Add Comment
Please, Sign In to add comment