- If you have JavaScript turned off, then mousing over the buttons will show the menus, and clicking on them will work as expected, except that in the case of the Credits menu, when you click on a name, you'll be taken to the page for that person (rather than seeing a popup box, which is dependent on JavaScript).
- If you have JS turned on (the normal state), mousing over the button will do nothing, but if you click on it, you'll see the menu. When you navigate via the page menu, the menu will disappear after every click, but for the Credits menu it will stay open until you click on the button again. Clicking on names in the Credits menu will show the popup for the person.
I've tested this on desktop Chrome and Firefox, and on Android and iPad tablets, and it all seems to work correctly.
This gives us a level of graceful-failure on the menus that is far better than that in the content itself; links in the content right now are completely dependent on JavaScript.
Minor task that's been on my todo list for ages. This makes it simpler to maintain the instructions for a specific project distinct from the base instructions. Also deleted obsolete search_instructions file and tested.
Per-profile settings for Java in LibreOffice can be provided by adding a file here: /etc/skel/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml
The file should look like this:
<?xml version="1.0" encoding="UTF-8"?> <java xmlns="http://openoffice.org/2004/java/framework/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <enabled xsi:nil="true"/> <userClassPath xsi:nil="true"/> <vmParameters xsi:nil="true"/> <jreLocations xsi:nil="true"/> <javaInfo xsi:nil="false" vendorUpdate="2013-05-02" autoSelect="true"> <vendor>Oracle Corporation</vendor> <location>file:///usr/lib/jvm/java-7-openjdk-amd64/jre</location> <version>1.7.0_25</version> <features>0</features> <requirements>1</requirements> <vendorData>660069006C0065003A002F002F002F007500730072002F006C00690062002F006A0076006D002F006A006100760061002D0037002D006F00700065006E006A0064006B002D0061006D006400360034002F006A00720065002F006C00690062002F0061006D006400360034002F007300650072007600650072002F006C00690062006A0076006D002E0073006F000A002F007500730072002F006C00690062002F006A0076006D002F006A006100760061002D0037002D006F00700065006E006A0064006B002D0061006D006400360034002F006A00720065002F006C00690062002F0061006D006400360034002F0063006C00690065006E0074003A002F007500730072002F006C00690062002F006A0076006D002F006A006100760061002D0037002D006F00700065006E006A0064006B002D0061006D006400360034002F006A00720065002F006C00690062002F0061006D006400360034002F007300650072007600650072003A002F007500730072002F006C00690062002F006A0076006D002F006A006100760061002D0037002D006F00700065006E006A0064006B002D0061006D006400360034002F006A00720065002F006C00690062002F0061006D006400360034002F006E00610074006900760065005F0074006800720065006100640073003A002F007500730072002F006C00690062002F006A0076006D002F006A006100760061002D0037002D006F00700065006E006A0064006B002D0061006D006400360034002F006A00720065002F006C00690062002F0061006D006400360034000A00</vendorData> </javaInfo> </java>
When a new user profile is created it will generate this preference file in the user's home directory/.config...
VPN staff noticed that the page images were showing up properly in the poem details page, but the page illustration(s) was not.
The code in the VPN them for the display individual page was simply echoing out the path to the illustration file (because when I wrote it I did not know what convention they were going to use for paths to the illustrations).
I wrote a block of code based on the block used for the page images (it turns out they are putting the illustrations in the same folder(s) as the page images, so the code block didn't need much tweaking. The convention so far as been to have only one illustration per poem, but I figure sooner or later there will be more than one, so the block of code supports one or more illustrations, just as the page image code does.
Workflow for file submitted by LD to ready for transcription and markup. Posted here in case someone else needs to know where these files are.
1 Docx file
1.1) put file(s) into appropriate subfolder of local Franklin/sourceFiles/fromLyle/ (not used any further)
1.2) copy file(s) into Franklin/sourceFiles/toProcess
1.3) rename file(s) as necessary, file name before extension should be identical with value for filenameroot element e.g. FranklinLives
- camelBack
- multiple images get _n appended to end of image filename
1.4) open and edit docx file in word processor
- delete all instances of OPTIONAL and REQUIRED
- replace all instances of [[ with < and of ]] with >
- edit value of filenameroot element as needed
- tidy up any obvious syntax or typo screwups
- copy entire text to clipboard
1.5) save docx file (e.g. FranklinLives.docx)
2 create and populate xml file
2.1) open in oXygen appropriate template from local Franklin/templates folder
2.2) copy text from clipboard after bottom of template file
2.3) save file into local Franklin/svnrepo/data/text/en1Transcribe folder using filenameroot and "_en.xml" e.g. FranklinLives_en.xml
2.3) edit xml to get valid metadata content
- integrate pasted elements into template, delete any elements that are optional and empty; result should be a file whose metadata validates
- if docx file contains body text, move it into body element (won't validate)
- if docx file contains no body text, put instructions in for transcriber where image or pdf file(s) is/are to use for transcription
- if doc has no related documents, delete relatedDocumentList element
- if doc has related documents, insert a relatedDocument element with contents of appropriate filenameroot for each related document
result will be document with invalid body, but valid everything else
2.4) save xml file
2.5) svn add the xml file
3 jpg/pdf files
3.1) if there are any jpg/pdf files associated with this document, rename them with same filenameroot as xml file, followed by "_n" e.g. FranklinLives_1.jpg FranklinLives_2.jpg for 2 jpgs associated with FranklinLives
3.2) upload any jpg/pdf files to the source folder in the mystery1/www-dev/source folder
3.3) move any image/pdf files to the local Franklin/canMysDevSite/source folder
4) archive docx file
4.1) move the docx file to the local Franklin/sourceFiles/sentToTranscribe folder
Result is
- document(s) from Lyle in local Franklin/sourceFiles/fromLyle/
- local folder Franklin/sourceFiles/toProcess contains no files
- renamed normalized docx file in local Franklin/sourceFiles/sentToTranscribe
- xml file in local Franklin/svnrepo/data/text/en1Transcribe folder
- xml file added to svn repo and committed to repository
- jpg/pdf file(s) uploaded to mystery1/www-dev/source on unix.uvic.ca
- jpg/pdf files(s) moved to local Franklin/canMysDevSite/source folder
- any files on my local machine are backed up to my account on the hcmc backup server (rutabaga)
Haven't posted G&T hours since 20 of Sept.
Estimate 14 cumulative hours as follows
Estimate +1.0 for each of 9 typical weeks:
M -1
T +0.5
W 0
R +0.5
F +1
Estimate +2.5 for each of 2 weeks while Martin was out of office:
M -1
T +1
W +0.5
R +1
F +1
Three down, four to go.