[CWB] [cwb:bugs] #65 Feature Request: Embed-page function

Scott Sadowsky ssadowsky at gmail.com
Sat Jun 1 03:40:04 CEST 2019


On Fri, May 31, 2019 at 8:01 AM Andrew Hardie <
andrewhardie at users.sourceforge.net> wrote:

Hi Andrew,

Amazing speed... thanks so much! I'm currently getting an error when I open
this page, but I'm sure it's just a minor tweak away from working. The
error message is at the end.

> Couple of other comments
>
>    - customised simple-query-help : good idea but not doable via this
>    generic tool. I'll contemplate ways to handle.
>    - custom cqp syntax link: likewise.
>
> All clear. One of the main reasons I'd like to have this is to provide
help in languages other than English. Also, different browsers handle PDF
files differently (some download them automatically, which would be really
annoying with CQPweb), and the simple syntax help is in that format.


>    - "how to cite" - for the software, this is present under "who did it"
>    albeit this is probably hard to find. Maybe it should be retitled "Credits
>    and citing" or similar.For corproa, I assume that if there is how-to-cite
>    info, it would be part of the documentation, so to avoid proliferation of
>    external links, I would not want to build in special funcitonality.
>
> The page on how to cite the software is indeed hard to find, but I was
thinking of how to cite the corpus, actually.  It's the kind of information
that is normally shown very prominently (like *here <https://phoible.org/>*,
for example, where it's shown on the mail page) and often in a header or
footer that appears on all pages.

With that in mind, another feature I wanted to request is the ability to
add a header to all the pages related to each corpus (reusing the code for
the login page header, I imagine). This is for several reasons --
aesthetics (a nice graphic or two changes the whole vibe of a site),
letting users know where exactly they are at all times, and above all
providing an always-present clickable link to each corpus's home page for
when you're done with your current search or other analysis (I've never
used the back button as much as I do with CQPweb!).  If that were to be
implemented, perhaps a simple text field for a user-customized message
would be a good way to provide how-to-cite info. In that case, it would be
ideal if the field allowed some basic HTML, so journal names could be
italicized, etc.



>    - I don't know what an Impressum page is. But am willing to be
>    enlightened.
>
> In Germany (as well as Austria and Switzerland, I believe), sites are
legally required to have an Impressum page that says who the author and
owner are, how they can be contacted, etc. Since Germany is such a corpus
linguistics stronghold, it seems like it would be a useful feature for a
fair number of users. The rest of us can post our cat photos there, of
course.

Cheers,
Scott


An SQL query did not run successfully!

Original query: select * from embedded_pages order by id /* from User:
scott | Function: get_all_sql_objects() | 2019-May-31 22:09 */

Error # 1146: Table 'cqpweb.embedded_pages' doesn't exist
PHP debugging backtrace

array(7) {
  [1]=>
  array(4) {
    ["file"]=>
    string(42) "/var/www/html/cqpweb/lib/exiterror-lib.php"
    ["line"]=>
    int(300)
    ["function"]=>
    string(9) "exiterror"
    ["args"]=>
    array(3) {
      [0]=>
      array(3) {
        [0]=>
        string(38) "An SQL query did not run successfully!"
        [1]=>
        string(139) "Original query:

select * from embedded_pages order by id
	/* from User: scott | Function: get_all_sql_objects() | 2019-May-31 22:09 */

"
        [2]=>
        string(58) "Error # 1146: Table 'cqpweb.embedded_pages' doesn't exist "
      }
      [1]=>
      NULL
      [2]=>
      NULL
    }
  }
  [2]=>
  array(4) {
    ["file"]=>
    string(36) "/var/www/html/cqpweb/lib/sql-lib.php"
    ["line"]=>
    int(179)
    ["function"]=>
    string(20) "exiterror_mysqlquery"
    ["args"]=>
    array(3) {
      [0]=>
      int(1146)
      [1]=>
      string(43) "Table 'cqpweb.embedded_pages' doesn't exist"
      [2]=>
      string(119) "select * from embedded_pages order by id
	/* from User: scott | Function: get_all_sql_objects() | 2019-May-31 22:09 */"
    }
  }
  [3]=>
  array(4) {
    ["file"]=>
    string(36) "/var/www/html/cqpweb/lib/sql-lib.php"
    ["line"]=>
    int(558)
    ["function"]=>
    string(12) "do_sql_query"
    ["args"]=>
    array(1) {
      [0]=>
      string(119) "select * from embedded_pages order by id
	/* from User: scott | Function: get_all_sql_objects() | 2019-May-31 22:09 */"
    }
  }
  [4]=>
  array(4) {
    ["file"]=>
    string(40) "/var/www/html/cqpweb/lib/general-lib.php"
    ["line"]=>
    int(1001)
    ["function"]=>
    string(19) "get_all_sql_objects"
    ["args"]=>
    array(1) {
      [0]=>
      string(40) "select * from embedded_pages order by id"
    }
  }
  [5]=>
  array(4) {
    ["file"]=>
    string(45) "/var/www/html/cqpweb/lib/admin-home-forms.php"
    ["line"]=>
    int(6121)
    ["function"]=>
    string(19) "get_all_embeds_info"
    ["args"]=>
    array(0) {
    }
  }
  [6]=>
  array(4) {
    ["file"]=>
    string(38) "/var/www/html/cqpweb/lib/adminhome.php"
    ["line"]=>
    int(335)
    ["function"]=>
    string(23) "do_adm_ui_embeddedpages"
    ["args"]=>
    array(0) {
    }
  }
  [7]=>
  array(4) {
    ["file"]=>
    string(34) "/var/www/html/cqpweb/adm/index.php"
    ["line"]=>
    int(1)
    ["args"]=>
    array(1) {
      [0]=>
      string(38) "/var/www/html/cqpweb/lib/adminhome.php"
    }
    ["function"]=>
    string(7) "require"
  }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20190531/11119e1e/attachment.html>


More information about the CWB mailing list