From a7151865bec7b759571e5cacf77087b92347677c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Holger=20Mei=C3=9Fner?= <h.meissner.82@web.de>
Date: Thu, 15 May 2014 16:49:47 +0200
Subject: [PATCH] Bug 11577: OPAC prog theme changes
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This patch makes the prog version of opac-user.tt handle the new
renewal errors "auto_renew" and "auto_too_soon".

To test:

1) Set global syspref "opacthemes" to prog.

2) Test the same things as in previous patch.

Sponsored-by: Hochschule für Gesundheit (hsg), Germany
---
 koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt
index c3a4fe1..6552ddd 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt
@@ -226,6 +226,9 @@ var MSG_CONFIRM_RESUME_HOLDS  = _("Are you sure you want to resume all suspended
                         <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
                     [% ELSIF ( ISSUE.too_many ) %]
                         Not renewable
+                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
+                        Automatic renewal
+                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
                     [% ELSIF ( ISSUE.too_soon ) %]
                         No renewal before [% ISSUE.soonestrenewdate %]
                         <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
-- 
1.7.10.4