[Koha-patches] [PATCH] Hiding patron attributes entry if not configured.

Owen Leonard oleonard at myacpl.org
Wed Oct 15 16:04:10 CEST 2008


---
 .../prog/en/modules/members/memberentrygen.tmpl    |    8 ++------
 .../prog/en/modules/members/moremember.tmpl        |    3 ++-
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl
index 60f3b95..03ea3ff 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl
@@ -865,13 +865,10 @@
 		<!-- /TMPL_UNLESS -->	
 <!-- /TMPL_IF -->
 
-<!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" -->
+<!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" --><!-- TMPL_UNLESS NAME="no_patron_attribute_types" -->
   <fieldset class="rows" id="memberentry_patron_attributes">
     <input type="hidden" name="setting_extended_patron_attributes" value="1" />
     <legend>Additional attributes and identifiers</legend>
-    <!-- TMPL_IF NAME="no_patron_attribute_types" -->
-    No patron attribute types defined.
-    <!-- TMPL_ELSE -->
     <table>
         <tr>
             <th>Type</th>
@@ -917,9 +914,8 @@
         </tr>
         <!-- /TMPL_LOOP -->
     </table>
-    <!-- /TMPL_IF -->
   </fieldset>
-<!-- /TMPL_IF--><!-- /TMPL_IF -->
+<!-- /TMPL_IF--><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
 
     <fieldset class="action">
         <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl
index 86b94e8..6f52ed7 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl
@@ -231,6 +231,7 @@ if (nodename =="barcodes[]"){
 <!-- End Upload Patron Image Section -->
 
 <!-- TMPL_IF NAME="ExtendedPatronAttributes" -->
+<!-- TMPL_IF NAME="patron_attributes" -->
 <div id="patron-extended-attributes" style="padding-top: 1em;">
 <h3>Additional attributes and identifiers</h3>
 <table>
@@ -252,7 +253,7 @@ if (nodename =="barcodes[]"){
 </div>
 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=4">Edit</a></div>
 <!-- /TMPL_IF -->
-
+<!-- /TMPL_IF -->
 </div>
  <div class="yui-u"> 
  <div id="patron-library-details">
-- 
1.5.5.GIT




More information about the Koha-patches mailing list