Actions

Label sets/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "{{Box|下記のスクリーンショットは、LimeSurvey 3.0のものです。このインターフェースは、最後のLimeSurvey 2.xxリリースと少し異なりま...")
No edit summary
Line 165: Line 165:


ラベルセットオプションの理解を深めるために、以下の例を見てみましょう。
ラベルセットオプションの理解を深めるために、以下の例を見てみましょう。
*[[Label_sets/ja#I_want_to_use_a_label_set_as_an_answer_list_for_one_question|質問に対する回答リストとしてラベルセットを使用したい ]]
*[[Label_sets/ja#I_want_to_use_a_label_set_as_an_answer_list_for_one_question|質問に対する回答リストとしてラベルセットを使用したい]]
*[[Label sets/ja#I want to use labels in another language as answers|回答として別の言語のラベルを使いたい]]
*[[Label sets/ja#I want to use labels in another language as answers|回答として別の言語のラベルを使いたい]]
*[[Label sets/ja#I want to use emoticons instead of label text|ラベルテキストの代わりに絵文字を使いたい]]
*[[Label sets/ja#I want to use emoticons instead of label text|ラベルテキストの代わりに絵文字を使いたい]]

Revision as of 00:44, 10 July 2018

概要

ラベルセットは基本的にリストテンプレートであり、各リストにはラベル付きのコードセットがあり、ほとんどの質問タイプで回答またはサブ質問として使用できます。LimeSurveyのラベルセットは、サブ質問や回答として質問にコピーされるだけであることにご留意ください。したがって、アンケートでラベルセットを使用した後にラベルセットを変更しても、各ラベルセットを使用しているアンケートの質問には反映されません。      この新しいラベルセットを使用することにより、将来の開発に柔軟性が増し、質問の構造がより論理的になります。

  注意 : ラベルセットにはアンケートと同じ基本言語が含まれていなければなりません。そうでない場合は、アンケートの質問には使用できません。


以下のラベルセットの例では、概念をよりよく理解するのに役立ちます。LimeSurveyのラベルセット管理機能に直接移動したい場合は、ここをクリックしてください。

カスタム7点スケールを定義する場合、ラベルセットがこの機能を果たします。下の例では、コード/ラベルのペア(ラベルは実際の質問に表示されます)で設定された非常に単純なカスタムラベルです。

コード ラベル
1 役に立たない
2 2
3 3
4 やや役に立った
5 5
6 6
7 とても役に立った

ラベルテキストの代わりに3つの異なるスマイリーが使用されるグラフィカルな例を以下に示します。



ラベルセットの使い方

ラベルセットを編集、作成、削除、インポート、エクスポートするには、設定メニューのラベルセット管理をクリックします。



ラベルセットの作成、インポート

ページの左上にある新規ラベルセットを作成/インポートボタンをクリックします。新しいラベルセットを最初から作成したり、別のソースからインポートしたりすることもできます。

  • 新しいラベルセット: ラベルセットを手動で作成します。
    • 名前を設定: 新しいラベルセットに付ける名前を設定します。
    • 言語: ラベルセットは言語を指定する必要があります。メニューから言語を選択することができます。
  • ラベルセットをインポート: ラベルセットをインポートするには、ファイルを選択をクリックし、ラベルセットファイル.lslを追加します。以前にラベルセットを作成していた場合は、同じラベルセットが既に存在している場合は、インポートされませんをオフにしない限りインポートできません。LimeSurveyのウェブサイトでは、便利なラベルセットがあります。

ラベルをインポートまたは作成したら、画面の右上にある保存ボタンをクリックします。



アンケート全体をインポートすると、質問とともにラベルセットもインポートされます。重複したラベルセットは無視されます。

ラベルセットの編集、削除、エクスポート

ラベルセットリストのそれぞれのエントリーには、対応するメニューがあり、次の4つのオプションがあります。



  • ラベル表示: ラベルセットのラベルを表示します。
  • ラベルセットの編集: ラベルセットの名前を変更したり、言語の追加/削除を行うことができます。
  • ラベルセット出力: ラベルを.lslファイルにエクスポートします。
  • ラベルセットの削除: ラベルセットを削除するかどうかを確認するためのウィンドウがポップアップ表示されます。

ラベルの使い方

ラベルの追加

ラベルのコード、評価値、題名を入力する必要があります。



次に、プラス記号のアイコンをクリックし、新しいラベルを追加します。ラベルテキストの代わり、またはテキストに加えてグラフィックを使用することも可能です。これには、HTMLコードを使用して、必要なグラフィックを含める必要があります。例は以下のとおりです。

<img border="0" src="http://www.yourdomain.at/pics/pic.gif">
評価に関するウィキも参照してください。すべての値を0に設定すると、列は無視されます。

HTMLコードを簡単に編集するには、ラベルテキストボックスの最後にあるLimeSurveyのHTMLエディターを使用します(緑色のペンボタン0.85pxをクリックします)。



LimeSurveyで使用されるHTMLエディターについては、次のページを確認してください。

素早く追加する

ラベルを素早く追加するには、素早く追加...ボタンを使用する方法もあります。クリックすると、ウィンドウが表示されます。動作させるには、次の書式で記述します。コード ; 題名


0.8px


ラベルを置き換えたり、追加したりできます。入れ替えをクリックすると、既存のラベルがすべて削除され、入力したラベルに置き換えられます。追加をクリックすると、新しいラベルがラベルセットに追加されます(既存のラベルは影響を受けません)。


0.8px


新たなエントリーが作成される場合、コードが自動的に追加されます。したがって、ラベルのタイトルだけを入力し、自動的にコードが割り当てることができます。


0.8px


0.8px


評価値は、ここから入力/編集することはできません。ラベルのリストから手動で変更する必要があります。

  注意 : 素早く追加...機能を使ってラベルを翻訳するには、同じ行に翻訳を追加し、セミコロンで区切ります。


ラベルの削除

ラベルを削除するには、'操作'の欄の下にある赤いゴミ箱のボタン(0.85px)をクリックします。

ラベルの並べ替え

ラベルの順序を並べ替えるには、'場所'の欄の下にある緑色の記号(0.85px)をクリックし、好きなようにラベルの位置を変更します。

言語の追加

新しい言語を追加するには、新規ラベルセットを作成/インポート -> 言語から追加する言語を選択します。

ラベルを別の言語に翻訳するには、ラベルを翻訳する言語をテーブルの上部から選択します。




前述のとおり、すべてのラベルには、コード、評価値、題名が必要です。ラベルの題名はすべての言語オプションで編集できますが、ラベルコードと評価値は、テーブルの言語ツールバーにある最初の言語からのみ編集できます。言語の順序はアルファベット順であり、LimeSurveyから変更することはできません。

この例の場合、ラベルのコードと評価値を変更できる言語は英語です。ルーマニアのタブが選択されている場合は、ラベルの題名のみを編集できます。これは、英語のラベルに対応するルーマニア語のラベルの翻訳となります。

変更が完了したら、画面の右上にある'変更を保存'ボタンをクリックしてください。

さらに読み進む前に、アンケートを作成する方法に関するウィキを見てください。以下の例では、すでにアンケートを作成していることを前提にしています。


ラベルセットオプションの理解を深めるために、以下の例を見てみましょう。

下記のスクリーンショットは、LimeSurvey 3.0のものです。このインターフェースは、最後のLimeSurvey 2.xxリリースと少し異なります。


ラベルセットを回答リストとして利用する

All the label sets that are displayed under Configuration -> Label sets are called predefined label sets. They can be used either as subquestions or as answers.

Assuming that the label set and survey are created:

  • Go to the structure of the survey and create a question group - About LimeSurvey.



  • Click on the Structure tab and then on the newly created question group (About LimeSurvey in our case). Look for group quick actions and choose Add new question to group:



  • Type in the code and text of the question.
  • In order to use a label set as a set of answers, pick up the right type of question that can make use of label sets. The array question type is selected in our example:



  • Save the question to add it into your question group.
  • Once created, you will have to add subquestions and answers:



Please note that not all question types ask for subquestions and/or answers!
  • Add at least one subquestion:



  • Add answer options. Predefined label sets... option will be used:



  • Select the label set you want to use:


0.7px


The result should look like this:



  • Save & preview the question:


他の言語の回答としてラベルを使用する

Before reading this example:
  1. Create a label set and select the other languages you would like to use in your survey. For further details, read our wiki on how to translate a label set in other languages.
  2. Edit your survey (Settings -> General Settings) by adding the additional languages you want to translate to. For more details on how to create a survey, read the following wiki.

Assuming that the label set and survey are created:

  • Create a question that can make use of label sets (e.g. array question type):
  Attention : Do not forget to select the language you want to translate to from the languages toolbar!


  • Because the array question type is selected, both the subquestions and answers need to be translated.



  • Translate the subquestions. Do not forget to select the right language tab for translation:



  • Translate the answers. However, because we use predefined label sets, select the right language tab to add the translated label set as answer options:




  • Save & Preview the survey:


ラベルテキストの代わりに絵文字を使う

In order to use emoticons (or any other graphics) , you have to use the embedded HTML editor when creating labels.

Assuming that the survey is created:




The HTML editor offers you a more comprehensive view on how different options can be used to enhance your survey. It is not necessary to have HTML knowledge because the toolbar is self-explaining (for further details you can either hover the mouse over the options or click on that option for more details). By using such an editor, you can also add (for example) smileys, images and/or videos that are either hosted online or on your server. In this example. three smileys have been added:



  • Create a question that can make use of label sets as predefined answers (e.g. array question type):



  • Edit the subquestions and the answer options



  • Set predefined labels as answer options.


SmileysLabelsExample.png


  • Save and preview the question:


ラベルセットをインポートし、サブ質問リストとして使用する

Assuming that the survey is created:

Optional: Access LimeSurvey templates database and download the one you wish to use - .lsl file format (Australian states in our example).
  • Go to Configuration and click on Manage label sets button.
  • Click on Create or import new label set(s) (in the upper-left side of the screen) -> Import label set(s). Browse your computer and select the .lsl file (the label set format).
  • Now that the label set was uploaded, create a question that requires the usage of subquestions (array question types).
  • Edit subquestions.
  • Load the imported label set:
  • Save and preview.