From: Dan Scott Date: Tue, 7 Jun 2011 14:09:57 +0000 (-0400) Subject: Add opac_visible attribute to copy and serial unit statuses X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ea3b8857d08b8a9050e763f8084c841e8df9a473;p=evergreen%2Ftadl.git Add opac_visible attribute to copy and serial unit statuses config.copy_status defines an opac_visible column, but that attribute was not being exposed in the holdings XML, so code that displayed copies and serial units based on the holdings XML had to hardcode the display based on the status ID or name instead of using the configured setting. To simplify display logic, teach holdings XML about the opac_visible column and expose its value in the status element as a new opac_visible attribute. Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm index 68928a617b..a0a634ac73 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm @@ -3336,7 +3336,7 @@ sub as_xml { $xml .= ">\n"; - $xml .= ' ' . $self->escape( $self->obj->status->name ) . "\n"; + $xml .= ' ' . $self->escape( $self->obj->status->name ) . "\n"; $xml .= ' ' . $self->escape( $self->obj->location->name ) . "\n"; $xml .= ' ' . $self->escape( $self->obj->circ_lib->name ) . "\n"; @@ -3457,7 +3457,7 @@ sub as_xml { $xml .= ">\n"; - $xml .= ' ' . $self->escape( $self->obj->status->name ) . "\n"; + $xml .= ' ' . $self->escape( $self->obj->status->name ) . "\n"; $xml .= ' ' . $self->escape( $self->obj->location->name ) . "\n"; $xml .= ' ' . $self->escape( $self->obj->circ_lib->name ) . "\n";