Bugzilla – Attachment 177340 Details for
Bug 38762
compare_es_to_db.pl should provide links to the staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38762: Make compare_es_to_db.pl provide links to staff interface
Bug-38762-Make-compareestodbpl-provide-links-to-st.patch (text/plain), 2.49 KB, created by
Jonathan Druart
on 2025-01-30 08:30:10 UTC
(
hide
)
Description:
Bug 38762: Make compare_es_to_db.pl provide links to staff interface
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-01-30 08:30:10 UTC
Size:
2.49 KB
patch
obsolete
>From 4fec4a1a1103b69bee672bf64722380785a13a54 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 20 Dec 2024 10:07:38 -0300 >Subject: [PATCH] Bug 38762: Make compare_es_to_db.pl provide links to staff > interface > >This patch makes the script provide links to the staff interface instead >of the OPAC. This way, the links can just be picked to access the >problematic records for fixing them. > >To test: >1. Run: > $ ktd --shell > k$ perl misc/maintenance/compare_es_to_db.pl >=> FAIL: Generated links point to the OPAC >2. Apply this patch >3. Repeat 1 >=> SUCCESS: Generated links are useful as they point to the staff >interface >4. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > misc/maintenance/compare_es_to_db.pl | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/misc/maintenance/compare_es_to_db.pl b/misc/maintenance/compare_es_to_db.pl >index b79f7397894..9d9f7cfe57e 100755 >--- a/misc/maintenance/compare_es_to_db.pl >+++ b/misc/maintenance/compare_es_to_db.pl >@@ -75,9 +75,9 @@ foreach my $index ( ('biblios','authorities') ){ > } > > # Fetch values for providing record links >- my $es_params = $searcher->get_elasticsearch_params; >- my $es_base = "$es_params->{nodes}[0]/".$searcher->index_name; >- my $opac_base = C4::Context->preference('OPACBaseURL'); >+ my $es_params = $searcher->get_elasticsearch_params; >+ my $es_base = "$es_params->{nodes}[0]/" . $searcher->index_name; >+ my $staff_base = C4::Context->preference('staffClientBaseURL'); > > print "\nComparing arrays, this may take a while\n"; > >@@ -92,10 +92,10 @@ foreach my $index ( ('biblios','authorities') ){ > for my $problem ( @koha_problems ){ > if ( $index eq 'biblios' ) { > print " #$problem"; >- print " Visit here to see record: $opac_base/cgi-bin/koha/opac-detail.pl?biblionumber=$problem\n"; >+ print " Visit here to see record: $staff_base/cgi-bin/koha/catalogue/detail.pl?biblionumber=$problem\n"; > } elsif ( $index eq 'authorities' ) { > print "#$problem"; >- print " Visit here to see record: $opac_base/cgi-bin/koha/opac-authoritiesdetail.pl?authid=$problem\n"; >+ print " Visit here to see record: $staff_base/cgi-bin/koha/authorities/detail.pl?authid=$problem\n"; > } > } > } >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38762
:
175839
|
175845
| 177340