Bug 9261: (follow-up) improving implementation of page title and breadcrumbs
authorGalen Charlton <gmc@esilibrary.com>
Fri, 15 Nov 2013 00:18:18 +0000 (00:18 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 15 Nov 2013 00:25:14 +0000 (00:25 +0000)
This patch improves how the page title and breadcrumbs for the patron
purchase suggestions page are generated by:

* removing references to a template variable that is not set by the
  script
* using the patron-title.inc template include consistently

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt

index ea34d50..58e8e24 100644 (file)
@@ -1,11 +1,5 @@
 [% INCLUDE 'doc-head-open.inc' %]
-<title>Koha &rsaquo; Patrons &rsaquo;
-[% IF ( unknowuser ) %]
-    Patron does not exist
-[% ELSE %]
-    Purchase suggestions for [% INCLUDE 'patron-title.inc' %]
-[% END %]
-</title>
+<title>Koha &rsaquo; Patrons &rsaquo; Purchase suggestions for [% INCLUDE 'patron-title.inc' %]</title>
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
 [% INCLUDE 'doc-head-close.inc' %]
 [% INCLUDE 'datatables.inc' %]
@@ -28,7 +22,7 @@
 <div id="breadcrumbs">
          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
-&rsaquo; [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Purchase suggestions for [% firstname %] [% surname %] ([% cardnumber %])[% END %]
+&rsaquo; Purchase suggestions for [% INCLUDE 'patron-title.inc' %]
 </div>
 
 <div id="doc3" class="yui-t1">