View | Details | Raw Unified | Return to bug 18069
Collapse All | Expand All

(-)a/debian/scripts/koha-rebuild-zebra (-8 / +1 lines)
Lines 78-85 is to do an incremental rebuild. Link Here
78
78
79
Usage: $scriptname [options] instancename1 instancename2...
79
Usage: $scriptname [options] instancename1 instancename2...
80
Options:
80
Options:
81
    --usmarc|-u       Runs the process as USMARC rather than
82
                      the default of MARCXML.
83
    --authorities|-a  Only run process for authorities.
81
    --authorities|-a  Only run process for authorities.
84
    --biblios|-b      Only run process for biblios.
82
    --biblios|-b      Only run process for biblios.
85
    --full|-f         Does a reindex of the whole collection.
83
    --full|-f         Does a reindex of the whole collection.
Lines 95-101 EOF Link Here
95
93
96
# Default parameters
94
# Default parameters
97
opt_idx="-z"
95
opt_idx="-z"
98
opt_xml="-x"
99
opt_verbose=""
96
opt_verbose=""
100
opts_other=""
97
opts_other=""
101
biblios_only="no"
98
biblios_only="no"
Lines 121-129 while [ -n "$*" ]; do Link Here
121
        -a|--authorities)
118
        -a|--authorities)
122
            toggle_authorities_only
119
            toggle_authorities_only
123
            ;;
120
            ;;
124
        -u|--usmarc)
125
            opt_xml=""
126
            ;;
127
        -f|--full)
121
        -f|--full)
128
            full_reindex="yes"
122
            full_reindex="yes"
129
            opt_idx="-r"
123
            opt_idx="-r"
Lines 164-170 do Link Here
164
    if is_instance $name; then
158
    if is_instance $name; then
165
        if [ "$biblios" = "yes" ]; then
159
        if [ "$biblios" = "yes" ]; then
166
            if ! run_rebuild_zebra $name \
160
            if ! run_rebuild_zebra $name \
167
                -b $opt_verbose $opt_idx $opt_xml $opts_other; then
161
                -b $opt_verbose $opt_idx $opts_other; then
168
                warn "Something went wrong rebuilding biblio indexes for $name"
162
                warn "Something went wrong rebuilding biblio indexes for $name"
169
            fi
163
            fi
170
        fi
164
        fi
171
- 

Return to bug 18069