Permalink 09:51:24 am, by sarneil, 65 words, 181 views   English (CA)
Categories: Activity log; Mins. worked: 360

hcmc : updating proposal procedure, mandate and admin sections of new site

Over last couple of weeks, I've been putting in a couple of hours here and a couple of hours there editing the dev HCMC site, especially sections dealing with project proposals and related "what we can do for you" type stuff. The pages on the HCMC and DH committee mandates etc. will be revised after discussion of proposed changes at the next DH ctte meeting.


Permalink 04:19:40 pm, by sarneil, 70 words, 180 views   English (CA)
Categories: Activity log; Mins. worked: 90

grs : meet regarding new website

Met with Martin and MM to talk about a new GRS website in the cascade environment, what's involved and the various pros and cons. The department will probably go ahead with this, and will start planning the structure of the site. They'll then meet with us again to review the spreadsheet and tweak it for submission to wherever it goes so that we can get an account on cascade provisioned.


Permalink 10:40:37 am, by sarneil, 304 words, 191 views   English (CA)
Categories: Activity log; Mins. worked: 60

take in calendar files as XML or as text for rendering into data for course widgit

The page http://web.uvic.ca/calendar2012/CDs/ENGL/CTs.html declares itself as html 4.01 transitional and is not well-formed XML. I opened it as a plain XML file in Oxygen:
- bunch of self-closing elements which don't have a close tag or "/>",
- bunch of upper-case element and attribute names
- couple of missing li elements to contain nested lists.
So, we'd have to do maybe a dozen regexp string manipulations to take the raw file and turn it into well-formed XML source, but those same regexps could probably be used to create output XML instead.

The page http://web.uvic.ca/calendar2012/CDs/ENGL/101.html also declares itself as html 4.01 transitional and is even further from well-formed XML. We need only a pretty small and simple snippet from the page which, so again we'd probably have to take that in as text. The regexps to turn it into a usable XML source would be more, and more complex, than the regexps to create the desired output XML

The page https://www.uvic.ca/BAN2P/bwckctlg.p_disp_listcrse?term_in=201301&subj_in=ENGL&crse_in=101&schd_in= also declares itself as html 4.01 transitional. It's a long way from XML, too, so again I figure we'll likely be treating this as text rather than an xml structure.

Pattern is pretty clear. Right now, it looks like we should take in the files as text rather then xml, and run regexps to generate the output XML we want. I don't think it's viable to take in the calendar files as XML, and I don't see sufficient value in taking the raw html as text and using regexps to render an XML (or XHTML) version of the input structure and then doing XSLT on that XML to generate the output XML


Permalink 04:21:37 pm, by sarneil, 1283 words, 217 views   English (CA)
Categories: Activity log; Mins. worked: 90

engl : how widget is getting course and offering information

