From ea3b8857d08b8a9050e763f8084c841e8df9a473 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Tue, 7 Jun 2011 10:09:57 -0400 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.11.0