Lines 276-282
sub GetAllIssues {
Link Here
|
276 |
'SELECT issues.*, items.*, biblio.*, biblioitems.*, issues.timestamp as issuestimestamp, issues.renewals AS renewals,items.renewals AS totalrenewals,items.timestamp AS itemstimestamp,borrowers.firstname,borrowers.surname |
276 |
'SELECT issues.*, items.*, biblio.*, biblioitems.*, issues.timestamp as issuestimestamp, issues.renewals AS renewals,items.renewals AS totalrenewals,items.timestamp AS itemstimestamp,borrowers.firstname,borrowers.surname |
277 |
FROM issues |
277 |
FROM issues |
278 |
LEFT JOIN items on items.itemnumber=issues.itemnumber |
278 |
LEFT JOIN items on items.itemnumber=issues.itemnumber |
279 |
LEFT JOIN borrowers on borrowers.borrowernumber=issues.issuer |
279 |
LEFT JOIN borrowers on borrowers.borrowernumber=issues.issuer_id |
280 |
LEFT JOIN biblio ON items.biblionumber=biblio.biblionumber |
280 |
LEFT JOIN biblio ON items.biblionumber=biblio.biblionumber |
281 |
LEFT JOIN biblioitems ON items.biblioitemnumber=biblioitems.biblioitemnumber |
281 |
LEFT JOIN biblioitems ON items.biblioitemnumber=biblioitems.biblioitemnumber |
282 |
WHERE issues.borrowernumber=? |
282 |
WHERE issues.borrowernumber=? |
Lines 284-290
sub GetAllIssues {
Link Here
|
284 |
SELECT old_issues.*, items.*, biblio.*, biblioitems.*, old_issues.timestamp as issuestimestamp, old_issues.renewals AS renewals,items.renewals AS totalrenewals,items.timestamp AS itemstimestamp,borrowers.firstname,borrowers.surname |
284 |
SELECT old_issues.*, items.*, biblio.*, biblioitems.*, old_issues.timestamp as issuestimestamp, old_issues.renewals AS renewals,items.renewals AS totalrenewals,items.timestamp AS itemstimestamp,borrowers.firstname,borrowers.surname |
285 |
FROM old_issues |
285 |
FROM old_issues |
286 |
LEFT JOIN items on items.itemnumber=old_issues.itemnumber |
286 |
LEFT JOIN items on items.itemnumber=old_issues.itemnumber |
287 |
LEFT JOIN borrowers on borrowers.borrowernumber=old_issues.issuer |
287 |
LEFT JOIN borrowers on borrowers.borrowernumber=old_issues.issuer_id |
288 |
LEFT JOIN biblio ON items.biblionumber=biblio.biblionumber |
288 |
LEFT JOIN biblio ON items.biblionumber=biblio.biblionumber |
289 |
LEFT JOIN biblioitems ON items.biblioitemnumber=biblioitems.biblioitemnumber |
289 |
LEFT JOIN biblioitems ON items.biblioitemnumber=biblioitems.biblioitemnumber |
290 |
WHERE old_issues.borrowernumber=? AND old_issues.itemnumber IS NOT NULL |
290 |
WHERE old_issues.borrowernumber=? AND old_issues.itemnumber IS NOT NULL |