It looks like the English dept widget is doing something like what our code for the Philosophy site does, only more ambitious. Namely, they {
- go to http://web.uvic.ca/calendar/CDs/DEPT/CTs.html where DEPT is the four letter department code, e.g. ENGL
- create a list of all the courses offered from that page
- for each item in that list (where XXX is the course number, e.g. 101) {
- - go to http://web.uvic.ca/calendar/CDs/DEPT/XXX.html
- - get the course description, credit units and hours
- - ask banner for offerings in each of summer, where YYYYMM is the year and month of the start of the term, e.g. 201205, 201209, 201301)
- - for each offering {
- - - get CRN, section, instructor, time and place of offering

I don't know if they're doing a bunch of regexp string processing or some actual XML parsing. The stuff they're working from is pretty ugly, but it is machine generated, so presumably consistent for parsing.

Here's a snippet from the file http://web.uvic.ca/calendar/CDs/ENGL/CTs.html showing the entry for ENGL 101 which would be used to add an item for 101 to the list of courses offered by the department:

<h3 class='cdListLevel'>100-level courses
<a name="1L" href="CDs/ENGL/CTs.html#pageTop">
<img src='pix/toTop.gif' title='go to top' width='26' height='20' border='0' />
<ul class='CDTL'>
<a href="CDs/ENGL/101.html">
101&nbsp; Fundamentals of Academic Literacy

And here's a snippet from the file http://web.uvic.ca/calendar2012/CDs/ENGL/101.html that would be used to get the course description, title, units and hours for ENGL 101 (the units and hours would have to be done by string rather than node processing):

<!-- SCD -->
<div id="CDpage">
<h1>ENGL 101</h1>
<h2>Fundamentals of Academic Literacy</h2>
<h3>Units: 1.5, Hours: 3-0</h3>
<p>Introduction to the reading and writing skills needed to meet the expectations of university-level academic study. Emphasis is on building proficiency in academic reading and writing through extensive practice. Suitable for students who need to strengthen their reading and writing skills before attempting a course that meets the Academic Writing Requirement.</p>
<p><b>Notes: - </b>Restricted to students who have not satisfied the Academic Writing Requirement.</p><p>- This course does not satisfy the Academic Writing Requirement.</p>

There are two snippets used to get the details of the course offering. First, the snippet from the file https://www.uvic.ca/BAN2P/bwckctlg.p_disp_listcrse?term_in=201209&subj_in=ENGL&crse_in=101&schd_in= that would be used to provide all the details of the course offering except the number of seats available:

<TABLE CLASS="datadisplaytable" SUMMARY="This table lists the scheduled meeting times and assigned instructors for this class.."><CAPTION class="captiontext">Scheduled Meeting Times</CAPTION>
<TH CLASS="ddheader" scope="col" >Type</TH>
<TH CLASS="ddheader" scope="col" >Time</TH>
<TH CLASS="ddheader" scope="col" >Days</TH>
<TH CLASS="ddheader" scope="col" >Where</TH>
<TH CLASS="ddheader" scope="col" >Date Range</TH>
<TH CLASS="ddheader" scope="col" >Schedule Type</TH>
<TH CLASS="ddheader" scope="col" >Instructors</TH>
<TD CLASS="dddefault">Every Week</TD>
<TD CLASS="dddefault">10:30 am - 11:20 am</TD>
<TD CLASS="dddefault">TWF</TD>
<TD CLASS="dddefault">Clearihue Building D134</TD>
<TD CLASS="dddefault">Sep 05, 2012 - Dec 03, 2012</TD>
<TD CLASS="dddefault">Lecture</TD>
<TD CLASS="dddefault">Brock C. MacLeod (<ABBR title= "Primary">P</ABBR>)<A HREF="mailto:brock1@uvic.ca" target="Brock C. MacLeod" ><IMG SRC="/assets/self-service/admissions/icons/notcheck.gif" ALIGN="middle" ALT="E-mail" TITLE="E-mail" NAME="web_email" HSPACE=0 VSPACE=0 BORDER=0 HEIGHT=28 WIDTH=28></A></TD>

And here's a snippet from https://www.uvic.ca/BAN2P/bwckschd.p_disp_detail_sched?term_in=YYYYMM&crn_in=NNNNN (where NNNNN is obtained from the course offering query above) from which you'd obtain the number of seats available (and/or the length of the waitlist):

<TABLE CLASS="datadisplaytable" SUMMARY="This layout table is used to present the seating numbers." width = "100%"><CAPTION class="captiontext">Registration Availability</CAPTION>
<TD CLASS="dddead">&nbsp;</TD>
<TH CLASS="ddheader" scope="col" ><SPAN class=fieldlabeltext>Capacity</SPAN></TH>
<TH CLASS="ddheader" scope="col" ><SPAN class=fieldlabeltext>Actual</SPAN></TH>
<TH CLASS="ddheader" scope="col" ><SPAN class=fieldlabeltext>Remaining</SPAN></TH>
<TH CLASS="ddlabel" scope="row" ><SPAN class=fieldlabeltext>Seats</SPAN></TH>
<TD CLASS="dddefault">24</TD>
<TD CLASS="dddefault">23</TD>
<TD CLASS="dddefault">1</TD>
<TH CLASS="ddlabel" scope="row" ><SPAN class=fieldlabeltext>Waitlist Seats</SPAN></TH>
<TD CLASS="dddefault">100</TD>
<TD CLASS="dddefault">4</TD>
<TD CLASS="dddefault">96</TD>

And here is a snippet of the XML from the English widget, with lots of whitespace and comments added by me:

id value is a conventionalized date, name value is concocted based on value in id
name="Second Term: Jan - Apr 2013"
value of both fields is concocted by code - nothing to do with calendar or banner
title="First Year Undergraduate"
value for each of these fields is scraped from web.uvic.ca/calendar/CDs/DEPT/XXX.html . The value for XXX is scraped from http://web.uvic.ca/calendar/CDs/DEPT/CTs.html */
title="Fundamentals of Academic Literacy"
value for each of these fields is scraped from https://www.uvic.ca/BAN2P/bwckctlg.p_disp_listcrse?term_in=YYYYMM&subj_in=DEPT&crse_in=XXX&schd_in=% except for open, which is obtained by scraping https://www.uvic.ca/BAN2P/bwckschd.p_disp_detail_sched?term_in=YYYYMM&crn_in=NNNNN where NNNNN is the crn value obtained in the query just above.
dates="Jan 03, 2013 - Apr 05, 2013"
instructor="Suzan J. Last"
open="0" /* not sure where they're getting this value from */
time="1:00 pm - 2:20 pm"
where="Clearihue D130"


Permalink 01:53:10 pm, by sarneil, 71 words, 372 views   English (CA)
Categories: Activity log; Mins. worked: 120

GRS : expedite site proposal

Met with JS and Judy to talk about issues with site proposal. Revised site based on JS's input and Judy submitted that to BB for approval, which came back. Meanwhile JS would expedite the provisioning of the account so that we would have enough time to create some of the sections and pages for BB and SB to work on at the upcoming Cascade training session. Proposal submitted to information architects.
Permalink 01:24:37 pm, by sarneil, 24 words, 138 views   English (CA)
Categories: Activity log; Mins. worked: 60

PAAS : submit dept site plan to communications

Met with Martin and three people from PAAS to finalize proposed site plan. Made modifications and circulated to all and to JS at communications.


Permalink 04:56:21 pm, by sarneil, 74 words, 156 views   English (CA)
Categories: Activity log; Mins. worked: 90

GRS : get ball rolling on site proposal

Turns out that the GRS site proposal hasn't got past JS, which she and Judy try to schedule a meeting. I proposed a day and time which worked out. We got input from JS, and submitted an updated proposal after getting OK from BB. JS is expediting the provisioning of the site in advance of cascade training session next week, and we expect to hear back from information architects at about the same time.


Permalink 04:44:48 pm, by sarneil, 49 words, 198 views   English (CA)
Categories: Activity log; Mins. worked: 15

HCMC : Cascade account provisioned

Heard back from JS that our site plan was approved and we have had an account provisioned. Assigned Judy and Greg to work together (Judy's worked on one more-complex site already, and Greg wants to learn the ropes of how the environment works) to structure and populate the site.


Permalink 03:53:32 pm, by mholmes, 44 words, 246 views   English (CA)
Categories: Activity log; Mins. worked: 30

HUMS site: fixed navbar issues

With advice from BLT on what was intended, I've fixed the secondaryNavbar.php code in the student subfolder. I think the style of the section headers could be revisited, and customized, so they don't look selected, but the page is valid and everything works.

Permalink 03:07:23 pm, by mholmes, 213 words, 229 views   English (CA)
Categories: Activity log; Mins. worked: 60

HUMS site: Re-fixed previous bugs, and created buttons; found more bugs

The previous bugs in aboutus/secondaryNavbar.php had re-introduced themselves, so I fixed them again. Then I realized that another secondaryNavbar.php page in the studehnt subfolder has similar bugs, so I started looking at it. The left-side menu looks like it was supposed to be designed to expand and contract, so initially you would see only:

For all students
For undergraduates
For graduates

then when you clicked on one of those, it would expand and show the contents below it. But it doesn't work like that; all the contents are expanded all the time.

The code looks as though it was once written to expand and contract, but it's completely broken; it has <li> elements embedded directly inside <li> elements, multiple class attributes on the same element, and all sorts of confusion. I don't yet know how to go about fixing it, because I don't know what it originally looked like. I found an old backup of Stewart's, but it's structured completely differently; instead of secondaryNavbar.php, it uses section_left_nav.inc, which looks somewhat similar, but was only ever intended to be static. I'm waiting for some feedback from BLT, in case he can remember what the original intention was, and when the changes were made.

<< Previous Page :: Next Page >>

Update of Humanities Sites

This blog is for work done creating and major updating of departmental and similar sites. Routine text edits etc. are logged in the Depts blog.



August 2014
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