From f69e07fea68f2ad33e43c92c92991b4653b0e0b7 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 21 Apr 2011 00:09:55 +0000 Subject: [PATCH] add marginal support for surfacing CN affixes in supercat and slimpac CN browse git-svn-id: svn://svn.open-ils.org/ILS/trunk@20266 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../src/perlmods/lib/OpenILS/WWW/SuperCat.pm | 16 +++++++++++++++- Open-ILS/xsl/CNBrowse2HTML.xsl | 2 ++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm index 180c123159..329935bd3f 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm @@ -51,6 +51,8 @@ $browse_types{call_number}{xml} = sub { my $cn_tag = "tag:open-ils.org,$year:$cn_class/".$cn->id; my $cn_lib = $cn->owning_lib->shortname; my $cn_label = $cn->label; + my $cn_prefix = $cn->prefix->label; + my $cn_suffix = $cn->suffix->label; $cn_label =~ s/\n//gos; $cn_label =~ s/&/&/go; @@ -58,6 +60,18 @@ $browse_types{call_number}{xml} = sub { $cn_label =~ s//>/go; + $cn_prefix =~ s/\n//gos; + $cn_prefix =~ s/&/&/go; + $cn_prefix =~ s/'/'/go; + $cn_prefix =~ s//>/go; + + $cn_suffix =~ s/\n//gos; + $cn_suffix =~ s/&/&/go; + $cn_suffix =~ s/'/'/go; + $cn_suffix =~ s//>/go; + (my $ou_class = $cn->owning_lib->class_name) =~ s/::/-/gso; $ou_class =~ s/Fieldmapper-//gso; @@ -72,7 +86,7 @@ $browse_types{call_number}{xml} = sub { my $rec_tag = "tag:open-ils.org,$year:$rec_class/".$cn->record->id.'/'.$cn->owning_lib->shortname; - $content .= "\n"; + $content .= "\n"; $content .= "\n"; my $r_doc = $parser->parse_string($cn->record->marc); diff --git a/Open-ILS/xsl/CNBrowse2HTML.xsl b/Open-ILS/xsl/CNBrowse2HTML.xsl index b0f0fb3f85..ac971a1b2c 100644 --- a/Open-ILS/xsl/CNBrowse2HTML.xsl +++ b/Open-ILS/xsl/CNBrowse2HTML.xsl @@ -56,7 +56,9 @@
+ +
-- 2.43.2