|
Lines 84-91
is to do an incremental rebuild.
Link Here
|
| 84 |
|
84 |
|
| 85 |
Usage: $scriptname [options] instancename1 instancename2... |
85 |
Usage: $scriptname [options] instancename1 instancename2... |
| 86 |
Options: |
86 |
Options: |
| 87 |
--usmarc|-u Runs the process as USMARC rather than |
|
|
| 88 |
the default of MARCXML. |
| 89 |
--authorities|-a Only run process for authorities. |
87 |
--authorities|-a Only run process for authorities. |
| 90 |
--biblios|-b Only run process for biblios. |
88 |
--biblios|-b Only run process for biblios. |
| 91 |
--full|-f Does a reindex of the whole collection. |
89 |
--full|-f Does a reindex of the whole collection. |
|
Lines 101-107
EOF
Link Here
|
| 101 |
|
99 |
|
| 102 |
# Default parameters |
100 |
# Default parameters |
| 103 |
opt_idx="-z" |
101 |
opt_idx="-z" |
| 104 |
opt_xml="-x" |
|
|
| 105 |
opt_verbose="" |
102 |
opt_verbose="" |
| 106 |
opts_other="" |
103 |
opts_other="" |
| 107 |
biblios_only="no" |
104 |
biblios_only="no" |
|
Lines 127-135
while [ -n "$*" ]; do
Link Here
|
| 127 |
-a|--authorities) |
124 |
-a|--authorities) |
| 128 |
toggle_authorities_only |
125 |
toggle_authorities_only |
| 129 |
;; |
126 |
;; |
| 130 |
-u|--usmarc) |
|
|
| 131 |
opt_xml="" |
| 132 |
;; |
| 133 |
-f|--full) |
127 |
-f|--full) |
| 134 |
full_reindex="yes" |
128 |
full_reindex="yes" |
| 135 |
opt_idx="-r" |
129 |
opt_idx="-r" |
|
Lines 173-179
do
Link Here
|
| 173 |
if is_instance $name; then |
167 |
if is_instance $name; then |
| 174 |
if [ "$biblios" = "yes" ]; then |
168 |
if [ "$biblios" = "yes" ]; then |
| 175 |
if ! run_rebuild_zebra $name \ |
169 |
if ! run_rebuild_zebra $name \ |
| 176 |
-b $opt_verbose $opt_idx $opt_xml $opts_other; then |
170 |
-b $opt_verbose $opt_idx $opts_other; then |
| 177 |
warn "Something went wrong rebuilding biblio indexes for $name" |
171 |
warn "Something went wrong rebuilding biblio indexes for $name" |
| 178 |
fi |
172 |
fi |
| 179 |
fi |
173 |
fi |
| 180 |
- |
|
|