[CWB] [cwb:bugs] #79 Error when setting up speaker metadata via IDlinks for BNC2014 spoken

Andrew Hardie andrewhardie at users.sourceforge.net
Sun Aug 27 17:52:47 CEST 2023


- **labels**: IDLinks, u_who, BNC2014_spoken, speaker metadata, cqpweb --> IDLinks, cqpweb
- **status**: open --> closed-fixed
- **assigned_to**: Andrew Hardie
- **Comment**:

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. 



---

**[bugs:#79] Error when setting up speaker metadata via IDlinks for BNC2014 spoken**

**Status:** closed-fixed
**Group:** TODO-3.5
**Labels:** IDLinks cqpweb 
**Created:** Thu Aug 24, 2023 10:00 AM UTC by Fabian Vetter
**Last Updated:** Thu Aug 24, 2023 10:00 AM UTC
**Owner:** Andrew Hardie


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); 

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


---

Sent from sourceforge.net because cwb at sslmit.unibo.it is subscribed to https://sourceforge.net/p/cwb/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/cwb/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20230827/84534175/attachment.html>


More information about the CWB mailing list