This is due to the way the prefix was entered on the course itself. On the course CHEM 498A, the subject code was entered as text rather than selecting the option from the list of option types.
This can be seen in the data using the API (making a call such as https://institution.kuali.co/api/cm/courses/{{courseid}}, and it displays like this: subjectCode: "CHEM"
This indicates that the prefix was entered as text, rather than being selected from the list of available options. You can also identify this by selecting 'Edit' on the course - if it was not selected from the list, it'll show up as (Option missing) like this:
To correct it, you'd need to Edit the course record and remove the prefix, then use the dropdown menu to select the appropriate one from the list.
This will link it to the subject code found in your option list, and ensure that it displays correctly within the catalog. When entered correctly, it will show the ID for the Subject Code in the data, and look like this: subjectCode: "65d8f7356b6508181075316f"
Once the subject code is corrected to use the one from the option type, it would reflect correctly in the catalog after it reindexes.
To help reduce this type of error from occurring, you can make sure that "Enable New Subject Code Validations" is enabled under your Feature Flags within the System Settings, and then once enabled, toggling the validation on under System Settings > Settings > Option Settings.
If that option is selected, then a draft for that course is created. When it does that, it creates a draft based on the subject code that is typed in (this looks like how the code is typed in, rather than requiring a selection from the drop down menu, as the drop down won't allow typed in options); and it links that version. This would be the only way to link to a draft; and it can do so because it knows exactly which version to point to, having created it from the program. This only creates a 'new' item. It won't create a modified version of an existing one.
Comments
0 comments
Article is closed for comments.