From a17df5cef162fd17b6b2f14c5f289838a7b9f6f3 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Tue, 17 Mar 2020 09:43:13 +0100
Subject: [PATCH] Bug 18177: remove aqbooksellers.booksellerurl

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
---
 Koha/Acquisition/Bookseller.pm                                  | 1 -
 acqui/uncertainprice.pl                                         | 1 -
 koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt | 1 -
 t/db_dependent/Bookseller.t                                     | 1 -
 4 files changed, 4 deletions(-)

diff --git a/Koha/Acquisition/Bookseller.pm b/Koha/Acquisition/Bookseller.pm
index 623ce70699..9fe5caccf9 100644
--- a/Koha/Acquisition/Bookseller.pm
+++ b/Koha/Acquisition/Bookseller.pm
@@ -83,7 +83,6 @@ on the API.
 sub to_api_mapping {
     return {
         bookselleremail => undef,
-        booksellerurl   => undef,
         currency        => undef,
         listprice       => 'list_currency',
         invoiceprice    => 'invoice_currency',
diff --git a/acqui/uncertainprice.pl b/acqui/uncertainprice.pl
index e41dbddc5c..bd98a71001 100755
--- a/acqui/uncertainprice.pl
+++ b/acqui/uncertainprice.pl
@@ -108,7 +108,6 @@ $template->param( uncertainpriceorders => \@orders,
                                    bookselleraddress3 => $bookseller->address3,
                                    bookselleraddress4 => $bookseller->address4,
                                    booksellerphone =>$bookseller->phone,
-                                   booksellerurl => $bookseller->url,
                                    booksellernotes => $bookseller->notes,
                                    basketcount   => $bookseller->baskets->count,
                                    subscriptioncount   => $bookseller->subscriptions->count,
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt
index 81e16ccb75..940127c0ca 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt
@@ -33,7 +33,6 @@
                 [% bookselleraddress2 | html %]
                 [% bookselleraddress3 | html %]
                 [% bookselleraddress4 | html %]
-                <a href="[% booksellerurl | url %]">[% booksellerurl | html %]</a>
             </p>
             <p><strong>Phone: </strong>
                 [% booksellerphone | html %] / Fax:
diff --git a/t/db_dependent/Bookseller.t b/t/db_dependent/Bookseller.t
index 27844d32a7..33324dd3bd 100644
--- a/t/db_dependent/Bookseller.t
+++ b/t/db_dependent/Bookseller.t
@@ -767,7 +767,6 @@ sub field_filter {
 
     for my $field (
         'bookselleremail',
-        'booksellerurl',
         'currency',        'invoiceprice',
         'listprice',       'contacts'
       )
-- 
2.20.1