[open-ils-commits] r17469 - trunk/Open-ILS/src/perlmods/OpenILS/Application (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 3 11:36:24 EDT 2010
Author: miker
Date: 2010-09-03 11:36:21 -0400 (Fri, 03 Sep 2010)
New Revision: 17469
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm
Log:
add opac_visible to asset.copy_location and org units
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm 2010-09-03 13:37:30 UTC (rev 17468)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm 2010-09-03 15:36:21 UTC (rev 17469)
@@ -2677,6 +2677,7 @@
$xml .= 'id="tag:open-ils.org:asset-call_number/' . $self->obj->id . '" ';
$xml .= 'lib="' . $self->escape( $self->obj->owning_lib->shortname ) . '" ';
+ $xml .= 'opac_visible="' . $self->obj->owning_lib->opac_visible . '" ';
$xml .= 'label="' . $self->escape( $self->obj->label ) . '">';
$xml .= "\n";
@@ -3103,13 +3104,13 @@
$xml .= ">\n";
$xml .= ' <status ident="' . $self->obj->status->id . '">' . $self->escape( $self->obj->status->name ) . "</status>\n";
- $xml .= ' <location ident="' . $self->obj->location->id . '">' . $self->escape( $self->obj->location->name ) . "</location>\n";
- $xml .= ' <circlib ident="' . $self->obj->circ_lib->id . '">' . $self->escape( $self->obj->circ_lib->name ) . "</circlib>\n";
+ $xml .= ' <location ident="' . $self->obj->location->id . '" opac_visible="'.$self->obj->location->opac_visible.'">' . $self->escape( $self->obj->location->name ) . "</location>\n";
+ $xml .= ' <circlib ident="' . $self->obj->circ_lib->id . '" opac_visible="'.$self->obj->circ_lib->opac_visible.'">' . $self->escape( $self->obj->circ_lib->name ) . "</circlib>\n";
$xml .= ' <circ_lib xmlns="http://open-ils.org/spec/actors/v1" ';
$xml .= 'id="tag:open-ils.org:actor-org_unit/' . $self->obj->circ_lib->id . '" ';
$xml .= 'shortname="'.$self->escape( $self->obj->circ_lib->shortname ) .'" ';
- $xml .= 'name="'.$self->escape( $self->obj->circ_lib->name ) .'"/>';
+ $xml .= 'name="'.$self->escape( $self->obj->circ_lib->name ) .' opac_visible="'.$self->obj->circ_lib->opac_visible.'""/>';
$xml .= "\n";
$xml .= " <copy_notes>\n";
More information about the open-ils-commits
mailing list