irspy-moved-to-github.git
17 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

17 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.

17 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.

17 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()

17 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.

17 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.

17 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.

17 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.

17 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.

17 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

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

17 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.

17 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.

17 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.

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

17 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()

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

17 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

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

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

17 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.

17 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.

17 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.

17 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.

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

17 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.

17 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.

17 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.

17 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.

17 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.

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

17 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.

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

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 years agoFix database name (IR-Explain---1, not Default)
Mike Taylor [Fri, 27 Oct 2006 00:44:36 +0000 (00:44 +0000)]
Fix database name (IR-Explain---1, not Default)
Add implementationId and similar.

17 years agoRemoving debugging.
Anders S. Mortensen [Thu, 26 Oct 2006 18:22:41 +0000 (18:22 +0000)]
Removing debugging.

17 years agoStupid hack to fix occasional and unpredictable problems loading test
Mike Taylor [Thu, 26 Oct 2006 18:02:59 +0000 (18:02 +0000)]
Stupid hack to fix occasional and unpredictable problems loading test
modules when running under Apache.

17 years agoClarify diagnostic.
Mike Taylor [Thu, 26 Oct 2006 17:46:41 +0000 (17:46 +0000)]
Clarify diagnostic.

17 years agoRequire confirmation before starting an all-targets test.
Mike Taylor [Thu, 26 Oct 2006 17:45:32 +0000 (17:45 +0000)]
Require confirmation before starting an all-targets test.

17 years agoTowards generic table.
Mike Taylor [Thu, 26 Oct 2006 17:23:13 +0000 (17:23 +0000)]
Towards generic table.

17 years agoNo need to use URI::Escape as layout.mc now does this.
Mike Taylor [Thu, 26 Oct 2006 17:22:56 +0000 (17:22 +0000)]
No need to use URI::Escape as layout.mc now does this.

17 years agoAdd "fullrecord" table class.
Mike Taylor [Thu, 26 Oct 2006 17:22:35 +0000 (17:22 +0000)]
Add "fullrecord" table class.

17 years agoUse URI::Escape on behalf of several components that need it.
Mike Taylor [Thu, 26 Oct 2006 17:22:15 +0000 (17:22 +0000)]
Use URI::Escape on behalf of several components that need it.

17 years agoActually use Anders' temporary variable $irspy_to_zeerex_style :-)
Mike Taylor [Thu, 26 Oct 2006 17:21:35 +0000 (17:21 +0000)]
Actually use Anders' temporary variable $irspy_to_zeerex_style :-)

17 years agoNew
Mike Taylor [Thu, 26 Oct 2006 17:18:08 +0000 (17:18 +0000)]
New

17 years agoWhen actually obtaining the record with $rs->record(), specify the
Mike Taylor [Thu, 26 Oct 2006 17:17:27 +0000 (17:17 +0000)]
When actually obtaining the record with $rs->record(), specify the
same syntax that specified when the record was requested with
$rs->records($index0, 1, 0).  This avoids a silly bug where, having
asynchronously fetched the record in the required syntax, we then
ignored that and synchronously fetched it in the prevailing syntax.
D'oh!

17 years agoGetting ready to model the irspy xml into zeerex using xslt.
Anders S. Mortensen [Thu, 26 Oct 2006 13:39:13 +0000 (13:39 +0000)]
Getting ready to model the irspy xml into zeerex using xslt.

17 years agoSet databaseName only temporarily within task.
Mike Taylor [Thu, 26 Oct 2006 12:55:35 +0000 (12:55 +0000)]
Set databaseName only temporarily within task.

17 years agoRun correct sequence of tests
Mike Taylor [Thu, 26 Oct 2006 12:50:17 +0000 (12:50 +0000)]
Run correct sequence of tests

17 years agoRemoving dublicated code.
Anders S. Mortensen [Thu, 26 Oct 2006 10:24:20 +0000 (10:24 +0000)]
Removing dublicated code.

17 years agoPreparing test case.
Anders S. Mortensen [Thu, 26 Oct 2006 10:24:05 +0000 (10:24 +0000)]
Preparing test case.

17 years agoNicer rendering
Mike Taylor [Wed, 25 Oct 2006 17:16:14 +0000 (17:16 +0000)]
Nicer rendering

17 years agoNew
Mike Taylor [Wed, 25 Oct 2006 15:45:29 +0000 (15:45 +0000)]
New

17 years agoReinstate full list of record syntaxes.
Mike Taylor [Wed, 25 Oct 2006 15:45:07 +0000 (15:45 +0000)]
Reinstate full list of record syntaxes.

