robertbrook / miffy
- Source
- Commits
- Network (1)
- Issues (30)
- Downloads (0)
- Wiki (8)
- Graphs
-
Branch:
master
-
Add header link to Bills page
Comments
-
1 comment Created 15 days ago by robertbrookdigiconxOption to display ENs in inline / interleaved stylefor lizx -
0 comments Created 16 days ago by robertbrookWide ENs should have same CSS colours as Page ENsfor lizxWide ENs should have same CSS colours as Page ENs
Comments
-
0 comments Created 20 days ago by lizconlanHandle Lords line numbers correctlydigiconxHouse of Lords Clauses files start their numbering from the first line of the Bill text, skipping the long description and Enactment text
Comments
-
0 comments Created 21 days ago by lizconlanFix navigation links (at the top of the page)for lizxMake reload work for ENs
Comments
-
1 comment Created 21 days ago by lizconlanMake EN parser store all the text sectionsfor lizx -
0 comments Created 21 days ago by lizconlandigiconxfor lizxStop appending the back page to the last Explanatory Notepriority highxComments
-
1 comment Created 22 days ago by robmckinnonLink only to internal Act reference, when there is an internal refdigiconxie don't also try to link to external act reference:
eg
<a href="http://www.opsi.gov.uk/acts/acts2003/ukpga_20030021_en_1.htm" rel="cite">section</a> <a class="Xref" href="#clause4-amendment-clause124A" id="1137592">124A</a> of the Communications Act 2003Comments
robmckinnon
Mon Dec 14 04:18:01 -0800 2009
| link
stop trying to link to external act when reference text already contains an internal link, closed by 453c6f0
-
2 comments Created 22 days ago by robmckinnonRemove space between anchor and commadigiconxe.g.
http://localhost:3000/convert?file=/Users/x/apps/uk/miffy/spec/fixtures/DigitalEconomy/Clauses.mif#clause2-subsection1-amendment-clause134B-subsection1Comments
robmckinnon
Wed Dec 09 09:08:01 -0800 2009
| link
fixed
robmckinnon
Mon Dec 14 03:32:20 -0800 2009
| link
fixed
-
0 comments Created 29 days ago by lizconlanExtend MifFile's get_file_type handling to include new file typesfor lizxSuch as Endorsement and Book
(re-include Cover)
Comments
-
0 comments Created about 1 month ago by lizconlanTable data not appearing for Schedulesfor lizxComments
-
1 comment Created about 1 month ago by lizconlanStop Schedules nested inside Amendments being linksfor lizx -
1 comment Created about 1 month ago by robertbrookDigital Economy should not link to Digital Economy 2010digiconx"This Act may be cited as the Digital Economy Act 2010." should not contain a link.
Comments
robmckinnon
Mon Dec 14 03:34:28 -0800 2009
| link
fixed
-
Parse Endorsement.mif (for data, not display?)
0 comments Created about 1 month ago by lizconlanStore the 'Ordered to be printed' date in the Bill model
Comments
-
0 comments Created about 1 month ago by lizconlandigiconxWork out how to pick up all the ENs for the Digital Economy Billfor lizxEN document uses an unfamiliar pattern by having Clause and Schedule notes together rather than in their own sections
Comments
-
0 comments Created about 1 month ago by lizconlanMake interleaved ENs work for Schedule filesfor lizxComments
-
Fix Explanatory Notes html view for complex Clauses files
0 comments Created about 1 month ago by lizconlanIn complex Clauses files, Clause elements can be nested inside other elements such as 'CrossHeading' elements, which breaks the simple node.parent lookup to see if the Clause is nested inside an Amendment.
This is breaking the way that Clauses are wrapped inside the 'ClauseTextWithExplanatoryNote' element
Comments
-
2 comments Created about 1 month ago by robertbrookLinks to interleaved ENs should not appear where no ENs existfor lizxLinks to interleaved ENs should not appear where no ENs exist
Comments
robertbrook
Tue Nov 24 08:18:16 -0800 2009
| link
( Assigned to Liz )
-
Framemaker book files should not appear in the index, or be rendered
1 comment Created about 1 month ago by robertbrookeg. /spec/fixtures/DigitalEconomy/DigitalEconomyBook.mif
Comments
robmckinnon
Tue Nov 24 08:47:39 -0800 2009
| link
book files no longer shown in index, closed by e093bc7
-
2 comments Created about 1 month ago by robertbrookLinks generated over more than one line should render correctlydigiconxeg. item 27, near /spec/fixtures/DigitalEconomy/Arrangement.mif#pageii - renders only the second line of the text as a link: both lines should be marked up as a link.
Comments
robertbrook
Mon Nov 30 09:38:06 -0800 2009
| link
Another example: " and 22 of the Video [LINEBREAK]
Recordings Act 1984 (and section 46 so far as it relates to those entries)" should generate a link to 'Video Recordings Act 1984', rather than 'Recordings Act 1984'.
robmckinnon
Mon Dec 14 03:33:36 -0800 2009
| link
fixed
-
Arrangement links in folders should resolve correctly
1 comment Created about 1 month ago by robertbrookeg. links in /spec/fixtures/DigitalEconomy/Arrangement.mif should point to /spec/fixtures/DigitalEconomy/Clauses.mif rather than /spec/fixtures/Clauses.mif
Comments
robertbrook
Tue Nov 24 08:15:44 -0800 2009
| link
( fixed! )
-
2 comments Created about 1 month ago by robmckinnonMake Act names links in Digital Economy BilldigiconxComments
robertbrook
Tue Dec 15 03:44:28 -0800 2009
| link
I think we can close this?
robertbrook
Tue Dec 15 09:19:26 -0800 2009
| link
Yes, I think we can.
-
3 comments Created about 1 month ago by lizconlanEnsure Digital Economy Bill Clauses format correctlyfor lizxPDF version lives here - http://www.publications.parliament.uk/pa/ld200910/ldbills/001/2010001.pdf
Comments
robertbrook
Tue Nov 24 09:14:09 -0800 2009
| link
( Move this issue to the wiki? )
Also, started a new page on the wiki: http://wiki.github.com/robertbrook/miffy/links-to-bill-files-on-the-web
-
0 comments Created about 1 month ago by lizconlanFix alternate (demo) stylesheetfor lizxComments
-
0 comments Created about 1 month ago by lizconlanRework interleaved explanatory notes sassfor lizxComments
-
Clause demo CSS should be link in head
1 comment Created about 1 month ago by robertbrookeg:
But should only appear in the appropriate place - when a Clause file is rendered.
Comments
robertbrook
Tue Nov 24 06:29:29 -0800 2009
| link
Hardly any browser uses this.
-
Comments
robmckinnon
Tue Nov 10 04:55:08 -0800 2009
| link
made arrow images a link to toggle section collapse, closed by ff39fb3
-
Comments
http://localhost:3000/convert?file=/Users/Liz/Code/miffy/spec/fixtures/finance/2R%20printed/Schedules.mif
http://www.publications.parliament.uk/pa/cm200708/cmbills/089/2008089a.pdf
http://www.publications.parliament.uk/pa/cm200708/cmbills/089/2008089b.pdf
-
Don't break SubSection_text on Bold element
1 comment Created about 1 month ago by robmckinnonComments
robmckinnon
Thu Nov 05 07:40:09 -0800 2009
| link
Dont break SubSection_text on Bold element, closed by 44083f8
-
Put text on single line when line contains “ char
1 comment Created about 1 month ago by robmckinnonhttp://localhost:3000/convert?file=/Users/x/apps/uk/miffy/spec/fixtures/finance/2R%20printed/Clauses.mif#page2-line20
put text on single line: (5)Accordingly, in the heading omit “starting rate,”.
Comments
robmckinnon
Thu Nov 05 07:29:10 -0800 2009
| link
Fixed
-
e.g. From Finance Bill 2008
<Math> <Unique>4312115</Unique> <Separation>0</Separation> <ObColor>`Black'</ObColor> <RunaroundGap>0.0 pt</RunaroundGap> <BRect>0.08333 pc 0.15612 pc 13.6049 pc 2.65476 pc</BRect> <MathFullForm>`equal[char[x],plus[(n)id[cross[(n)num[25.0000000000000000,"25"],over[(n)times[ char[(n)B],char[R],char[D]],times[char[(n)C],char[P]]]]],id[cross[(n)num[20.0000000000000000,
"20"],over[(n)times[char[(n)A],char[R],char[D]],times[char[(n)C],char[P]]]]]]]'<MathLineBreak>833.33332 pc</MathLineBreak> <MathOrigin>6.88578 pc 1.57683 pc</MathOrigin> <MathAlignment>Center</MathAlignment> <MathSize>MathMedium</MathSize> </Math>Comments
robmckinnon
Tue Nov 03 10:00:10 -0800 2009
| link
On parliament site now, empty img tag used:
http://www.publications.parliament.uk/pa/cm200708/cmbills/089/08089.40-46.html#j0312
img class="equation" src="missing.gif" alt="equation: equal[char[x],plus[(n)id[cross[(n)num[25.0000000000000000,"25"],over[(n)times[
char[(n)B],char[R],char[D]],times[char[(n)C],char[P]]]]],id[cross[(n)num[20.0000000000000000,
"20"],over[(n)times[char[(n)A],char[R],char[D]],times[char[(n)C],char[P]]]]]]]" height="30" width="30"
robmckinnon
Wed Nov 04 07:00:47 -0800 2009
| link
Robert says: put equation text in HTML output.
robmckinnon
Thu Nov 05 07:29:02 -0800 2009
| link
Equation text now shown in HTML output.
-
e.g. From Finance Bill 2008
<Math> <Unique>4312115</Unique> <Separation>0</Separation> <ObColor>`Black'</ObColor> <RunaroundGap>0.0 pt</RunaroundGap> <BRect>0.08333 pc 0.15612 pc 13.6049 pc 2.65476 pc</BRect> <MathFullForm>`equal[char[x],plus[(n)id[cross[(n)num[25.0000000000000000,"25"],over[(n)times[ char[(n)B],char[R],char[D]],times[char[(n)C],char[P]]]]],id[cross[(n)num[20.0000000000000000,
"20"],over[(n)times[char[(n)A],char[R],char[D]],times[char[(n)C],char[P]]]]]]]'<MathLineBreak>833.33332 pc</MathLineBreak> <MathOrigin>6.88578 pc 1.57683 pc</MathOrigin> <MathAlignment>Center</MathAlignment> <MathSize>MathMedium</MathSize> </Math>Comments
robmckinnon
Wed Nov 04 06:58:04 -0800 2009
| link
duplicate
-
Comments
robmckinnon
Tue Nov 03 06:59:40 -0800 2009
| link
make Definition and DefinitionList div elements in html, closed by faf6726
-
e.g.
http://localhost:3000/convert?file=/Users/x/apps/uk/miffy/spec/fixtures/finance/2R%20printed/Clauses.mif&style=/stylesheets/clauses.css#clause14
“(aa) £
0.3103 a litre in the case of aviation gasoline,”, and
Comments
robmckinnon
Tue Nov 03 08:42:55 -0800 2009
| link
ensure ParaLineStart is added before chars in a ParaLine, closed by 1bd302e
-
1 comment Created about 1 month ago by robmckinnonIdentify CSS for Finance clausesfor lizx -
Comments
robmckinnon
Tue Nov 10 08:05:56 -0800 2009
| link
show warning log msg when opsi uri not found
-
2 comments Created about 1 month ago by robertbrookNew page break should only appear with preceding textfor robertxComments
robmckinnon
Tue Nov 03 06:11:59 -0800 2009
| link
try regenerating (and restarting server to clear cache)
robertbrook
Mon Nov 16 09:17:13 -0800 2009
| link
confirmed fix
-
Get parser to handle mif containing Lists and ListItems
1 comment Created about 1 month ago by robmckinnonComments
robmckinnon
Mon Nov 02 06:46:17 -0800 2009
| link
fixed parser bug that occurred when handling Definition and DefinitionList elements, closed by 064f217
-
Move 'Regenerate' link from index page to individual output pages
0 comments Created 2 months ago by robertbrookMove 'Regenerate' link from index page to individual output pages
Comments
-
Move 'Text' link from index page to individual output pages
0 comments Created 2 months ago by robertbrookMove 'Text' link from index page to individual output pages
Comments
-
4 comments Created 2 months ago by lizconlanFix Sass layouts to match improved Haml output for clausesfor lizxAdd new elements
Match improved element nesting
Fix overlapping within headings (e.g. - "815AZA" overlapping with "UK residents and foreign enterprises" - ref Finance Bill 2008)
Consider breaking some of the ties with Blueprint
Comments
Need to revisit the Law Commission Bill clauses file as that has been broken by some of the latest changes
Finance Bill 2008, pdf version - http://www.publications.parliament.uk/pa/cm200708/cmbills/089/2008089a.pdf
-
2 comments Created 2 months ago by lizconlanModels for sponsors and amendmentsfor lizxCreate and implement models for sponsors and amendments
Comments
robertbrook
Tue Nov 03 06:09:57 -0800 2009
| link
Confirmed.
-
Make it easier to maintain the sass files - big long list not helpful
Comments
robertbrook
Thu Oct 22 03:41:05 -0700 2009
| link
Mmm yes please!
-
2 comments Created 2 months ago by robertbrookfor lizxLink to example alternate CSS filesfor robertx -
4 comments Created 2 months ago by robertbrookWrite up how to use remote CSS in wikifor robertxComments
robertbrook
Mon Nov 16 06:57:57 -0800 2009
| link
added link in head
robertbrook
Mon Nov 16 08:21:13 -0800 2009
| link
remote css not replacing all existing css. will tweak.
robertbrook
Mon Nov 16 09:11:53 -0800 2009
| link
-
0 comments Created 2 months ago by robertbrookMove page_header and page_footer to appropriate sass filefor lizx( Because I can't work out which one! )
Comments
-
2 comments Created 2 months ago by robertbrookNew page break should be reflected in page appearancefor lizx -
2 comments Created 2 months ago by robertbrookAdd icon to indicate if section is collapsed or expandedfor lizxUser
collapses section by clicking on section title
sees section collapse, and icon indicating section is collapsed
User
expands section by clicking on section title
sees section expand, and icon indicating section is expanded
Comments
examples:
-
The 'page container' should have a minimum height of the container width multiplied by 1.4142 - this would give the minimum appearance equivalent to A4.
Comments
-
Handle explanatory notes that cover multiple clauses
0 comments Created 2 months ago by lizconlanHandle notes that cover multiple clauses
Example:
Clauses 1239 to 1243: Redundancy payments etc
(from Vol 3 of the explanatory notes for the Corporation Tax Bill)Comments
-
Parse complex Clauses mif, with Parts and Chapters
Comments
example files in subdirectories of /spec/fixtures/finance
robmckinnon
Tue Nov 03 06:06:01 -0800 2009
| link
The complex Finance clauses file now parses.
-
At the moment the document type based on the file name (or similar workaround), would be better if this were done based on the document's contents (with certain exceptions for our own test files)
Comments
-
Parse Schedule.mif example files
Comments
robmckinnon
Thu Oct 22 03:24:35 -0700 2009
| link
Status:
- requires more parser work
example files in subdirectories of /spec/fixtures/finance
robmckinnon
Thu Nov 05 11:35:16 -0800 2009
| link
schedules now parses, closed by a505019
-
Allow parsed Explanatory Note data to be displayed alongside the Clauses on an HTML page
Comments
There is an example of this working for the Channel Tunnel Rail Link (Supplementary Provisions) Bill (append &interleave=1 to the end of the url)
-
Store any act name substitution in interpretation section
1 comment Created 3 months ago by robmckinnonStore, for future use, any act name substitution defined in an interpretation section. Examples of this occurrence include:
In this Act, “the 1996 Act” means the Channel Tunnel Rail Link Act 1996 (c. 61). In this Part, unless the context otherwise requires— “the 1953 Act” means the Births and Deaths Registration Act 1953 (c. 20); “the 1988 Act” means the Coroners Act 1988 (c. 13);Comments
robmckinnon
Thu Oct 08 07:46:42 -0700 2009
| link
Done.
-
Put bill/act urls in XML citation elements
1 comment Created 3 months ago by robmckinnonDo the search for opsi bill and act urls when generating the XML format.
Comments
robmckinnon
Thu Oct 08 07:46:13 -0700 2009
| link
done via integration with legislation.gov.uk api
-
Railways Act 2005 (c. 14) should link to:
http://www.opsi.gov.uk/acts/acts2005/ukpga_20050014_en_1
not:
Comments
robmckinnon
Tue Sep 08 06:55:57 -0700 2009
| link
fixed, now take first matching result from opsi website when searching for act url
-
Correct format of clause in square brackets
1 comment Created 3 months ago by robmckinnonCorrect formatting of clause number in square brackets e.g.
Page 71, line42[ Clause120], at end insert—
http://localhost:3000/convert?file=/Users/x/apps/uk/miffy/spec/fixtures/Tabled%2027%20June.mif
Comments
robmckinnon
Mon Sep 07 08:32:37 -0700 2009
| link
correctly handle square brackets around clause numbers. closed by 824cbf8
-
In addition to page-line anchors, also put clause-page-line anchors in html output.
Comments
robmckinnon
Thu Aug 20 04:16:44 -0700 2009
| link
added clause-page-line anchors; closed by 7bf6859
-
Fix find for bill titles containing line breaks
1 comment Created 4 months ago by robmckinnone.g.
Local Democracy, Economic Development and
Construction Bill [ Lords ]http://localhost:3000/convert?file=/Users/x/apps/uk/miffy/spec/fixtures/pbc0930106a.mif
Comments
robmckinnon
Thu Oct 22 03:16:30 -0700 2009
| link
think issue is solved
-
User clicks MIF file link and sees a HTML view of the page, generated from a cached HAML template, if one exists, or generated from the MIF file if there is no HAML template.
Comments
robmckinnon
Wed Aug 19 06:31:02 -0700 2009
| link
Done.
-
User seeing that a MIF file has already been converted to HTML, presses the re-generate button, and a freshly generated HTML conversion is shown.
Comments
robmckinnon
Wed Aug 19 06:30:52 -0700 2009
| link
Done.
-
In the index view, show MIF files grouped by the bill that they relate to.
Comments
robmckinnon
Tue Aug 18 08:56:52 -0700 2009
| link
Done
-
Comments
Now interleaving explanatory notes with Bill clauses for our single example that has both EN and Clause files
Ideally parser needs further improvement to pick up clauses more accurately, also possibly to correct layout issues with numbered paragraphs although the latter may be outside the scope of this project as it stands
-
Convert LegML to HTML with appropriate CSS
Comments
-
Link to services.parliament.uk page for Bill
3 comments Created 4 months ago by robmckinnonFrom each mif about a bill, link to parliament page for bill
Comments
robertbrook
Wed Aug 12 03:47:56 -0700 2009
| link
I'm assuming there's no way to predict URLs such as http://services.parliament.uk/bills/2008-09/britishmuseumact1963amendment.html ? Does http://services.parliament.uk/ have an API or search function we can call?
robmckinnon
Wed Aug 12 09:02:43 -0700 2009
| link
If you do a search restricted to "business" results, the parliament page for the bill will
be in the results, e.g:http://www.publications.parliament.uk/cgi-bin/search.pl?q=%22Law+Commission+Bill%22+more%3Abusiness
Though sometimes a year is required to give an unambigious result, e.g.:
http://www.publications.parliament.uk/cgi-bin/search.pl?q=%22Finance+Bill%22+more%3Abusiness
robmckinnon
Mon Aug 17 08:26:27 -0700 2009
| link
Made bill title, short title and committee short title headings link to the parliament bill page if one was found when doing a search via parliament website.
-
Only parsed MIF files into HTML should use the constructed CSS
1 comment Created 5 months ago by robertbrook -
MIF files listed should show only file name, not whole path
1 comment Created 5 months ago by robertbrookMIF files listed should show only file name, not whole path
e.g.: /Users/robert/Projects/miffy/spec/fixtures/pbc0850206m.mif should show only "pbc0850206m"
Comments
robertbrook
Thu Jul 09 04:04:03 -0700 2009
| link
Done
-
Individual fragments should have 'back to the top' link
1 comment Created 5 months ago by robertbrookIndividual fragments should have 'back to the top' link
Comments
robmckinnon
Mon Aug 10 08:19:22 -0700 2009
| link
will not do
-
HTML view should offer switchable CSS, including loading remote CSS from a URL passed in the address
Comments
robertbrook
Mon Aug 10 08:19:01 -0700 2009
| link
RB to put example URLs in wiki
-
ID attributes should be revealed as clickable anchors in HTML view
Comments
There's a lot of IDs in the HTML, revealing all of them probably won't be helpful
robmckinnon
Mon Aug 10 08:17:36 -0700 2009
| link
done
-
Parsed MIF HTML should have MIF title in HTML title tag
1 comment Created 5 months ago by robertbrookParsed MIF HTML should have MIF title in HTML title tag
Comments
robmckinnon
Mon Aug 10 08:16:24 -0700 2009
| link
name of bill now in title
-
Plain text view of MIF output
Comments
robmckinnon
Wed Aug 12 08:30:42 -0700 2009
| link
to get plain text view of MIF output append to end of URL: &format=text
-
Version of view with collapsable headings
Comments
robertbrook
Thu Jul 09 02:58:16 -0700 2009
| link
Duplicate - sorry.
-
Some HTML closing tags are appearing in the haml document
examples:
Comments
robmckinnon
Mon Jul 27 07:10:17 -0700 2009
| link
Fixed
-
Schedule-Committee should be structured like Clause-Committee
0 comments Created 5 months ago by robertbrookSchedule-Committee should be structured like Clause-Committee
Comments
-
MifParser should generate valid XML
Comments
robmckinnon
Mon Aug 10 03:06:07 -0700 2009
| link
the well-formedness of XML is now checked during parsing process - exception is raised when there is a problem
-
Paths in spec_helper.rb should not be hard coded
1 comment Created 5 months ago by robertbrookPaths in spec_helper.rb should not be hard coded:
require '/Library/Ruby/Gems/1.8/gems/rspec-rails-1.2.7.1/lib/spec/rails/matchers/assert_select.rb'
require '/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/html-scanner.rb'
require '/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/assertions/selector_assertions.rb'
Comments
robmckinnon
Mon Aug 10 03:05:06 -0700 2009
| link
hard coded paths no longer in file
-
HTML view should have contents table
Comments
robmckinnon
Thu Oct 22 02:56:50 -0700 2009
| link
not doing
-
Gather mif files and explanatory note examples
Comments
robertbrook
Wed Aug 12 04:04:53 -0700 2009
| link
Got some. Getting more.
robertbrook
Tue Nov 03 06:00:43 -0800 2009
| link
Meeting JA this week.
robertbrook
Mon Nov 16 06:40:36 -0800 2009
| link
JA following up with PICT, Lords.
robertbrook
Tue Nov 24 06:29:41 -0800 2009
| link
Ongoing!
robertbrook
Tue Nov 24 08:01:02 -0800 2009
| link
Internal user GP to provide MIF files.
robertbrook
Tue Dec 15 02:55:00 -0800 2009
| link
Enough for now, re-open for specific files.
-
Generate HTML view with collapsable clause sections
2 comments Created 5 months ago by robertbrookGenerate HTML view with collapsable clause sections
Comments
robertbrook
Wed Aug 12 03:17:01 -0700 2009
| link
In development
robmckinnon
Wed Sep 09 06:47:11 -0700 2009
| link
Now explanatory note text collapses with clause text.





Done, hardwired for Digital Economy.