Is there a way to make the history start with the most or least recent entry? The history on my items doesn't seem to follow a pattern.

Comments

grahl’s picture

Are you still experiencing this issue? I'm not able to see it on my end, the history tab seems to be sorted by date descending.

The function does have "ORDER BY lt.created DESC", so at least the db query is specifying it, not sure what is overriding it for you.

daengo’s picture

Yes, I'm still having the issue. I see a couple of SQL calls like that in library.module. Which one are you referring to (what is the full query)?
At first glance it appears that my items are sorted correctly but as I scroll down the history tab I see 2011 to 2010 to 2009 and then back to 2011 to 2010 to 2009 leading me to think that it is going through each of my 10 copies of a specific item (our camcorders) and listed them by barcode, only the dang barcode isn't included in the query so I have no way to tell which copy is being referred to.
The table headers are just as below:

Date Transaction Notes Patron Due Date Actions

Without some sort of additional indicator in the table header the only that I can think of is to write a view, however, views support for this module is limited and doesn't allow specific barcode copies to show up (premise for one of my other posts). So, I see no way to tell that patron John Doe checked out camcorder #2 on such and such day and returned it on such and such day unless you create a new item and don't make use of the "Add an Item" feature which should be very handy. Do you have any suggestions or see a fix?

grahl’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Won't get fixed without a patch provided here.