17 years agoAfter an initial search (not using piggy-back), records are fetched by
Mike Taylor [Wed, 25 Oct 2006 15:44:50 +0000 (15:44 +0000)]
After an initial search (not using piggy-back), records are fetched by
subsequent, separate tasks.

17 years agoAdd irspy_rs_record(), which queues a new Task::Retrieve
Mike Taylor [Wed, 25 Oct 2006 15:43:43 +0000 (15:43 +0000)]
Add irspy_rs_record(), which queues a new Task::Retrieve

17 years agoDie if a callback returns an unknown value. This is important, since
Mike Taylor [Wed, 25 Oct 2006 15:42:47 +0000 (15:42 +0000)]
Die if a callback returns an unknown value.  This is important, since
otherwise if you forget to explicitly return something, the loop will
just fall through and the whole run will quietly end.

17 years agoTypo.
Anders S. Mortensen [Wed, 25 Oct 2006 13:38:10 +0000 (13:38 +0000)]
Typo.

17 years agorun() calls set_otions() again at the end to restore old values.
Mike Taylor [Wed, 25 Oct 2006 13:36:02 +0000 (13:36 +0000)]
run() calls set_otions() again at the end to restore old values.

17 years agoset_options() now stores the old values in the stored options hash
Mike Taylor [Wed, 25 Oct 2006 13:34:56 +0000 (13:34 +0000)]
set_options() now stores the old values in the stored options hash
that the new values were taken from, so that calling it for a second
time restores the old values.  (Well, nearly.  Because there is no way
to unset an option once it's been set, the best we can do is set such
an option to the empty string.  That seems to be good enough.)

17 years agoImplemented ExplainCategory probing.
Anders S. Mortensen [Wed, 25 Oct 2006 12:44:55 +0000 (12:44 +0000)]
Implemented ExplainCategory probing.

17 years agoAdded some extra debugging.
Anders S. Mortensen [Wed, 25 Oct 2006 11:44:35 +0000 (11:44 +0000)]
Added some extra debugging.

17 years agoAdding empty hash ref to respect Mike's new api.
Anders S. Mortensen [Wed, 25 Oct 2006 11:25:36 +0000 (11:25 +0000)]
Adding empty hash ref to respect Mike's new api.

17 years agoCall ->set_options()
Mike Taylor [Wed, 25 Oct 2006 10:54:43 +0000 (10:54 +0000)]
Call ->set_options()

17 years agoConstructor now takes an options-hash argument.
Mike Taylor [Wed, 25 Oct 2006 10:52:53 +0000 (10:52 +0000)]
Constructor now takes an options-hash argument.
New method set_options() applies these to the connection.

17 years agoirspy_connect() and irspy_seach_pqf() pass their options hashes
Mike Taylor [Wed, 25 Oct 2006 10:52:04 +0000 (10:52 +0000)]
irspy_connect() and irspy_seach_pqf() pass their options hashes
through into the Task constructors.

17 years agoTweak irspy_search_pqf() call to use new API with options hash.
Mike Taylor [Wed, 25 Oct 2006 10:49:51 +0000 (10:49 +0000)]
Tweak irspy_search_pqf() call to use new API with options hash.

17 years agoTweak irspy_connect() call to use new API with options hash.
Mike Taylor [Wed, 25 Oct 2006 10:49:37 +0000 (10:49 +0000)]
Tweak irspy_connect() call to use new API with options hash.

17 years agoTest fetching.
Mike Taylor [Wed, 25 Oct 2006 10:48:34 +0000 (10:48 +0000)]
Test fetching.

17 years agoUse new ability to pass options into irspy_search_pqf()
Mike Taylor [Wed, 25 Oct 2006 10:47:17 +0000 (10:47 +0000)]
Use new ability to pass options into irspy_search_pqf()

17 years agoWhitesapce
Mike Taylor [Wed, 25 Oct 2006 10:19:33 +0000 (10:19 +0000)]
Whitesapce

17 years agoRegistering the Boolean.pm package.
Anders S. Mortensen [Wed, 25 Oct 2006 10:09:45 +0000 (10:09 +0000)]
Registering the Boolean.pm package.

17 years agoAdded.
Anders S. Mortensen [Wed, 25 Oct 2006 10:08:50 +0000 (10:08 +0000)]
Added.

17 years agoAllow "test" parameter to specify top-level test.
Mike Taylor [Wed, 25 Oct 2006 09:54:16 +0000 (09:54 +0000)]
Allow "test" parameter to specify top-level test.

17 years agoImplemented the fetch test module.
Anders S. Mortensen [Wed, 25 Oct 2006 09:18:28 +0000 (09:18 +0000)]
Implemented the fetch test module.

17 years agoFixing uncaught exceptions.
Anders S. Mortensen [Wed, 25 Oct 2006 08:40:53 +0000 (08:40 +0000)]
Fixing uncaught exceptions.

17 years agoMust be able to wrtie Mason cache directory.
Mike Taylor [Tue, 24 Oct 2006 23:10:43 +0000 (23:10 +0000)]
Must be able to wrtie Mason cache directory.

17 years agoNote need to restart server after config changes.
Mike Taylor [Tue, 24 Oct 2006 23:08:03 +0000 (23:08 +0000)]
Note need to restart server after config changes.

17 years agoFix path
Mike Taylor [Tue, 24 Oct 2006 23:05:13 +0000 (23:05 +0000)]
Fix path

17 years agoIgnore unpacked zeerez-record-display
Mike Taylor [Tue, 24 Oct 2006 14:48:19 +0000 (14:48 +0000)]
Ignore unpacked zeerez-record-display

17 years agoNew
Mike Taylor [Tue, 24 Oct 2006 14:48:07 +0000 (14:48 +0000)]
New

17 years agoGetting ready to test available record formats.
Anders S. Mortensen [Mon, 23 Oct 2006 13:54:52 +0000 (13:54 +0000)]
Getting ready to test available record formats.

17 years agoUsing store_result method to update zebra.
Anders S. Mortensen [Mon, 23 Oct 2006 12:23:29 +0000 (12:23 +0000)]
Using store_result method to update zebra.

17 years agoIntroduced methods store_result, _isodate and _string2cdata.
Anders S. Mortensen [Mon, 23 Oct 2006 12:22:52 +0000 (12:22 +0000)]
Introduced methods store_result, _isodate and _string2cdata.

17 years agoNew
Mike Taylor [Fri, 20 Oct 2006 16:57:40 +0000 (16:57 +0000)]
New

17 years agoUse new utility function irspy_xpath_context()
Mike Taylor [Fri, 20 Oct 2006 16:57:23 +0000 (16:57 +0000)]
Use new utility function irspy_xpath_context()
Title now links to full record display.
Add link to edit record.
Test/Edit/Raw links are now in a single table column.

17 years agoGet irspy_xpath_context() and xml_encode() from ZOOM::IRSpy
Mike Taylor [Fri, 20 Oct 2006 16:56:07 +0000 (16:56 +0000)]
Get irspy_xpath_context() and xml_encode() from ZOOM::IRSpy

17 years agoImport xml_encode() from IRSpy rather that IRSpy::Record
Mike Taylor [Fri, 20 Oct 2006 14:51:41 +0000 (14:51 +0000)]
Import xml_encode() from IRSpy rather that IRSpy::Record

17 years agoxml_encode() moved to IRSpy.pm
Mike Taylor [Fri, 20 Oct 2006 14:51:01 +0000 (14:51 +0000)]
xml_encode() moved to IRSpy.pm
Exporting structure removed.

17 years agoAdd two exportable utility functions:
Mike Taylor [Fri, 20 Oct 2006 14:49:11 +0000 (14:49 +0000)]
Add two exportable utility functions:
xml_encode() is moved here from IRSpy::Record
irspy_xpath_context() is new, factored out of found.mc

17 years agoDescribe CQL support.
Mike Taylor [Wed, 18 Oct 2006 14:25:48 +0000 (14:25 +0000)]
Describe CQL support.

17 years agoAttempt, once only, to re-open a closed zconn.
Mike Taylor [Wed, 18 Oct 2006 14:03:42 +0000 (14:03 +0000)]
Attempt, once only, to re-open a closed zconn.

17 years agoIf _query parameter is set, use that verbatim rather than assembling a
Mike Taylor [Wed, 18 Oct 2006 12:36:05 +0000 (12:36 +0000)]
If _query parameter is set, use that verbatim rather than assembling a
query from other form components.
The heading containing the query is now a resubmission box, allowing
the query to be edited.

17 years agoAdd mappings for twelve zeerex indexes (not yet supported in PQF).
Mike Taylor [Wed, 18 Oct 2006 11:42:20 +0000 (11:42 +0000)]
Add mappings for twelve zeerex indexes (not yet supported in PQF).

17 years agoRemove old-style sorting which has been superseded by sorting
Mike Taylor [Wed, 18 Oct 2006 11:34:48 +0000 (11:34 +0000)]
Remove old-style sorting which has been superseded by sorting
relation-modifiers.