The search fieldset can now be hidden or shown by the user by clicking on a triangle in the legend; and when a search is run, it's hidden automatically to make more space for the results.
I'll be glad when this week is over and the other two are back in the office...
I've got the new "choose which fields you see in the search results" feature working. It seems to be stable in the development site, and has no impact on the data entry features. It was a bit messy, and has resulted in a few lines of code being duplicated, so there are efficiency gains I could make with a bit of a re-factor, but overall it was less difficult than I feared. The feature can never realistically be extended to the custom fields -- it would be insanely complicated and painfully slow, for one thing, given that there are (at the last count) 110 custom fields. But I think JW might now consider consolidating some of those, and moving them back into the main table (something I could achieve on her instructions using SQL). Failing that, I think JW's project might be better served by its own customized, tuned search interface, to overcome some of the performance penalties that the generic AdaptiveDB backend code causes.
We met this morning to discuss ways to relieve SK of some of her more tedious work during the editing process. We decided that some processes can be automated, and accomplished through XSLT on the files still awaiting editing. These are the details (from which I'll later write the XSLT):
- Where an
<entry>has multiple<form>elements:- Keep only the first one.
- Append the contents of each
<pron>in the subsequent<form>s to the<pron>in the first<form>.
- Where an
<entry>has multiple<sense>elements:- Copy the contents of #2ff to the end of #1.
- Delete #2ff.
- Delete any empty
<sense>elements. - In every
<quote>:- Start by adding this hard-coded content at the beginning:
<phr type="p" subtype="u"></phr><bibl>ECH</bibl>
- Next, wrap the first text node in a
<phr type="n">tag. - Append any
<bibl>which is a following-sibling of the parent<quote>. gloss[parent::quote]should be changed to<seg>.- Then find any asterisk in its content, and wrap a
<gloss>tag around that word, removing the asterisk. - Next, append any
<bibl>which is a following-sibling of the parent<quote>. - Output the rest as-is (should there be anything else?).
- Start by adding this hard-coded content at the beginning:
Finally, there needs to be a change to the server-side code, because "phonemic" and "narrow" as values of @type will be changed to "p" and "n" respectively, while @subtype will go from "unattested" to "u".
JS-R came by to discuss his plan for a database project dealing with historical property records. The data is quite baggy and complicated, and is currently outgrowing a spreadsheet he's using. We'll need to do some careful planning before implementing the db, because it's not really clear from looking at the spreadsheet what the core data tables should be; there are lots of one-to-many relationships, and lots of necessary duplication of data (people, even if identical in all respects, cannot be assumed to be "the same", for instance). He's going to write a brief summary of the project and its needs, and I'll add to that a technical description, then Stew can take the project to the committee for approval.
Two more screenshots for JJ.
Came in a bit late (trip to accountants), but stayed late too, so still up one hour.
MJ came by today and we discussed the framework of the application, and made some preliminary decisions. This is my attempt to capture what ended up on the whiteboard.
The text side of the application (the TEI <text> element, in other words), will probably be handled as a DOM structure. It doesn't make much sense to try to model it in any other way, since it is directly editable (in that any element along with its children can be called up and altered by the user). We will need to keep an updated index of all the links between elements and <zone>s, though; each link would consist of a source element's @xml:id, the target zone's @xml:id, and the category of the link. It appears that categories will be applied, not to <div>s or <zone>s as before, but to links. This is necessary because the same <zone> may be linked from multiple elements for multiple purposes, and the same element may be linked to multiple <zone>s for multiple purposes.
In the interests of simplicity, I think it will make sense to write out the index of links into the TEI file directly. This can be done in categories, something like this:
<linkGrp type="myCategory"> <link targets="#elementA #zoneB" /> <link targets="#elementX #zoneY" /> </linkGrp>
I'm not sure yet where we should be storing the <linkGrp> elements; the header is the natural place, but none of its components seems to provide a good home for them.
These sets of elements can be rapidly read by the app when loading an existing file. However, for completeness, when saving, we should also supply the appropriate @facs and @corresp attributes on elements linking them to <zone>s, so that a processor not aware of the linkGrp system can still parse the relationships appropriately (although it would be unaware of the category information).
The index of all these relationships needs to be able to update itself in response to changes in the DOM, and it also needs to provide a brokering role enabling the GUI to display the right <zone> when an element is selected, or the right element when a <zone> is selected. In both cases, when it knows that there are multiple possible candidates, it should pop up a selection menu of some kind. It will also need to be able to display a list of every element which is a descendant of <text> and has an @xml:id, in the form of its <@xml:id> followed by some characters of its text content, so users can identify what they want to link to.
On the other side of the application, this is the basic model. (After our discussion, I did some more reading and realized we had been wrong about one Qt relationship, that between QGraphicsView and QGraphicsScene, so this description re-works that relationship.)
- At the top is
HcmcFacsimile, a container for all the graphical constituents of the model. This maps to a TEI<facsimile>element. HcmcFacsimilecontains aQVector<HcmcSurface>, which manages all the surfaces in the project.HcmcSurfacemaps to the TEI<surface>element. It descends fromQGraphicsScene. It contains oneHcmcPixmapItem, a descendant ofQGraphicsPixmapItem; this corresponds to a TEI<graphic>element.HcmcSurfacealso contains aQVector<HcmcZone>. It needs its own unique@xml:id.- Each
HcmcZonecorresponds to a TEI<zone>element, and descends fromQGraphicsPolygonItem. This is the most challenging class to write, because it needs three states (invisible, view, and edit). It will also need a unique<@xml:id>, which the indexing broker will have to be aware of. HcmcSurfacewill render itself through aQGraphicsView, tied to a panel in a tabbed panel control.
Added new info for Helgason's recent lectures, updated some MP3s from a previous lecturer, fixed some names which needed to be in conventional rather than Icelandic order, and changed the sorting system so that lecturers sorted by date are shown in descending order (newest first).
Sarah wrote:
I have been digging through the file boxes looking at the Particle file, and as far as I can see, most of the Particle file cards have NOT been entered. There is only Lexware printout for the first 3 file cards (plus one sentence off the 4th card), and this corresponds to affix-part.xml.
So we need to enter the rest of the Particle file directly from the cards.
-----------
Ewa wrote:
I have just been looking through the particle file cards, and doing some global searches for examples containing the particles. Based on a random sampling I think it is (almost) safe to say that all the dictegs in the particle file are already input as examples!
--------
We decided to proceed by inputting just the forms and defs for all the particles now - so that they all have entries with xml:ids.
Later, we will figure out some way to connect the particles to their relevant dictegs. It’s easy to find the dictegs by searching through the files all at once. So we will need to get Martin to help us connect the particles and the “found” examples.