[open-ils-commits] r19251 - in branches/rel_2_0/Open-ILS: src/perlmods/OpenILS/Application xsl (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 21 15:39:21 EST 2011
Author: miker
Date: 2011-01-21 15:39:16 -0500 (Fri, 21 Jan 2011)
New Revision: 19251
Modified:
branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm
branches/rel_2_0/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl
Log:
slimpac issue where deleted copies are visisble, spotted by Steve Callendar and Jason Etheridge
Modified: branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm
===================================================================
--- branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm 2011-01-21 20:36:16 UTC (rev 19250)
+++ branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm 2011-01-21 20:39:16 UTC (rev 19251)
@@ -2880,6 +2880,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 .= 'deleted="' . $self->obj->deleted . '" ';
$xml .= 'label="' . $self->escape( $self->obj->label ) . '">';
$xml .= "\n";
Modified: branches/rel_2_0/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl
===================================================================
--- branches/rel_2_0/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl 2011-01-21 20:36:16 UTC (rev 19250)
+++ branches/rel_2_0/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl 2011-01-21 20:39:16 UTC (rev 19251)
@@ -77,17 +77,17 @@
<xsl:apply-templates select="hold:volume/hold:uris/hold:uri"/>
</ul>
</xsl:if>
- <xsl:if test="count(hold:volume/hold:copies/hold:copy) > 0">
+ <xsl:if test="count(hold:volume[deleted='f']/hold:copies/hold:copy[deleted='f']) > 0">
<u>Holdings</u>
<ul>
- <xsl:apply-templates select="hold:volume">
+ <xsl:apply-templates select="hold:volume[deleted='f']">
<xsl:sort select="@lib"/>
</xsl:apply-templates>
</ul>
</xsl:if>
</xsl:template>
- <xsl:template match="hold:volume">
+ <xsl:template match="hold:volume[deleted='f']">
<li>
<b>
<a>
@@ -121,13 +121,13 @@
<xsl:template match="hold:copies">
<ul>
- <xsl:apply-templates select="hold:copy">
+ <xsl:apply-templates select="hold:copy[deleted='f']">
<xsl:sort select="hold:location"/>
</xsl:apply-templates>
</ul>
</xsl:template>
- <xsl:template match="hold:copy">
+ <xsl:template match="hold:copy[deleted='f']">
<li> <xsl:value-of select="@barcode"/> <abbr class="unapi-id"><xsl:attribute name="title"><xsl:value-of select="@id"/></xsl:attribute></abbr>
<ul>
<li>Circulating from <b><xsl:value-of select="hold:circlib"/></b></li>
More information about the open-ils-commits
mailing list