Beginning to flesh out the ODD file and documentation for the nascent journal article schema we're developing.
Entered the sizable bibliography that was missing from the Lingard, along with author's corrections; also spent a considerable amount of time tracking down a web reference that was only available in the Wayback Machine. Entered author's corrections for Tulinius. Still waiting for various bits and pieces before we can put the final volume together.
Got the offline data generation down to a minute or so, and 3.5MB, and I've now implemented that on the dev site. Will move to live when we've figured out where we might want to link it from.
On late duty.
Chased up a couple of reviewers; did my own first review for Issue 8.
I completed the unfinished gazetteer page generation XQuery and tested it; it takes a horribly long time to run. After optimizing again, I still couldn't get it fast enough, so I've posted a message to the eXist list for any suggestions. In the meantime, though, I've implemented an XSLT approach which generates the file offline. I think that may be the best approach available. We can still manage it through SVN and upload it to the db periodically.
Delivered student hourly worksheet to payroll office
Omnibus for last 8 weeks
Jan 13 - Jan 17 +1
Jan 20 - Jan 24 +1
Jan 27 - Jan 31 +1
Feb 03 - Feb 07 +1
Feb 10 - Feb 14 +2
Feb 17 - Feb 21 +1
Feb 24 - Feb 28 -3
Mar 03 - Mar 07 +1
Trying to cause the search mechanism to include values in the poems.po_pseudonym as well as in the authors.au_surname field. In the file vpn-search/vpn-search.php modified this line:
$conditions[] = $this->db->prepare('LOWER(' . $column .') LIKE %s', '%' . strtolower($val) . '%')
to this :
if ($column == 'authors.au_surname') {
$conditions[] = $this->db->prepare('LOWER(' . $column .') LIKE %s OR LOWER(poems.po_pseudonym) LIKE %s', '%' . strtolower($val) . '%', '%' . strtolower($val) . '%');
}
note that each instance of the %s in the first argument requires a distinct subsequent argument, so that's why the second and third arguments are the same (i.e. '%' . strtolower($val) . '%').
So that gave me a query like this:
SELECT poems.po_id AS poem_id, poems.po_title AS title
FROM poems LEFT JOIN poems_to_authors ON poems_to_authors.pta_po_id = poems.po_id LEFT JOIN authors ON poems_to_authors.pta_au_id = authors.au_id
WHERE length(poems.po_pseudonym) >= 1 AND authors.au_surname LIKE '%Shelley%' OR poems.po_pseudonym LIKE '%Shelley%'
The parsing of the AND and OR operator seems to be in as-they-come order, which means the WHERE clause is effectively:
WHERE (length(poems.po_pseudonym) >= 1 AND authors.au_surname LIKE '%Shelley%') OR (poems.po_pseudonym LIKE '%Shelley%')
but what I want is this:
WHERE (length(poems.po_pseudonym) >= 1) AND (authors.au_surname LIKE '%Shelley%' OR (poems.po_pseudonym LIKE '%Shelley%'
So, I modified another line in that same file to include explicit parentheses, that is from this:
$conditionString = "WHERE " . implode(' AND ' , $conditions);
to this:
$conditionString = "WHERE (" . implode(') AND (' , $conditions) . ')';
Leaving early. I had a TEI Council telco at 6am today.