Verification of the work page auto-tagger
Posted: Sat Jun 16, 2007 5:44 am
After some wrestling I've finished writing the work page auto-tagging system... though I'd like some confirmation whether it works right. The logic is as follows:
First assume all publications are public domain in all three places (Canada, US and EU).
If death date is less than 50 years ago, and it was first published less than 50 years ago (to account for posthumous publication), it is not public domain in Canada.
If published after 1963, the publication is not public domain in the US. (I'm not sure how to work around the 1963/1923 issue; maybe a new template is in order?) The public domain status in the US is independent of composer death date.
If death date is less than 70 years ago, it is not public domain in the EU. The public domain status in the EU is independent of date of first publication.
The code for determining the tags are as follows:
Where 1 is not-pd and 0 is pd. The order of the numbers is Canada, US then EU.
First assume all publications are public domain in all three places (Canada, US and EU).
If death date is less than 50 years ago, and it was first published less than 50 years ago (to account for posthumous publication), it is not public domain in Canada.
If published after 1963, the publication is not public domain in the US. (I'm not sure how to work around the 1963/1923 issue; maybe a new template is in order?) The public domain status in the US is independent of composer death date.
If death date is less than 70 years ago, it is not public domain in the EU. The public domain status in the EU is independent of date of first publication.
The code for determining the tags are as follows:
Code: Select all
array( '000' => '',
'001' => '{{WorkNonPD-EU}}',
'010' => '{{WorkNonPD-US}}',
'011' => '{{WorkNonPD-USandEU}}',
'100' => '{{Work1923}}',
'101' => '{{Work1923}}',
'110' => '{{WorknotPD}}',
'111' => '{{WorknotPD}}' );