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

(-)a/misc/maintenance/compare_es_to_db.pl (-6 / +5 lines)
Lines 76-84 foreach my $index ( ('biblios','authorities') ){ Link Here
76
    }
76
    }
77
77
78
    # Fetch values for providing record links
78
    # Fetch values for providing record links
79
    my $es_params = $searcher->get_elasticsearch_params;
79
    my $es_params  = $searcher->get_elasticsearch_params;
80
    my $es_base   = "$es_params->{nodes}[0]/".$searcher->index_name;
80
    my $es_base    = "$es_params->{nodes}[0]/" . $searcher->index_name;
81
    my $opac_base = C4::Context->preference('OPACBaseURL');
81
    my $staff_base = C4::Context->preference('staffClientBaseURL');
82
82
83
    print "\nComparing arrays, this may take a while\n";
83
    print "\nComparing arrays, this may take a while\n";
84
84
Lines 93-102 foreach my $index ( ('biblios','authorities') ){ Link Here
93
        for my $problem ( @koha_problems ){
93
        for my $problem ( @koha_problems ){
94
            if ( $index eq 'biblios' ) {
94
            if ( $index eq 'biblios' ) {
95
                print "  #$problem";
95
                print "  #$problem";
96
                print "  Visit here to see record: $opac_base/cgi-bin/koha/opac-detail.pl?biblionumber=$problem\n";
96
                print "  Visit here to see record: $staff_base/cgi-bin/koha/catalogue/detail.pl?biblionumber=$problem\n";
97
            } elsif ( $index eq 'authorities' ) {
97
            } elsif ( $index eq 'authorities' ) {
98
                print "#$problem";
98
                print "#$problem";
99
                print "  Visit here to see record: $opac_base/cgi-bin/koha/opac-authoritiesdetail.pl?authid=$problem\n";
99
                print "  Visit here to see record: $staff_base/cgi-bin/koha/authorities/detail.pl?authid=$problem\n";
100
            }
100
            }
101
        }
101
        }
102
    }
102
    }
103
- 

Return to bug 38762