Today's progress
Met with JW today and set up some actual project and document type records, and cleared out some of the testing data. Discussed what she'll do with her document collection. this is the plan:
- Over the weekend she'll rename the folders and files to eliminate network-unfriendly characters (spaces, punctuation and accented characters), and also normalize case.
- On Monday we'll upload the whole collection to the showofha account.
- EM will be shown how to use Adobe Acrobat to create a single PDF from a collection of page images (I tested this on the dual-screen Mac, and there's an easy wizard for it). EM will create a PDF for each document, in the same folder as the images which constitute it, on the server. These PDFs will be the item which is primarily linked for each document, although it's also possible to link to each of the individual images.
Meanwhile, I added a new field to the db, linking documents to projects, and we will finalize the field names on Monday. I should then have the db in a state where JW and EM can enter documents and doc types into the db throughout July. When I come back, I should be able to finish the custom fields code, so they can continue with that.
Meanwhile, I got further with the custom fields code, and I'm now able to do a check to see whether any other document of the same doctype has a custom field of a given field type (to determine whether a field should be set for a given document). However, I'm now rethinking again; in the interests of simplicity, I think it might be much easier to create a single table of custom fields, with each one having four data columns, of which only one will be used. The item type would be determined by its type id, and the wasted space will be fairly negligible, compensated for by the great speed improvements due to the complexity of the SQL queries being substantially reduced. Given that a lot of these queries will be executed for any retrieval of a single document record for editing or display, I think the minor space sacrifice is well worth it for the speed improvement. I'll implement that on Monday, and rewrite the custom fields code I've got so far; it'll be much more straightforward.