WikiCrawler/Utility/LicenseUtility.cs
/// <summary>
/// Returns the best applicable license tag for an item with an anonymous author.
/// </summary>
Returns the best applicable license tag for an item with an anonymous author.
Returns the best applicable license tag for an item with an anonymous author .
public static string GetPdLicenseTagAnonymousAuthor(int pubYear, string pubCountry)
	{
		if (UseEUNoAuthor(pubCountry))
		{
			if (DateTime.Now.Year - pubYear > 70)
			{
				return "{{PD-EU-no author disclosure}}";
			}
			else
			{
				return "";
			}
		}
		else if (pubCountry == "USA")
		{
			if (pubYear < (DateTime.Now.Year - 95))
			{
				return "{{PD-anon-expired}}";
			}
			else
			{
				return "";
			}
		}
		else
		{
			return "";
		}
	}
public static string GetPdLicenseTagAnonymousAuthor ( int pubYear , string pubCountry ) { if ( UseEUNoAuthor ( pubCountry ) ) { if ( DateTime . Now . Year - pubYear > 70 ) { return " " ; } else { return " " ; } } else if ( pubCountry == " " ) { if ( pubYear < ( DateTime . Now . Year - 95 ) ) { return " " ; } else { return " " ; } } else { return " " ; } }
Returns the best applicable license tag for an item with an anonymous author.
Returns the best applicable license tag for an item with an anonymous author .
pubYear
int
pubCountry
string