From d65151be35dbfe641d63f72c86b881515fa65eb4 Mon Sep 17 00:00:00 2001
From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Date: Fri, 22 Jul 2016 11:48:21 +0200
Subject: [PATCH] [SIGNED-OFF]Bug 16971: Missing dependency for HTML::Entities

This module is already used in opac-password-recovery.pl.
It is loaded in Acquisition, but not used (anymore?).
It is not yet listed in PerlDependencies.

Note: The module is packaged for Debian Wheezy and Jessie.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Good catch. HTML::Entities added.
---
 C4/Acquisition.pm                |    1 -
 C4/Installer/PerlDependencies.pm |    5 +++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm
index 6894cb4..45554da 100644
--- a/C4/Acquisition.pm
+++ b/C4/Acquisition.pm
@@ -39,7 +39,6 @@ use MARC::Field;
 use MARC::Record;
 
 use Time::localtime;
-use HTML::Entities;
 
 use vars qw(@ISA @EXPORT);
 
diff --git a/C4/Installer/PerlDependencies.pm b/C4/Installer/PerlDependencies.pm
index db9cd7c..2e76388 100644
--- a/C4/Installer/PerlDependencies.pm
+++ b/C4/Installer/PerlDependencies.pm
@@ -812,6 +812,11 @@ our $PERL_DEPS = {
         'required' => '1',
         'min_ver'  => '3.0',
     },
+    'HTML::Entities' => {
+        usage => 'Core',
+        required => 1,
+        min_ver => '3.69', # same for Wheezy/Jessie
+    },
 };
 
 1;
-- 
1.7.10.4