Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function to add record type and check digit for record numbers #12

Open
crowesn opened this issue Apr 28, 2014 · 1 comment
Open

function to add record type and check digit for record numbers #12

crowesn opened this issue Apr 28, 2014 · 1 comment
Assignees

Comments

@crowesn
Copy link

crowesn commented Apr 28, 2014

Prepend record type code; append 'a' wildcard to accommodate record check number

@jamesvanmil jamesvanmil self-assigned this May 31, 2014
@jamesvanmil
Copy link
Contributor

There are two types of ids we want, a web_identifier, which doesn't have the check digit, and a public_identifier, which will be used to do manual lookups in Sierra.

There are two parts to implementing this:

  1. The *_view tables have the needed information in them, so we can have a universal function included in the relevant models, which constructions the identifiers.
  2. We also want this function for the *_record tables, which don't have them. For these, we will parse the class name and make the call to the related *_view models.

We could hard-code some of this information into the models, to reduce calls to the database, but let's see how this approach impacts performance (I suspect it won't involve too much overhead)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants