Skip to content

Commit

Permalink
Merge pull request #27 from IT-CEREBRUM/CRB-3905-stedkode-extid
Browse files Browse the repository at this point in the history
Add external id to store location code (stedkode)
  • Loading branch information
fredrikhl authored and GitHub Enterprise committed Jan 10, 2023
2 parents 367c272 + fc0b3ca commit 37d605d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Cerebrum/modules/no/Constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,28 @@ class ConstantsHigherEdu(Constants.Constants):
'User name (external system)',
)

# External ID to represent location code (stedkode)
#
# This external id should exist in parallell to
# :mod:`Cerebrum.modules.no.Stedkode`, and eventually replace it.
#
# Location codes consists of an institution id, and a six-digit
# institution specific id, AAUUGG, where:
#
# - AA is a department/faculty
# - UU is a subdepartment/institute
# - and GG is a group within that subdepartment.
#
# This external id should only store the last six digits, i.e. *not* the
# institution id, which should be set in
# ``cereconf.DEFAULT_INSTITUSJONSNR``.
#
externalid_location_code = _EntityExternalIdCode(
'NO_SKO',
Constants.Constants.entity_ou,
"An org unit legacy location code (stedkode)",
)

#
# OU-structure perspectives
#
Expand Down

0 comments on commit 37d605d

Please sign in to comment.