ウェブページを検索する

ウェブページを検索する

- Tatsuya Shirai の投稿
返信数: 3

 リソースの追加,ファイルまたはウェブサイトにリンクの”ウェブページを検索する”のボタンのポップアップコメント(title)が, 'ローカルファイルの選択 (CD-ROM)'になっています.

 これは吉田さんのミスではなく,mod/resource/type/file/resource.class.phpのfunction setup_elements()中(682行),

    if (!empty($CFG->resource_websearch)) {
        $searchbutton = $mform->addElement('button', 'searchbutton', get_string('searchweb', 'resource').'...');
//      $buttonattributes = array('title'=>get_string('localfilechoose', 'resource'), 'onclick'=>"return window.open('$CFG->resource_websearch', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,scrollbars,resizable,width=800,height=600');");
        $buttonattributes = array('title'=>get_string('searchweb', 'resource'), 'onclick'=>"return window.open('$CFG->resource_websearch', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,scrollbars,resizable,width=800,height=600');");
        $searchbutton->updateAttributes($buttonattributes);
    }

のミスです.機能的に実害は無いのですが,一応,報告します. > 吉田さん

Tatsuya Shirai への返信

Re: ウェブページを検索する

- Mitsuhiro Yoshida の投稿
画像 Developers 画像 Particularly helpful Moodlers 画像 Translators
> 機能的に実害は無いのですが,一応,報告します. > 吉田さん

白井先生

ありがとうございます。
Moodle Trackerに報告させていただきました笑顔

[Need to fix for "Search for webpage ..." input title attribute on resource module.]
http://tracker.moodle.org/browse/MDL-12930

添付 search_webpages.jpg
Tatsuya Shirai への返信

Re: ウェブページを検索する

- Mitsuhiro Yoshida の投稿
画像 Developers 画像 Particularly helpful Moodlers 画像 Translators
Moodle Tracker報告後、約10分で「”ウェブページを検索する”のボタンのポップアップコメント(title)のミス」が解決されたようです。ウインク

MOODLE_19_STABLE: Commit in moodle/mod/resource/type/file
resource.class.php +2 -2 1.71.2.4 -> 1.71.2.5
MDL-12930 - wrong title text on search webpages button, thanks to Mitsuhiro
Yoshida

moodle/mod/resource/type/file
resource.class.php 1.71.2.4 -> 1.71.2.5
diff -u -r1.71.2.4 -r1.71.2.5
--- resource.class.php 14 Dec 2007 21:21:07 -0000 1.71.2.4
+++ resource.class.php 11 Jan 2008 11:58:41 -0000 1.71.2.5
@@ -1,4 +1,4 @@
-<?php // $Id: resource.class.php,v 1.71.2.4 2007/12/14 21:21:07 skodak Exp $
+<?php // $Id: resource.class.php,v 1.71.2.5 2008/01/11 11:58:41 poltawski Exp $
 /** * Extend the base resource class for file resources 
@@ -686,7 +686,7 @@
 if (!empty($CFG->resource_websearch)) { $searchbutton = $mform->addElement('button', 'searchbutton', get_string('searchweb', 'resource').'...'); 
- $buttonattributes = array('title'=>get_string('localfilechoose', 'resource'), 'onclick'=>"return window.open('"
+ $buttonattributes = array('title'=>get_string('searchweb', 'resource'), 'onclick'=>"return window.open('"
 . "$CFG->resource_websearch', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,"
 . "scrollbars,resizable,width=800,height=600');");
 $searchbutton->updateAttributes($buttonattributes);