Menu

#79 Error when setting up speaker metadata via IDlinks for BNC2014 spoken

TODO-3.5
closed-fixed
5
2023-08-27
2023-08-24
No

Hi,

I was trying to add the speaker metadata for the utterance regions in the BNC2014_spoken and noticed two bugs :

  1. In corpus-admin-forms.php:1931

echo print_embiggenable_metadata_form($n_embiggenable_rows, false, 'createXmlIdlinkTableForm'.$x->handle);

=> the input elements for the categories get assigned to the form 'createXmlIdlinkTableFormu_who', whereas the the submit button referst to 'createXlIdlinkTableForm:u_who'

This resulted in the error message "Input file line 1: ERROR, incorrect number of columns (expected 1, got 25)."

Fix: Add colon after 'createXmlIdlinkTableForm
echo print_embiggenable_metadata_form($n_embiggenable_rows, false, 'createXmlIdlinkTableForm:'.$x->handle);

  1. The embiggen button does not assign the form name, so that the additionally created categories for the utterance regions are not passed on. My dirty workaround was to temporarily set $n_embiggenable_rows to the value I needed (24) in corpus-admin-forms.php:1850. Apologies that I didn't come up with a proper fix.

CQPweb v. 3.3.17
CWB 3.5.0

Best wishes,
Fabian

Discussion

  • Andrew Hardie

    Andrew Hardie - 2023-08-27
    • labels: IDLinks, u_who, BNC2014_spoken, speaker metadata, cqpweb --> IDLinks, cqpweb
    • status: open --> closed-fixed
    • assigned_to: Andrew Hardie
     
  • Andrew Hardie

    Andrew Hardie - 2023-08-27

    Fixed in commit 1849.

    This is one of those embarrassing bugs that I would have spotted years ago if I used the embiggenable forms much myself - but I normally use templates. Alas. In any case, thanks to Fabian for the bug report.

     

Log in to post a comment.

MongoDB Logo MongoDB