-
-
Save cmenez/a00d028c217991c605e96ebe8f4e7e51 to your computer and use it in GitHub Desktop.
Multicampus Normalization Rule Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rule "BrowzineExport" | |
| when | |
| (TRUE) | |
| then | |
| changeField "245" to "TITLE" | |
| changeField "022" to "ISSN" | |
| copyField "776.x" to "099.x" | |
| changeField "099" to "ISSN" | |
| copyField "776.z" to "098.z" | |
| changeField "098" to "ISBN" | |
| changeField "020" to "ISBN" | |
| changeField "100" to "CREATOR" | |
| removeControlField "LDR" | |
| removeControlField "0*" | |
| removeField "0*" | |
| removeField "1*" | |
| removeField "2*" | |
| removeField "3*" | |
| removeField "4*" | |
| removeField "5*" | |
| removeField "6*" | |
| removeField "7*" | |
| removeField "8*" | |
| removeField "9*" | |
| addSubField "ITM.i.Print" if (exists "ITM.p") | |
| addSubField "ITM.i.Publisher direct" if (not exists "ITM.i") | |
| removeSubField "ITM.p" | |
| removeSubField "ITM.8" | |
| # --- Multicampus filtering (campus-specific feed) --- | |
| # Marks electronic inventory for the specified campus | |
| # Replace "CAMPUS_CODE" with the Alma code for the relevant campus | |
| addSubField "ITM.x.Electronic" if (exists "ITM.b.CAMPUS_CODE") | |
| # OPTIONAL (enable only if your "global" / non-grouped portfolios have NO ITM.b at all) | |
| # to enable, remove the # from the beginning of the FOLLOWING line: | |
| # addSubField "ITM.x.Electronic" if (not exists "ITM.b") | |
| removeSubField "ITM.b" | |
| changeField "ITM" to "TMP" if (not exists "ITM.i.Print") | |
| removeField "TMP" if (not exists "TMP.x.Electronic") | |
| changeField "TMP" to "ITM" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment