irspy-moved-to-github.git
17 years agoEditing a not-yet-existant ID is now OK.
Mike Taylor [Wed, 15 Nov 2006 17:56:23 +0000 (17:56 +0000)]
Editing a not-yet-existant ID is now OK.

17 years agoReorder and reformat "This Record" submenu.
Mike Taylor [Wed, 15 Nov 2006 17:44:35 +0000 (17:44 +0000)]
Reorder and reformat "This Record" submenu.
Add "copy record" item.

17 years agoTitle is "Copy" if copy param is set.
Mike Taylor [Wed, 15 Nov 2006 17:43:50 +0000 (17:43 +0000)]
Title is "Copy" if copy param is set.

17 years agoRolling
Mike Taylor [Wed, 15 Nov 2006 17:43:10 +0000 (17:43 +0000)]
Rolling

17 years agoRolling
Mike Taylor [Wed, 15 Nov 2006 14:55:33 +0000 (14:55 +0000)]
Rolling

17 years agoAdd new elements "type", "country" and "hosturl" requested by Per.
Mike Taylor [Wed, 15 Nov 2006 13:20:32 +0000 (13:20 +0000)]
Add new elements "type", "country" and "hosturl" requested by Per.

17 years agoucfirst(title)
Mike Taylor [Wed, 15 Nov 2006 13:15:19 +0000 (13:15 +0000)]
ucfirst(title)

17 years agoProtocol is now chosen from a dropdown.
Mike Taylor [Wed, 15 Nov 2006 13:10:42 +0000 (13:10 +0000)]
Protocol is now chosen from a dropdown.

17 years agoDefensive use of xml_encode()
Mike Taylor [Tue, 14 Nov 2006 16:23:11 +0000 (16:23 +0000)]
Defensive use of xml_encode()

17 years agoXml_encode() accepts fallback string.
Mike Taylor [Tue, 14 Nov 2006 16:21:49 +0000 (16:21 +0000)]
Xml_encode() accepts fallback string.

17 years agoAdd code to generate ID automatically, when missing, from host, port
Mike Taylor [Tue, 14 Nov 2006 16:21:08 +0000 (16:21 +0000)]
Add code to generate ID automatically, when missing, from host, port
and database, when present.

17 years agoClarify reporting
Mike Taylor [Tue, 14 Nov 2006 16:18:51 +0000 (16:18 +0000)]
Clarify reporting

17 years agoDefensive xml_encode() calling.
Mike Taylor [Tue, 14 Nov 2006 16:09:14 +0000 (16:09 +0000)]
Defensive xml_encode() calling.

17 years agoComment out debugging warn()s
Mike Taylor [Tue, 14 Nov 2006 16:04:36 +0000 (16:04 +0000)]
Comment out debugging warn()s

17 years agoDo not try to xml_encode() undefined values.
Mike Taylor [Tue, 14 Nov 2006 16:00:28 +0000 (16:00 +0000)]
Do not try to xml_encode() undefined values.

17 years agoLots of tasties. Most importantly, dom_add_element() is now renamed
Mike Taylor [Tue, 14 Nov 2006 14:57:41 +0000 (14:57 +0000)]
Lots of tasties.  Most importantly, dom_add_element() is now renamed
dom_add_node() and can handle adding attributes as well as elements,
and find_or_make_node() now works at the top level of the documnent.

17 years agoTitle different when use for adding new records.
Mike Taylor [Tue, 14 Nov 2006 14:55:28 +0000 (14:55 +0000)]
Title different when use for adding new records.

17 years agoAdd A Target now uses edit form.
Mike Taylor [Tue, 14 Nov 2006 14:55:08 +0000 (14:55 +0000)]
Add A Target now uses edit form.

17 years agoRefactor -- move most code out into form.mc
Mike Taylor [Tue, 14 Nov 2006 14:54:41 +0000 (14:54 +0000)]
Refactor -- move most code out into form.mc

17 years agoNew
Mike Taylor [Tue, 14 Nov 2006 14:54:06 +0000 (14:54 +0000)]
New

17 years agoNew utiltiy find_or_make_node() finds a node within an XPathContext,
Mike Taylor [Mon, 13 Nov 2006 18:03:34 +0000 (18:03 +0000)]
New utiltiy find_or_make_node() finds a node within an XPathContext,
or, if it doesn't yet exist, makes it within its parent and returns
it.  This calls itself recursively as necessary to make the parent,
grandparent, etc., but catches deep recursion and dies (currently
defined as ten levels which seems like plenty).

dom_add_element() now uses this.

17 years agoRemove completed tasks from TODO list.
Mike Taylor [Mon, 13 Nov 2006 17:00:03 +0000 (17:00 +0000)]
Remove completed tasks from TODO list.

17 years agoLinks to both quick and full tests.
Mike Taylor [Mon, 13 Nov 2006 16:49:08 +0000 (16:49 +0000)]
Links to both quick and full tests.

17 years agoPage title includes test name if specified.
Mike Taylor [Mon, 13 Nov 2006 16:48:49 +0000 (16:48 +0000)]
Page title includes test name if specified.

17 years agoComment
Mike Taylor [Mon, 13 Nov 2006 16:47:57 +0000 (16:47 +0000)]
Comment

18 years agoCleaner presentation of changes.
Mike Taylor [Thu, 9 Nov 2006 16:32:54 +0000 (16:32 +0000)]
Cleaner presentation of changes.

18 years agoSimplify due to correctly functioning modify_xml_document()
Mike Taylor [Thu, 9 Nov 2006 16:15:14 +0000 (16:15 +0000)]
Simplify due to correctly functioning modify_xml_document()
Add new -x command-lineoption to show modified XML document.

18 years agoAdd irspy_namespace()
Mike Taylor [Thu, 9 Nov 2006 16:09:35 +0000 (16:09 +0000)]
Add irspy_namespace()
Both it and now irspy_xpath_context() now use private hash.
Comment out intrusive debugging in modify_xml_document() and
dom_add_element()
New element added in dom_add_element() has its namespace explicitly
set, which enables it to be found by subsequent $xc->find()
calls.

18 years agoTypo in comment.
Mike Taylor [Thu, 9 Nov 2006 15:18:14 +0000 (15:18 +0000)]
Typo in comment.

18 years agoClearer reporting.
Mike Taylor [Wed, 8 Nov 2006 17:42:11 +0000 (17:42 +0000)]
Clearer reporting.
Still needs stupid second XPath-context like test-xml-update.pl

18 years agoirspy_xpath_context() may now take a textual XML record instead of a
Mike Taylor [Wed, 8 Nov 2006 17:41:27 +0000 (17:41 +0000)]
irspy_xpath_context() may now take a textual XML record instead of a
DOM tree.
dom_add_element() now correctly inserts a new _element_ with specified
value, rather than just inserting the value itself.
Slightly changed debugging output for modify_xml_document() and
dom_add_element().

18 years agoAll sort of improvments, many command-line flags.
Mike Taylor [Wed, 8 Nov 2006 17:19:18 +0000 (17:19 +0000)]
All sort of improvments, many command-line flags.

18 years agoComplete and should work ... but doesn't.
Mike Taylor [Tue, 7 Nov 2006 17:45:37 +0000 (17:45 +0000)]
Complete and should work ... but doesn't.

18 years agoCorrect HTML-encoding of debug output in dom_add_element()
Mike Taylor [Tue, 7 Nov 2006 17:18:29 +0000 (17:18 +0000)]
Correct HTML-encoding of debug output in dom_add_element()
Comment out this debugging output anyway.

18 years agoBetter sample command-line.
Mike Taylor [Tue, 7 Nov 2006 16:29:54 +0000 (16:29 +0000)]
Better sample command-line.

18 years agoCalculate named-result-set support.
Mike Taylor [Mon, 6 Nov 2006 17:43:29 +0000 (17:43 +0000)]
Calculate named-result-set support.

18 years agoCalculate explain support.
Mike Taylor [Mon, 6 Nov 2006 17:40:04 +0000 (17:40 +0000)]
Calculate explain support.
Empty support-lists now render as "[none]".

18 years agoCalculate record-syntaxes.
Mike Taylor [Mon, 6 Nov 2006 17:34:58 +0000 (17:34 +0000)]
Calculate record-syntaxes.

18 years agoCalculate supported booleans.
Mike Taylor [Mon, 6 Nov 2006 17:24:00 +0000 (17:24 +0000)]
Calculate supported booleans.

18 years agoDan-1 use attributes.
Mike Taylor [Mon, 6 Nov 2006 17:04:23 +0000 (17:04 +0000)]
Dan-1 use attributes.

18 years agoCalculate BIB-1 use attributes.
Mike Taylor [Mon, 6 Nov 2006 17:01:03 +0000 (17:01 +0000)]
Calculate BIB-1 use attributes.

18 years agoCalculate reliability using function pointer -- cool.
Mike Taylor [Mon, 6 Nov 2006 16:22:17 +0000 (16:22 +0000)]
Calculate reliability using function pointer -- cool.

