You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use references without a year to search all years publications of a document. But reference IDs withot year doesn't match to document's PubId with year. We need a way to drop year when compare PubIds.
I suggest to implement an "asymmetric" compare solution. If left operand has year then it's used, otherwise year is ignored.
# false because left operand has year, but right doesn't have or have different year.pubid_with_year === pubid_without_year=>falsepubid_with_year1 === pubid_with_year2=>false# true because left operand doesn't have year so right operand can have any year or no year at allpubid_without_year === pubid_with_year=>true
I'd say if a === b true then b is a member of set a. For example (1..5) === 3 is true, but 3 === (1..5) is false. In our case if left operand doesn't have year then it denotes a set of documents with any year.
Why not use something simple like pubid1.without_year == pubid2.without_year?
Because it depends on a reference. If a reference with year we need to compare with year, otherwise without year. We need something like:
We use references without a year to search all years publications of a document. But reference IDs withot year doesn't match to document's PubId with year. We need a way to drop year when compare PubIds.
I suggest to implement an "asymmetric" compare solution. If left operand has year then it's used, otherwise year is ignored.
It blocks relaton/relaton-bsi#24 and relaton/relaton-jis#2
The text was updated successfully, but these errors were encountered: