From 604b3f6fc4b9f54f9d7c92be81d037836e1306ba Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 18 Sep 2023 12:22:33 +0200 Subject: [PATCH] Bug 34817: Framework plugin callnumber_colors Content-Type: text/plain; charset=utf-8 Test plan: Add this to your IntranetUserCSS: .callnumber_green { background-color: green; } /* callnumber_colors.pl framework plugin */ .callnumber_red { background-color: red; } /* callnumber_colors.pl framework plugin */ Goto Administration/MARC bib framework. Add callnumber_colors.pl as plugin to 952$o. Goto Cataloguing/Edit items. Test the plugin with a new and existing item. Test response on existing callnumber, not existing, clearing field. Signed-off-by: Marcel de Rooy --- .../value_builder/callnumber_colors.pl | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 cataloguing/value_builder/callnumber_colors.pl diff --git a/cataloguing/value_builder/callnumber_colors.pl b/cataloguing/value_builder/callnumber_colors.pl new file mode 100755 index 0000000000..f62c0f34ab --- /dev/null +++ b/cataloguing/value_builder/callnumber_colors.pl @@ -0,0 +1,47 @@ +#!/usr/bin/perl + +use Modern::Perl; + +my $builder = sub { + my ($params) = @_; + my $field_number = $params->{id}; + + my $res = " +"; + return $res; +}; + +return { builder => $builder }; -- 2.30.2