From: Jason Boyer Date: Thu, 6 Apr 2023 14:46:54 +0000 (-0400) Subject: LP2015481: Re-align Labels for Circ History X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d23ef891fa721911574f6df360823ec08f5ba3e2;p=evergreen%2Ftadl.git LP2015481: Re-align Labels for Circ History Move Call number to the end of the Circ History table to match Items Out and also correct the label order for narrow screen CSS. Signed-off-by: Jason Boyer Signed-off-by: Galen Charlton Signed-off-by: Michele Morgan --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/circ_history.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/circ_history.tt2 index e18bdf55eb..5944e86f38 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/circ_history.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/circ_history.tt2 @@ -56,11 +56,11 @@ [% l("Cover") %] [% sort_head("sort_title", l("Title")) %] [% sort_head("author", l("Author")) %] - [% sort_head("callnum", l("Call Number")) %] [% sort_head("checkout", l("Checkout Date")) %] [% sort_head("due", l("Due Date")) %] [% sort_head("returned", l("Date Returned")) %] [% sort_head("barcode", l("Barcode")) %] + [% sort_head("callnum", l("Call Number")) %] @@ -173,23 +173,6 @@ [% END; %] - [%- - cnlist = []; - FOREACH element IN [circ.circ.target_copy.call_number.prefix.label - circ.circ.target_copy.call_number.label - circ.circ.target_copy.call_number.suffix.label]; - IF (element); - cnlist.push(element); - END; - END; - cn = cnlist.join(' '); - %] - [% cn | html %] - [%- IF circ.circ.target_copy.parts.0.label %] -
[% circ.circ.target_copy.parts.0.label | html -%] - [%- END %] - - [% date.format(ctx.parse_datetime(circ.circ.xact_start),DATE_FORMAT); %] @@ -208,6 +191,23 @@ [% END %] [% circ.circ.target_copy.barcode | html %] + + [%- + cnlist = []; + FOREACH element IN [circ.circ.target_copy.call_number.prefix.label + circ.circ.target_copy.call_number.label + circ.circ.target_copy.call_number.suffix.label]; + IF (element); + cnlist.push(element); + END; + END; + cn = cnlist.join(' '); + %] + [% cn | html %] + [%- IF circ.circ.target_copy.parts.0.label %] +
[% circ.circ.target_copy.parts.0.label | html -%] + [%- END %] + [% END %]