diff options
Diffstat (limited to 'modules/batch_update/plugins')
| -rw-r--r-- | modules/batch_update/plugins/birth_y.php | 2 | ||||
| -rw-r--r-- | modules/batch_update/plugins/death_y.php | 2 | ||||
| -rw-r--r-- | modules/batch_update/plugins/duplicate_links.php | 2 | ||||
| -rw-r--r-- | modules/batch_update/plugins/married_names.php | 2 | ||||
| -rw-r--r-- | modules/batch_update/plugins/name_format.php | 2 | ||||
| -rw-r--r-- | modules/batch_update/plugins/search_replace.php | 2 | ||||
| -rw-r--r-- | modules/batch_update/plugins/tmglatlon.php | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/modules/batch_update/plugins/birth_y.php b/modules/batch_update/plugins/birth_y.php index 4b39643ad9..2dbf71daec 100644 --- a/modules/batch_update/plugins/birth_y.php +++ b/modules/batch_update/plugins/birth_y.php @@ -40,7 +40,7 @@ class birth_y_bu_plugin extends base_plugin { static function getDescription() { return i18n::translate('You can improve the performance of PGV by ensuring that all individuals have a «start of life» event.'); } - + static function doesRecordNeedUpdate($xref, $gedrec) { return !preg_match('/^1\s+'.WT_EVENTS_BIRT.'\b/m', $gedrec); } diff --git a/modules/batch_update/plugins/death_y.php b/modules/batch_update/plugins/death_y.php index 70a1927cbb..eb021ab635 100644 --- a/modules/batch_update/plugins/death_y.php +++ b/modules/batch_update/plugins/death_y.php @@ -40,7 +40,7 @@ class death_y_bu_plugin extends base_plugin { static function getDescription() { return i18n::translate('You can improve the performance of PGV by ensuring that all individuals have (where appropriate) an «end of life» event.'); } - + static function doesRecordNeedUpdate($xref, $gedrec) { return !preg_match('/^1\s+'.WT_EVENTS_DEAT.'\b/m', $gedrec) && Person::getInstance($xref)->isDead(); } diff --git a/modules/batch_update/plugins/duplicate_links.php b/modules/batch_update/plugins/duplicate_links.php index d3f78f33d0..9a590c510f 100644 --- a/modules/batch_update/plugins/duplicate_links.php +++ b/modules/batch_update/plugins/duplicate_links.php @@ -40,7 +40,7 @@ class duplicate_links_bu_plugin extends base_plugin { static function getDescription() { return i18n::translate('A common error is to have multiple links to the same record, for example listing the same child more than once in a family record.'); } - + // Default is to operate on INDI records function getRecordTypesToUpdate() { return array('INDI', 'FAM', 'SOUR', 'REPO', 'NOTE', 'OBJE'); diff --git a/modules/batch_update/plugins/married_names.php b/modules/batch_update/plugins/married_names.php index 7e14c91f38..a38ae17503 100644 --- a/modules/batch_update/plugins/married_names.php +++ b/modules/batch_update/plugins/married_names.php @@ -42,7 +42,7 @@ class married_names_bu_plugin extends base_plugin { static function getDescription() { return i18n::translate('You can make it easier to search for married women by recording their married name.<br />However not all women take their husband\'s surname, so beware of introducing incorrect information into your database.'); } - + function doesRecordNeedUpdate($xref, $gedrec) { return preg_match('/^1 SEX F/m', $gedrec) && preg_match('/^1 NAME /m', $gedrec) && self::_surnames_to_add($xref, $gedrec); } diff --git a/modules/batch_update/plugins/name_format.php b/modules/batch_update/plugins/name_format.php index d8a55e0ab2..84ac6e577f 100644 --- a/modules/batch_update/plugins/name_format.php +++ b/modules/batch_update/plugins/name_format.php @@ -40,7 +40,7 @@ class name_format_bu_plugin extends base_plugin { static function getDescription() { return i18n::translate('Correct NAME records of the form \'John/DOE/\' or \'John /DOE\', as produced by older genealogy programs.'); } - + static function doesRecordNeedUpdate($xref, $gedrec) { return preg_match('/^(?:1 NAME|2 _MARNM|2 _AKA) [^\/\n]*\/[^\/\n]*$/m', $gedrec) || diff --git a/modules/batch_update/plugins/search_replace.php b/modules/batch_update/plugins/search_replace.php index a492c557ae..d98cf0962a 100644 --- a/modules/batch_update/plugins/search_replace.php +++ b/modules/batch_update/plugins/search_replace.php @@ -47,7 +47,7 @@ class search_replace_bu_plugin extends base_plugin { static function getDescription() { return i18n::translate('Search and/or replace data in your GEDCOM using simple searches or advanced pattern matching.'); } - + // Default is to operate on INDI records function getRecordTypesToUpdate() { return array('INDI', 'FAM', 'SOUR', 'REPO', 'NOTE', 'OBJE'); diff --git a/modules/batch_update/plugins/tmglatlon.php b/modules/batch_update/plugins/tmglatlon.php index 6539fc9d3f..a93dbae2e3 100644 --- a/modules/batch_update/plugins/tmglatlon.php +++ b/modules/batch_update/plugins/tmglatlon.php @@ -40,7 +40,7 @@ class tmglatlon_bu_plugin extends base_plugin { static function getDescription() { return i18n::translate('Converts The Master Genealogist\'s proprietary lat/lon format to the GEDCOM 5.5.1 standard that PGV can read. Note: changes are not highlighted in the final output shown below.'); } - + // the default getActionPreview crashes on certain records, override the preview to just show the "after" results instead of the changes // try removing this when bug 2177311 is fixed function getActionPreview($xref, $gedrec) { |
