more XHTML corrections for new circ reports
Note: I question the use of GROUP_CONCAT(... SEPARATOR '<br/>'), because that puts knowledge of the output mechanism (currently HTML) into the SQL query. However, I am not fixing this right now. Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
f3258cc311
commit
20241fd686
5 changed files with 16 additions and 16 deletions
circ
koha-tmpl/intranet-tmpl/prog/en/modules/circ
|
@ -118,11 +118,11 @@ if ($order eq "patron") {
|
|||
}
|
||||
my $strsth =
|
||||
"SELECT
|
||||
GROUP_CONCAT(accountlines.accounttype ORDER BY accountlines.date DESC SEPARATOR '<br>') as l_accounttype,
|
||||
GROUP_CONCAT(description ORDER BY accountlines.date DESC SEPARATOR '<br>') as l_description,
|
||||
GROUP_CONCAT(round(amountoutstanding,2) ORDER BY accountlines.date DESC SEPARATOR '<br>') as l_amountoutstanding,
|
||||
GROUP_CONCAT(accountlines.date ORDER BY accountlines.date DESC SEPARATOR '<br>') as l_date,
|
||||
GROUP_CONCAT(accountlines.itemnumber ORDER BY accountlines.date DESC SEPARATOR '<br>') as l_itemnumber,
|
||||
GROUP_CONCAT(accountlines.accounttype ORDER BY accountlines.date DESC SEPARATOR '<br/>') as l_accounttype,
|
||||
GROUP_CONCAT(description ORDER BY accountlines.date DESC SEPARATOR '<br/>') as l_description,
|
||||
GROUP_CONCAT(round(amountoutstanding,2) ORDER BY accountlines.date DESC SEPARATOR '<br/>') as l_amountoutstanding,
|
||||
GROUP_CONCAT(accountlines.date ORDER BY accountlines.date DESC SEPARATOR '<br/>') as l_date,
|
||||
GROUP_CONCAT(accountlines.itemnumber ORDER BY accountlines.date DESC SEPARATOR '<br/>') as l_itemnumber,
|
||||
count(*) as cnt,
|
||||
max(accountlines.date) as maxdate,
|
||||
round(sum(amountoutstanding),2) as sum_amount,
|
||||
|
|
|
@ -116,7 +116,7 @@ my $strsth =
|
|||
"SELECT min(reservedate) as l_reservedate,
|
||||
reserves.borrowernumber as borrowernumber,
|
||||
GROUP_CONCAT(DISTINCT items.holdingbranch
|
||||
ORDER BY items.itemnumber SEPARATOR '<br>') l_holdingbranch,
|
||||
ORDER BY items.itemnumber SEPARATOR '<br/>') l_holdingbranch,
|
||||
reserves.biblionumber,
|
||||
reserves.branchcode,
|
||||
GROUP_CONCAT(DISTINCT reserves.branchcode
|
||||
|
@ -124,11 +124,11 @@ my $strsth =
|
|||
items.holdingbranch as branch,
|
||||
items.itemcallnumber,
|
||||
GROUP_CONCAT(DISTINCT items.itype
|
||||
ORDER BY items.itemnumber SEPARATOR '<br>') l_itype,
|
||||
ORDER BY items.itemnumber SEPARATOR '<br/>') l_itype,
|
||||
GROUP_CONCAT(DISTINCT items.location
|
||||
ORDER BY items.itemnumber SEPARATOR '<br>') l_location,
|
||||
ORDER BY items.itemnumber SEPARATOR '<br/>') l_location,
|
||||
GROUP_CONCAT(DISTINCT items.itemcallnumber
|
||||
ORDER BY items.itemnumber SEPARATOR '<br>') l_itemcallnumber,
|
||||
ORDER BY items.itemnumber SEPARATOR '<br/>') l_itemcallnumber,
|
||||
items.itemnumber,
|
||||
notes,
|
||||
notificationdate,
|
||||
|
|
|
@ -123,13 +123,13 @@ my $strsth =
|
|||
items.itemcallnumber,
|
||||
items.itemnumber,
|
||||
GROUP_CONCAT(DISTINCT items.itemcallnumber
|
||||
ORDER BY items.itemnumber SEPARATOR '<br>') as listcall,
|
||||
ORDER BY items.itemnumber SEPARATOR '<br/>') as listcall,
|
||||
GROUP_CONCAT(DISTINCT holdingbranch
|
||||
ORDER BY items.itemnumber SEPARATOR '<br>') as listbranch,
|
||||
ORDER BY items.itemnumber SEPARATOR '<br/>') as listbranch,
|
||||
GROUP_CONCAT(DISTINCT items.location
|
||||
ORDER BY items.itemnumber SEPARATOR '<br>') as l_location,
|
||||
ORDER BY items.itemnumber SEPARATOR '<br/>') as l_location,
|
||||
GROUP_CONCAT(DISTINCT items.itype
|
||||
ORDER BY items.itemnumber SEPARATOR '<br>') as l_itype,
|
||||
ORDER BY items.itemnumber SEPARATOR '<br/>') as l_itype,
|
||||
notes,
|
||||
reserves.found,
|
||||
biblio.title,
|
||||
|
|
|
@ -143,7 +143,7 @@ Calendar.setup(
|
|||
<!-- TMPL_LOOP NAME="reserveloop" -->
|
||||
<tr>
|
||||
<!-- TMPL_IF name="borrowernumber" -->
|
||||
<td><p><!-- TMPL_VAR NAME="pullcount" --></b></p></td>
|
||||
<td><p><b><!-- TMPL_VAR NAME="pullcount" --></b></p></td>
|
||||
<td><!-- TMPL_VAR NAME="count" --></td>
|
||||
<td><!-- TMPL_VAR NAME="rcount" --></td>
|
||||
<td>
|
||||
|
|
|
@ -135,8 +135,8 @@ Calendar.setup(
|
|||
</tr>
|
||||
|
||||
<!-- TMPL_LOOP NAME="reserveloop" -->
|
||||
<!-- TMPL_IF name="ratio_ge_one" -->
|
||||
<tr>
|
||||
<!-- TMPL_IF name="ratio_ge_one" -->
|
||||
<td>
|
||||
<p><!-- TMPL_VAR NAME="reservecount" --></p>
|
||||
</td>
|
||||
|
@ -169,8 +169,8 @@ Calendar.setup(
|
|||
<td><p><!-- TMPL_VAR NAME="itype" --></p></td>
|
||||
<td><p><!-- TMPL_VAR NAME="listcall" --></p></td>
|
||||
<td><p><b>Order: <!-- TMPL_VAR NAME="ratiocalc" --></b></p></td>
|
||||
<!-- /TMPL_IF -->
|
||||
</tr>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- /TMPL_LOOP -->
|
||||
</table>
|
||||
<!-- TMPL_ELSE -->
|
||||
|
|
Loading…
Reference in a new issue