return { id => 'ticket_id', };
}
=head3 strings_map
=cut
sub strings_map {
my ( $self, $params ) = @_;
my $strings = {};
if ( defined $self->status ) {
my $av = Koha::AuthorisedValues->search(
{
category => 'TICKET_STATUS',
authorised_value => $self->status,
);
my $status_str =
$av->count
? $params->{public}
? $av->next->opac_description
: $av->next->lib
: $self->status;
$strings->{status} = {
str => $status_str,
type => 'av',
};
return $strings;
=head3 _type
return { id => 'update_id', };
- integer
- "null"
description: Number of updates
_strings:
type:
- object
description: A list of stringified coded values
additionalProperties: false
required:
- source
- resolver
- biblio
- updates+count
- +strings
collectionFormat: csv
responses:
"200":
type: string
enum:
- user
"resolver",
"biblio",
"updates+count",
"+strings"
],
'emptyTable': '<div class="dialog message">' + _("Congratulations, there are no catalog concerns.") + '</div>',
"columnDefs": [{
result += '<span class="clearfix">' + $datetime(row.resolved_date) + '</span>';
} else {
if (row.status) {
result += row.status;
result += row._strings.status ? escape_str(row._strings.status.str) : "";
result += _("Open");
url: "/api/v1/tickets/" + ticket_id + "/updates",
method: "GET",
headers: {
"x-koha-embed": "user",
"x-koha-embed": ["user", "+strings"],
},
})
.success(function (data) {
}) +
" (" +
$datetime(item.date) +
")</span>";
")";
if (item.status) {
updates +=
updates += '<span class="wrapfix pull-right">';
'<span class="pull-right">' +
updates += item._strings.status
item.status +
? escape_str(item._strings.status.str)
"</span>";
: "";
updates += "</span>";
updates += "</div>";
});
updates_display.html(updates);
-