|
Lines 68-100
if ($help) {
Link Here
|
| 68 |
exit; |
68 |
exit; |
| 69 |
} |
69 |
} |
| 70 |
|
70 |
|
| 71 |
my $help; |
|
|
| 72 |
my $fix; |
| 73 |
|
| 74 |
GetOptions( |
| 75 |
'h|help' => \$help, |
| 76 |
'f|fix' => \$fix, |
| 77 |
); |
| 78 |
|
| 79 |
my $usage = <<'ENDUSAGE'; |
| 80 |
|
| 81 |
This script finds differences between the records on the Koha database |
| 82 |
and the Elasticsearch index. |
| 83 |
|
| 84 |
The `--fix` option switch can be passed to try fixing them. |
| 85 |
|
| 86 |
This script has the following parameters : |
| 87 |
|
| 88 |
-f|--fix Try to fix errors |
| 89 |
-h|--help Print this message |
| 90 |
|
| 91 |
ENDUSAGE |
| 92 |
|
| 93 |
if ($help) { |
| 94 |
print $usage; |
| 95 |
exit; |
| 96 |
} |
| 97 |
|
| 98 |
foreach my $index ( ('biblios','authorities') ) { |
71 |
foreach my $index ( ('biblios','authorities') ) { |
| 99 |
print "=================\n"; |
72 |
print "=================\n"; |
| 100 |
print "Checking $index\n"; |
73 |
print "Checking $index\n"; |
| 101 |
- |
|
|