Bugzilla – Attachment 35073 Details for
Bug 13264
Full stack encoding tests (UTF-8)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 13264: Follow up: in opac_utf8.t insert also delete of biblio
SIGNED-OFF-Bug-13264-Follow-up-in-opacutf8t-insert.patch (text/plain), 2.25 KB, created by
Tomás Cohen Arazi (tcohen)
on 2015-01-09 14:25:55 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 13264: Follow up: in opac_utf8.t insert also delete of biblio
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2015-01-09 14:25:55 UTC
Size:
2.25 KB
patch
obsolete
>From e36ad8349ddc9e6d6a1fb83eacb7d4fee889367f Mon Sep 17 00:00:00 2001 >From: Zeno Tajoli <z.tajoli@cineca.it> >Date: Fri, 21 Nov 2014 13:27:34 +0100 >Subject: [PATCH] [SIGNED OFF] Bug 13264: Follow up: in opac_utf8.t insert also > delete of biblio > >In previous version of the test opac_utf8.t clears import from resevoir >but it doesn't delete record from biblio table in MySQL. >This the standard work of the feature, see: >http://manual.koha-community.org/3.18/en/catalogtools.html#managestaged > >Now the script deletes also record on MySQL level. >No necessary on Zebra level because it uses a temporaney Zebra index that it is >clenaned at the end of the script. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> >--- > t/db_dependent/www/opac_utf8.t | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/www/opac_utf8.t b/t/db_dependent/www/opac_utf8.t >index aad38de..fc20908 100644 >--- a/t/db_dependent/www/opac_utf8.t >+++ b/t/db_dependent/www/opac_utf8.t >@@ -189,10 +189,13 @@ my $webpage = $agent->{content}; > > $webpage =~ /(.*<title>.*?)(\d{1,})(.*<\/title>)/sx; > my $id_batch = $2; >+my $id_bib_number = GetBiblionumberFromImport($id_batch); > > # wait enough time for the indexer > sleep 10; > >+ >+ > # -------------------------------------------------- TEST ON OPAC > > >@@ -218,6 +221,8 @@ ok ($text =~ m/å¦åä¼. μμ/, 'UTF-8 chars are correctly present. Good'); > $agent->get_ok( "$intranet/cgi-bin/koha/tools/manage-marc-import.pl", 'view and clean batch' ); > $agent->form_name('clean_batch_'.$id_batch); > $agent->click(); >+$agent->get_ok( "$intranet/cgi-bin/koha/catalogue/detail.pl?biblionumber=$id_bib_number", 'biblio on intranet' ); >+$agent->get_ok( "$intranet/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&biblionumber=$id_bib_number", 'biblio deleted' ); > > # clean > cleanup(); >@@ -260,6 +265,13 @@ sub cleanup { > > } > >+sub GetBiblionumberFromImport{ >+ my ( $batch_id) = @_; >+ use C4::ImportBatch; >+ my $data = C4::ImportBatch::GetImportRecordsRange($batch_id, '', '', undef, >+ { order_by => 'import_record_id', order_by_direction => 'DESC' }); >+ my $biblionumber = $data->[0]->{'matched_biblionumber'}; > >- >+ return $biblionumber; >+} > 1; >-- >1.9.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 13264
:
33614
|
33703
|
33704
|
33705
|
33743
|
33744
|
33756
|
33757
|
33758
|
33759
|
33760
|
33777
|
33778
|
33779
|
33780
|
33781
|
33782
|
33783
|
33784
|
33785
|
33786
|
33811
|
33812
|
33813
|
33814
|
33815
|
33816
|
33817
|
34110
|
34111
|
34112
|
34113
|
34114
|
34115
|
34116
|
34117
|
34694
|
34766
|
34767
|
34768
|
34769
|
34770
|
34771
|
34772
|
34773
|
34774
|
34775
|
34776
|
34798
|
34799
|
34800
|
34801
|
34802
|
34803
|
34804
|
34805
|
34806
|
34807
|
34808
|
34809
|
34810
|
34811
|
34814
|
35068
|
35069
|
35070
|
35071
|
35072
|
35073
|
35074
|
35075
|
35076
|
35077
|
35078
|
35079
|
35080
|
35081
|
35082
|
35110
|
35111
|
35112
|
35113
|
35114
|
35115
|
35116
|
35117
|
35118
|
35119
|
35120
|
35121
|
35122
|
35123
|
35124