18 years ago<h2> uses database title rather than ID.
Mike Taylor [Mon, 6 Nov 2006 14:22:22 +0000 (14:22 +0000)]
<h2> uses database title rather than ID.

18 years agoHeading is now database title rather than ID
Mike Taylor [Mon, 6 Nov 2006 11:41:03 +0000 (11:41 +0000)]
Heading is now database title rather than ID

18 years agoInclude date of last check in output.
Mike Taylor [Mon, 6 Nov 2006 11:37:43 +0000 (11:37 +0000)]
Include date of last check in output.

18 years agoreturn TEST_SKIPPED if search finds no records.
Mike Taylor [Fri, 3 Nov 2006 13:37:33 +0000 (13:37 +0000)]
return TEST_SKIPPED if search finds no records.

18 years agoSupport for Status::TEST_SKIPPED
Mike Taylor [Fri, 3 Nov 2006 13:11:29 +0000 (13:11 +0000)]
Support for Status::TEST_SKIPPED

18 years agoAdd warnings if running tasks leaves the ZOOM connections idle. (Doesn't currently...
Mike Taylor [Thu, 2 Nov 2006 16:11:44 +0000 (16:11 +0000)]
Add warnings if running tasks leaves the ZOOM connections idle.  (Doesn't currently help, I think because is_idle() returns 0 if there is an END event waiting.)

18 years agoNumber of search-hits included in log message.
Mike Taylor [Thu, 2 Nov 2006 15:02:09 +0000 (15:02 +0000)]
Number of search-hits included in log message.

18 years agoFix POD syntax error.
Mike Taylor [Thu, 2 Nov 2006 15:01:10 +0000 (15:01 +0000)]
Fix POD syntax error.

18 years agoOmit test programs from distribution.
Mike Taylor [Thu, 2 Nov 2006 15:00:09 +0000 (15:00 +0000)]
Omit test programs from distribution.

18 years agoDowngrade XML::LibXML and XML::LibXSLT prerequisites from 1.59 to 1.58.
Mike Taylor [Thu, 2 Nov 2006 14:59:02 +0000 (14:59 +0000)]
Downgrade XML::LibXML and XML::LibXSLT prerequisites from 1.59 to 1.58.

18 years agoAdd many new tests and web pages.
Mike Taylor [Thu, 2 Nov 2006 14:58:07 +0000 (14:58 +0000)]
Add many new tests and web pages.

18 years agoAdd sanity-checks after main loop exists, verifying that all
Mike Taylor [Thu, 2 Nov 2006 13:16:49 +0000 (13:16 +0000)]
Add sanity-checks after main loop exists, verifying that all
connections have used up their tests, have no active or queued task,
and do not have any ZOOM-C level tasks queued.  These are all "can't
happens" -- but they do in fact happen, and the failure to spot them
have wasted many frustrating debugging hours.

18 years agoAdding named result set test.
Anders S. Mortensen [Thu, 2 Nov 2006 11:46:40 +0000 (11:46 +0000)]
Adding named result set test.

18 years agoRemember to get the irspy:xxx attributes copied to the output tree.
Anders S. Mortensen [Thu, 2 Nov 2006 08:28:20 +0000 (08:28 +0000)]
Remember to get the irspy:xxx attributes copied to the output tree.

18 years agoRobust against complex text-nodes contains comments, PIs, etc.
Mike Taylor [Wed, 1 Nov 2006 11:46:10 +0000 (11:46 +0000)]
Robust against complex text-nodes contains comments, PIs, etc.

18 years agoOnly keep the import parts of the irspy:status element.
Anders S. Mortensen [Wed, 1 Nov 2006 11:18:56 +0000 (11:18 +0000)]
Only keep the import parts of the irspy:status element.

18 years agoDisplay target-link letters in fixed-width font.
Mike Taylor [Wed, 1 Nov 2006 10:33:09 +0000 (10:33 +0000)]
Display target-link letters in fixed-width font.
This makes them line up nicely in a table.

18 years agoDisplay diffs between the original and modified records
Mike Taylor [Wed, 1 Nov 2006 10:31:57 +0000 (10:31 +0000)]
Display diffs between the original and modified records

18 years agoUse $ZOOM::IRSpy::Utils::IRSPY_NS instead of $ZOOM::IRSpy::irspy_ns
Mike Taylor [Wed, 1 Nov 2006 10:14:56 +0000 (10:14 +0000)]
Use $ZOOM::IRSpy::Utils::IRSPY_NS instead of $ZOOM::IRSpy::irspy_ns

18 years agoRemove $irspy_ns, superseded by $ZOOM::IRSpy::Utils::IRSPY_NS
Mike Taylor [Wed, 1 Nov 2006 10:14:09 +0000 (10:14 +0000)]
Remove $irspy_ns, superseded by $ZOOM::IRSpy::Utils::IRSPY_NS

18 years agoNew function modify_xml_document()
Mike Taylor [Wed, 1 Nov 2006 10:13:26 +0000 (10:13 +0000)]
New function modify_xml_document()
This is now exported in place of dom_add_element(), which becomes private.
Explicitly include XML::LibXML and XPathContext, so that this module
can be used standalone without ZOOM::IRSpy.
Define $IRSPY_NS, which replaced $ZOOM::IRSpy::irspy_ns.

18 years agoFix to work with recently changed library directory specification.
Mike Taylor [Wed, 1 Nov 2006 10:11:01 +0000 (10:11 +0000)]
Fix to work with recently changed library directory specification.
The setting of PERL5LIB in the Apache configuration meant that
layout.mc no longer set the global LIBDIR, so now we fetch the
IRSpyLibDir configuration manually.  Much cleaner.

18 years agoImport modify_xml_document() instead of dom_add_element()
Mike Taylor [Wed, 1 Nov 2006 10:01:14 +0000 (10:01 +0000)]
Import modify_xml_document() instead of dom_add_element()

18 years agoAdd "This Record" panel when an ID is defined.
Mike Taylor [Wed, 1 Nov 2006 10:00:44 +0000 (10:00 +0000)]
Add "This Record" panel when an ID is defined.

18 years agoUse new modify_xml_document() utility function.
Mike Taylor [Wed, 1 Nov 2006 10:00:21 +0000 (10:00 +0000)]
Use new modify_xml_document() utility function.
Indicate number of changes.

18 years agoNew -- test-harness for complex XML-record update code.
Mike Taylor [Wed, 1 Nov 2006 09:59:28 +0000 (09:59 +0000)]
New -- test-harness for complex XML-record update code.

18 years agoInsert 0 instead of empty in case of failure.
Anders S. Mortensen [Wed, 1 Nov 2006 09:56:50 +0000 (09:56 +0000)]
Insert 0 instead of empty in case of failure.

18 years agoAdd panel2 style for this-record menu.
Mike Taylor [Tue, 31 Oct 2006 16:19:39 +0000 (16:19 +0000)]
Add panel2 style for this-record menu.
Remove underlining for links inside menu box.

18 years agoRemove Test/Edit/XML links which are now in layout.mc
Mike Taylor [Tue, 31 Oct 2006 16:18:47 +0000 (16:18 +0000)]
Remove Test/Edit/XML links which are now in layout.mc

18 years agoGet xml_encode from Utils.
Mike Taylor [Tue, 31 Oct 2006 15:22:31 +0000 (15:22 +0000)]
Get xml_encode from Utils.

18 years agoAdding some extra notes which may make life easier for debian users.
Anders S. Mortensen [Tue, 31 Oct 2006 14:17:54 +0000 (14:17 +0000)]
Adding some extra notes which may make life easier for debian users.

18 years agoWork around ZOOM-C bug by testing success based on whether or not we
Mike Taylor [Tue, 31 Oct 2006 12:42:32 +0000 (12:42 +0000)]
Work around ZOOM-C bug by testing success based on whether or not we
can render the supposedly retrieved record.

18 years agoTowards ability to add new elements when editing.
Mike Taylor [Tue, 31 Oct 2006 09:26:59 +0000 (09:26 +0000)]
Towards ability to add new elements when editing.

18 years agoImport dom_add_element()
Mike Taylor [Tue, 31 Oct 2006 09:26:34 +0000 (09:26 +0000)]
Import dom_add_element()

18 years agoAdd dom_add_element() [NOT FINISHED!] and inheritance_tree()
Mike Taylor [Tue, 31 Oct 2006 09:26:11 +0000 (09:26 +0000)]
Add dom_add_element() [NOT FINISHED!] and inheritance_tree()

18 years agoSet PERL5LIB
Mike Taylor [Tue, 31 Oct 2006 09:22:57 +0000 (09:22 +0000)]
Set PERL5LIB

18 years agoMove xml_encode() from IRSpy to Utils
Mike Taylor [Mon, 30 Oct 2006 16:13:49 +0000 (16:13 +0000)]
Move xml_encode() from IRSpy to Utils

18 years agoInclude new Utils module.
Mike Taylor [Mon, 30 Oct 2006 15:04:33 +0000 (15:04 +0000)]
Include new Utils module.

18 years agoNew
Mike Taylor [Mon, 30 Oct 2006 15:02:06 +0000 (15:02 +0000)]
New

18 years agoSet include path using PERL5LIB
Mike Taylor [Mon, 30 Oct 2006 14:59:37 +0000 (14:59 +0000)]
Set include path using PERL5LIB
Use Apache::Reload to reload Utils as needed.

18 years agoRemove "use lib" hack, now that the Apache configuration is correct.
Mike Taylor [Mon, 30 Oct 2006 14:58:15 +0000 (14:58 +0000)]
Remove "use lib" hack, now that the Apache configuration is correct.

18 years agoRemove stupid and fragile "use lib" hack, now that the Apache
Mike Taylor [Mon, 30 Oct 2006 14:57:14 +0000 (14:57 +0000)]
Remove stupid and fragile "use lib" hack, now that the Apache
configuration is correct.

18 years agoWe better keep the irspy:status element in the output document.
Anders S. Mortensen [Mon, 30 Oct 2006 14:55:27 +0000 (14:55 +0000)]
We better keep the irspy:status element in the output document.

18 years agoTweak message.
Mike Taylor [Fri, 27 Oct 2006 17:16:20 +0000 (17:16 +0000)]
Tweak message.

18 years agoActual editing (storing new values) at least for those fields that
Mike Taylor [Fri, 27 Oct 2006 16:58:41 +0000 (16:58 +0000)]
Actual editing (storing new values) at least for those fields that
already existed.  Making new fields is going to be a lot harder.

18 years agoFactor IRSpy-independent _really_write_record() out of
Mike Taylor [Fri, 27 Oct 2006 15:36:04 +0000 (15:36 +0000)]
Factor IRSpy-independent _really_write_record() out of
_write_record(), so it can be called from the Web UI.

18 years agoHandling the case where no existing indexInfo or recordInfo elements exist.
Anders S. Mortensen [Fri, 27 Oct 2006 13:41:57 +0000 (13:41 +0000)]
Handling the case where no existing indexInfo or recordInfo elements exist.

18 years agoActually check for the value of element set name.
Anders S. Mortensen [Fri, 27 Oct 2006 12:51:56 +0000 (12:51 +0000)]
Actually check for the value of element set name.

18 years agoAdding element set name to each mapping to be able to handle multiple element
Anders S. Mortensen [Fri, 27 Oct 2006 12:50:06 +0000 (12:50 +0000)]
Adding element set name to each mapping to be able to handle multiple element
set names.

18 years agoAdded.
Anders S. Mortensen [Fri, 27 Oct 2006 12:45:10 +0000 (12:45 +0000)]
Added.

18 years agoUpdating the recordSyntax elements too.
Anders S. Mortensen [Fri, 27 Oct 2006 12:27:38 +0000 (12:27 +0000)]
Updating the recordSyntax elements too.

18 years agoNicer identation.
Anders S. Mortensen [Fri, 27 Oct 2006 11:45:18 +0000 (11:45 +0000)]
Nicer identation.

18 years agoindexInfo is now updated with information from the irspy:status section.
Anders S. Mortensen [Fri, 27 Oct 2006 11:43:17 +0000 (11:43 +0000)]
indexInfo is now updated with information from the irspy:status section.

18 years agoUsing bib-1 instead of bib1.
Anders S. Mortensen [Fri, 27 Oct 2006 09:56:07 +0000 (09:56 +0000)]
Using bib-1 instead of bib1.

18 years agoGenerate nice form for editing.
Mike Taylor [Fri, 27 Oct 2006 00:47:24 +0000 (00:47 +0000)]
Generate nice form for editing.
Doesn't yet recognise submissions.

18 years agoTest/Edit/XML links are full words again instead of initials.
Mike Taylor [Fri, 27 Oct 2006 00:47:05 +0000 (00:47 +0000)]
Test/Edit/XML links are full words again instead of initials.

18 years agoServer ID is replaced by implementation ID/Name/Version triple.
Mike Taylor [Fri, 27 Oct 2006 00:46:38 +0000 (00:46 +0000)]
Server ID is replaced by implementation ID/Name/Version triple.
Add ###-markers to constant data that should be generated.
Add links to test this target and download its record.

18 years agoirspy_xpath_context() also registers "i" as the IRSpy namespace.
Mike Taylor [Fri, 27 Oct 2006 00:45:12 +0000 (00:45 +0000)]
irspy_xpath_context() also registers "i" as the IRSpy namespace.