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

Provide default values for author identifiers #359

Merged
merged 7 commits into from
Mar 30, 2023
48 changes: 48 additions & 0 deletions cif_core.dic
Original file line number Diff line number Diff line change
Expand Up @@ -14978,6 +14978,11 @@ save_audit_author.id
_type.source Related
_type.container Single
_type.contents Word
_method.purpose Definition
_method.expression
;
_enumeration.default = Current_Row(audit_author) + 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Unique_id function (COMCIFS/dREL#10) might be more suitable here.

If not, the Current_row() call should be updated to reflect the changes implemented in COMCIFS/dREL#9.

;

save_

Expand Down Expand Up @@ -15345,6 +15350,25 @@ save_audit_contact_author.id
_type.source Related
_type.container Single
_type.contents Word
_method.purpose Definition
_method.expression
;
with aca as audit_contact_author
count = 0
target = 0
jamesrhester marked this conversation as resolved.
Show resolved Hide resolved
loop aa as audit_author {
if (aca.name == aa.name) {
count++
target = aa.id
}
}
if (count == 0 || count > 1) {
_enumeration.default = missing
}
else {
_enumeration.default = target
}
jamesrhester marked this conversation as resolved.
Show resolved Hide resolved
;

save_

Expand Down Expand Up @@ -18456,6 +18480,11 @@ save_publ_author.id
_type.source Related
_type.container Single
_type.contents Word
_method.purpose Definition
_method.expression
;
_enumeration.default = Current_Row(publ_author) + 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Unique_id function (COMCIFS/dREL#10) might be more suitable here.

If not, the Current_row() call should be updated to reflect the changes implemented in COMCIFS/dREL#9.

;

save_

Expand Down Expand Up @@ -18851,6 +18880,25 @@ save_publ_contact_author.id
_type.source Related
_type.container Single
_type.contents Word
_method.purpose Definition
_method.expression
;
with pca as publ_contact_author
count = 0
target = 0
loop pa as publ_author {
if (pca.name == pa.name) {
count++
target = pa.id
}
}
if (count == 0 || count > 1) {
_enumeration.default = missing
}
else {
_enumeration.default = target
}
;

save_

Expand Down