1 package Koha::QueryParser::Driver::PQF::Util;
2 use Scalar::Util qw(looks_like_number);
7 sub attributes_to_attr_string {
12 while (($key, $value) = each(%$attributes)) {
13 next unless looks_like_number($key);
14 $attr_string .= ' @attr ' . $key . '=' . $value . ' ';
16 $attr_string =~ s/^\s*//;
17 $attr_string =~ s/\s*$//;
18 $attr_string .= ' ' . $attributes->{''} if defined $attributes->{''};