Adding itemtypes and branches in MARCdetail BugFixing moremember.tmpl : column descriptions were messed.

Signed-off-by: Chris Cormack <crc@liblime.com>
This commit is contained in:
Henri-Damien LAURENT 2007-10-02 22:30:03 +02:00 committed by Chris Cormack
parent d53e1d3343
commit 059c9880c3
2 changed files with 9 additions and 8 deletions

View file

@ -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'};

View 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>