Adding itemtypes and branches in MARCdetail BugFixing moremember.tmpl : column descri...
authorHenri-Damien LAURENT <henridamien@koha-fr.org>
Tue, 2 Oct 2007 20:30:03 +0000 (22:30 +0200)
committerChris Cormack <crc@liblime.com>
Tue, 2 Oct 2007 20:45:46 +0000 (15:45 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
catalogue/MARCdetail.pl
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl

index c406234..68db43b 100755 (executable)
@@ -60,17 +60,18 @@ sub get_authorised_value_desc ($$$$$$) {
     my ( $tagslib, $tag, $subfield, $value, $framework, $dbh ) = @_;
 
     #---- branch
-    #if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "branches" ) {
+    if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "branches" ) {
 
-        #       return GetBranchDetail($value)->{branchname};
-    #}
+#                return GetBranchDetail($value)->{branchname};
+               return $value;
+    }
 
     #---- itemtypes
-    #if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "itemtypes" ) {
+    if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "itemtypes" ) {
 
-        #          my $itemtypedef = getitemtypeinfo($itemtype);
-        #      return $itemtypedef->{description};
-    #}
+                  my $itemtypedef = getitemtypeinfo($itemtype);
+              return $itemtypedef->{description};
+    }
 
     #---- "true" authorized value
     my $category = $tagslib->{$tag}->{$subfield}->{'authorised_value'};
index 28588b9..dbe7fd7 100644 (file)
@@ -189,9 +189,9 @@ function confirm_reregistration() {
        <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
     <table>
         <tr>
+            <th scope="col">Date due</th>
             <th scope="col">Title</th>
             <th scope="col">Barcode</th>
-            <th scope="col">Date due</th>
             <th scope="col">Itemtype</th>
             <th scope="col">Charge</th>
             <th scope="col">Price</th>