Category: Activity log

22/05/13

Permalink 10:24:47 am, by mholmes, 77 words, 12 views   English (CA)
Categories: Activity log; Mins. worked: 60

Advanced search working

Trying to abstract the combined keyword/text search into a separate library yesterday was very problematic, but I took a simpler approach this morning and simply copied and adapted the code from search.xq into advanced_search.xq. The result seems to be working perfectly -- the keyword/text search is done first to retrieve a set of @xml:ids, then the search is done on those ids, with additional filters provided by the other form controls.

21/05/13

Permalink 05:08:57 pm, by mholmes, 130 words, 10 views   English (CA)
Categories: Activity log; Mins. worked: 120

Limitations on advanced search

PAB wants to combine the simple search (which is actually very complicated behind the scenes, since it does keyword lookups and combines them with supplementary text-searching) with the advanced search filters. This is proving virtually impossible, partly because it's just too messy -- you'd need to retrieve a document set from the keyword search in a separate step, and then filter it -- and partly because I just don't have time to implement it properly before the launch. I'll have a couple more shots at it, but things aren't looking good so far.

Made a few other changes and fixes requested with PAB, and hid the text search box, since it's doing what it says on the box (a text search), and not what PAB wants (a complicated keyword search).

15/05/13

Permalink 02:50:14 pm, by mholmes, 36 words, 14 views   English (CA)
Categories: Activity log; Mins. worked: 360

Subdomain and advanced search both working

I've implemented the advanced search as a separate page, and got it basically working, although some missing bits in the encoding mean that it's not finding everything it should (e.g. dates are missing @whens sometimes).

07/05/13

Permalink 11:48:47 am, by mholmes, 123 words, 15 views   English (CA)
Categories: Activity log; Mins. worked: 120

Fixes and plans for MyNDIR release

Met with PAB and made a number of fixes:

  • Created a new copy of all the images in a folder called displaysize, and resized some of them to comply with owners' requests; the webapp now draws from that folder.
  • Made changes to menu captions, and added a new menu item and placeholder page for it ("In progress").
  • Removed authentication by commenting the relevant bits of the webapp's web.xml file, and restarting the webapp in the Tomcat manager. The Tomcat config still has the user set up, but it's no longer being used for anything.
  • Fixed a couple of layout bugs.

We also made a plan for an advanced search, which I'll document in more detail here before I try to implement it.

10/08/11

Permalink 08:34:23 am, by mholmes, 224 words, 233 views   English (CA)
Categories: Activity log; Mins. worked: 45

Adding authentication to MyNDIR

Following PAB's instructions based on a request from her supervisor, the MyNDIR project has been temporarily password-protected. To do that, I followed my own instructions here. One wrinkle worth documenting:

After making the required changes, I tried restarting the webapp in the Tomcat manager. This appeared to work; however, when I tried to access it, I was challenged for authentication, but the authentication was not accepted. It seems that Tomcat perhaps does not re-read its tomcat-users.xml file unless it's restarted, so although Cocoon knew authentication was required, Tomcat was unable to process it. So we tried restarting Tomcat (in this case, tomcat-dev), logged on as me using sudo on the init script as documented elsewhere. This generated a problem we have seen before: the running instance of tomcat-dev failed to stop, and when a new process was started, we ended up with two running. The only way we could find to solve this was to su to hcmc (under which the processes run), and kill both of them. The first (the new one) was effectively killed with just kill, but the other required kill -9. Once both were stopped, we were able to run the init script (as me, using sudo), and Tomcat restarted. Greg is asking sysadmin to figure out what the problem might be here; we've encountered it several times now.

24/06/11

Permalink 09:01:04 am, by mholmes, 34 words, 193 views   English (CA)
Categories: Activity log; Mins. worked: 15

Fixed a JS bug

In the changes we rather hurriedly made last week, I neglected to update the JavaScript that handles the related items links. That was still pointing at index.htm instead of doc.htm. Now done.

14/06/11

Permalink 02:12:52 pm, by mholmes, 135 words, 234 views   English (CA)
Categories: Activity log; Mins. worked: 30

Changes to site structure and XSLT

PAB came by and we made the following changes:

  • Standard document display is now handled by doc.htm rather than index.htm. All XSLT which outputs links and menu items has been changed.
  • index.htm now redirects to page.htm?page=home. PAB will create a home.xml page in a home folder, analogous with "About".
  • <head> elements in <list>s and <listBibl>s are now formatted as <h3> tags in text.
  • Note: in order to inherit site page styling (correct margins in particular), a page such as about.xml must have an @type attribute on its main content <div> (the first <div> in <body>). It doesn't matter what the value of the @type attribute is, but it must be present.

26/05/11

Permalink 10:52:52 am, by mholmes, 35 words, 200 views   English (CA)
Categories: Activity log; Mins. worked: 60

More minor changes

Met with PAB and made the following minor tweaks:

  • Added illustrator's name to the mouseover title in the sliding array of thumbnails.
  • Added XSLT handlers for bulleted list content in the Contact and Links pages.

19/01/11

Permalink 02:26:33 pm, by mholmes, 78 words, 221 views   English (CA)
Categories: Activity log; Mins. worked: 60

More features and fixes

Met with PAB and made these changes:

  • Moved the XML source link down to the bottom of the document metadata field list.
  • Added handling for Research Notes (stored in <notesStmt> in the <teiHeader>).
  • Added more sophisticated handling for the <ref> tag so that one item can link directly to another in this wise:
      <ref target="Nks1867-098v.xml"></ref>
    
    while preserving the normal functionality for external links.

15/12/10

Permalink 10:36:54 am, by mholmes, 64 words, 253 views   English (CA)
Categories: Activity log; Mins. worked: 90

Added more features and fixes

Meeting with PAB, during which we:

  • Figured out a couple of typos in the XML that were causing odd behaviour.
  • Reconfigured the page header so that it includes a header graphic (one of the images, resized and recoloured).
  • Modified some XQuery, XSLT and CSS so that any images with status="restricted" are bordered in red, and have a warning message in the title attribute.

:: Next Page >>

MyNDIR

Reports

Categories

June 2013
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

XML Feeds