diff --git a/README.md b/README.md index d3edbc5..dd819f4 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,4 @@ GakuNin RDM developer guide * [開発環境の準備](Environment.md) * [スケルトンの作成](Skelton/README.md) * [ストレージアドオンの作成](StorageAddon/README.md) +* [画面拡張アドオンの作成](ScreenExpansion/README.md) diff --git a/ScreenExpansion/README.md b/ScreenExpansion/README.md new file mode 100644 index 0000000..52df936 --- /dev/null +++ b/ScreenExpansion/README.md @@ -0,0 +1,709 @@ +# 画面拡張アドオンの作成 + +以下の機能を持つ画面拡張アドオンを実装します。 + +- プロジェクトダッシュボード上のアドオンのウィジェッド +- プロジェクトのナビゲーションバーから遷移できるアドオンの画面タブ(Emberを利用) + +基本的なアドオンの概要は[スケルトンの作成](../Skelton/README.md)を参照してください。 + +## 前提条件 + +[開発環境の準備](../Environment.md#開発環境でRDMを起動する)のガイドに従い、開発環境にてRDMを起動しているものとします。 + +# 画面拡張アドオンの設計 + +## サービスの構成 + +画面拡張アドオンは以下の2つの要素から構成されます。 + +- OSF.ioサービスで動作するAddon: ユーザ・プロジェクト設定の管理 +- ember-osf-webサービスで動作する画面タブモジュール: 画面タブのView定義 + +ember-osf-webは、 [Ember.js](https://www.emberjs.com) をベースとしたOSFのフロントエンドUIの実装です。もともと、OSF.ioがフロントエンドも担当していましたが、COSはEmber.jsベースのコードに移行を進めています。 + +現在はosf-web(OSF.io)が外部からのリクエストを受け、要求されたエンドポイントをember-osf-webがサポートしていると判断される場合は、osf-webがember-osf-webに対してリクエストを転送する形式を取っています。実際のデータベースに対する操作は、従来のosf-api(OSF.io apiserver)が担います。ember-osf関連のフロントエンドは、必要に応じてAPIサーバへの問い合わせを行うことで、データベースに対する変更やストレージに対する操作を実施することができます。 + +## ファイルの構成 + +典型的なファイル配置は以下のようになります。 + +### OSF.io Addonのファイル構成 + +> クラス構成はスケルトン アドオンと同様です。 + +``` +/addons/アドオン名/ +├── __init__.py ... モジュールの定義 +├── apps.py ... (**) アプリケーションの定義 +├── models.py ... モデルの定義 +├── requirements.txt ... 利用するPythonモジュールの定義 +├── routes.py ... (**) View(Routes)の定義 +├── settings ... 設定を定義するモジュール +│ ├── defaults.py ... デフォルト設定の定義 +│ └── __init__.py ... 設定の定義 +├── static ... Webブラウザから読み込むことを想定した静的ファイル +│   ├── comicon.png ... アドオンのアイコン +│   ├── アドオン名.css ... (*) ウィジェットのCSSファイル +│   ├── node-cfg.js ... Node設定のエントリとなるJavaScriptファイル +│   └── widget-cfg.js ... (*) ウィジェットのJavaScriptファイル +├── templates ... テンプレートディレクトリ +│   └── node_settings.mako ... Node設定パネル +├── tests ... テストコード +│   ├── __init__.py +│   ├── conftest.py +│   ├── factories.py +│   ├── test_model.py +│   ├── (**) test_view.py +│   └── utils.py +├── utils.py ... (*) ユーティリティ関数の定義 +└── views.py ... (**) View(Views)の定義 +``` + +`(*)`が付いているファイルはスケルトン アドオンには存在しないファイルです。 +`(**)`が付いているファイルはスケルトン アドオンに存在しますが、変更が加えられているファイルです。 + +### ember-osf-web 画面タブのファイル構成 + +``` +app +├── guid-node/アドオン名 ... アドオンの画面タブモジュール定義 +│ ├── controller.ts ... 画面タブのコントローラ定義 +│ ├── route.ts ... 画面タブのルーティング定義 +│ ├── styles.scss ... 画面タブのCSS(SCSS)定義 +│ └── template.hbs ... 画面タブのテンプレートファイル +├── models/モデル名.ts ... 画面タブで使うモデル定義 +├── adapters/モデル名.ts ... 画面タブで使うモデルのアダプタ定義 +└── serializers/モデル名.ts ... 画面タブで使うモデルのシリアライザ定義 + +tests ... テストコード +├── acceptance/guid-node/アドオン名-test.ts +└── unit/guid-node/アドオン名/controller-test.ts + +mirage ... アダプタ接続先APIのテスト用モック定義 +├── factories/モデル名.ts +└── views/モデル名.ts +``` + +## OSF.io Addonのモジュール構成 + +スケルトン アドオンと大きな違いはありません。スケルトン アドオンとの違いを中心に説明していきます。 + +### Modelの構成 + +Modelの構成はスケルトン アドオンと同じです。 + +### Viewの構成 + +スケルトン アドオンのViewsおよびRoutesの定義に、画面タブ用の定義を追加します。 + +画面タブでアドオンのデータをやり取りするには、ember-osf-webに新しくモデルを定義し、そのモデルに対応するJSON APIをOSF.io側に定義する必要があります。 +データは以下のような [JSON:API](https://jsonapi.org/) で定められたフォーマットでやり取りします。 + +``` +{ + "data": { + "id": nodeのID + "type": "モデル名", + "attributes": データのDictionary + } +} +``` + +My Screenアドオンの場合、以下のようにRoutesとViewsを定義します。 + +- [routes.py](osf.io/addon/routes.py) +- [views.py](osf.io/addon/views.py) + +### フレームワークによって提供されるView + +アドオンのウィジェット定義を追加します。 + +ウィジェットテンプレートは [website/templates/util/render_addon_widget.mako](https://github.com/RCOSDP/RDM-osf.io/blob/develop/website/templates/util/render_addon_widget.mako) に定義します。 +ウィジェットテンプレートの設定は [website/project/views/node.py](https://github.com/RCOSDP/RDM-osf.io/blob/develop/website/project/views/node.py) に定義します。 + +ウィジェットで使うJavaScriptは `/addons/アドオン名/static/widget-cfg.js` で、CSSは `/addons/アドオン名/static/アドオン名.css` で定義します。CSSはJavaScriptファイルから `require()` を使って読み込みます。 + +My Screenアドオンの場合、以下のように定義します。 + +- [render_addon_widget.mako](osf.io/website/templates/util/render_addon_widget.mako) +- [node.py](osf.io/website/project/views/node.py) +- [widget-cfg.js](osf.io/addon/static/widget-cfg.js) +- [myscreen.css](osf.io/addon/static/myscreen.css) + +### 国際化 + +国際化の設定は [website/translations/](https://github.com/RCOSDP/RDM-osf.io/blob/develop/website/translations/) 以下のファイルに、以下のように定義します。 + +``` +msgid メッセージID +msgstr 国際化後の文字列 +``` + +`*.pot` ファイルには `msgstr` を `""` (空文字)にして定義します。 +`messages.*` にはmakoのテンプレートファイルで使う国際化設定を、 `js_messages.*` にはJavaScriptで使う国際化設定を定義します。 + +JavaScriptで文字列を国際化するのは、以下のように書きます。 + +``` +var _ = require('js/rdmGettext')._; +const localizedStr = _('メッセージID'); +``` + +makoで文字列を国際化するのは、以下のように書きます。 + +``` +${_("メッセージID")} +``` + +### 設定モジュール + +設定モジュールはスケルトン アドオンと同じです。 + +### AddonAppConfigの定義 + +ウィジェットと画面タブを有効にするために、 `/addons/アドオン名/app.py` の `AddonAppConfig.views` に、`'widget'` と `'page'` を追加します。 + +``` +class AddonAppConfig(BaseAddonAppConfig): + # 中略 + views = ['widget', 'page'] + # 中略 +``` + +My Screenアドオンの場合、以下のように定義します。 + +- [apps.py](osf.io/addon/apps.py) + +### テストコード + +スケルトン アドオンと同様に、ユニットテストを定義します。 +My Screenアドオンの場合、以下のように定義します。 + +- [tests/](osf.io/addon/tests/) + +## ember-osf-web 画面タブのモジュール構成 + +ember-osf-webは [TypeScript](https://www.typescriptlang.org) によって実装されます。 +アプリケーションのコードは [app/](https://github.com/RCOSDP/RDM-ember-osf-web/blob/master/app/) に実装されます。 + +ember-osf-webは、OSFの画面を構成するページを単位としてモジュール分割されています。 + +### router.ts +[router.ts](https://github.com/RCOSDP/RDM-ember-osf-web/blob/master/app/router.ts) は、ページ全体を束ねるルーティング定義ファイルです。 + +例えば、 `/プロジェクトID/アドオン名` というパスを追加する場合は、 `Router.map` に渡す関数に以下を追加します。 + +``` +this.route('guid-node', { path: '--node/:guid' }, function() { + this.route('アドオン名'); +}); +``` + +このパスにリクエストが与えられると、 `app/guid-node/アドオン名` で定義されたページに処理が移行します。 + +### ページの実装 + +#### 画面の実装 +画面の実装は [Handlebars templating library](https://handlebarsjs.com/) を使用して、 `template.hbs` ファイルに定義します。 + +画面上の文字列は全て国際化を考慮し、 [translations/en-us.yml](https://github.com/RCOSDP/RDM-ember-osf-web/blob/master/translations/en-us.yml) に定義された値を埋め込む必要があります。 + +My Screenアドオンの場合、以下のように定義します。 + +- [template.hbs](ember-osf-web/app/guid-node/myscreen/template.hbs) +- [translations/en-us.yml](ember-osf-web/translations/en-us.yml) + +> [ボタン](https://github.com/RCOSDP/RDM-ember-osf-web/tree/master/lib/osf-components/addon/components/osf-button) や [DatePicker](https://github.com/RCOSDP/RDM-ember-osf-web/tree/master/lib/osf-components/addon/components/validated-input/date) 、 [ダイアログボックス](https://github.com/RCOSDP/RDM-ember-osf-web/tree/master/lib/osf-components/addon/components/osf-dialog) などは、別のコンポーネントとして定義することで再利用できるようになっています。 +> [lib/osf-components](https://github.com/RCOSDP/RDM-ember-osf-web/tree/master/lib/osf-components) のコードを確認して、コンポーネントを利用しましょう。 + +#### コントローラの定義 +画面に埋め込む変数やハンドラの制御はコントローラが担います。 +コントローラには `template.hbs` に埋め込まれる変数やイベントに対する処理を記述します。 + +My Screenアドオンの場合、以下のように定義します。 + +- [controller.ts](ember-osf-web/app/guid-node/myscreen/controller.ts) + +また、コントローラとバックエンドのやり取りは、Ember Dataが提供する [DS.Store](https://api.emberjs.com/ember-data/release/classes/Store) オブジェクトを経由して行われます。 +DS.Storeで操作可能なオブジェクトは [models](https://github.com/RCOSDP/RDM-ember-osf-web/tree/master/app/models) に定義され、 [adapters](https://github.com/RCOSDP/RDM-ember-osf-web/tree/master/app/adapters) に定義されたルールに基づき、APIサーバを介したオブジェクトの操作を行います。 + +なお、APIサーバは [JSON:API](https://jsonapi.org/) に則っていることを前提とすることで、adapterは細かなエンドポイント生成処理を定義することなく、APIサーバとの連携を実現することができます。 +エンドポイント生成処理をカスタマイズしたい場合は、 [serializers](https://github.com/RCOSDP/RDM-ember-osf-web/tree/master/app/serializers) に定義を追加します。 + +My Screenアドオンの場合、`myscreen-config` というmodelと、対応するadapterおよびserializerを以下のように定義します。 + +- [models/myscreen-config.ts](ember-osf-web/app/models/myscreen-config.ts) +- [adapters/myscreen-config.ts](ember-osf-web/app/adapters/myscreen-config.ts) +- [serializers/myscreen-config.ts](ember-osf-web/app/serializers/myscreen-config.ts) + +#### スタイルの定義 +スタイルは [Sass(SCSS)](https://sass-lang.com/) を使用して、 `styles.scss` ファイルに定義します。 +My Screenアドオンの場合、以下のように定義します。 + +- [styles.scss](ember-osf-web/app/guid-node/myscreen/styles.scss) + +#### ルーティングの定義 +モジュールに関する追加の経路定義を `route.ts` に定義します。 +My Screenアドオンの場合、以下のように定義します。 + +- [route.ts](ember-osf-web/app/guid-node/myscreen/route.ts) + +### テストコード + +テストコードは [tests/](https://github.com/RCOSDP/RDM-ember-osf-web/tree/master/tests/) に定義します。 +テストに使うAPIのモックは、 [Mirage](https://miragejs.com/) を使用して [mirage/](https://github.com/RCOSDP/RDM-ember-osf-web/tree/master/mirage/) に定義します。 + +My Screenアドオンの場合、以下のように定義します。 + +- [tests/](ember-osf-web/tests) +- [mirage/](ember-osf-web/mirage) + + +# My Screenアドオンの実装 + +ここでは、 `myscreen` という識別名のアドオンの実装を例に説明します。アドオンの完全名は `My Screen` とします。 + +アドオン名は様々な場所に埋め込まれています。アドオン名を変更したい場合は、以降で追加・変更するファイル名やコードの `myscreen` 、 `My Screen` 、 `MyScreen` という文字列を変更してください。 + +## OSF.ioへの実装 + +### addons.myscreen モジュールの定義 + +スケルトン アドオンと同様に、[アドオンの実装例(`osf.io/addon/`)](osf.io/addon/)を `addons/myscreen` ディレクトリにコピーします。 + +### RDMコードの変更 + +スケルトン アドオンと同様に、RDMのコードをいくつか変更します。 + +- [addons.json](https://github.com/RCOSDP/RDM-osf.io/blob/develop/addons.json) + - 変更例のサンプル: [addons.json](osf.io/config/addons.json) +- [framework/addons/data/addons.json](https://github.com/RCOSDP/RDM-osf.io/blob/develop/framework/addons/data/addons.json) + - 変更例のサンプル: [addons.json](osf.io/config/framework/addons/data/addons.json) +- [Dockerfile](https://github.com/RCOSDP/RDM-osf.io/blob/develop/Dockerfile) + - 変更例のサンプル: [Dockerfile](osf.io/config/Dockerfile) +- [api/base/settings/defaults.py](https://github.com/RCOSDP/RDM-osf.io/blob/develop/api/base/settings/defaults.py) + - 変更例のサンプル: [defaults.py](osf.io/config/api/base/settings/defaults.py) + +#### ウィジェットテンプレートの変更 + +[website/templates/util/render_addon_widget.mako](https://github.com/RCOSDP/RDM-osf.io/blob/develop/website/templates/util/render_addon_widget.mako) に、ウィジェットのテンプレート定義を追加します。 + +``` +% if addon_name == 'myscreen': +
+ +
${_("Loading")}
+ + +
${_("Error occurred")}
+ + +
${_("My Screen Test")}
+
+ +

+
+ +
+% endif +``` + +[website/project/views/node.py](https://github.com/RCOSDP/RDM-osf.io/blob/develop/website/project/views/node.py) の `view_project()` 関数に、My Screenアドオンのウィジェットデータを読み込むコードを追加します。 + +``` +def view_project(auth, node, **kwargs): + # 中略 + addons_widget_data = { + # 中略 + 'myscreen': None + } + + if 'myscreen' in ret['addons']: + addons_widget_data['myscreen'] = serialize_myscreen_widget(node) + # 中略 +``` + +それぞれの変更例は、サンプル [render_addon_widget.mako](osf.io/website/templates/util/render_addon_widget.mako) と [node.py](osf.io/website/project/views/node.py) を参照してください。 + +#### 国際化ファイルの変更 + +[website/translations/](https://github.com/RCOSDP/RDM-osf.io/blob/develop/website/translations/) 以下の各国際化ファイルに、アドオンで表示する文字列の国際化設定を追加します。 + +`website/translations/messages.pot` と `website/translations/en/LC_MESSAGES/messages.po`: + +``` +#: website/templates/util/render_addon_widget.mako:245 +msgid "My Screen Test" +msgstr "" +``` + +`website/translations/ja/LC_MESSAGES/messages.po`: + +``` +#: website/templates/util/render_addon_widget.mako:245 +msgid "My Screen Test" +msgstr "My Screen テスト" +``` + +`website/translations/js_messages.pot` と `website/translations/en/LC_MESSAGES/js_messages.po`: + +``` +#: addons/myscreen/static/widget-cfg.js:22 +msgid "My Screen Param1 Label" +msgstr "" +``` + +`website/translations/ja/LC_MESSAGES/js_messages.po`: + +``` +#: addons/myscreen/static/widget-cfg.js:22 +msgid "My Screen Param1 Label" +msgstr "パラメーター1" +``` + +変更例は、サンプル [translations/](osf.io/website/translations/) を参照してください。 + +### Migrationsファイルの作成 + +`makemigrations` コマンドを実行して、Migrationsファイルを作成します。 + +``` +$ docker-compose run --rm web python3 manage.py makemigrations +``` + +上記の出力中に以下のような出力が現れれば成功です。 + +``` +Migrations for 'addons_myscreen': + addons/myscreen/migrations/0001_initial.py + - Create model NodeSettings + - Add field user_settings to nodesettings +``` + +### Widgetの表示位置のカスタマイズ + +デフォルトでは、アドオンのWidgetはダッシュボードの左カラムの下部(FileViewerの下)に、アドオンの名前順で表示されます。表示位置を変更する場合は、 [website/templates/project/project.mako](https://github.com/RCOSDP/RDM-osf.io/blob/develop/website/templates/project/project.mako) ファイルを編集します。 + +> 今後、プロジェクトダッシュボードの表示もEmber化されることが考えられます。その場合は、Ember側も合わせて変更する必要があります。 + +左カラムの一番上(Wikiウィジェットの上)に表示したい場合は、以下のように修正します。 + +```diff +@@ -431,6 +431,10 @@ + +
+ ++ % if 'myscreen' in addons_enabled and addons['myscreen']['has_widget']: ++ ${ render_addon_widget.render_addon_widget('myscreen', addons_widget_data['myscreen']) } ++ % endif ++ + %if user['show_wiki_widget']: + ${ render_addon_widget.render_addon_widget('wiki', addons_widget_data['wiki']) } + %endif +@@ -470,7 +474,7 @@ + + % for addon in addons_enabled: + % if addons[addon]['has_widget']: +- %if addon != 'wiki' and addon != 'iqbrims': ## We already show the wiki widget at the top ++ %if addon != 'wiki' and addon != 'iqbrims' and addon != 'myscreen': ## We already show the wiki widget at the top + ${ render_addon_widget.render_addon_widget(addon, addons_widget_data[addon]) } + %endif + % endif +``` + +右カラムの一番上に表示したい場合は、以下のように修正します。 + +```diff +@@ -470,7 +470,7 @@ + + % for addon in addons_enabled: + % if addons[addon]['has_widget']: +- %if addon != 'wiki' and addon != 'iqbrims': ## We already show the wiki widget at the top ++ %if addon != 'wiki' and addon != 'iqbrims' and addon != 'myscreen': ## We already show the wiki widget at the top + ${ render_addon_widget.render_addon_widget(addon, addons_widget_data[addon]) } + %endif + % endif + % endfor + % else: + + ${children()} + % endif + +
+ +
++ % if 'myscreen' in addons_enabled and addons['myscreen']['has_widget']: ++ ${ render_addon_widget.render_addon_widget('myscreen', addons_widget_data['myscreen']) } ++ % endif ++ + % if addons: + + % for addon in addons_enabled: +``` + +変更例は、サンプル [project.mako](osf.io/website/templates/project/project.mako) を参照してください。 + +### 画面タブリンクの表示位置のカスタマイズ + +デフォルトでは、アドオン画面タブのリンクはナビゲーションバーのFiles(ファイル)タブの右に、アドオンの名前順で表示されます。表示位置を変更する場合は、[website/templates/project/project_header.mako](https://github.com/RCOSDP/RDM-osf.io/blob/develop/website/templates/project/project_header.mako) ファイルを編集します。 + +> アドオン画面タブなどのember-osf-webが提供するViewを開いているときは、ember-osf-webで定義した `node-navbar` コンポーネントのテンプレート(後述)に従って表示されます。 + +アドオンリストの最後(Analytics(分析)の前)に表示する場合は、以下のように修正します。 + +```diff +@@ -43,7 +43,7 @@ + + % for addon in addons_enabled: + +- % if addons[addon]['has_page']: ++ % if addon != 'myscreen' and addons[addon]['has_page']: +
  • + + + % if addons[addon]['icon'] and addons[addon]['has_page_icon']: + + % endif + ${addons[addon]['full_name']} + +
  • + % endif + % endfor + ++ % if 'myscreen' in addons_enabled and addons['myscreen']['has_page']: ++
  • ++ ++ ++ % if addons['myscreen']['icon'] and addons['myscreen']['has_page_icon']: ++ ++ % endif ++ ${addons['myscreen']['full_name']} ++ ++
  • ++ % endif ++ + % if project_analytics: + % if node['is_public'] or user['is_contributor_or_group_member']: +
  • ${ _("Analytics") }
  • +``` + +変更例は、サンプル [project_header.mako](osf.io/website/templates/project/project_header.mako) を参照してください。 + +### アドオンのテスト + +以下のコマンドで、OSF.ioに追加したMy Screenアドオンのユニットテストを実行できます。 + +``` +$ docker-compose run --rm web invoke test_module -m addons/myscreen/tests/ +``` + +## ember-osf-webへの実装 + +### 画面タブの実装 + +[画面タブの実装例(`ember-osf-web/app/guid-node/myscreen/`)](ember-osf-web/app/guid-node/myscreen/) を `app/guid-node/myscreen` ディレクトリにコピーします。 + +### myscreen-config モデルの定義 + +My Screenアドオンの画面タブでは、NodeSettingsの `param_1` プロパティに対応する `param1` プロパティを持つ、 `MyScreenConfig` モデルを定義して扱います。`MyScreenConfig` モデルと、アダプタ、シリアライザを、それぞれ以下のようにコピーします。 + +- [MyScreenConfigモデルの実装例](ember-osf-web/app/models/myscreen-config.ts) を `app/models/myscreen-config.ts` にコピーします。 +- [MyScreenConfigアダプタの実装例](ember-osf-web/app/adapters/myscreen-config.ts) を `app/adapters/myscreen-config.ts` にコピーします。 +- [MyScreenConfigシリアライザの実装例](ember-osf-web/app/serializers/myscreen-config.ts) を `app/serializers/myscreen-config.ts` にコピーします。 + +### テストコードの定義 + +画面タブに関するテストコード例と、テストに利用するMirageのコード例を、それぞれ以下のようにコピーします。 + +- [画面タブのコントローラの単体テストのコード例](ember-osf-web/tests/acceptance/guid-node/myscreen-test.ts) を `tests/acceptance/guid-node/myscreen-test.ts` にコピーします。 +- [画面タブの受け入れテストのコード例](ember-osf-web/tests/unit/guid-node/myscreen/controller-test.ts) を `tests/unit/guid-node/myscreen/controller-test.ts` にコピーします。 +- [MyScreenConfigのMirage Factoryコード例](ember-osf-web/mirage/factories/myscreen-config.ts) を `mirage/factories/myscreen-config.ts` にコピーします。 +- [MyScreenConfigのMirage Viewsコード例](ember-osf-web/mirage/views/myscreen-config.ts) を `mirage/views/myscreen-config.ts` にコピーします。 + +### RDMコードの変更 + +#### ルーティングの設定 + +[app/router.ts](https://github.com/RCOSDP/RDM-ember-osf-web/blob/develop/app/router.ts) に、アドオンの画面タブページへのルーティング設定を追加します。 + +``` +this.route('guid-node', { path: '--node/:guid' }, function() { + this.mount('analytics-page', { as: 'analytics' }); + this.route('forks'); + this.route('iqbrims'); + this.route('myscreen'); // 追加 + this.route('registrations'); + this.route('drafts', { path: '/drafts/:draftId' }, function() { + this.route('register'); + }); +}); +``` + +変更例は、サンプル [router.ts](ember-osf-web/app/router.ts) を参照してください。 + +#### ナビゲーションバー定義の変更 + +ember-osf-webが提供するViewから見えるプロジェクトのナビゲーションバーで、画面タブのリンクを表示するために、テンプレートファイル [lib/osf-components/addon/components/node-navbar/template.hbs](https://github.com/RCOSDP/RDM-ember-osf-web/blob/develop/lib/osf-components/addon/components/node-navbar/template.hbs) にコードを追加します。 + +``` +{{#if this.myscreenEnabled }} + {{node-navbar/link node=@node useLinkTo=false destination='myscreen'}} +{{/if}} +``` + +RDMでMy Screenアドオンが有効でないときはリンクを表示しないようにするために、コンポーネント定義ファイル [lib/osf-components/addon/components/node-navbar/component.ts](https://github.com/RCOSDP/RDM-ember-osf-web/blob/develop/lib/osf-components/addon/components/node-navbar/component.ts) に `myscreenEnabled` プロパティを追加します。 + +``` +@computed('node.addons.[]') +get myscreenEnabled(): Promise | null { + if (!this.node) { + return null; + } + const node = this.node; + return (async () => { + const addons = await node.addons; + if (!addons) { + return false; + } + const myscreen = addons.filter(addon => addon.id === 'myscreen'); + return myscreen.length > 0; + })(); +} +``` + +ナビゲーションバーのテスト [tests/integration/components/node-navbar/component-test.ts](https://github.com/RCOSDP/RDM-ember-osf-web/blob/develop/tests/integration/components/node-navbar/component-test.ts) も修正します。 + +それぞれの変更例は、サンプル [template.hbs](ember-osf-web/lib/osf-components/addon/components/node-navbar/template.hbs) 、 [component.ts](ember-osf-web/lib/osf-components/addon/components/node-navbar/component.ts) 、 [component-test.ts](ember-osf-web/tests/integration/components/node-navbar/component-test.ts) を参照してください。 + +#### 国際化ファイルの変更 + +[translations/en-us.yml](https://github.com/RCOSDP/RDM-ember-osf-web/blob/develop/translations/en-us.yml) に、My Screenアドオンの画面タブで表示する文字列の国際化設定を追加します。 + +``` +myscreen: + page_title: '{nodeTitle} My Screen' + header: 'My Screen' + loading: 'Loading My Screen config...' + param1: 'Param 1' + save_button: 'Save' + failed_to_submit: 'Failed to save' + placeholders: + param1: 'anything' +``` + +変更例は、サンプル [en-us.yml](ember-osf-web/translations/en-us.yml) を参照してください。 + +#### Mirage定義の変更 + +追加したMirageコードを利用してAPIをモックするように、 [mirage/config.ts](https://github.com/RCOSDP/RDM-ember-osf-web/blob/develop/mirage/config.ts) に以下を追加します。 + +``` +this.get('/project/:id/myscreen/config', myscreenConfig); +``` + +変更例は、サンプル [config.ts](ember-osf-web/mirage/config.ts) を参照してください。 + +### docker-compose.override.yml の追加 + +変更したコードを使うように、RDMの `docker-compose.override.yml` で osf-ember-web サービスの `volumes` を指定します。 + +例えば、以下のようなディレクトリ階層の場合は、 + +``` +. +├── RDM-osf.io +│   ├── docker-compose.override.yml +│   └── docker-compose.yml +└── RDM-ember-osf-web +``` + +`RDM-osf.io/docker-compose.override.yml` の内容を以下のようにします。 + +``` +version: "3.4" + +services: + ember_osf_web: + volumes: + - ../RDM-ember-osf-web:/code +``` + +### 画面タブのテスト + +以下のコマンドで、ember-osf-webに追加したMy Screen 画面タブのテストを実行できます。 + +コントローラの単体テスト: + +``` +$ docker-compose run --rm ember_osf_web yarn test --module 'Unit | Controller | guid-node/myscreen' +``` + +ナビゲーションバーの結合テスト: + +``` +$ docker-compose run --rm ember_osf_web yarn test --module 'Integration | Component | node-navbar' +``` + +画面タブの受け入れテスト: + +``` +$ docker-compose run --rm ember_osf_web yarn test --module 'Acceptance | guid-node/myscreen' +``` + +ファイルを指定してlintを実行するのは、以下のコマンドを実行します。 + +``` +$ docker-compose run --rm ember_osf_web node_modules/.bin/eslint --ext js,ts --max-warnings=0 'app/guid-node/myscreen' 'app/**/myscreen-config.ts' 'app/router.ts' 'lib/osf-components/addon/components/node-navbar/component.ts' 'tests/integration/components/node-navbar/component-test.ts' 'mirage/config.ts' +$ docker-compose run --rm ember_osf_web node_modules/.bin/tslint -p . 'app/guid-node/myscreen/**/*.ts' 'app/**/myscreen-config.ts' 'app/router.ts' 'lib/osf-components/addon/components/node-navbar/component.ts' 'tests/integration/components/node-navbar/component-test.ts' 'mirage/config.ts' +$ docker-compose run --rm ember_osf_web node_modules/.bin/stylelint 'app/guid-node/myscreen/**/*.scss' +$ docker-compose run --rm ember_osf_web node_modules/.bin/ember-template-lint 'app/guid-node/myscreen/**/*.hbs' 'lib/osf-components/addon/components/node-navbar/template.hbs' +``` + + +# My Screenアドオンの動作確認 + +My Screenアドオンの動作確認をしてみましょう。 + +## DBマイグレーション + +マイグレーションを実行し、Migrations定義をPostgreSQLサービスに反映します。 + +``` +$ docker-compose run --rm web python3 manage.py migrate +``` + +## 国際化のコンパイル + +`.mako` ファイルの国際化設定を適用するために、国際化ファイルをコンパイルします。 + +``` +$ docker-compose run --rm web pybabel compile -d ./website/translations +``` + +> `.js` ファイルの国際化設定は、 `assets` サービスの再起動時に適用されます。 + +## サービスの再起動 + +変更したファイルに関連するサービスを再起動します。 + +``` +$ docker-compose restart assets web api ember_osf_web +``` + +これでサービスへの反映は完了です。 + +## ストレージアドオンを試す + +My Screenアドオンの有効化手順は、スケルトン アドオンと同様です。 +My Screenアドオンを有効化すると、プロジェクトダッシュボードにウィジェットが表示され、ナビゲーションバーに画面タブのリンクが表示されます。 + +![Project Dashboard](images/project_dashboard.png) + +画面タブのリンクをクリックすると、画面タブのページを表示できます。 + +![Addon Tab](images/addon_tab.png) + +ここで設定した `param_1` プロパティの値が、ウィジェットに表示されます。 + +以上でMy Screenアドオンの動作確認は完了です! diff --git a/ScreenExpansion/ember-osf-web/app/adapters/myscreen-config.ts b/ScreenExpansion/ember-osf-web/app/adapters/myscreen-config.ts new file mode 100644 index 0000000..a43c253 --- /dev/null +++ b/ScreenExpansion/ember-osf-web/app/adapters/myscreen-config.ts @@ -0,0 +1,33 @@ +import DS from 'ember-data'; +import config from 'ember-get-config'; +import OsfAdapter from './osf-adapter'; + +const { + OSF: { + url: host, + webApiNamespace: namespace, + }, +} = config; + +export default class MyScreenConfigAdapter extends OsfAdapter { + host = host.replace(/\/+$/, ''); + namespace = namespace; + + buildURL( + _: string | undefined, + id: string | null, + __: DS.Snapshot | null, + ___: string, + ____?: {}, + ): string { + const nodeUrl = super.buildURL('node', null, null, 'findRecord', {}); + const url = nodeUrl.replace(/\/nodes\/$/, '/project/'); + return `${url}${id}/myscreen/config`; + } +} + +declare module 'ember-data/types/registries/adapter' { + export default interface AdapterRegistry { + 'myscreen-config': MyScreenConfigAdapter; + } // eslint-disable-line semi +} diff --git a/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/controller.ts b/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/controller.ts new file mode 100644 index 0000000..571a71a --- /dev/null +++ b/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/controller.ts @@ -0,0 +1,91 @@ +import Controller from '@ember/controller'; +import EmberError from '@ember/error'; +import { action, computed } from '@ember/object'; +import { reads } from '@ember/object/computed'; +import { inject as service } from '@ember/service'; + +import DS from 'ember-data'; + +import Intl from 'ember-intl/services/intl'; +import MyScreenConfigModel from 'ember-osf-web/models/myscreen-config'; +import Node from 'ember-osf-web/models/node'; +import Analytics from 'ember-osf-web/services/analytics'; +import StatusMessages from 'ember-osf-web/services/status-messages'; +import Toast from 'ember-toastr/services/toast'; + +export default class GuidNodeMyScreen extends Controller { + @service toast!: Toast; + @service intl!: Intl; + @service statusMessages!: StatusMessages; + @service analytics!: Analytics; + + @reads('model.taskInstance.value') + node?: Node; + + isPageDirty = false; + + configCache?: DS.PromiseObject; + + @computed('config.isFulfilled') + get loading(): boolean { + return !this.config || !this.config.get('isFulfilled'); + } + + @action + save(this: GuidNodeMyScreen) { + if (!this.config) { + throw new EmberError('Illegal config'); + } + const config = this.config.content as MyScreenConfigModel; + + config.save() + .then(() => { + this.set('isPageDirty', false); + }) + .catch(() => { + this.saveError(config); + }); + } + + saveError(config: MyScreenConfigModel) { + config.rollbackAttributes(); + const message = this.intl.t('myscreen.failed_to_save'); + this.toast.error(message); + } + + @computed('config.param1') + get param1() { + if (!this.config || !this.config.get('isFulfilled')) { + return ''; + } + const config = this.config.content as MyScreenConfigModel; + return config.param1; + } + + set param1(v: string) { + if (!this.config) { + throw new EmberError('Illegal config'); + } + const config = this.config.content as MyScreenConfigModel; + config.set('param1', v); + this.set('isPageDirty', true); + } + + @computed('node') + get config(): DS.PromiseObject | undefined { + if (this.configCache) { + return this.configCache; + } + if (!this.node) { + return undefined; + } + this.configCache = this.store.findRecord('myscreen-config', this.node.id); + return this.configCache!; + } +} + +declare module '@ember/controller' { + interface Registry { + 'guid-node/myscreen': GuidNodeMyScreen; + } +} diff --git a/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/route.ts b/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/route.ts new file mode 100644 index 0000000..4661345 --- /dev/null +++ b/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/route.ts @@ -0,0 +1,33 @@ +import { action, computed } from '@ember/object'; +import Route from '@ember/routing/route'; +import { inject as service } from '@ember/service'; +import ConfirmationMixin from 'ember-onbeforeunload/mixins/confirmation'; + +import GuidNodeMyScreen from 'ember-osf-web/guid-node/myscreen/controller'; +import Node from 'ember-osf-web/models/node'; +import { GuidRouteModel } from 'ember-osf-web/resolve-guid/guid-route'; +import Analytics from 'ember-osf-web/services/analytics'; + +export default class GuidNodeMyScreenRoute extends Route.extend(ConfirmationMixin, {}) { + @service analytics!: Analytics; + + model(this: GuidNodeMyScreenRoute) { + return this.modelFor('guid-node'); + } + + @action + async didTransition() { + const { taskInstance } = this.controller.model as GuidRouteModel; + await taskInstance; + const node = taskInstance.value; + + this.analytics.trackPage(node ? node.public : undefined, 'nodes'); + } + + // This tells ember-onbeforeunload's ConfirmationMixin whether or not to stop transitions + @computed('controller.isPageDirty') + get isPageDirty() { + const controller = this.controller as GuidNodeMyScreen; + return () => controller.isPageDirty; + } +} diff --git a/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/styles.scss b/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/styles.scss new file mode 100644 index 0000000..2eadd3a --- /dev/null +++ b/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/styles.scss @@ -0,0 +1,15 @@ +@media screen and (max-width: 768px) { + .MyScreen { + margin: 0; + padding: 0; + } +} + +.MyScreen__header { + margin-bottom: 0.5em; +} + +.MyScreen__buttons { + margin-top: 1em; + margin-bottom: 2em; +} diff --git a/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/template.hbs b/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/template.hbs new file mode 100644 index 0000000..95d0d9c --- /dev/null +++ b/ScreenExpansion/ember-osf-web/app/guid-node/myscreen/template.hbs @@ -0,0 +1,30 @@ +{{! using unsafeTitle here to avoid double encoding because the title helper does its own }} +{{title (t 'myscreen.page_title' nodeTitle=this.model.taskInstance.value.unsafeTitle)}} +
    + {{#if this.loading}} + {{t 'myscreen.loading'}} + {{else}} +
    +

    {{t 'myscreen.header'}}

    +
    + +
    + {{input + name='param1' + placeholder=(t 'myscreen.placeholders.param1') + class='form-control' + value=this.param1 + type='text' + }} +
    +
    +
    + + {{t 'myscreen.save_button'}} + +
    +
    + {{/if}} +
    diff --git a/ScreenExpansion/ember-osf-web/app/models/myscreen-config.ts b/ScreenExpansion/ember-osf-web/app/models/myscreen-config.ts new file mode 100644 index 0000000..5065acc --- /dev/null +++ b/ScreenExpansion/ember-osf-web/app/models/myscreen-config.ts @@ -0,0 +1,14 @@ +import DS from 'ember-data'; +import OsfModel from './osf-model'; + +const { attr } = DS; + +export default class MyScreenConfigModel extends OsfModel { + @attr('string') param1!: string; +} + +declare module 'ember-data/types/registries/model' { + export default interface ModelRegistry { + 'myscreen-config': MyScreenConfigModel; + } // eslint-disable-line semi +} diff --git a/ScreenExpansion/ember-osf-web/app/router.ts b/ScreenExpansion/ember-osf-web/app/router.ts new file mode 100644 index 0000000..aa5d925 --- /dev/null +++ b/ScreenExpansion/ember-osf-web/app/router.ts @@ -0,0 +1,186 @@ +import { getOwner } from '@ember/application'; +import Transition from '@ember/routing/-private/transition'; +import EmberRouter from '@ember/routing/router'; +import { inject as service } from '@ember/service'; +import Ember from 'ember'; +import config from 'ember-get-config'; + +import { Blocker } from 'ember-osf-web/services/ready'; +import scrollTo from 'ember-osf-web/utils/scroll-to'; +import transitionTargetURL from 'ember-osf-web/utils/transition-target-url'; + +const { + engines: { + collections, + handbook, + registries, + }, + featureFlagNames: { + routes: routeFlags, + }, +} = config; + +const Router = EmberRouter.extend({ + currentUser: service('current-user'), + features: service('features'), + statusMessages: service('status-messages'), + ready: service('ready'), + + // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects + readyBlocker: null as Blocker | null, + location: config.locationType, + rootURL: config.rootURL, + shouldScrollTop: true, + + willTransition(oldInfo: any, newInfo: any, transition: { targetName: string }) { + if (!this.readyBlocker || this.readyBlocker.isDone()) { + this.readyBlocker = this.get('ready').getBlocker(); + } + + this._super(oldInfo, newInfo, transition); + }, + + didTransition(...args: any[]) { + this._super(...args); + + this.get('currentUser').checkShowTosConsentBanner(); + this.get('statusMessages').updateMessages(); + + if (this.shouldScrollTop) { + scrollTo(getOwner(this), 0); + } + + if (this.readyBlocker && !this.readyBlocker.isDone()) { + this.readyBlocker.done(); + } + }, + + _doTransition(...args: any[]) { + const transition = this._super(...args); + return this._beforeTransition(transition); + }, + + _doURLTransition(...args: any[]) { + const transition = this._super(...args); + return this._beforeTransition(transition); + }, + + _beforeTransition(transition: Transition) { + // Don't snap the page to the top if it's just a query param change + // IE registries, preprints, collections, etc + // There doesn't appear to be a good way to access the transition + // inside of didTransition, so the state is just plucked here for future reference. + this.shouldScrollTop = !transition.queryParamsOnly; + + const isInitialTransition = transition.sequence === 0; + if (!isInitialTransition) { + const flag = routeFlags[transition.targetName]; + if (flag && !this.get('features').isEnabled(flag)) { + if (!Ember.testing) { + try { + window.location.assign(transitionTargetURL(transition)); + } catch (e) { + window.location.reload(); + } + } + transition.abort(); + } + } + return transition; + }, +}); + +/* eslint-disable array-callback-return */ + +Router.map(function() { + // All non-guid routes (except error routes) belong above "Guid Routing" + this.route('home', { path: '/' }); + this.route('dashboard'); + this.route('goodbye'); + this.route('institutions', function() { + this.route('dashboard', { path: '/:institution_id/dashboard' }); + }); + this.route('quickfiles'); + this.route('register'); + this.route('settings', function() { + this.route('profile', function() { + this.route('education'); + this.route('employment'); + this.route('name'); + this.route('social'); + }); + this.route('developer-apps', { path: '/applications' }, function() { + this.route('edit', { path: '/:developer_app_id' }); + this.route('create'); + }); + this.route('account'); + this.route('tokens', function() { + this.route('edit', { path: '/:token_id' }); + this.route('create'); + }); + }); + this.route('support'); + this.route('meetings', function() { + this.route('detail', { path: '/:meeting_id' }); + }); + + if (collections.enabled) { + this.mount('collections'); + } + + if (handbook.enabled) { + this.mount('handbook'); + } + + if (registries.enabled) { + this.mount('registries', { path: '--registries' }); + } + + this.route('guid-file', { path: '--file/:guid' }); + + this.route('guid-node', { path: '--node/:guid' }, function() { + this.mount('analytics-page', { as: 'analytics' }); + this.route('forks'); + this.route('iqbrims'); + this.route('myscreen'); + this.route('registrations'); + this.route('drafts', { path: '/drafts/:draftId' }, function() { + this.route('register'); + }); + }); + + this.route('guid-preprint', { path: '--preprint/:guid' }); + + this.route('guid-registration', { path: '--registration/:guid' }, function() { + this.mount('analytics-page', { as: 'analytics' }); + this.route('forks'); + }); + + this.route('guid-user', { path: '--user/:guid' }, function() { + this.route('quickfiles'); + }); + + /* + * Guid Routing + * + * Root guid URLs (e.g. "/mst3k/") will match the `resolve-guid` route, which + * will ask the API what type of object the guid refers to, then transition + * to the appropriate route based off the `routeMap` property. + * + * Routes that handle guid objects should prefix their routes with the type + * it handles prefixed with `--` (e.g. "--user/:user_guid") + * The GuidLocation implementation will remove URL segments prefixed with `--` + * resulting in clean guid URLs while still respecting Ember's routing semantics. + */ + this.route('resolve-guid', { path: ':guid' }, function() { + this.route('subpath', { path: '*path' }); + }); + + // Error routes + this.route('error-no-api', { path: '*no_api_path' }); + this.route('not-found', { path: '*path' }); +}); + +/* eslint-enable array-callback-return */ + +export default Router; diff --git a/ScreenExpansion/ember-osf-web/app/serializers/myscreen-config.ts b/ScreenExpansion/ember-osf-web/app/serializers/myscreen-config.ts new file mode 100644 index 0000000..bddcfc4 --- /dev/null +++ b/ScreenExpansion/ember-osf-web/app/serializers/myscreen-config.ts @@ -0,0 +1,10 @@ +import OsfSerializer from './osf-serializer'; + +export default class MyScreenConfigSerializer extends OsfSerializer { +} + +declare module 'ember-data/types/registries/serializer' { + export default interface SerializerRegistry { + 'myscreen-config': MyScreenConfigSerializer; + } // eslint-disable-line semi +} diff --git a/ScreenExpansion/ember-osf-web/lib/osf-components/addon/components/node-navbar/component.ts b/ScreenExpansion/ember-osf-web/lib/osf-components/addon/components/node-navbar/component.ts new file mode 100644 index 0000000..c0b5744 --- /dev/null +++ b/ScreenExpansion/ember-osf-web/lib/osf-components/addon/components/node-navbar/component.ts @@ -0,0 +1,76 @@ +import Component from '@ember/component'; +import { action, computed } from '@ember/object'; +import config from 'ember-get-config'; + +import { layout } from 'ember-osf-web/decorators/component'; +import Node from 'ember-osf-web/models/node'; + +import styles from './styles'; +import template from './template'; + +export type NodeLike = Pick; + +@layout(template, styles) +export default class NodeNavbar extends Component { + // Optional parameters + node?: Node; + allowComments?: boolean; + renderInPlace?: boolean; + + // Private properties + secondaryNavbarId = config.secondaryNavbarId; + collapsedNav = true; + + @computed('node') + get fakeParent(): NodeLike | null { + if (this.node) { + const id = this.node.belongsTo('parent').id(); + if (id) { + return { + id, + // The parent of a registration is always a registration. When a component + // is registered without its parent, the registration is its own root. + isRegistration: this.node.isRegistration, + }; + } + } + return null; + } + + @computed('node.addons.[]') + get iqbrimsEnabled(): Promise | null { + if (!this.node) { + return null; + } + const { node } = this; + return (async () => { + const addons = await node.addons; + if (!addons) { + return false; + } + const iqbrims = addons.filter(addon => addon.id === 'iqbrims'); + return iqbrims.length > 0; + })(); + } + + @computed('node.addons.[]') + get myscreenEnabled(): Promise | null { + if (!this.node) { + return null; + } + const { node } = this; + return (async () => { + const addons = await node.addons; + if (!addons) { + return false; + } + const myscreen = addons.filter(addon => addon.id === 'myscreen'); + return myscreen.length > 0; + })(); + } + + @action + toggleNav() { + this.toggleProperty('collapsedNav'); + } +} diff --git a/ScreenExpansion/ember-osf-web/lib/osf-components/addon/components/node-navbar/template.hbs b/ScreenExpansion/ember-osf-web/lib/osf-components/addon/components/node-navbar/template.hbs new file mode 100644 index 0000000..c6d1528 --- /dev/null +++ b/ScreenExpansion/ember-osf-web/lib/osf-components/addon/components/node-navbar/template.hbs @@ -0,0 +1,68 @@ +{{#if @node}} + + +
    +
    +{{/if}} diff --git a/ScreenExpansion/ember-osf-web/mirage/config.ts b/ScreenExpansion/ember-osf-web/mirage/config.ts new file mode 100644 index 0000000..4ba65b1 --- /dev/null +++ b/ScreenExpansion/ember-osf-web/mirage/config.ts @@ -0,0 +1,261 @@ +import { Server } from 'ember-cli-mirage'; +import config from 'ember-get-config'; + +import { getCitation } from './views/citation'; +import { searchCollections } from './views/collection-search'; +import { reportDelete } from './views/comment'; +import { createBibliographicContributor } from './views/contributor'; +import { createDeveloperApp, updateDeveloperApp } from './views/developer-app'; +import { createDraftRegistration } from './views/draft-registration'; +import { + folderFilesList, + nodeFileProviderList, + nodeFilesListForProvider, + uploadToFolder, + uploadToRoot, +} from './views/file'; +import { createFork, createRegistrationFork } from './views/fork'; +import { guidDetail } from './views/guid'; +import { identifierCreate } from './views/identifier'; +import { summaryMetrics } from './views/institution'; +import { iqbrimsStatus } from './views/iqbrims-status'; +import { myscreenConfig } from './views/myscreen-config'; +import { createNode } from './views/node'; +import { osfNestedResource, osfResource, osfToManyRelationship } from './views/osf-resource'; +import { getProviderSubjects } from './views/provider-subjects'; +import { createRegistration, forkRegistration, registrationDetail } from './views/registration'; +import { rootDetail } from './views/root'; +import { createToken } from './views/token'; +import { createEmails, updateEmails } from './views/update-email'; +import { userNodeList } from './views/user'; +import { updatePassword } from './views/user-password'; +import * as userSettings from './views/user-setting'; +import * as wb from './views/wb'; + +const { OSF: { apiUrl, url } } = config; + +export default function(this: Server) { + this.passthrough(); // pass through all requests on currrent domain + + this.urlPrefix = apiUrl; + this.namespace = '/v2'; + + this.get('/', rootDetail); + + osfResource(this, 'developer-app', { path: 'applications', except: ['create', 'update'] }); + this.post('/applications', createDeveloperApp); + this.patch('/applications/:id', updateDeveloperApp); + + osfResource(this, 'file', { only: ['show', 'update'] }); + + this.get('/guids/:id', guidDetail); + + osfResource(this, 'institution', { only: ['index', 'show'], defaultPageSize: 1000 }); + osfNestedResource(this, 'institution', 'users', { + only: ['index'], + path: '/institutions/:parentID/users', + }); + osfNestedResource(this, 'institution', 'userMetrics', { + only: ['index'], + path: '/institutions/:parentID/metrics/users', + }); + osfNestedResource(this, 'institution', 'departmentMetrics', { + only: ['index'], + path: '/institutions/:parentID/metrics/departments', + }); + this.get('/institutions/:id/metrics/summary', summaryMetrics); + + osfResource(this, 'license', { only: ['index', 'show'] }); + osfResource(this, 'citation-style', { + only: ['index'], + path: '/citations/styles', + }); + + osfResource(this, 'node', { except: ['create'] }); + this.post('/nodes/', createNode); + osfResource(this, 'subject', { only: ['show'] }); + osfNestedResource(this, 'subject', 'children', { only: ['index'] }); + osfNestedResource(this, 'node', 'children'); + osfNestedResource(this, 'node', 'contributors', { + defaultSortKey: 'index', + onCreate: createBibliographicContributor, + }); + + this.get('/nodes/:parentID/files', nodeFileProviderList); // Node file providers list + this.get('/nodes/:parentID/files/:fileProviderId', nodeFilesListForProvider); // Node files list for file provider + this.get('/nodes/:parentID/files/:fileProviderId/:folderId', folderFilesList); // Node folder detail view + this.put('/nodes/:parentID/files/:fileProviderId/upload', uploadToRoot); // Upload to file provider + + osfNestedResource(this, 'node', 'bibliographicContributors', { + only: ['index'], + relatedModelName: 'contributor', + defaultSortKey: 'index', + }); + osfNestedResource(this, 'node', 'forks', { only: ['index'] }); + this.post('/nodes/:id/forks', createFork); + osfNestedResource(this, 'node', 'linkedNodes', { only: ['index'] }); + osfNestedResource(this, 'node', 'linkedRegistrations', { only: ['index'] }); + osfNestedResource(this, 'node', 'registrations', { only: ['index'] }); + this.post('/nodes/:id/registrations', createRegistration); + osfNestedResource(this, 'node', 'draftRegistrations', { only: ['index'] }); + this.post('/nodes/:guid/draft_registrations', createDraftRegistration); + osfNestedResource(this, 'node', 'identifiers', { only: ['index'] }); + osfToManyRelationship(this, 'node', 'affiliatedInstitutions', { + only: ['related', 'add', 'remove'], + path: '/nodes/:parentID/relationships/institutions', + }); + osfNestedResource(this, 'node', 'addons', { only: ['index'] }); + + osfToManyRelationship(this, 'node', 'subjects', { + only: ['related', 'self'], + }); + + osfResource(this, 'draft-registration', { + only: ['index', 'show', 'update'], + path: '/draft_registrations', + }); + osfToManyRelationship(this, 'draft-registration', 'subjects'); + osfToManyRelationship(this, 'draft-registration', 'affiliatedInstitutions', { + only: ['related', 'update', 'add', 'remove'], + path: '/draft_registrations/:parentID/relationships/institutions', + }); + osfNestedResource(this, 'draft-registration', 'contributors', { + defaultSortKey: 'index', + }); + + osfResource(this, 'registration', { except: ['show', 'create'] }); + this.post('/registrations', createRegistration); + this.get('/registrations/:id', registrationDetail); + osfNestedResource(this, 'registration', 'children'); + osfNestedResource(this, 'registration', 'forks', { except: ['create'] }); + this.post('/registrations/:id/forks', forkRegistration); + + osfNestedResource(this, 'registration', 'contributors', { defaultSortKey: 'index' }); + osfNestedResource(this, 'registration', 'bibliographicContributors', { + only: ['index'], + relatedModelName: 'contributor', + defaultSortKey: 'index', + }); + osfNestedResource(this, 'registration', 'forks', { only: ['index'] }); + this.post('/registrations/:id/forks', createRegistrationFork); + osfNestedResource(this, 'registration', 'linkedNodes', { only: ['index'] }); + osfNestedResource(this, 'registration', 'linkedRegistrations', { only: ['index'] }); + osfToManyRelationship(this, 'registration', 'affiliatedInstitutions', { + only: ['related', 'update', 'add', 'remove'], + path: '/registrations/:parentID/relationships/institutions', + }); + osfNestedResource(this, 'registration', 'identifiers', { only: ['index'] }); + this.post('/registrations/:parentID/identifiers/', identifierCreate); + osfNestedResource(this, 'registration', 'comments', { only: ['index'] }); + this.get('/registrations/:guid/citation/:citationStyleID', getCitation); + osfToManyRelationship(this, 'registration', 'subjects', { + only: ['related', 'self'], + }); + osfResource(this, 'subject', { only: ['show'] }); + + osfNestedResource(this, 'comment', 'reports', { + except: ['delete'], + path: '/comments/:parentID/reports', + relatedModelName: 'comment-report', + }); + this.del('/comments/:id/reports/:reporter_id', reportDelete); + + osfResource(this, 'registration-schema', { path: '/schemas/registrations' }); + osfNestedResource(this, 'registration-schema', 'schemaBlocks', { + path: '/schemas/registrations/:parentID/schema_blocks', + defaultSortKey: 'index', + defaultPageSize: 1000, + }); + + osfResource(this, 'collection'); + osfToManyRelationship(this, 'collection', 'linkedRegistrations', { + only: ['related', 'add', 'remove'], + }); + + osfResource(this, 'scope', { only: ['index', 'show'] }); + osfResource(this, 'region', { only: ['index', 'show'] }); + + this.get('/status', () => ({ meta: { version: '2.8' }, maintenance: null })); + + osfResource(this, 'token', { except: ['create'] }); + this.post('/tokens', createToken); + + osfResource(this, 'user', { except: ['create', 'delete'] }); + osfNestedResource(this, 'user', 'institutions', { only: ['index'] }); + this.get('/users/:id/settings', userSettings.getUserSetting); + this.patch('/users/:parentID/settings', userSettings.updateUserSetting); + osfNestedResource(this, 'user', 'emails', { + except: ['update', 'create'], + path: '/users/:parentID/settings/emails', + relatedModelName: 'user-email', + }); + this.patch('/users/:parentID/settings/emails/:emailID/', updateEmails); + this.post('/users/:parentID/settings/emails/', createEmails); + this.post('/users/:id/settings/export', userSettings.requestExport); + this.post('/users/:parentID/settings/password/', updatePassword); + + osfResource(this, 'external-identity', { + path: '/users/me/settings/identities', + only: ['index', 'delete'], + }); + + this.get('/users/:id/nodes', userNodeList); + this.get('/sparse/users/:id/nodes', userNodeList); + + osfNestedResource(this, 'user', 'quickfiles', { only: ['index', 'show'] }); + + osfResource(this, 'preprint-provider', { path: '/providers/preprints' }); + osfResource(this, 'registration-provider', { path: '/providers/registrations' }); + osfNestedResource(this, 'registration-provider', 'licensesAcceptable', { + only: ['index'], + path: '/providers/registrations/:parentID/licenses/', + relatedModelName: 'license', + }); + this.get('/providers/registrations/:parentID/subjects/', getProviderSubjects); + + osfResource(this, 'collection-provider', { path: '/providers/collections' }); + osfNestedResource(this, 'collection-provider', 'licensesAcceptable', { + path: 'providers/collections/:parentID/licenses/', + }); + osfNestedResource(this, 'collection', 'collectedMetadata', { + path: 'collections/:parentID/collected_metadata/', + }); + this.post('/search/collections/', searchCollections); + + // Waterbutler namespace + this.namespace = '/wb'; + this.post('/files/:id/move', wb.moveFile); + this.post('/files/:id/upload', wb.renameFile); + this.put('/files/:id/upload', uploadToFolder); + this.del('/files/:id/delete', wb.deleteFile); + this.get('/files/:id/download', wb.fileVersions); + + // Private namespace + this.namespace = '/_'; + + this.get('/banners/current/', () => ({ + data: { + attributes: { + }, + type: 'banners', + id: '', + }, + })); + + osfResource(this, 'meeting', { only: ['index', 'show'] }); + osfToManyRelationship(this, 'meeting', 'submissions', { + only: ['related'], + path: '/meetings/:parentID/submissions/', + }); + + // Endpoint on web pod + const apiNamespace = this.namespace; + this.urlPrefix = url; + this.namespace = '/api/v1'; + + this.get('/project/:id/iqbrims/status', iqbrimsStatus); + this.get('/project/:id/myscreen/config', myscreenConfig); + + this.urlPrefix = apiUrl; + this.namespace = apiNamespace; +} diff --git a/ScreenExpansion/ember-osf-web/mirage/factories/myscreen-config.ts b/ScreenExpansion/ember-osf-web/mirage/factories/myscreen-config.ts new file mode 100644 index 0000000..7cd77db --- /dev/null +++ b/ScreenExpansion/ember-osf-web/mirage/factories/myscreen-config.ts @@ -0,0 +1,12 @@ +import { Factory } from 'ember-cli-mirage'; + +import MyScreenConfigModel from 'ember-osf-web/models/iqbrims-status'; + +export default Factory.extend({ +}); + +declare module 'ember-cli-mirage/types/registries/schema' { + export default interface MirageSchemaRegistry { + myscreenConfigs: MyScreenConfigModel; + } // eslint-disable-line semi +} diff --git a/ScreenExpansion/ember-osf-web/mirage/views/myscreen-config.ts b/ScreenExpansion/ember-osf-web/mirage/views/myscreen-config.ts new file mode 100644 index 0000000..bf4cc7f --- /dev/null +++ b/ScreenExpansion/ember-osf-web/mirage/views/myscreen-config.ts @@ -0,0 +1,7 @@ +import { HandlerContext, Schema } from 'ember-cli-mirage'; + +export function myscreenConfig(this: HandlerContext, schema: Schema) { + const model = schema.myscreenConfigs.first(); + const json = this.serialize(model); + return json; +} diff --git a/ScreenExpansion/ember-osf-web/tests/acceptance/guid-node/myscreen-test.ts b/ScreenExpansion/ember-osf-web/tests/acceptance/guid-node/myscreen-test.ts new file mode 100644 index 0000000..165ba90 --- /dev/null +++ b/ScreenExpansion/ember-osf-web/tests/acceptance/guid-node/myscreen-test.ts @@ -0,0 +1,25 @@ +import { currentRouteName } from '@ember/test-helpers'; +import setupMirage from 'ember-cli-mirage/test-support/setup-mirage'; +import { percySnapshot } from 'ember-percy'; +import { module, test } from 'qunit'; + +import { currentURL, setupOSFApplicationTest, visit } from 'ember-osf-web/tests/helpers'; + +module('Acceptance | guid-node/myscreen', hooks => { + setupOSFApplicationTest(hooks); + setupMirage(hooks); + + test('logged in', async assert => { + const node = server.create('node', { id: 'i9bri' }); + server.create('myscreen-config', { id: node.id, param1: '123' }); + const url = `/${node.id}/myscreen`; + + await visit(url); + assert.equal(currentURL(), url, `We are on ${url}`); + assert.equal(currentRouteName(), 'guid-node.myscreen', 'We are at guid-node.myscreen'); + await percySnapshot(assert); + assert.dom('[data-test-param1] input').exists() + .hasValue('123'); + assert.dom('[data-test-save-button]').exists(); + }); +}); diff --git a/ScreenExpansion/ember-osf-web/tests/integration/components/node-navbar/component-test.ts b/ScreenExpansion/ember-osf-web/tests/integration/components/node-navbar/component-test.ts new file mode 100644 index 0000000..e717dcc --- /dev/null +++ b/ScreenExpansion/ember-osf-web/tests/integration/components/node-navbar/component-test.ts @@ -0,0 +1,335 @@ +import { render } from '@ember/test-helpers'; +import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import faker from 'faker'; +import { module, test } from 'qunit'; + +import { OsfLinkRouterStub } from '../../helpers/osf-link-router-stub'; + +enum NavCondition { + HasParent, + IQBRIMSEnabled, + MyScreenEnabled, + IsRegistration = 'isRegistration', + IsPublic = 'public', + UserCanRead = 'userHasReadPermission', + UserCanWrite = 'userHasWritePermission', + UserIsContributor = 'currentUserIsContributor', + WikiEnabled = 'wikiEnabled', +} + +enum NavLink { + ParentNode, + ThisNode, + Files = 'files', + IQBRIMS = 'iqbrims', + MyScreen = 'myscreen', + Wiki = 'wiki', + Analytics = 'analytics', + Registrations = 'registrations', + Contributors = 'contributors', + Addons = 'addons', + Settings = 'settings', +} + +interface NavTestCase { + conditions: NavCondition[]; + links: NavLink[]; +} + +export class FakeNode { + id: string = faker.random.uuid(); + title: string = faker.lorem.sentence(); + public: boolean = false; + isRegistration: boolean = false; + wikiEnabled: boolean = false; + currentUserIsContributor: boolean = false; + userHasWritePermission: boolean = false; + userHasReadPermission: boolean = false; + parentId: string | null = null; + links = { + html: 'http://localhost:4200/fak3d', + }; + + constructor(conditions: NavCondition[] = []) { + for (const condition of conditions) { + if (condition === NavCondition.HasParent) { + this.parentId = faker.random.uuid(); + } else if (condition !== NavCondition.IQBRIMSEnabled && condition !== NavCondition.MyScreenEnabled) { + this[condition] = true; + } + } + } + + belongsTo() { + return { id: () => this.parentId }; + } +} + +module('Integration | Component | node-navbar', () => { + module('basic rendering', hooks => { + setupRenderingTest(hooks); + + test('it renders', async function(assert) { + this.owner.register('service:router', OsfLinkRouterStub); + + this.set('node', new FakeNode()); + await render(hbs`{{node-navbar node=this.node renderInPlace=true}}`); + + assert.ok((this.element.textContent as string).trim()); + }); + + test('it renders active tab when in proper route', async function(assert) { + const routerStub = OsfLinkRouterStub.extend({ + isActive(routeName: string) { + return routeName.includes('guid-node.wiki'); + }, + }); + this.owner.register('service:router', routerStub); + + this.set('node', new FakeNode([NavCondition.WikiEnabled])); + await render(hbs`{{node-navbar node=this.node renderInPlace=true}}`); + + assert.dom('[data-test-node-navbar-link]').exists(); + const assertActiveLink = assert.dom('[data-test-node-navbar-links] .active'); + assertActiveLink.exists({ count: 1 }); + assertActiveLink.containsText('Wiki'); + }); + + test('it renders no active tabs', async function(assert) { + const routerStub = OsfLinkRouterStub.extend({ + isActive(routeName: string) { + return routeName.includes('guid-node.forks'); + }, + }); + this.owner.register('service:router', routerStub); + + this.set('node', new FakeNode()); + await render(hbs`{{node-navbar node=this.node renderInPlace=true}}`); + + assert.dom('[data-test-node-navbar-links] .active').doesNotExist(); + }); + }); + + module('renders the correct links', hooks => { + setupRenderingTest(hooks); + + const testCases: NavTestCase[] = [ + { + conditions: [], + links: [ + NavLink.ThisNode, + NavLink.Files, + NavLink.Registrations, + ], + }, + { + conditions: [NavCondition.IsRegistration], + links: [ + NavLink.ThisNode, + NavLink.Files, + ], + }, + { + conditions: [NavCondition.HasParent], + links: [ + NavLink.ParentNode, + NavLink.ThisNode, + NavLink.Files, + NavLink.Registrations, + ], + }, + { + conditions: [NavCondition.IsPublic], + links: [ + NavLink.ThisNode, + NavLink.Files, + NavLink.Analytics, + NavLink.Registrations, + ], + }, + { + conditions: [ + NavCondition.HasParent, + NavCondition.IsPublic, + ], + links: [ + NavLink.ParentNode, + NavLink.ThisNode, + NavLink.Files, + NavLink.Analytics, + NavLink.Registrations, + ], + }, + { + conditions: [ + NavCondition.UserIsContributor, + NavCondition.UserCanRead, + NavCondition.UserCanWrite, + ], + links: [ + NavLink.ThisNode, + NavLink.Files, + NavLink.Analytics, + NavLink.Registrations, + NavLink.Contributors, + NavLink.Addons, + NavLink.Settings, + ], + }, + { + conditions: [ + NavCondition.UserIsContributor, + NavCondition.UserCanRead, + ], + links: [ + NavLink.ThisNode, + NavLink.Files, + NavLink.Analytics, + NavLink.Registrations, + NavLink.Contributors, + NavLink.Settings, + ], + }, + { + conditions: [ + NavCondition.HasParent, + NavCondition.UserIsContributor, + NavCondition.UserCanRead, + NavCondition.UserCanWrite, + NavCondition.WikiEnabled, + ], + links: [ + NavLink.ParentNode, + NavLink.ThisNode, + NavLink.Files, + NavLink.Wiki, + NavLink.Analytics, + NavLink.Registrations, + NavLink.Contributors, + NavLink.Addons, + NavLink.Settings, + ], + }, + { + conditions: [ + NavCondition.IsRegistration, + NavCondition.UserIsContributor, + NavCondition.UserCanRead, + NavCondition.WikiEnabled, + ], + links: [ + NavLink.ThisNode, + NavLink.Files, + NavLink.Wiki, + NavLink.Analytics, + NavLink.Contributors, + ], + }, + { + conditions: [ + NavCondition.IsRegistration, + NavCondition.UserIsContributor, + NavCondition.UserCanRead, + NavCondition.UserCanWrite, + NavCondition.WikiEnabled, + ], + links: [ + NavLink.ThisNode, + NavLink.Files, + NavLink.Wiki, + NavLink.Analytics, + NavLink.Contributors, + NavLink.Settings, + ], + }, + { + conditions: [ + NavCondition.HasParent, + NavCondition.UserCanRead, + NavCondition.WikiEnabled, + ], + links: [ + NavLink.ParentNode, + NavLink.ThisNode, + NavLink.Files, + NavLink.Wiki, + NavLink.Registrations, + NavLink.Settings, + ], + }, + { + conditions: [ + NavCondition.HasParent, + NavCondition.IsRegistration, + NavCondition.IsPublic, + NavCondition.WikiEnabled, + ], + links: [ + NavLink.ParentNode, + NavLink.ThisNode, + NavLink.Files, + NavLink.Wiki, + NavLink.Analytics, + ], + }, + { + conditions: [ + NavCondition.IQBRIMSEnabled, + ], + links: [ + NavLink.ThisNode, + NavLink.Files, + NavLink.IQBRIMS, + NavLink.Registrations, + ], + }, + { + conditions: [ + NavCondition.MyScreenEnabled, + ], + links: [ + NavLink.ThisNode, + NavLink.Files, + NavLink.MyScreen, + NavLink.Registrations, + ], + }, + ]; + + testCases.forEach((testCase, i) => { + test(`it renders the correct links (${i})`, async function(assert) { + this.owner.register('service:router', OsfLinkRouterStub); + + const node = new FakeNode(testCase.conditions); + this.set('node', node); + const iqbrimsEnabled = testCase.conditions.filter(c => c === NavCondition.IQBRIMSEnabled); + this.set('iqbrimsEnabled', iqbrimsEnabled.length > 0); + const myscreenEnabled = testCase.conditions.filter(c => c === NavCondition.MyScreenEnabled); + this.set('myscreenEnabled', myscreenEnabled.length > 0); + + await render(hbs` + {{node-navbar + node=this.node iqbrimsEnabled=this.iqbrimsEnabled + myscreenEnabled=this.myscreenEnabled + renderInPlace=true + }}`); + + assert.dom('[data-test-node-navbar-link]').exists({ count: testCase.links.length }); + + for (const link of testCase.links) { + let key: string; + if (link === NavLink.ParentNode && node.parentId) { + key = node.parentId; + } else if (link === NavLink.ThisNode) { + key = node.id; + } else { + key = link.toString(); + } + + assert.dom(`[data-test-node-navbar-link="${key}"]`).exists({ count: 1 }); + } + }); + }); + }); +}); diff --git a/ScreenExpansion/ember-osf-web/tests/unit/guid-node/myscreen/controller-test.ts b/ScreenExpansion/ember-osf-web/tests/unit/guid-node/myscreen/controller-test.ts new file mode 100644 index 0000000..8f850a4 --- /dev/null +++ b/ScreenExpansion/ember-osf-web/tests/unit/guid-node/myscreen/controller-test.ts @@ -0,0 +1,12 @@ +import { setupTest } from 'ember-qunit'; +import { module, test } from 'qunit'; + +module('Unit | Controller | guid-node/myscreen', hooks => { + setupTest(hooks); + + // Replace this with your real tests. + test('it exists', function(assert) { + const controller = this.owner.lookup('controller:guid-node/myscreen'); + assert.ok(controller); + }); +}); diff --git a/ScreenExpansion/ember-osf-web/translations/en-us.yml b/ScreenExpansion/ember-osf-web/translations/en-us.yml new file mode 100644 index 0000000..cfbbbbe --- /dev/null +++ b/ScreenExpansion/ember-osf-web/translations/en-us.yml @@ -0,0 +1,1752 @@ +documentType: + default: + plural: documents + pluralCapitalized: Documents + singular: document + singularCapitalized: Document + work: + plural: works + pluralCapitalized: Works + singular: work + singularCapitalized: Work + paper: + plural: papers + pluralCapitalized: Papers + singular: paper + singularCapitalized: Paper + preprint: + plural: preprints + pluralCapitalized: Preprints + singular: preprint + singularCapitalized: Preprint + thesis: + plural: theses + pluralCapitalized: Theses + singular: thesis + singularCapitalized: Thesis +general: + OSF: '{title}' + share: Share + embed: Embed + download: Download + download_url: 'Download url' + done: Done + delete: Delete + view: View + edit: Edit + cancel: Cancel + ok: OK + revisions: Revisions + md5: MD5 + date: Date + sha2: SHA2 + title: Title + contributors: Contributors + modified: Modified + description: Description + create: Create + and: and + or: or + bookmark: Bookmark + more: more + upload: Upload + rename: Rename + move: Move + name: Name + size: Size + version: Version + downloads: Downloads + close: Close + back: Back + public: Public + filter: Filter + revert: Revert + save: Save + ellipsis: … + warning: Warning + sort_asc: 'Sort ascending' + sort_desc: 'Sort descending' + last_modified: 'Last modified' + sort: Sort + asc_paren: (asc) + desc_paren: (desc) + loading: Loading... + next: next + previous: previous + help: Help + api: API + cos: '{organization}' + home: Home + period: . + settings: Settings + project: project + component: component + hosted_on_the_osf: 'Hosted on GakuNin RDM' + please_confirm: 'Please confirm' + required: Required + options: Options + optional: Optional + optional_paren: (optional) + services: + collections: Collections + institutions: Institutions + preprints: Preprints + registries: Registries + other: Other +node_categories: + analysis: Analysis + communication: Communication + data: Data + hypothesis: Hypothesis + instrumentation: Instrumentation + 'methods and measures': 'Methods and measures' + procedure: Procedure + project: Project + software: Software + other: Other + uncategorized: Uncategorized +maintenance: + line1: 'The site will undergo maintenance between {start} and {end} ({utc} UTC).' + line2: 'Thank you for your patience.' + title: 'Notice:' +quickfiles: + title: '{user-name}''s Quick Files' + description: 'Files uploaded here are publicly accessible and easy to share with others using the share link.' + feedback_dialog_text: 'Tell us what you think of Quick Files' + transition_auth: 'You must be logged in to view your Quick Files. Redirecting to the login page.' + share_by_email: 'Share by email' +feedback: + button_text: Feedback + placeholder: 'Share your feedback' + follow_up_label: 'Contact me about further opportunities to improve GakuNin RDM.' + title: 'Send feedback' + confirm_button_text: Send + thank_you: 'Thank you!' + success: 'Your feedback has been submitted.' + dismiss: 'Got it' +file_detail: + version: + id: 'Version ID' + title: '(Version: {version-number})' + embed: + dynamic: 'Dynamically render iframe with JavaScript' + direct: 'Direct iframe with fixed height and width' + tags: 'Tags:' + toggle: 'Toggle view:' + delete_file: + question: 'Delete file?' + confirm: 'Are you sure you want to delete {file-name}?' + sha2_description: 'SHA-2 is a cryptographic hash function designed by the NSA used to verify data integrity.' + md5_description: 'MD5 is an algorithm used to verify data integrity.' + delete_success: 'File deleted' + delete_fail: 'Unable to delete file' + save_success: 'File saved' + save_fail: 'Unable to save file' + mfr_iframe_title: 'Rendering of document' + embed_js_label: 'Embeddable javascript' + embed_iframe_label: 'Embeddable iframe' +file_browser: + loading: Loading... + delete_multiple: 'Delete multiple' + download_zip: 'Download as zip' + drop_placeholder: 'Drop files here to upload' + drop_reminder: 'Drop file to upload' + no_files: 'This user has not uploaded any Quick Files' + share_title: Share + clipboard_copy: 'Copy to clipboard' + info: + title: 'How to use the file browser' + upload: 'Upload: Upload single files via drag and drop or by clicking the upload button.' + select: 'Select rows: Click on a row to show further actions in the toolbar. Use Command or Shift keys to select multiple files.' + folders: 'Folders: Not supported; consider a GakuNin RDM project for uploading and managing many files.' + open1: 'Open files: Click a file name to view the file on GakuNin RDM.' + open2: 'Open files in new tab: Press Command (Ctrl in Windows) and click a file name to open it in a new tab.' + download: 'Download as zip: Click the "Download as zip" button in the toolbar to download all files as a .zip.' + delete_modal: + title: 'Delete "{filename}"?' + title_multiple: 'Delete multiple?' + body: 'This action is irreversible.' + conflict_modal: + title: 'An item named {textValue} already exists in this location.' + keep_info: '"Keep both" will retain both files (and their version histories) in this location.' + replace_info: '"Replace" will overwrite the existing file in this location. You will lose previous versions of the overwritten file. You will keep previous versions of the moved file.' + keep_button: 'Keep both' + replace_button: Replace + move_modal: + title: 'Move file to project' + move_button: 'Move file' + filtering: Filtering + file_added: 'This file has been added.' + file_added_toast: 'File added' + file_replaced: 'This file has been replaced.' + file_deleted: 'This file has been deleted.' + delete_failed: 'Unable to delete file' + rename_failed: 'Unable to rename file' + successfully_moved: 'This file has been successfully moved.' + successfully_renamed: 'This file has been successfully renamed.' +dashboard: + page_title: Home + title: Dashboard + create_new_project_button: 'Create new project' + quicksearch: + search: 'Search your projects' + other_links: |- + 'Go to My Projects to organize your work {useSearch, select, + true { 'or search' } + false { 'in' } + } GakuNin RDM' + no_results: 'No results found.' + no_projects: + line1: 'You have no projects yet. Create a project with the button on the top right.' + line2: 'This feature allows you to search and quickly access your projects.' + preview_alt: 'Preview of a full quick projects screen' + private_parent: 'Private project / ' + private_grandparent: 'Private project / Private / ' + noteworthy: + description: 'Discover public projects' + new_and_noteworthy: 'New and noteworthy' + failed_noteworthy: 'Failed loading "new and noteworthy" projects' + most_popular: 'Most popular' + failed_popular: 'Failed loading "most popular" projects' + search_more: 'Search for more projects' + by: by + meetings: + title: 'Hosting a conference or meeting?' + description: 'Use the GakuNin RDM for Meetings service to provide a central location for conference submissions.' + button: 'View meetings' + preprints: + title: 'Browse the latest research' + description: 'Check out the latest preprints hosted on GakuNin RDM covering a variety of research areas.' + button: 'View preprints' +new_project: + header: 'Create new project' + title_placeholder: 'Enter project title' + more: More + affiliation: Affiliation + remove_all: 'Remove all' + select_all: 'Select all' + no_matches: 'No matches found' + description_placeholder: 'Enter project description' + template_title: 'Template (optional)' + template_search_help: 'Start typing to search your projects. Selecting project as template will duplicate its structure in the new project without importing the content of that project.' + template_placeholder: 'Select a project to use as template' + success_message: 'New project created successfully!' + stay_here: 'Keep working here' + go_to_new: 'Go to new project' + storage_region: 'Storage location' + could_not_create_project: 'Could not create project' + creating: 'Saving your project...' + create_failed_header: 'Couldn''t create your project' + create_failed_msg: 'There was an unknown error. Please try again later.' +banners: + prereg: + description: 'Improve your next study. Enter the Prereg Challenge and you could win $1,000.' + button: 'Start Prereg Challenge' + view_only: + warning: 'You are viewing GakuNin RDM through a view-only link, which may limit the data you have permission to see.' + view_normally: 'Leave this view' +move_to_project: + create_new_project: 'Create new public project' + connect_to_existing: 'Connect file to existing GakuNin RDM project' + enter_project_title: 'Enter project title' + new_project_message: 'You have selected to create a new public project for your file. Users will still have access to your file unless the project becomes private.' + choose_project: 'Choose project' + select_placeholder: 'Click to select' + project_select_message: 'The list of projects appearing are projects and components for which you have write access. Registrations are not included here.' + no_projects_exist_error: 'You have no available projects. Go back to create a new project.' + could_not_create_project: 'Could not create project.' + convert_or_copy_message: + project: 'Clicking "Move file" will immediately make changes to your GakuNin RDM project and move your file.' + component: 'Clicking "Move file" will immediately make changes to your GakuNin RDM component and move your file.' + no_longer_public_warning: + project: 'Files moved to private projects will no longer be public or discoverable by others.' + component: 'Files moved to private components will no longer be public or discoverable by others.' + file_successfully_moved: 'File was moved successfully!' + could_not_move_file: 'Could not move file.' + keep_working_here: 'Keep working here' + go_to_new_project: 'Go to new project' + go_to_component: 'Go to component' + go_to_project: 'Go to project' +navbar: + add: Add + # add_a_preprint: 'Add a {preprintWords.preprint}' + browse: Browse + cancel_search: 'Cancel search' + donate: Donate + go_home: 'Go home' + my_projects: 'My Projects' + my_registrations: 'My Registrations' + my_quick_files: 'My Quick Files' + reviews: 'My Reviewing' + search: Search + search_help: 'Search help' + search_the_OSF: 'Search GakuNin RDM' + send_search: 'Send search query' + support: Support + toggle_primary: 'Toggle primary navigation' + toggle_secondary: 'Toggle secondary navigation' + other_views: 'Other GakuNin RDM views' + login: Login + join: Join + osf_logo: 'GakuNin RDM logo' + search_bar: 'Search bar for registries' +auth_dropdown: + log_out: 'Log Out' + my_profile: 'My Profile' + osf_support: 'RDM Support' + sign_up: 'Sign Up' + sign_in: 'Sign In' + user_gravatar: 'User gravatar' + toggle_auth_dropdown: 'Toggle auth dropdown' +support: + title: Support + faq_title: 'Frequently asked questions' + faq_paragraph: 'How can it be free? How will GakuNin RDM be useful to my research? What is a registration? Get your questions about GakuNin RDM answered on our FAQ page.' + faq_button: 'Visit FAQ' + guides_title: 'GakuNin RDM guides' + guides_paragraph: 'Learn how to use GakuNin RDM for improving your research workflow. Read our guides for step-by-step screenshots that show you the basics of project structures, version control, privacy, files, add-on support, and more!' + guides_button: 'Visit guides' + contact_title: 'Get in touch' + contact_questions: 'For technical support or other questions,' + contact_form: 'submit a request.' + prereg_title: 'Do you have questions about preregistration?' + prereg_paragraph: 'Check out our prereg page.' + status_title: 'Are you experiencing downtime with our services?' + status_paragraph: 'Check out our status page for updates on how our services are operating.' + consultation_title: 'Are you looking for hands-on training?' + consultation_paragraph: 'COS leads workshops and webinars on how to use GakuNin RDM and incorporate best practices in transparency into your research workflow. To learn more about this service visit our Training Services page.' + social_title: 'Other ways to get help' + social_twitter: 'Ask us a question on Twitter' + social_mailing: 'Join our mailing list' + social_facebook: 'Follow us on Facebook' + social_github: 'Connect with COS on GitHub' +not_found: + title: 'Page not found' + body: 'The requested resource could not be found. If this should not have occurred and the issue persists, please report it to {supportEmail}.' + registries: + contact: rdm_support@nii.ac.jp + go_to: 'Go to GakuNin RDM Registries' + line1: 'The page you were looking for is not found on the GakuNin RDM Registries service.' + line2: 'If this should not have occurred and the issue persists, please report it to ' +error_no_api: + title: 'API Unavailable' + body: 'Our API is currently unavailable. Try again in a few minutes. If the issue persists, please report it to {supportEmail}.' +osf_mode_footer: + dev_mode: 'This site is running in development mode.' +footer: + status: Status + faq: FAQ/Guides + source_code: 'Source Code' + rpp: 'Reproducibility Project: Psychology' + rpcb: 'Reproducibility Project: Cancer Biology' + top: 'TOP Guidelines' + donate: Donate + socialize: Socialize + contact: Contact + copyright: 'Copyright © 2011-{currentYear}' + terms: 'Terms of Use' + privacy: 'Privacy Policy' + separator: ' | ' +home: + title: Home + youtube_modal_title: 'Getting Started with GakuNin RDM' + alert_logged_out: 'You have successfully logged out.' + brand: '{brand}' + tagline: 'A scholarly commons to connect the entire research cycle' + youtube_label: 'GakuNin RDM YouTube Video' + osf_screenshot_alt: 'Screenshot of GakuNin RDM' + signup_title: 'Free and open source. Start now.' + collaboration: 'Simplified Scholarly Collaboration' + management: 'Cloud-based management for your projects.' + structured_projects_title: 'Structured projects' + structured_projects_paragraph: 'Keep all your files, data, and protocols in one centralized location. No more trawling emails to find files or scrambling to recover from lost data.' + secure_cloud: 'Secure Cloud' + control_access_title: 'Control access' + control_access_paragraph: 'You control which parts of your project are public or private making it easy to collaborate with the worldwide community or just your team.' + control_access_span: 'Project-level Permissions' + workflow_title: 'Respect for your workflow' + workflow_paragraph: 'Connect your favorite third party services directly to GakuNin RDM.' + workflow_span: '3rd Party Integrations' + student_main: '"GakuNin RDM is a game changer for those wanting to effectively share their research process in the spirit of collaboration."' + student_attrib: 'Patricia Ayala, Research Services Librarian, University of Toronto' + integrations_title: 'GakuNin RDM integrations make your workflow more efficient' + integrations_alt_dropbox: 'Dropbox logo' + integrations_alt_github: 'Github logo' + integrations_alt_amazon: 'Amazon S3 logo' + integrations_alt_box: 'Box logo' + integrations_alt_google: 'Google Drive logo' + integrations_alt_figshare: 'Figshare logo' + integrations_alt_dataverse: 'Dataverse logo' + integrations_alt_mendeley: 'Mendeley logo' + features_title: 'Everything your research needs to be a success' + features_manage_title: 'Manage your project' + features_manage_paragraph: 'View all of your projects from one dashboard.' + features_share_title: 'Quickly share files' + features_share_paragraph: 'Share key project information and allow others to use and cite it.' + features_changes_title: 'See project changes' + features_changes_paragraph: 'See the latest project changes, who is contributing and historical file versions.' + features_analytics_title: 'View project analytics' + features_analytics_paragraph: 'Access project data ranging from visits over time to top referring websites.' + features_archive_title: 'Archive your data' + features_archive_paragraph: 'Computer or collaborator explode? With GakuNin RDM you will never lose your project data.' + features_collaboration_title: 'Control access and collaboration' + features_collaboration_paragraph: 'Add others to your projects to collaborate, or provide private access to view.' + features_workflow_title: 'Supercharge your workflow' + features_workflow_paragraph: 'GakuNin RDM helps individuals, teams and labs make their research processes more efficient.' + features_registration_title: Registration + features_registration_paragraph: 'Preserve the state of a project at important parts of its lifecycle such as the onset of data collection.' + global_title: 'Contribute to global scientific efforts' + global_paragraph: 'Labs and teams across the globe use GakuNin RDM to open their projects up to the scientific community. You can browse the newest and most popular public projects' + global_link: 'right here.' + global_label: 'Get involved' + non_profit_title: 'We are a mission-driven non-profit' + non_profit_paragraph1: 'GakuNin RDM is a free, open source service of the' + non_profit_link: '{organization}' + non_profit_paragraph2: 'We’re aligning scientific practices with scientific values by improving openness, integrity and reproducibility of research.' + non_profit_label: Non-Profit + users_title: 'Teachers, researchers, and global teams rely on GakuNin RDM' + users_1_alt: 'Richard Ball' + users_1_title: 'Making research reproducible & verifiable' + users_1_paragraph: 'The GakuNin RDM helps our students understand and apply sound data management principles to their work. And since we have easy access to all of the files the students are working with, it greatly enhances our ability to offer them constructive guidance.' + users_1_small: 'Richard Ball, Professor of Economics, Haverford College' + users_2_title: 'Version control makes life easier' + users_2_paragraph: 'The GakuNin RDM makes version control effortless. My PI, my lab mates, and I have access to previous versions of a file at any time—and the most current version is always readily available.' + users_2_small: 'Erica Baranski, PhD Student, Social and Personality Psychology Funder Lab, UC Riverside' + users_2_alt: 'Erica Baranski' + users_3_alt: 'Anne Allison' + users_3_title: 'A centralized hub of information' + users_3_paragraph: 'The GakuNin RDM creates a centralized hub of information where I can oversee a diversity of research projects across multiple classes. The centralization, organization, and anywhere-access save me the time and energy necessary for managing these projects.' + users_3_small: 'Anne Allison, Associate Professor of Biology at Piedmont Virginia Community College' + free_title1: 'Free and open source.' + free_title2: 'GakuNin RDM is a public good built to support your research.' + free_link: 'Get started' + learn_more: 'Learn more' +new-home: + support-section: + header: 'How GakuNin RDM supports your research' + arrow: arrow + search: + header: 'Search and Discover' + description: 'Find papers, data, and materials to inspire your next research project. Search public projects to build on the work of others and find new collaborators.' + design: + header: 'Design Your Study' + description: 'Start a project and add collaborators, giving them access to protocols and other research materials. Built-in version control tracks the evolution of your study.' + analyze: + header: 'Collect and Analyze Data' + description: 'Store data, code, and other materials in GakuNin RDM Storage, or connect your Dropbox or other third-party account. Every file gets a unique, persistent URL for citing and sharing.' + publish: + header: 'Publish Your Reports' + description: 'Share papers in GakuNin RDM Preprints or a community-based preprint provider, so others can find and cite your work. Track impact with metrics like downloads and view counts.' + testimonials: + heading: 'What others are saying' + see_her_research: 'See her research' + see_his_research: 'See his research' + carousel_heading: 'User testimonials' + slide_1: + text: 'GakuNin RDM is a game changer for those wanting to effectively share their research process in the spirit of collaboration.' + alt: 'Patricia Ayala testimonial' + description: + name: 'Patricia Ayala' + position: 'Research Services Librarian
    University of Toronto' + slide_2: + text: 'GakuNin RDM is indispensable in helping me create reproducible research pipelines from preregistration through data collection and analysis. Its versatility makes it my one-stop shop for projects. The Dropbox integration effortlessly transforms my existing local workflow to public repository.' + alt: 'Maya testimonial' + description: + name: 'Maya Mathur' + position: 'Department of Epidemiology
    Harvard University' + slide_3: + text: 'Because SocArXiv is a not-for-profit organization, researchers can be assured that they are sharing their research in an environment where access, inclusivity, and preservation, rather than profit, will remain at the heart of the mission. A great benefit of partnering with GakuNin RDM is that this application is a free public good.' + alt: 'Philip Cohen testimonial' + description: + name: 'Philip Cohen' + position: 'SocArXiv papers' + integrations-section: + header: 'GakuNin RDM integrations make your workflow more efficient' + authentication: Authentication + discovery: Discovery + references: References + storage: Storage + incommon: 'Incommon logo' + sso: 'SSO logo' + google_scholar: 'Google Scholar logo' + orcid: 'Orcid logo' + mendeley: 'Mendeley logo' + zotero: 'Zotero logo' + dropbox: 'Dropbox logo' + google_drive: 'Google Drive logo' +tos_consent: + paragraph: 'We''ve updated our Terms of Use and Privacy Policy. Please read them carefully.' + have_read_and_agree: 'I have read and agree to these terms.' + continue: Continue + failed_save: 'Unable to save Terms of Services consent.' +validationErrors: + description: 'This field' + inclusion: '{description} is not included in the list.' + exclusion: '{description} is reserved.' + invalid: '{description} is invalid.' + confirmation: '{description} doesn''t match {on}.' + accepted: '{description} must be accepted.' + empty: 'This field can''t be empty.' + blank: 'This field can''t be blank.' + present: '{description} must be blank.' + collection: '{description} must be a collection.' + singular: '{description} can''t be a collection.' + tooLong: '{description} is too long (maximum is {max} characters).' + tooShort: '{description} is too short (minimum is {min} characters).' + before: '{description} must be before {before}.' + after: '{description} must be after {after}.' + wrongDateFormat: '{description} must be in the format of {format}.' + wrongLength: '{description} is the wrong length (should be {is} characters).' + notANumber: '{description} must be a number.' + notAnInteger: '{description} must be an integer.' + greaterThan: '{description} must be greater than {gt}.' + greaterThanOrEqualTo: '{description} must be greater than or equal to {gte}.' + equalTo: '{description} must be equal to {is}.' + lessThan: '{description} must be less than {lt}.' + lessThanOrEqualTo: '{description} must be less than or equal to {lte}.' + otherThan: '{description} must be other than {value}.' + odd: '{description} must be odd.' + even: '{description} must be even.' + positive: '{description} must be positive.' + date: '{description} must be a valid date.' + onOrAfter: '{description} must be on or after {onOrAfter}.' + onOrBefore: '{description} must be on or before {onOrBefore}.' + email: '{description} must be a valid email address.' + phone: '{description} must be a valid phone number.' + url: '{description} must be a valid url.' + https_url: '{description} must be a valid https url.' + email_registered: 'This email address has already been registered.' + email_invalid: 'Invalid email address. If this should not have occurred, please report this to {supportEmail}' + email_match: 'Email addresses must match.' + email_duplicate: 'Duplicate email' + password_email: 'Your password cannot be the same as your email address.' + password_old: 'Your new password cannot be the same as your old password.' + password_match: 'Passwords must match.' + recaptcha: 'Please complete reCAPTCHA.' + affirm_terms: 'You must read and agree to the Terms of Use and Privacy Policy.' + min_subjects: 'You must select at least one subject.' + node_license_invalid: 'Invalid required fields for the license' + node_license_missing_fields: 'The following required {numOfFields, plural, =1 {field is} other {fields are}} missing: {missingFields}' + invalid_doi: 'Please use a valid DOI format (10.xxxx/xxxxx)' + mustSelect: 'You must select a value for this field.' + mustSelectMinOne: 'You must select at least one value for this field.' + mustSelectFileMinOne: 'You must select at least one file for this field.' + onlyProjectOrComponentFiles: 'The {numOfFiles, plural, =1 {file} other {files}} "{missingFilesList}" cannot be found on this {projectOrComponent}.' + new_folder_name: 'Folder name must not be blank.' + year_format: 'Please specify a valid year.' +validated_input_form: + discard_changes: 'Discard changes' +node_navbar: + toggle: 'Toggle navigation' + project_nav: 'Project Navigation' + iqbrims: 'IQB-RIMS' + myscreen: 'My Screen' + wiki: Wiki + analytics: Analytics + registrations: Registrations + files: Files + contributors: Contributors + addons: Add-ons + settings: Settings + comments: Comments +status: + welcome_message: '

    Welcome to GakuNin RDM!

    Visit our Guides to learn about creating a project, or get inspiration from popular public projects.

    ' + alternate_email_error: 'The email address has NOT been added to your account. Please log out and revisit the link in your email. Thank you.' + # remove_addon: 'Because the GitHub add-on for {extra.category} "{extra.title}" was authenticated by {extra.user}, authentication information has been deleted.' + project_deleted: 'Project has been successfully deleted.' + component_deleted: 'Component has been successfully deleted.' + remove_self_contrib: 'You have removed yourself as a contributor from this project.' + registration_archiving: 'Files are being copied to the newly created registration, and you will receive an email notification when the copying is finished.' + registration_submitted: 'Your submission has been received. You will be notified within two business days regarding the status of your submission. If you have questions you may contact us at prereg@cos.io.' + redirected_to_registrations: 'You have been redirected to the project''s registrations page. From here you can initiate a new Draft Registration to complete the registration process.' +dropzone_widget: + drop_files: 'Drop files here to upload' + error_multiple_files: 'Cannot upload multiple files' + error_directories: 'Cannot upload directories, applications, or packages' +join_osf: + header: 'Start managing your projects on GakuNin RDM today.' + pitch: 'Free and easy to use, GakuNin RDM supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.' + create_account: 'Create an account' + learn_more: 'learn more' + hide_message: 'Hide this message' +node_card: + generic: + private_tooltip: 'This project is private' + timestamp_label: "" + fork: + private_tooltip: 'This fork is private' + timestamp_label: 'Forked:' + manage_contributors: 'Manage contributors' + registration: + private_tooltip: 'This registration is private' + timestamp_label: 'Registered:' + statuses: + pending: 'Pending registration' + withdrawn: Withdrawn + pending_withdrawl: 'Pending withdrawal' + embargoed: Embargoed + pending_embargo: 'Pending embargo' + pending_embargo_termination: 'Pending embargo termination' + archiving: Archiving + tags: 'Tags:' + options: Options +forks: + fork: Fork + title: Forks + info: 'Forks you have permission to view are shown here.' + back: 'Back to Analytics' + new: 'Create fork' + loading_new: 'Creating new fork' + new_fork_info_title: 'Fork status' + new_fork_info: 'Your fork is being created. You''ll receive an email when it is complete.' + create_fork_modal: 'Are you sure you want to fork this project?' + unable_to_delete_fork: 'Any child components must be deleted prior to deleting this component.' + page_title: '{nodeTitle} Forks' + no_forks: 'A fork is a copy of a project that you can change without affecting the original project.' + new_fork_failed: 'Failed to create a new fork.' + delete_fork_failed: 'Failed to delete the project.' +node: + registrations: + new_registration_modal: + title: Register + info: 'Registration creates a frozen version of the project. Your original project remains editable and will have the registration linked. Things to know about registration:
    • Registrations cannot be edited or deleted.
    • Withdrawing a registration removes its contents, but leaves behind basic metadata: title, contributors, date registered, date withdrawn, and justification (if provided).
    • Registrations can be public or embargoed for up to four years. Embargoed registrations will be made public automatically when the embargo expires.
    Continue your registration by selecting a registration form:' + create: 'Create draft' + prereg_modal: + title: 'Preregistration Challenge' + notice: Notice + eligibility: 'Articles must be published by an approved journal by December 31, 2018, to be eligible for a prize.' + info: 'Below are some important items for those who choose to enter the Preregistration Challenge. If you do not agree to the terms you may still continue, use the form, and register your research study without entering the Challenge. Only Preregistrations that enter the challenge and undergo review are eligible for a $1,000 prize. We welcome questions and comments (learn more here or email us at prereg@cos.io).' + list: '
  • After submitting your research plan for review, it is not yet registered. Your research plan will become a static, time stamped preregistration after it passes review. Please do not begin your study until it is registered. You will hear back from the review team within 2 business days.
  • The published article must also be reviewed before receiving the prize.
  • Prizes will be awarded at predetermined dates to eligible entrants. If more eligible entrants exist than available prizes, entrants will be ranked based on the date of registration.
  • Articles must be published in an eligible journal.
  • Residents of countries on the U.S. State Department''s list of embargoed countries may not participate in the Preregistration Challenge.
  • Entering the Preregistration Challenge requires that you agree to all of its terms.
  • ' + consent: 'I have read these terms. I understand that articles must be published by December 31, 2018, in order to be eligible for a prize.' + continue: Continue + page_title: '{nodeTitle} Registrations' + no_registrations: 'There have been no completed registrations of this project.' + only_admins_can_initiate: 'Only project administrators can initiate registrations.' + no_drafts: 'There are no draft registrations of this project.' + start_new: 'Start a new registration by clicking the “New registration” button. Once created, registrations cannot be edited or deleted.' + learn_more: 'Learn more about registrations here.' + register_entire_project: 'To register the entire project "{rootNodeTitle}" instead, click' + here: here + new: 'New registration' + registrations: Registrations + draft_registrations: 'Draft Registrations' +delete_modal: + title: 'Are you sure you want to delete this {nodeType}?' + body: 'It will no longer be available to other contributors on the {nodeType}.' + type_this: 'Type the following to continue:' + input_label: 'Scientist name verification' +paginator: + next: 'Next page' + previous: 'Previous page' + page: 'Page {page} of {max}' +social: + twitter: Twitter + facebook: Facebook + google_group: 'Google Group' + github: GitHub + linkedin: LinkedIn +institutions: + description: 'GakuNin RDM Institutions enhances transparency and increases the visibility of research outputs, accelerating discovery and reuse. Institutional members focus on generating and sharing research, and let GakuNin RDM Institutions handle the infrastructure.' + read_more: 'Read more' + footer: 'Interested in setting up an GakuNin RDM Institutions page for your research institution?' + contact_us: 'Contact us' + title: Institutions + search_placeholder: 'Search institutions' + dashboard: + title: '{institutionName} Dashboard' + last_update: 'Updated every 24 hours' + download_csv: 'Download CSV' + select_default: 'All Departments' + users_list: + name: Name + department: Department + projects: Projects + public_projects: 'Public Projects' + private_projects: 'Private Projects' + empty: 'No users found matching search criteria.' + users_connected_panel: 'SSO Users Connected' + projects_panel: 'Total Projects' + departments_panel: Departments + public: Public + private: Private + users: Users + empty: 'No data for institution found.' +registration: + project_alert: 'This registration is a frozen, non-editable version of this project' +list: + two_item: + delimiter: ' and ' + many_item: + first_delimiter: ', ' + each_delimiter: ', ' + last_delimiter: ', and ' +contributor_list: + x_more: '{x} more' + anonymous: 'Anonymous contributors' +app_components: + branded_navbar: + my_osf_projects: 'My GakuNin RDM Projects' + on_the_osf: 'On the GakuNin RDM:' + error_page: + email_message: 'If this should not have occurred and the issue persists, please report it to' + go_to: 'Go to {brand}' + license_picker: + faq: 'License FAQ' + show: 'Show full text' + hide: 'Hide full text' + fields: + copyrightHolders: 'Copyright Holders' + year: Year + license_text: + anonymized_placeholder: '[anonymized]' + navbar: + add_item: 'Add to {objectType}' + project_contributors: + title: Contributors + contributors_popover_title: 'Contributor Information' + contributors_popover: 'Projects must have at least one registered administrator and one author showing in the citation at all times. A registered administrator is a user who has both confirmed their account and has administrator privileges.' + instructions: 'Drag and drop authors to change authorship order.' + list: + name: Name + permissions: Permissions + permissions_popover_title: 'Permission Information' + permissions_popover: "\n
    \n
    Read
    \n
    \n
      \n
    • View project
    • \n
    \n
    \n
    Read + Write
    \n
    \n
      \n
    • Read privileges
    • \n
    • Add and configure project
    • \n
    • Add and edit content
    • \n
    \n
    \n
    Administrator
    \n
    \n
      \n
    • Read and write privileges
    • \n
    • Manage contributors
    • \n
    • Public-private settings
    • \n
    \n
    \n
    \n " + citation: Citiation + citation_popover_title: 'Citation Information' + citation_popover: 'Only checked contribotrs will be included in project citations. Contributors not in the citation can read and modify the project as normal.' + remove_contributor_success: 'Project contributor removed!' + remove_contributor_error: 'Could not remove contributor.' + item: + img_alt: Gravatar + in_citation_label: 'In citation:' + permissions_label: 'Permissions:' + permissions: + admin: Administrator + write: 'Read + Write' + read: Read + remove: Remove + remove_author: 'Remove author' + load_more_contributors: 'Load more contributors' + search: + placeholder: 'Search by name' + unregistered_description: 'Can''t find the user that you''re looking for?' + unregistered_button: 'Add author by email address' + results: Results + no_results: 'No results found.' + unregistered_contributor: + title: 'Add author by email' + full_name: 'Full name' + email: Email + paragraph: 'We will notify the user that they have been added to your project.' + cancel: Cancel + add: Add + add_success: 'Unregistered contributor added!' + add_error: 'Could not add unregistered contributor.' + result: + yourself: yourself + add: Add + add_contributor_success: 'Project contributor added!' + add_contributor_error: 'Could not add contributor.' + project_metadata: + field_title_label: 'Title:' + field_title_placeholder: "" + field_description_label: 'Description:' + field_description_placeholder: "" + field_license_label: 'Choose a license:' + field_license_placeholder: "" + field_tags_label: 'Tags:' + field_tags_placeholder: 'Add a tag' + save_success: 'Project Metadata saved.' + save_error: 'Unable to save Project Metadata.' + query_syntax: + allDatesIn: 'all dates in' + allFieldsSearched: 'By default, all available fields are searched, but you can choose to search specific fields instead' + allTagsBetween: 'all tags between' + and: and + booleanDesc1: 'By default, all terms in the query are optional, as long as one term matches. You can use boolean operators' + booleanDesc2: 'to have more control over the search' + booleanDesc3: 'The word' + booleanDesc4: 'be present. The words' + booleanDesc5: 'are optional but used for sorting by relevance' + booleanDesc6: 'Same as above, except the word' + booleanDesc7: 'be present' + booleanDesc8: 'Equivalent to' + booleanDesc9: 'The word' + booleanDesc10: 'The list of tags contains' + booleanOperators: 'Boolean Operators' + boosting: Boosting + boostingDesc1: 'Use the boost operator' + boostingDesc2: 'with a number to make one term more relevant than another. The boost can be any positive number. Boosts between 0 and 1 reduce relevance.' + boostingDesc3: 'Boost results with' + boostingDesc4: 'higher than results with just' + both: both + butNot: 'but not' + couldNotPerformQuery: 'Could not perform search query.' + damerauLevenshteinDistanceDesc: 'to match all words with at most 1 change. You can specify a different maximum edit distance with a number after the' + descriptionContainsPhrase: 'The description contains the exact phrase' + documentation: documentation + escapeReservedChars: ' If you want to use any of these reserved characters in your query, escape them with a leading backslash. For instance, to search for ' + except: except + excluding: excluding + fuzziness: Fuzziness + fuzzinessDesc1: 'after a word to indicate a ''fuzzy'' search, to include matches that are similar but not exactly the same.' + listContainsExactPhrase: 'The list of contributor names contains the exact phrase' + listOfIdentifiersContains: 'The list of identifiers contains' + match: Match + matchWordStartsWith: 'Match any word that starts with' + moreInformation: 'More Information' + moreInformationOnSearch: 'Please see below for more information on advanced search queries.' + moreInfoQuerySyntax: 'For more details about query syntax, see the' + must: must + mustNot: 'must not' + needToType: 'you would need to type' + or: or + phraseProximity: 'Phrase Proximity' + phraseProximityDesc1: 'You can also specify a maximum edit distance for phrases, to allow the words in the phrase to be farther apart or in a different order.' + ranges: Ranges + rangesDesc1: 'Use brackets to specify ranges for a field. Square brackets' + rangesDesc2: 'indicate inclusive ranges and curly brackets' + rangesDesc3: 'indicate exclusive ranges' + reservedChars: 'Reserved Characters' + searchByField: 'Searching by Field' + specialMeanings: 'The following characters have special meanings in a query' + theWord: 'the word' + thisUsesThe: 'This uses the' + titleContainsWord: 'The title contains the word' + use: Use + wildcards: Wildcards + wildcardsDesc1: 'Use wildcards to match multiple terms at once. Use' + wildcardsDesc2: 'to match any single character, or' + wildcardsDesc3: 'to match zero or more characters.' + search_help_modal: + close: Close + title: 'Search help' + queries: Queries + searchSyntax: 'Search uses the Lucene search syntax.' + helpDescription: 'This gives you many options, but can be very simple as well. Examples of valid searches include:' + search_paginator: + prev: « + next: » + submit_section: + discard: 'Discard changes' + save: 'Save and continue' + continue: Continue + click_to_edit: 'Click to edit' +collections: + general: + brand: '{name} Collection' + navbar: + add: 'Add to Collection' + index: + title: Collections + services_heading: 'Collection Services' + services_paragraph: 'Leading collection service providers use this open source infrastructure to support their communities.' + service_bottom: + p1: 'Create your own branded collection service backed by the GakuNin RDM.' + div: + line1: 'Check out the' + linkText1: 'open source code' + line2: 'and our' + linkText2: 'public road map' + line3: '. Input welcome!' + contact: 'Contact us' + provider: + title: Provider + discover: + title: Discover + search_heading: 'Collections Search' + search_placeholder: 'Search collection' + other_repositories: 'Other collections' + facet_titles: + collection_provider: Providers + status: Status + collected_type: Type + issue: Issue + program_area: 'Program Area' + volume: Volume + collections_submission: + title: Submit + add_header: 'Add to Collection' + update_header: 'Update in Collection' + project_select_title: 'Select a project' + project_select_project_label: 'Project:' + closed_tooltip: 'Complete the previous section to edit this section' + project_metadata_title: 'Project metadata' + project_metadata_description: 'Updates made in this section will update the project.' + project_metadata_title_label: 'Title:' + project_metadata_description_label: 'Description:' + project_metadata_license_label: 'License:' + project_metadata_tags_label: 'Tags:' + project_contributors_title: 'Project contributors' + project_contributors_description: 'Updates made to this section will update the project.' + collection_metadata_title: 'Collection metadata' + cancel: Cancel + add_button: 'Add to collection' + update_button: Update + add_save_success: '{title} has been added to the collection.' + update_save_success: '{title} has been updated in the collection.' + add_save_error: "Error adding {title} to the collection." + update_save_error: "Error updating {title} in the collection." + warning_body: 'Are you sure you want to discard changes to the submission? Changes saved to the project will persist.' + collection_submission_confirmation_modal: + header: 'Submit project' + body: 'Once this project is submitted to the collection, it will be made public, and you should assume that it will always be public. You can return it to private later, but search engines (including Google’s cache) or others may access files, wiki pages, or analytics before you do.' + add_button: 'Add to collection' + collection_item_picker: + after_options: + loading: Loading… + load_more: 'Load More Projects' + collection_metadata: + collected_type_label: 'Type:' + issue_label: 'Issue:' + program_area_label: 'Program Area:' + status_label: 'Status:' + volume_label: 'Volume:' + collection_search_result: + expand: 'Expand search result' + collapse: 'Collapse search result' + discover_page: + active_filters: + button: 'Clear filters' + heading: 'Active Filters' + remove_provider: 'Remove provider' + remove_type: 'Remove type' + remove_status: 'Remove status' + remove_issue: 'Remove issue' + remove_program_area: 'Remove program area' + remove_volume: 'Remove volume' + asOf: 'as of' + broadenSearch: 'Try broadening your search terms' + date: Date + funder: Funder + language: Language + luceneHelp: 'Lucene search help' + noResults: 'No results. Try removing some filters.' + noResultsFound: 'No results found.' + partnerRepositories: 'Partner Repositories' + people: People + poweredBy: 'powered by' + publisher: Publisher + refineSearch: 'Refine your search by' + removeRegistrationType: 'Remove registration type' + search: Search + searchLoading: 'Search loading' + searchPlaceholder: Search... + share: SHARE + searchUnavailable: 'Search is Unavailable' + sortBy: 'Sort by' + sortSearchResults: 'Sort search results' + source: Source + tag: Tag + type: Type +registries: + header: + search: Search + search_placeholder: 'Search registrations...' + searchable_as_of: '{registrations} searchable registrations as of {today}' + facets: + registration_type: + title: 'GakuNin RDM Registration Type' + only_available_with_osf: 'Only available with GakuNin RDM Registries' + registration_schema_error: 'An error occurred getting registration types.' + application: + page_title: 'GakuNin RDM Registries' + discover: + page_title: Search + SHARE: SHARE + registrations: Registrations + sort_by: 'Sort by' + powered_by: 'powered by' + no_results: 'No results found.' + try_broadening: 'Try broadening your search terms' + order: + relevance: Relevance + modified_ascending: 'Modified Date (oldest to newest)' + modified_descending: 'Modified Date (newest to oldest)' + sidebar: + refine_your_search: 'Refine your search by' + clear_filters: 'Clear filters' + active_filters: 'Active filters' + search_result: + last_edited: 'Last edited: {date}' + withdrawn: Withdrawn + pagination: + previous: « + next: » + start: + page_title: 'Start Registration' + forms: + page_title: 'Select Registration Forms' + form: + title: 'Choose From Existing Registration Schema' + help: + title: 'Help Choose Registration Form' + drafts: + page_title: 'View Registration Drafts' + index: + title: 'Choose Unfinished Draft' + draft: + metadata: + title: 'Fill out basic registration info' + page_label: Metadata + failed_auto_save: 'Failed to auto-save draft registration metadata' + save_institutions_error: 'Failed to save affiliated institutions' + load_institutions_error: 'Failed to load affiliated institutions' + form: + title: 'Fill out registration form' + next: Next + back: Back + save_draft: 'Save draft' + new_registration: 'New registration' + last_saved: 'Auto-saved: ' + save_failed: 'Save failed. Unsaved changes present.' + failed_auto_save: 'Failed to auto-save draft registration form' + review: + title: 'Review registration before submitting' + page_label: Review + start_review: Review + invalid_warning: 'Please address invalid or missing entries to complete registration.' + toggle_dropdown: 'Toggle navigation dropdown' + register: Register + submit_error: 'Unable to create a registration.' + index: + lead: 'The open registries network' + see_example: 'See an example' + services: + top: + heading: 'Registry Services' + paragraph: 'Leading registry service providers use this open source infrastructure to support their communities.' + bottom: + p1: 'Create your own branded registry backed by the GakuNin RDM.' + div: + line1: 'Check out the' + linkText1: 'open source code' + line2: 'and the' + linkText2: 'requirements and road map' + line3: '. Input welcome!' + contact: 'Contact us' + advisory: + heading: 'Advisory Group' + paragraph: 'Our advisory group includes leaders in registrations across disciplines' + recent: + title: 'Browse Registrations' + more: 'See more' + registration_metadata: + add_description: 'Add description' + add_license: 'Add license' + affiliated_institutions: 'Affiliated institutions' + category: Category + choose_license: 'Choose a License' + citation: Citation + contributors: Contributors + create_doi: 'Create DOI' + date_created: 'Date created' + date_registered: 'Date registered' + description: Description + disciplines: Disciplines + edit_field: 'Edit {field}' + license: License + metadata_page_heading: 'Registration Metadata' + metadata_page_description: 'This metadata applies only to the registration you are creating, and will not be applied to your project.' + no_affiliated_institutions: 'No affiliated institutions' + no_copyrightHolders: 'No copyright holders' + no_description: 'No description' + no_doi: 'No DOI assigned' + no_license: 'No license' + no_matches: 'No matches found' + no_publication_doi: 'No publication DOI' + no_subjects: 'No subjects' + no_title: 'No title' + no_year: 'No year' + publication_doi: 'Publication DOI' + registered_from: 'Registered from' + registration_doi: 'Registration DOI' + registration_type: 'Registration type' + select_license: 'Select license' + show_less: 'Show less' + show_more: 'Show more' + subjects: Subjects + tags: Tags + title: Title + edit_description: + success: 'Description successfully updated.' + error: 'Unable to save description.' + edit_category: + success: 'Category successfully updated.' + error: 'Unable to save category.' + mint_doi: + header: 'Are you sure you want to create a DOI for this registration?' + text: 'A DOI is persistent and will always resolve to this page.' + success: 'DOI successfully created.' + error: 'Unable to create registration DOI.' + edit_pub_doi: + success: 'Publication DOI successfully updated.' + error: 'Unable to save publication DOI.' + edit_institutions: + success: 'Affiliated institutions successfully updated.' + error: 'Unable to save affiliated institutions.' + edit_license: + success: 'License successfully updated.' + error: 'Unable to save license.' + edit_tags: + success: 'Tags successfully updated.' + error: 'Unable to save tags.' + nodeLicense: + year: 'Year' + copyrightHolders: 'Copyright Holders' + save_subjects_error: 'Unable to save subjects' + load_subjects_error: 'Unable to load subjects' + form_view: + none_selected: 'None selected' + overview: + title: Overview + collapse: Collapse + expand: Expand + contents: Contents + see_more: 'See more' + metadata: Metadata + component_of: 'This is a component of a registration:' + comments: + title: Comments + see_replies: 'See replies' + hide_replies: 'Hide replies' + report: Report + cancel: Cancel + load_more: 'Load more replies' + create_report: + success: 'Comment successfully reported' + error: 'Unable to report comment' + category_placeholder: 'Select a category that best describes abuse' + retract_report: + success: 'Report successfully retracted' + error: 'Unable to retract abuse report' + modified: 'Modified ' + report_placeholder: 'Describe abuse' + comment_abuse: 'Comment reported.' + comment_abuse_action: 'Not abuse' + abuse_spam: 'Spam or advertising' + abuse_hate: 'Hate speech' + abuse_violence: 'Violence or harmful behavior' + cannot_retract_report: 'Only the reporter can retract report' + no_comments: 'No comments.' + links: + title: Links + linked_nodes: 'Linked projects and components' + no_linked_nodes: 'This registration has no linked projects or components.' + linked_registrations: 'Linked registrations' + no_linked_registrations: 'This registration has no linked registrations.' + contributors: + title: Contributors + gravatar_alt: 'Gravatar for {name}' + components: + title: Components + no_components: 'This registration has no components.' + external_links: + files: Files + wiki: Wiki + analytics: Analytics + form_view: + no_files: 'No files selected' + withdrawn: + has_been_withdrawn: 'This registration has been withdrawn for the reason(s) stated below.' + date_withdrawn: 'Date withdrawn' + justification: 'Justification for withdrawal' + no_justification: 'None given' + state: Withdrawn + withdraw: + withdraw: 'Withdraw registration' + withdrawal_justification_label: 'Please provide your justification for withdrawing this registration.' + random_scientist_x: 'Type {x} below and click Withdraw Registration if you are sure you want to continue.' + success: 'Withdrawal request submitted successfully' + error: 'Unable to withdraw this registration' + warning: 'Withdrawing a registration will remove its content from the GakuNin RDM, but leave basic metadata behind. The title of a withdrawn registration and its contributor list will remain, as will justification or explanation of the withdrawal, should you wish to provide it. Withdrawn registrations will be marked with a "withdrawn" tag. This action is irreversible.' + archiving: + currently_archiving: 'This registration is currently archiving, and no changes can be made at this time.' + email_support: 'If this registration has been archiving for more than 72 hours, please email {supportEmail} for assistance.' + pending: + state: Pending + action: + approve: Approve + reject: Reject + public: + state: Public + text: 'Public registration' + short_description: Public + long_description: 'This public registration is a frozen, non-editable version of this project.' + pendingRegistration: + text: 'Pending registration' + short_description: 'Pending registration approval' + long_description: 'This is a pending registration of this project, awaiting approval from project administrators. This registration will be final when all project administrators approve the registration or 48 hours pass, whichever comes first.' + pendingWithdrawal: + text: 'Public registration' + short_description: 'Pending withdrawal' + long_description: 'This registration will be withdrawn when all project administrators approve the withdrawal.' + pendingEmbargo: + text: 'Pending registration' + short_description: 'Pending embargo approval' + long_description: 'This registration is pending approval. It will be final and enter an embargo period when all project administrators approve the registration or 48 hours pass, whichever comes first. The embargo will keep the registration private until the embargo period ends.' + pendingEmbargoTermination: + text: 'Embargoed registration' + short_description: 'Pending embargo termination' + long_description: 'This registration is embargoed. It will remain private until {embargoEndDate}. A request to make this registration public is pending.' + embargoed: + state: Embargoed + action: 'End embargo early' + action_success: 'Embargo termination request successfully sent' + action_error: 'Unable to submit embargo termination request' + confirm_text: 'By clicking confirm, an email will be sent to project administrator(s) to approve ending the embargo. If approved, this registration, including any components, will be made public immmediately. This action is irreversible.' + confirm_button_text: Confirm + text: 'Embargoed registration' + short_description: Embargoed + long_description: 'This registration is embargoed. It will remain private until {embargoEndDate}.' + bookmark: + add: + text: Bookmark + success: 'Registration successfully added to your bookmarks' + error: 'Unable to bookmark this registration' + remove: + text: 'Remove from bookmarks' + success: 'Registration successfully removed from your bookmarks' + error: 'Unable to remove this registration from bookmarks' + fork: + success: 'Your fork is being created. You''ll receive an email when it is complete' + success_title: 'Fork status' + error: 'Unable to fork registration' + view_forks: 'View forks' + fork_registration: 'Fork this registration' + tooltips: + bookmark: 'Bookmark this registration' + remove_bookmark: 'Remove bookmark' + share: 'Share this registration' + fork: 'Fork this registration' + partialRegistrationModal: + title: 'Select Components' + continueButton: Continue + cancelButton: Cancel + selectAll: 'Select All' + clearAll: 'Clear All' + finalizeRegistrationModal: + title: 'Almost done...' + notice: "Please keep in mind that:\n
      \n
    • \n Registrations cannot be modified or deleted once completed.\n
    • \n
    • \n The content and version history of Wiki and GakuNin RDM Storage will be copied to the registration.\n
    • \n
    • \n This project contains links to other projects. These links will be copied into your registration, but the\n projects that they link to will not be registered. If you wish to register the linked projects, they must be\n registered separately. Learn more about links.\n
    • \n
    " + immediateOption: 'Make registration public immediately' + embargoOption: 'Enter registration into embargo' + createDoi: 'Create DOI' + submit: Submit + back: Back + datePlaceholder: 'Choose embargo end date' +meetings: + index: + meetings-list: + min_5_submissions: 'Only conferences with at least five submissions are displayed.' + name: Name + submissions: Submissions + location: Location + date: Date + empty: 'No results found for this search term.' + meetings-hero-banner: + image_alt: 'Logo for GakuNin RDM meeting' + h3: 'A free poster and presentation sharing service for academic meetings and conferences' + conference_organizers_h3: 'For Conference Organizers' + conference_organizers_help_text: 'Register your event to broaden its impact. Events get a dedicated page, an easy submission process, and persistent links.' + conference_organizers_register_button: Register + conference_organizers_register_panel_texts: '

    GakuNin RDM Meetings is a product that we offer to academic conferences at no cost. To request poster and talk hosting for a conference:

    Submit this set-up form

    We''ll review and add your conference within one business day.

    ' + conference_participants_h3: 'For Conference Participants' + conference_participants_help_text: 'Share your posters and presentations along with any supporting data and materials. Get persistent links and usage analytics.' + conference_participants_upload_button: Upload + conference_participants_upload_panel_texts: '

    The GakuNin RDM can host posters and talks for scholarly meetings. Submitting a presentation is easy:

    • Find the email address for your conference by clicking on its name in the list below
    • Send your materials to the GakuNin RDM Meetings email address for your conference

    We’ll create a GakuNin RDM project for you. You''ll get a permanent link to your presentation, plus analytics about who has viewed and downloaded your work.

    ' + meetings-footer: + discover: Discover + discover_text: 'Explore posters and presentations from events long after they''re over.' + share: Share + share_text: 'Get persistent links to your content and increase your impact.' + enhance: Enhance + enhance_text: 'Add supplementary data and materials to your submission to make your work more transparent.' + who_use_text: 'Who uses GakuNin RDM Meetings?' + aps_img_alt: 'Logo for American Physiological Society (APS)' + bitss_img_alt: 'Logo for Berkeley Initiative for Transparency in the Social Sciences (BITSS)' + nrao_img_alt: 'Logo for National Radio Astronomy Observatory (NRAO)' + spsp_img_alt: 'Logo for Society for Personality and Social Psychology (SPSP)' + detail: + meeting-submissions-list: + title: Title + author: Author + category: Category + dateCreated: 'Date created' + downloads: Downloads + noSubmissions: 'No submissions' + meeting-detail-header: + image_alt: 'Meeting logo image' + add_your: 'Add your' + send_email: 'Send an email to the following address(es) from the email account you would like used on the OSF:' + email_text: 'For {typeName}, email {emailAddress}' + format_header: 'The format of the email should be as follows:' + subject: Subject + message_body: 'Message body' + attachment: Attachment + panel_footer_note: 'Once sent, we will follow-up by sending you the permanent identifier that others can use to cite your work; you can also login and make changes, such as uploading additional files, to your project at that URL.If you didn''t have a GakuNin RDM account, one will be created automatically and a link to set your password will be emailed to you; if you do, we will simply create a new project in your account.By creating an account you agree to our Terms and that you have read our Privacy Policy, including our information on Cookie Use.' + conference_homepage: 'Conference homepage' +analytics: + pageTitle: '{nodeTitle} Analytics' + forks: Forks + viewForks: 'View forks' + links: 'Links to this project' + viewLinks: 'View links' + noLinks: 'No links to this project' + templateCopies: 'Template copies' + adblockWarning: 'The use of adblocking software may prevent site analytics from loading properly' + uniqueVisits: 'Unique visits' + visitTimes: 'Time of day of visits' + topReferrers: 'Top referrers' + popularPages: 'Popular pages' + showForDateRange: 'Show analytics for date range:' + directLink: 'direct link' + enableChart: 'Enable chart' + visits: Visits + hourOfDay: 'Hour of day' + keenError: 'Error loading analytics data' + dateRanges: + pastWeek: 'Past week' + pastTwoWeeks: 'Past two weeks' + pastMonth: 'Past month' + popularPageNames: + home: Home + files: Files + fileDetail: 'File: {fileName}' + analytics: Analytics + forks: Forks + registrations: Registrations + wiki: Wiki + privateProject: "\n

    \n Analytics are not available for private projects. To view Analytics, make your project public\n by selecting Make Public from the project overview page. Public projects:\n

    \n
      \n
    • are discoverable
    • \n
    • are citable
    • \n
    • can be affiliated with GakuNin RDM for Institutions partners
    • \n
    • promote open practices among peers
    • \n
    \n

    \n Receive data on visitors to your project by enabling Analytics\n and begin discovering the impact of your work.\n

    \n " +cookieBanner: + cookieWarning: 'The National Institute of Informatics (NII) uses cookies to operate the NII Research Data Cloud service and to improve your user experience. If you intend to use the GakuNin RDM, please read our Privacy Policy and information on NII use of cookies. By clicking Accept or continuing to use our website, you consent to the cookies use on this site. If you do not agree with the cookies use, please change your browser settings to disable cookies or stop using our website. Please be aware that you may not be able to use some functions on our website when you have cookies disabled.' + accept: Accept +discover: + relevance: Relevance + sort_oldest_newest: 'Modified Date (oldest to newest)' + sort_newest_oldest: 'Modified Date (newest to oldest)' + search_results: + lastEdited: 'Last edited: {date} (UTC)' + status: 'Status: {value}' +page_not_found: + heading: 'Page not found' + message: 'The page you were looking for is not found on the {brand} service.' +forbidden: + heading: Forbidden + message: 'User has restricted access to this page.' +resource_deleted: + heading: 'Resource deleted' + message: 'User has deleted this content.' +routes: + register: + sign_up: 'Sign Up' + create_a_free_account: 'Create a free account' + sign_up_using: 'Sign up using:' + orcid: ORCID + institution: Institution + email: Email +osf-components: + draft-registration-card: + initiated_by: 'Initiated by:' + form_type: 'Form:' + started: 'Started:' + last_updated: 'Last updated:' + review: Review + delete_draft_confirm: 'Are you sure you want to delete this draft registration?' + copyable-text: + copyToClipboard: 'Copy to clipboard' + copied: Copied + delete-button: + buttonLabel: Delete + confirmButtonText: Delete + cancelButtonText: Cancel + modalTitle: 'Are you sure you want to delete this?' + modalBody: 'This action is irreversible.' + hardConfirm: 'Type the following to continue: {text}' + error: 'There was an error deleting this item.' + paginated-list: + error: 'There was an error loading this list.' + sign-up-form: + full_name: 'Full name' + contact_email: 'Contact email' + confirm_email: 'Confirm email' + password: Password + sign_up_button_label: 'Sign up' + password_placeholder: 'Password (Must be {min} to {max} characters)' + registration_success: 'Registration successful. Please check {email} to confirm your email address.' + sign-up-policy: + paragraph: 'I have read and agree to the Terms of Use and Privacy Policy.' + tags-widget: + tags: Tags + add_tag: 'Add a tag to enhance discoverability' + no_tags: 'No tags' + institutions-list: + no_affiliated_institution: + project: 'This project has no affiliated institutions' + registration: 'This registration has no affiliated institutions' + institutions-select-list: + no_affiliated_institution: 'You have no institutional affiliations' + citation-viewer: + get_more: 'Get more citations' + placeholder: 'Enter citation style (e.g. "APA")' + type_to_search: 'Start typing to search citation styles' + search-bar: + aria: Search + heading: 'Discover public research' + subheading: 'Discover projects, data, materials, and collaborators on GakuNin RDM that might be helpful to your own research.' + placeholder: 'Search discipline, author...' + search: Search + hero-banner: + headingA: 'The place to share your research' + headingB: 'There’s a better way to manage your research' + subheading: 'GakuNin RDM is a free, open platform to support your research and enable collaboration.' + add_your_research: + heading: 'Add your research' + subheading: 'Labs and teams across the globe use GakuNin RDM to open their projects up to the scientific community.' + carousel: + current_slide: '(Current Slide)' + previous_slide: 'Previous slide' + next_slide: 'Next slide' + go_to_slide: 'Go to slide {slideIndex}' + registries: + read-only-contributors-list: + editContributorsOnYourProject: 'Edit contributors on your project' + schema-block-renderer/label: + showExample: 'Show example' + hideExample: 'Hide example' + editButtonAriaLabel: 'Edit {questionLabel}' + schema-block-renderer/editable/files: + instructions: 'You may attach up to 5 file(s) to this question. You may attach files that you already have in GakuNin RDM Storage in this {projectOrComponent} or upload (drag and drop) a new file from your computer. Uploaded files will automatically be added to this {projectOrComponent} so that they can be registered. To attach files from other components or an add-on, first add them to this {projectOrComponent}.' + schema-block-renderer/read-only/response: + noResponse: 'No response' + schema-block-renderer/read-only/files: + noFilesSelected: 'No files selected' + files-widget: + drag_drop_files: 'Drag and drop files here to upload files to this folder' + load_more: 'Load more files' + unselect_file: 'Unselect file' + upload_file: 'Upload file' + expand_files_menu: 'Expand files menu' + create_folder: 'Create folder' + create: Create + folder_name_placeholder: 'New folder name' + create_folder_failed: 'Failed to create folder' + subjects: + browse: + browse_all: 'Browse all subjects' + show_child_subjects: 'Show child subjects' + hide_child_subjects: 'Hide child subjects' + search: + search_all: 'Search subjects' + placeholder: 'Type to search' + no_results: 'No matching subjects found. Try a less specific search.' + display: + placeholder: 'Your selections will appear here' + remove_subject: 'Remove subject' + registries-side-nav: + expandSideNav: 'Expand registration form navigation' + collapseSideNav: 'Collapse registration form navigation' + registries-top-nav: + showRegistrationNavigation: 'Show registration form navigation' + metadata: 'Return to metadata' + previousPage: 'Previous page' + nextPage: 'Next page' + reviewRegistration: 'Review registration' + contributors: + headings: + name: 'Name' + permission: 'Permission' + citation: 'Citation' + permissions: + admin: 'Administrator' + write: 'Read + Write' + read: 'Read' + citation: + true: 'Yes' + false: 'No' +settings: + toggleNav: 'Toggle navigation' + profile: + title: 'Profile information' + name: + title: Name + fullName: 'Display name (e.g. Rosalind Elsie Franklin)' + givenName: 'Given name (e.g. Rosalind)' + middleNames: 'Middle names (e.g. Elsie)' + familyName: 'Family name (e.g. Franklin)' + suffix: Suffix + citationName: 'Citation name' + instructions: 'Your full name, above, will be displayed in your profile. To control the way your name will appear in citations, edit the fields below.' + apa: APA + mla: MLA + citationPreview: 'Citation preview' + social: + title: Social + education: + title: Education + employment: + title: Employment + account: + deactivation: + title: 'Deactivate account' + body: 'Deactivating your account will remove you from all public projects to which you are a contributor. Your account will no longer be associated with GakuNin RDM projects, and your work on the GakuNin RDM will be inaccessible. If this is a secondary account that you want to close, consider merging your accounts.' + warning: 'Warning:' + warningText: 'Once your deactivation has been approved the effects are irreversible.' + pending: 'Your account is currently pending deactivation.' + requestButton: 'Request deactivation' + confirmationTitle: 'Request account deactivation?' + confirmationBody: 'Are you sure you want to request account deactivation? A GakuNin RDM administrator will review your request. If accepted, you will NOT be able to reactivate your account.' + confirmationButton: Request + confirmationToastMessage: 'A GakuNin RDM administrator will contact you shortly to confirm your deactivation request.' + undoRequestButton: 'Undo deactivation request' + undoRequestConfirmationTitle: 'Undo deactivation request?' + undoRequestConfirmationBody: 'Are you sure you want to undo your account deactivation request? This will preserve your account status.' + undoRequestConfirmationButton: 'Undo deactivation request' + undoRequestToastMessage: 'Your deactivation request has been undone.' + defaultRegion: + title: 'Default storage location' + why: 'This location will be applied to new projects and components. It will not affect existing projects and components.' + updateButton: 'Update location' + successToast: 'You have successfully changed your default storage location to {region}' + saveError: 'Could not make this change. Try again in a few minutes. If the issue persists, please report it to {supportEmail}.' + export: + title: 'Export account data' + body: 'Exporting your account data allows you to keep a permanent copy of the current state of your account. Keeping a copy of your account data can provide peace of mind or assist in transferring your information to another provider.' + requestButton: 'Request export' + confirmationTitle: 'Request account export?' + confirmationBody: 'Are you sure you want to request account export?' + confirmationButton: Request + confirmationToastMessage: 'A GakuNin RDM administrator will contact you shortly to confirm your export request.' + saveError: 'Could not make this change. Try again in a few minutes. If the issue persists, please report it to {supportEmail}.' + security: + title: 'Security settings' + twoFactorAuth: 'Two-factor authentication' + enableTwoFactor: Configure + enableWarning: 'Configuring two-factor authentication will not immediately activate this feature for your account. You will need to follow the steps that appear below to complete the activation of two-factor authentication for your account.' + disableTwoFactor: Disable + why: 'By using two-factor authentication, you will protect your GakuNin RDM account with both your password and your mobile phone.' + enableButton: Configure + importantWarning: 'Important: If you lose access to your mobile device, you will not be able to log in to your GakuNin RDM account.' + howTo: 'To use, you must install an appropriate application on your mobile device. Google Authenticator is a popular choice and is available for both Android and iOS.' + onceVerified: 'Once verified, your device will display a six-digit code that must be entered during the login process. This code changes every few seconds, which means that unauthorized users will not be able to log in to you account, even if they know your password.' + scanImage: 'Scan the image below, or enter the secret key {secretKey} into your authentication device.' + enterVerification: 'Enter your verification code:' + verificationFailed: 'Verification failed. Please enter your verification code again.' + disableWarning: 'Are you sure you want to disable two-factor authentication?' + disableButton: Disable + saveError: 'Could not make this change. Try again in a few minutes. If the issue persists, please report it to {supportEmail}.' + submitVerification: Enable + title: 'Account settings' + connected_emails: + add_email: 'Add email' + add_email_modal: + title: 'Confirmation email sent' + body: '{emailAddress} was added to your account. You will receive a confirmation email at {emailAddress}. Please click the link in your email to confirm this action. You will be required to enter your password.' + alternate_emails: 'Alternate emails' + confirm_delete: + title: 'Remove email' + body: 'Are you sure you want to remove {emailAddress} from your email list?' + resend_confirmation_modal: + title: 'Resend email confirmation?' + body: 'Are you sure that you want to resend email confirmation to {emailAddress}?' + resend_button: Resend + resend_fail: 'Unable to resend confirmation email' + resend_success: 'Email resent' + delete_fail: 'Unable to delete email' + delete_success: 'Email deleted' + load_fail: 'Unable to load emails' + make_primary: 'Make primary' + merge_explanation: 'To merge an existing account with this one or to log in with multiple email addresses, add an alternate email address below. All projects and components will be displayed under the email address listed as primary.' + no_unconfirmed_emails: 'There are no unconfirmed emails' + no_alternate_emails: 'There are no alternate emails' + placeholder_text: 'Email address' + primary_email: 'Primary email' + resend_confirmation: 'Resend confirmation' + save_fail: 'Unable to add email' + save_success: 'Email added' + title: 'Connected emails' + unconfirmed_emails: 'Unconfirmed emails' + update_fail: 'Unable to update email' + update_success: 'Email updated' + changePassword: + title: 'Change password' + updateButton: 'Update password' + updateFail: 'Error updating password' + updateSuccess: 'Successfully changed password' + currentPassword: + placeholder: 'Old password' + newPassword: + placeholder: 'New password' + confirmPassword: + title: 'Confirm new password' + placeholder: 'Verify password' + connected_identities: + title: 'Connected identities' + description: 'Connected identities allow you to log in to the GakuNin RDM via a third-party service.
    You can revoke these authorizations here.' + no_identities: 'You have not authorized any external services to log in to the GakuNin RDM.' + status: + verified: Verified + pending: Pending + confirm_remove: + title: 'Remove authorization?' + body: 'Are you sure you want to remove this authorization?' + confirm_button_text: Remove + remove_fail: 'Revocation request failed. Please contact {supportEmail} if the problem persists.' + remove_success: 'You have revoked this connected identity.' + addons: + title: 'Configure add-on accounts' + notifications: + title: Notifications + developer-apps: + title: 'Developer apps' + explanation: 'The GakuNin RDM allows third-party web applications to connect to the GakuNin RDM on behalf of other users via the OAuth 2.0 web application flow.' + createApp: 'Create developer app' + backToList: 'Back to list of developer apps' + appDetail: 'Detail for app {appName}' + editApp: 'Edit app' + appName: 'App name' + appHomepage: 'Project homepage URL' + appDescription: 'App description' + appCallbackUrl: 'Authorization callback URL' + clientID: 'Client ID' + clientIDDescription: 'The unique identifier for this developer app. It is safe to share publicly with others.' + clientSecret: 'Client secret' + clientSecretDescription: 'The client secret is known only to you and GakuNin RDM. Do not display or expose it to others.' + showSecret: 'Show client secret' + hideSecret: 'Hide client secret' + created: 'Developer app created.' + saved: 'Developer app saved.' + deleted: 'Developer app deleted.' + resetSecret: + label: 'Reset secret' + description: 'Resetting the client secret will render your application unusable until it is updated with the new client secret, and all users must reauthorize access. Previously issued access tokens will no longer work.' + modalTitle: 'Reset client secret?' + confirm: 'Are you sure you want to reset the client secret? This cannot be reversed.' + success: 'Client secret successfully reset.' + error: 'Error resetting client secret.' + confirmDelete: + title: 'Delete app {appName}?' + body: 'Are you sure you want to delete this developer app? All users'' access tokens will be revoked. This cannot be reversed.' + tokens: + title: 'Personal access tokens' + explanation: 'Personal access tokens function like ordinary OAuth access tokens. They can be used to authenticate to the API.' + createToken: 'Create token' + editToken: 'Edit token' + backToList: 'Back to list of tokens' + tokenName: 'Token name' + scopes: Scopes + scopesDescription: 'Scopes limit access for personal access tokens.' + created: 'Token created.' + saved: 'Token saved.' + deleted: 'Token deleted.' + confirmDelete: + title: 'Delete token {tokenName}?' + body: 'Are you sure you want to delete this personal access token? This cannot be reversed.' + createSuccess: + message: 'Token {tokenName} created:' + instructions: 'This token will never expire. This token should never be shared with others. If it is accidentally revealed publicly, it should be deactivated immediately.' + warning: 'This is the only time your token will be displayed.' + editScopes: 'Edit scopes' +verifyEmail: + merge: + header: 'Merge account?' + body: 'Would you like to merge {email} into your account? This action is irreversible.' + verifyButton: 'Merge account' + denyButton: 'Do not merge account' + verifySuccess: '{email} has been merged into your account.' + denySuccess: '{email} has not been merged into your account.' + verifyError: 'There was a problem merging {email} into your account.' + denyError: 'There was a problem canceling the request to merge {email} into your account.' + add: + header: 'Add alternate email?' + body: 'Would you like to add {email} to your account?' + verifyButton: 'Add email' + denyButton: 'Do not add email' + verifySuccess: '{email} has been added to your account.' + denySuccess: '{email} has not been added to your account.' + verifyError: 'There was a problem adding {email} to your account.' + denyError: 'There was a problem canceling the request to add {email} to your account.' +ipsum: + title: 'tempor nec feugiat nisl pretium' + sentence: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.' + paragraph: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Id velit ut tortor pretium. Nisi porta lorem mollis aliquam ut porttitor leo a. Cras fermentum odio eu feugiat. Eget mi proin sed libero enim. Quam adipiscing vitae proin sagittis. Volutpat consequat mauris nunc congue nisi vitae suscipit tellus. At varius vel pharetra vel turpis nunc eget. Purus ut faucibus pulvinar elementum integer enim neque volutpat. Turpis nunc eget lorem dolor. Mattis pellentesque id nibh tortor id aliquet lectus proin nibh. Arcu felis bibendum ut tristique et egestas quis. Nisl tincidunt eget nullam non nisi est sit amet. Fringilla urna porttitor rhoncus dolor purus non enim.' +dev_tools: + title: 'Dev tools' + zoom_to_route: + title: 'Zoom to route' + zoom: Zoom! + placeholder: 'Choose a route' + options: + toast_events: 'Display toast for tracked events' + show_url_bar: 'Show URL bar -- navigate by URL without reloading' +iqbrims: + page_title: '{nodeTitle} IQB-RIMS' + header_overview: 'Overview of Paper' + header_manuscripts: 'Final Manuscript/Composition' + header_data: 'Raw Data' + header_checklist: 'Checklist' + loading: 'Preparing folders for application...' + deposit_button: 'Deposit Manuscript & Data' + check_button: 'Image Scan only' + edit_button: 'Edit' + management_project: 'Management Project' + flowable_task_service: 'Flowable Task Service' + deposit_help: 'Register an accepted paper and deposit data' + check_help: 'Pre-submission image scan service' + paper_title: 'Paper Title' + contributors: 'Co-author/Worker' + edit_contributors: 'Edit' + labo: 'Laboratory' + email: 'Email for Notification' + accepted_date: 'Accepted Date' + journal_name: 'Journal Name' + doi: 'DOI' + publish_date: 'Publish Date' + volume: 'Volume' + page_number: 'Page Number' + directly_submit_data: 'Directly Submit Data' + workflow_overall_state: 'Current Status' + submit_manuscripts: 'Current Status' + submit_data: 'Current Status' + submit_checklist: 'Current Status' + submitted_no_data: 'No submitted data' + submitted_loading: 'Loading submitted data' + submitted_name: 'Submitted Name' + submitted_modified: 'Submitted Modified Date' + placeholders: + paper_title: 'Research Paper Title' + labo: 'Select affiliated laboratory' + accepted_date: 'YYYY/MM/DD' + journal_name: 'Journal Name' + doi: 'https://doi.org/XX.XXXX/Y.YYYYYY' + publish_date: 'YYYY/MM/DD' + volume: 'N' + page_number: 'N' + files_comment: '提出するファイルに関するコメント(任意)' + uploader_comment: '提出するファイルに関するコメント(任意)' + submit_button: 'Submit' + confirm_button: 'Update' + processing_submit_button: 'Submitting...' + discard_button: 'Discard Changes' + failed_to_submit: 'Failed to submit' + uploader_no_files: 'No files' + uploader_rejected_manuscript_files: 'Cannot upload TIFF, PNG, JPEG:' + uploader_rejected_data_files: 'Can upload only ZIP, Excel:' + uploader_rejected_checklist_files: 'Can upload only PDF:' + file_confirm_dialog_title: 'ファイルの提出' + file_confirm_dialog_body: 'ファイル提出後は変更・追加はできません。よろしいですか?' + file_confirm_dialog_notice: '処理完了にともない、通知メール Your move has finished が送られる場合があります。' + submit_files: '提出予定ファイル' + has_paper: '最終原稿・組図' + has_raw: '生データ' + has_checklist: 'チェックリスト' + files_comment: 'コメント' + uploader_comment: 'コメント' +myscreen: + page_title: '{nodeTitle} My Screen' + header: 'My Screen' + loading: 'Loading My Screen config...' + param1: 'Param 1' + save_button: 'Save' + failed_to_submit: 'Failed to save' + placeholders: + param1: 'anything' diff --git a/ScreenExpansion/images/addon_tab.png b/ScreenExpansion/images/addon_tab.png new file mode 100644 index 0000000..20f8bb0 Binary files /dev/null and b/ScreenExpansion/images/addon_tab.png differ diff --git a/ScreenExpansion/images/project_dashboard.png b/ScreenExpansion/images/project_dashboard.png new file mode 100644 index 0000000..a811599 Binary files /dev/null and b/ScreenExpansion/images/project_dashboard.png differ diff --git a/ScreenExpansion/osf.io/addon/__init__.py b/ScreenExpansion/osf.io/addon/__init__.py new file mode 100644 index 0000000..eba4dd5 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/__init__.py @@ -0,0 +1,4 @@ +SHORT_NAME = 'myscreen' +FULL_NAME = 'My Screen' + +default_app_config = 'addons.{}.apps.AddonAppConfig'.format(SHORT_NAME) diff --git a/ScreenExpansion/osf.io/addon/apps.py b/ScreenExpansion/osf.io/addon/apps.py new file mode 100644 index 0000000..41e320e --- /dev/null +++ b/ScreenExpansion/osf.io/addon/apps.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +import os +from addons.base.apps import BaseAddonAppConfig +from . import SHORT_NAME, FULL_NAME + + +HERE = os.path.dirname(os.path.abspath(__file__)) +TEMPLATE_PATH = os.path.join( + HERE, + 'templates' +) + + +class AddonAppConfig(BaseAddonAppConfig): + + short_name = SHORT_NAME + name = 'addons.{}'.format(SHORT_NAME) + label = 'addons_{}'.format(SHORT_NAME) + + full_name = FULL_NAME + + owners = ['node'] + + views = [ + # widget: ここから + 'widget', + # widget: ここまで + # ember: ここから + 'page' + # ember: ここまで + ] + + configs = ['node'] + + categories = ['other'] + + node_settings_template = os.path.join(TEMPLATE_PATH, 'node_settings.mako') + + @property + def routes(self): + from . import routes + return [ + # ember: ここから + routes.page_routes, + # ember: ここまで + routes.api_routes + ] + + @property + def node_settings(self): + return self.get_model('NodeSettings') diff --git a/ScreenExpansion/osf.io/addon/migrations/__init__.py b/ScreenExpansion/osf.io/addon/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/ScreenExpansion/osf.io/addon/models.py b/ScreenExpansion/osf.io/addon/models.py new file mode 100644 index 0000000..64f6244 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/models.py @@ -0,0 +1,20 @@ +import logging + +from addons.base.models import BaseNodeSettings +from django.db import models +from . import settings + +logger = logging.getLogger(__name__) + + +class NodeSettings(BaseNodeSettings): + param_1 = models.TextField(blank=True, null=True) + + def get_param_1(self): + if self.param_1 is None or self.param_1 == '': + return settings.DEFAULT_PARAM_1 + return self.param_1 + + def set_param_1(self, param_1): + self.param_1 = param_1 + self.save() diff --git a/ScreenExpansion/osf.io/addon/requirements.txt b/ScreenExpansion/osf.io/addon/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/ScreenExpansion/osf.io/addon/routes.py b/ScreenExpansion/osf.io/addon/routes.py new file mode 100644 index 0000000..eed3d2c --- /dev/null +++ b/ScreenExpansion/osf.io/addon/routes.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +from framework.routing import Rule, json_renderer +from website.routes import notemplate +from . import SHORT_NAME +from . import views + +# ember: ここから +# HTML endpoints +page_routes = { + 'rules': [ + # Home (Base) | GET + Rule( + [ + '//{}'.format(SHORT_NAME), + '//node//{}'.format(SHORT_NAME), + ], + 'get', + views.project_myscreen, + notemplate + ), + + ] +} +# ember: ここまで + +# JSON endpoints +api_routes = { + 'rules': [ + Rule([ + '/project//{}/settings'.format(SHORT_NAME), + '/project//node//{}/settings'.format(SHORT_NAME), + ], 'get', views.myscreen_get_config, json_renderer), + Rule([ + '/project//{}/settings'.format(SHORT_NAME), + '/project//node//{}/settings'.format(SHORT_NAME), + ], 'put', views.myscreen_set_config, json_renderer), + + # ember: ここから + Rule([ + '/project//{}/config'.format(SHORT_NAME), + '/project//node//{}/config'.format(SHORT_NAME), + ], 'get', views.myscreen_get_config_ember, json_renderer), + Rule([ + '/project//{}/config'.format(SHORT_NAME), + '/project//node//{}/config'.format(SHORT_NAME), + ], 'patch', views.myscreen_set_config_ember, json_renderer), + # ember: ここまで + ], + 'prefix': '/api/v1', +} diff --git a/ScreenExpansion/osf.io/addon/settings/__init__.py b/ScreenExpansion/osf.io/addon/settings/__init__.py new file mode 100644 index 0000000..2b2f988 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/settings/__init__.py @@ -0,0 +1,10 @@ +import logging +from .defaults import * # noqa + + +logger = logging.getLogger(__name__) + +try: + from .local import * # noqa +except ImportError: + logger.warn('No local.py settings file found') diff --git a/ScreenExpansion/osf.io/addon/settings/defaults.py b/ScreenExpansion/osf.io/addon/settings/defaults.py new file mode 100644 index 0000000..a9e5175 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/settings/defaults.py @@ -0,0 +1 @@ +DEFAULT_PARAM_1 = 'This is test!' diff --git a/ScreenExpansion/osf.io/addon/static/comicon.png b/ScreenExpansion/osf.io/addon/static/comicon.png new file mode 100644 index 0000000..81ddf48 Binary files /dev/null and b/ScreenExpansion/osf.io/addon/static/comicon.png differ diff --git a/ScreenExpansion/osf.io/addon/static/myscreen.css b/ScreenExpansion/osf.io/addon/static/myscreen.css new file mode 100644 index 0000000..d60cfeb --- /dev/null +++ b/ScreenExpansion/osf.io/addon/static/myscreen.css @@ -0,0 +1,5 @@ +/* widget用ファイル */ + +#myscreen-content p { + color: blue; +} \ No newline at end of file diff --git a/ScreenExpansion/osf.io/addon/static/node-cfg.js b/ScreenExpansion/osf.io/addon/static/node-cfg.js new file mode 100644 index 0000000..a8b7c60 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/static/node-cfg.js @@ -0,0 +1,81 @@ +'use strict'; + +var $ = require('jquery'); +var m = require('mithril'); +var ko = require('knockout'); +var Raven = require('raven-js'); +var osfHelpers = require('js/osfHelpers'); +var ChangeMessageMixin = require('js/changeMessage'); +var SaveManager = require('js/saveManager'); + +var SHORT_NAME = 'myscreen'; +var logPrefix = `[${SHORT_NAME}] `; + + +function NodeSettings() { + var self = this; + self.baseUrl = window.contextVars.node.urls.api + SHORT_NAME + '/'; + + self.param_1 = ko.observable(''); + self.loaded_param_1 = ko.observable(''); + self.dirty = ko.computed(function() { + return self.param_1() != self.loaded_param_1(); + }) + + ChangeMessageMixin.call(self); + + self.saveManager = new SaveManager( + self.baseUrl + 'settings', + null, + { + dirty: function() { + return self.param_1() != self.loaded_param_1() + } + } + ); + + self.submit = function() { + console.log(logPrefix, 'submit', self.param_1()); + self.saveManager.save({'param_1': self.param_1()}) + .then(function (data) { + console.log(logPrefix, 'updated: ', data); + self.loaded_param_1(self.param_1()) + }, + function(reason) { + Raven.captureMessage('Error while updating addon info', { + extra: { + reason: reason + } + }); + }) + }; + + self.loadConfig = function() { + var url = self.baseUrl + 'settings'; + console.log(logPrefix, 'loading: ', url); + + return $.ajax({ + url: url, + type: 'GET', + dataType: 'json' + }).done(function (data) { + console.log(logPrefix, 'loaded: ', data); + self.loaded_param_1(data.param_1); + self.param_1(data.param_1); + }).fail(function(xhr, status, error) { + Raven.captureMessage('Error while retrieving addon info', { + extra: { + url: url, + status: status, + error: error + } + }); + }); + }; +} + +$.extend(NodeSettings.prototype, ChangeMessageMixin.prototype); + +var settings = new NodeSettings(); +osfHelpers.applyBindings(settings, `#${SHORT_NAME}Scope`); +settings.loadConfig(); diff --git a/ScreenExpansion/osf.io/addon/static/widget-cfg.js b/ScreenExpansion/osf.io/addon/static/widget-cfg.js new file mode 100644 index 0000000..8508bad --- /dev/null +++ b/ScreenExpansion/osf.io/addon/static/widget-cfg.js @@ -0,0 +1,52 @@ +'use strict'; +// widget用ファイル + +var $ = require('jquery'); +var ko = require('knockout'); +var Raven = require('raven-js'); +var osfHelpers = require('js/osfHelpers'); + +var logPrefix = '[myscreen] '; + +require('./myscreen.css'); + + +function MyScreenWidget() { + var self = this; + self.baseUrl = window.contextVars.node.urls.api + 'myscreen/'; + self.loading = ko.observable(true); + self.loadFailed = ko.observable(false); + self.loadCompleted = ko.observable(false); + self.param_1 = ko.observable(''); + + self.loadConfig = function() { + var url = self.baseUrl + 'settings'; + console.log(logPrefix, 'loading: ', url); + + return $.ajax({ + url: url, + type: 'GET', + dataType: 'json' + }).done(function (data) { + console.log(logPrefix, 'loaded: ', data); + self.loading(false); + self.loadCompleted(true); + self.param_1(data.param_1); + }).fail(function(xhr, status, error) { + self.loading(false); + self.loadFailed(true); + Raven.captureMessage('Error while retrieving addon info', { + extra: { + url: url, + status: status, + error: error + } + }); + }); + }; + +} + +var w = new MyScreenWidget(); +osfHelpers.applyBindings(w, '#myscreen-content'); +w.loadConfig(); diff --git a/ScreenExpansion/osf.io/addon/templates/node_settings.mako b/ScreenExpansion/osf.io/addon/templates/node_settings.mako new file mode 100644 index 0000000..8dc1ed8 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/templates/node_settings.mako @@ -0,0 +1,26 @@ + + +
    +

    + + ${addon_full_name} +

    + +
    +
    +
    + +
    + +
    +
    + +
    +
    + +
    + +
    +
    diff --git a/ScreenExpansion/osf.io/addon/tests/__init__.py b/ScreenExpansion/osf.io/addon/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/ScreenExpansion/osf.io/addon/tests/conftest.py b/ScreenExpansion/osf.io/addon/tests/conftest.py new file mode 100644 index 0000000..da9f243 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/tests/conftest.py @@ -0,0 +1 @@ +from osf_tests.conftest import * # noqa diff --git a/ScreenExpansion/osf.io/addon/tests/factories.py b/ScreenExpansion/osf.io/addon/tests/factories.py new file mode 100644 index 0000000..1154b54 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/tests/factories.py @@ -0,0 +1,13 @@ +"""Factories for the My Screen addon.""" +import factory +from factory.django import DjangoModelFactory +from osf_tests.factories import ProjectFactory + +from ..models import NodeSettings + + +class NodeSettingsFactory(DjangoModelFactory): + class Meta: + model = NodeSettings + + owner = factory.SubFactory(ProjectFactory) diff --git a/ScreenExpansion/osf.io/addon/tests/test_model.py b/ScreenExpansion/osf.io/addon/tests/test_model.py new file mode 100644 index 0000000..c060098 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/tests/test_model.py @@ -0,0 +1,35 @@ +import mock +from nose.tools import * # noqa +import pytest +import unittest + +from tests.base import get_default_metaschema +from osf_tests.factories import ProjectFactory + +from framework.auth import Auth +from ..models import NodeSettings +from .factories import NodeSettingsFactory + + +pytestmark = pytest.mark.django_db + +class TestNodeSettings(unittest.TestCase): + _NodeSettingsFactory = NodeSettingsFactory + + def setUp(self): + super(TestNodeSettings, self).setUp() + self.node = ProjectFactory() + self.user = self.node.creator + + self.node_settings = self._NodeSettingsFactory(owner=self.node) + self.node_settings.save() + + def tearDown(self): + super(TestNodeSettings, self).tearDown() + self.node.delete() + self.user.delete() + + def test_set_param_1(self): + self.node_settings.set_param_1('TEST_PARAM_1') + self.node_settings.save() + assert_equal(self.node_settings.get_param_1(), 'TEST_PARAM_1') diff --git a/ScreenExpansion/osf.io/addon/tests/test_view.py b/ScreenExpansion/osf.io/addon/tests/test_view.py new file mode 100644 index 0000000..a7a8e39 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/tests/test_view.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +from rest_framework import status as http_status + +import mock +from nose.tools import * # noqa + +from framework.auth import Auth +from tests.base import OsfTestCase, get_default_metaschema +from osf_tests.factories import ProjectFactory + +from .. import SHORT_NAME +from .. import settings +from .utils import BaseAddonTestCase +from website.util import api_url_for + + +class TestViews(BaseAddonTestCase, OsfTestCase): + + def test_empty_param_1(self): + self.node_settings.set_param_1('') + self.node_settings.save() + url = self.project.api_url_for('{}_get_config'.format(SHORT_NAME)) + res = self.app.get(url, auth=self.user.auth) + assert_equals(res.json['param_1'], settings.DEFAULT_PARAM_1) + + def test_param_1(self): + self.node_settings.set_param_1('PARAM_1') + self.node_settings.save() + url = self.project.api_url_for('{}_get_config'.format(SHORT_NAME)) + res = self.app.get(url, auth=self.user.auth) + assert_equals(res.json['param_1'], 'PARAM_1') + + # ember: ここから + def test_ember_empty_param_1(self): + self.node_settings.set_param_1('') + self.node_settings.save() + url = self.project.api_url_for('{}_get_config_ember'.format(SHORT_NAME)) + res = self.app.get(url, auth=self.user.auth) + assert_equals(res.json['data']['id'], self.node_settings._id) + assert_equals(res.json['data']['type'], 'myscreen-config') + assert_equals(res.json['data']['attributes']['param1'], settings.DEFAULT_PARAM_1) + + def test_ember_param_1(self): + self.node_settings.set_param_1('PARAM_1') + self.node_settings.save() + url = self.project.api_url_for('{}_get_config_ember'.format(SHORT_NAME)) + res = self.app.get(url, auth=self.user.auth) + assert_equals(res.json['data']['id'], self.node_settings._id) + assert_equals(res.json['data']['type'], 'myscreen-config') + assert_equals(res.json['data']['attributes']['param1'], 'PARAM_1') + # ember: ここまで diff --git a/ScreenExpansion/osf.io/addon/tests/utils.py b/ScreenExpansion/osf.io/addon/tests/utils.py new file mode 100644 index 0000000..1c4dbc0 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/tests/utils.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +from addons.base.tests.base import OAuthAddonTestCaseMixin, AddonTestCase +from .. import SHORT_NAME + + +class BaseAddonTestCase(AddonTestCase): + ADDON_SHORT_NAME = SHORT_NAME + OWNERS = ['node'] + NODE_USER_FIELD = None + ExternalAccountFactory = None + Provider = None + Serializer = None + client = None + + def set_node_settings(self, settings): + return diff --git a/ScreenExpansion/osf.io/addon/utils.py b/ScreenExpansion/osf.io/addon/utils.py new file mode 100644 index 0000000..b3700be --- /dev/null +++ b/ScreenExpansion/osf.io/addon/utils.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- + +# widget: ここから +def serialize_myscreen_widget(node): + myscreen = node.get_addon('myscreen') + ret = { + # if True, show widget body, otherwise show addon configuration page link. + 'complete': True + } + ret.update(myscreen.config.to_json()) + return ret +# widget: ここまで diff --git a/ScreenExpansion/osf.io/addon/views.py b/ScreenExpansion/osf.io/addon/views.py new file mode 100644 index 0000000..c690ae2 --- /dev/null +++ b/ScreenExpansion/osf.io/addon/views.py @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- +from rest_framework import status as http_status +from flask import request +import logging + +from . import SHORT_NAME +from framework.exceptions import HTTPError +from website.project.decorators import ( + must_have_addon, + must_be_valid_project, + must_have_permission, +) +from website.ember_osf_web.views import use_ember_app + +logger = logging.getLogger(__name__) + +@must_be_valid_project +@must_have_permission('admin') +@must_have_addon(SHORT_NAME, 'node') +def myscreen_get_config(**kwargs): + node = kwargs['node'] or kwargs['project'] + addon = node.get_addon(SHORT_NAME) + return {'param_1': addon.get_param_1()} + +@must_be_valid_project +@must_have_permission('admin') +@must_have_addon(SHORT_NAME, 'node') +def myscreen_set_config(**kwargs): + node = kwargs['node'] or kwargs['project'] + addon = node.get_addon(SHORT_NAME) + try: + param_1 = request.json['param_1'] + except KeyError: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + logger.info('param_1: {}'.format(param_1)) + addon.set_param_1(param_1) + return {} + +# ember: ここから +@must_be_valid_project +@must_have_addon(SHORT_NAME, 'node') +def project_myscreen(**kwargs): + return use_ember_app() + +@must_be_valid_project +@must_have_permission('admin') +@must_have_addon(SHORT_NAME, 'node') +def myscreen_get_config_ember(**kwargs): + node = kwargs['node'] or kwargs['project'] + addon = node.get_addon(SHORT_NAME) + return {'data': {'id': node._id, 'type': 'myscreen-config', + 'attributes': { + 'param1': addon.get_param_1() + }}} + +@must_be_valid_project +@must_have_permission('admin') +@must_have_addon(SHORT_NAME, 'node') +def myscreen_set_config_ember(**kwargs): + node = kwargs['node'] or kwargs['project'] + addon = node.get_addon(SHORT_NAME) + try: + config = request.json['data']['attributes'] + param_1 = config['param1'] + except KeyError: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + + addon.set_param_1(param_1) + return {'data': {'id': node._id, 'type': 'myscreen-config', + 'attributes': { + 'param1': param_1 + }}} +# ember: ここまで diff --git a/ScreenExpansion/osf.io/config/Dockerfile b/ScreenExpansion/osf.io/config/Dockerfile new file mode 100644 index 0000000..a2285a4 --- /dev/null +++ b/ScreenExpansion/osf.io/config/Dockerfile @@ -0,0 +1,197 @@ +FROM node:8-alpine3.9 + +ARG NODE_OPTIONS='--max-old-space-size=4096' + +# Source: https://github.com/docker-library/httpd/blob/7976cabe162268bd5ad2d233d61e340447bfc371/2.4/alpine/Dockerfile#L3 +RUN set -x \ + && addgroup -g 82 -S www-data \ + && adduser -h /var/www -u 82 -D -S -G www-data www-data + +RUN apk add --no-cache --virtual .run-deps \ + su-exec \ + bash \ + python3 \ + git \ + # lxml2 + libxml2 \ + libxslt \ + # psycopg2 + postgresql-libs \ + # cryptography + libffi \ + # gevent + libev \ + libevent \ + openblas-dev \ + && yarn global add bower + +WORKDIR /code + +COPY ./requirements.txt ./ +COPY ./requirements/ ./requirements/ +COPY ./addons/bitbucket/requirements.txt ./addons/bitbucket/ +COPY ./addons/box/requirements.txt ./addons/box/ +#COPY ./addons/citations/requirements.txt ./addons/citations/ +COPY ./addons/dataverse/requirements.txt ./addons/dataverse/ +COPY ./addons/dropbox/requirements.txt ./addons/dropbox/ +#COPY ./addons/dropboxbusiness/requirements.txt ./addons/dropboxbusiness/ +#COPY ./addons/figshare/requirements.txt ./addons/figshare/ +#COPY ./addons/forward/requirements.txt ./addons/forward/ +COPY ./addons/github/requirements.txt ./addons/github/ +COPY ./addons/gitlab/requirements.txt ./addons/gitlab/ +#COPY ./addons/googledrive/requirements.txt ./addons/googledrive/ +#COPY ./addons/iqbrims/requirements.txt ./addons/iqbrims/ +COPY ./addons/mendeley/requirements.txt ./addons/mendeley/ +COPY ./addons/onedrive/requirements.txt /code/addons/onedrive/ +#COPY ./addons/osfstorage/requirements.txt ./addons/osfstorage/ +COPY ./addons/owncloud/requirements.txt ./addons/owncloud/ +COPY ./addons/s3/requirements.txt ./addons/s3/ +COPY ./addons/twofactor/requirements.txt ./addons/twofactor/ +#COPY ./addons/wiki/requirements.txt ./addons/wiki/ +COPY ./addons/zotero/requirements.txt ./addons/zotero/ +COPY ./addons/swift/requirements.txt ./addons/swift/ +COPY ./addons/azureblobstorage/requirements.txt ./addons/azureblobstorage/ +COPY ./addons/weko/requirements.txt ./addons/weko/ +COPY ./addons/s3compat/requirements.txt ./addons/s3compat/ +COPY ./addons/nextcloud/requirements.txt ./addons/nextcloud/ +COPY ./addons/nextcloudinstitutions/requirements.txt ./addons/nextcloudinstitutions/ +COPY ./addons/myscreen/requirements.txt ./addons/myscreen/ + +RUN set -ex \ + && mkdir -p /var/www \ + && chown www-data:www-data /var/www \ + && apk add --no-cache --virtual .build-deps \ + build-base \ + linux-headers \ + python3-dev \ + # lxml2 + musl-dev \ + libxml2-dev \ + libxslt-dev \ + # psycopg2 + postgresql-dev \ + # cryptography + libffi-dev \ + libpng-dev \ + freetype-dev \ + jpeg-dev \ + && pip3 install Cython \ + && for reqs_file in \ + /code/requirements.txt \ + /code/requirements/release.txt \ + /code/addons/*/requirements.txt \ + ; do \ + pip3 install --no-cache-dir -c /code/requirements/constraints.txt -r "$reqs_file" \ + ; done \ + && (pip3 uninstall uritemplate.py --yes || true) \ + && pip3 install --no-cache-dir uritemplate.py==0.3.0 \ + # Fix: https://github.com/CenterForOpenScience/osf.io/pull/6783 + && python3 -m compileall /usr/lib/python3.6 || true \ + && apk del .build-deps + +# Settings +COPY ./tasks/ ./tasks/ +COPY ./website/settings/ ./website/settings/ +COPY ./api/base/settings/ ./api/base/settings/ +COPY ./website/__init__.py ./website/__init__.py +COPY ./addons.json ./addons.json +RUN mv ./website/settings/local-dist.py ./website/settings/local.py \ + && mv ./api/base/settings/local-dist.py ./api/base/settings/local.py \ + && sed 's/DEBUG_MODE = True/DEBUG_MODE = False/' -i ./website/settings/local.py + +# Bower Assets +COPY ./.bowerrc ./bower.json ./ +COPY ./admin/.bowerrc ./admin/bower.json ./admin/ +RUN \ + # OSF + bower install --production --allow-root \ + && bower cache clean --allow-root \ + # Admin + && cd ./admin \ + && bower install --production --allow-root \ + && bower cache clean --allow-root + +# Webpack Assets +# +## OSF +COPY ./package.json ./.yarnrc ./yarn.lock ./ +COPY ./webpack* ./ +COPY ./website/static/ ./website/static/ +COPY ./scripts/translations/ ./scripts/translations/ +COPY ./website/translations/ ./website/translations/ +COPY ./website/static/js/translations/ ./website/static/js/translations/ +## Admin +COPY ./admin/package.json ./admin/yarn.lock ./admin/ +COPY ./admin/webpack* ./admin/ +COPY ./admin/static/ ./admin/static/ +## Addons +COPY ./addons/bitbucket/static/ ./addons/bitbucket/static/ +COPY ./addons/box/static/ ./addons/box/static/ +COPY ./addons/citations/static/ ./addons/citations/static/ +COPY ./addons/dataverse/static/ ./addons/dataverse/static/ +COPY ./addons/dropbox/static/ ./addons/dropbox/static/ +COPY ./addons/dropboxbusiness/static/ ./addons/dropboxbusiness/static/ +COPY ./addons/figshare/static/ ./addons/figshare/static/ +COPY ./addons/forward/static/ ./addons/forward/static/ +COPY ./addons/github/static/ ./addons/github/static/ +COPY ./addons/gitlab/static/ ./addons/gitlab/static/ +COPY ./addons/googledrive/static/ ./addons/googledrive/static/ +COPY ./addons/mendeley/static/ ./addons/mendeley/static/ +COPY ./addons/onedrive/static/ /code/addons/onedrive/static/ +COPY ./addons/osfstorage/static/ ./addons/osfstorage/static/ +COPY ./addons/owncloud/static/ ./addons/owncloud/static/ +COPY ./addons/s3/static/ ./addons/s3/static/ +COPY ./addons/twofactor/static/ ./addons/twofactor/static/ +COPY ./addons/wiki/static/ ./addons/wiki/static/ +COPY ./addons/zotero/static/ ./addons/zotero/static/ +COPY ./addons/swift/static/ ./addons/swift/static/ +COPY ./addons/azureblobstorage/static/ ./addons/azureblobstorage/static/ +COPY ./addons/weko/static/ ./addons/weko/static/ +COPY ./addons/jupyterhub/static/ ./addons/jupyterhub/static/ +COPY ./addons/s3compat/static/ ./addons/s3compat/static/ +COPY ./addons/nextcloud/static/ ./addons/nextcloud/static/ +COPY ./addons/nextcloudinstitutions/static/ ./addons/nextcloudinstitutions/static/ +COPY ./addons/iqbrims/static/ ./addons/iqbrims/static/ +COPY ./addons/myscreen/static/ ./addons/myscreen/static/ +RUN \ + # OSF + yarn install --frozen-lockfile \ + && mkdir -p ./website/static/built/ \ + && invoke build_js_config_files \ + && yarn run webpack-prod \ + # Admin + && cd ./admin \ + && yarn install --frozen-lockfile \ + && yarn run webpack-prod \ + && cd ../ \ + # Cleanup + && yarn cache clean \ + && npm cache clean --force + +# Copy the rest of the code over +COPY ./ ./ + +ARG GIT_COMMIT= +ENV GIT_COMMIT ${GIT_COMMIT} + +RUN pybabel compile -d ./website/translations +RUN pybabel compile -D django -d ./admin/translations + +# TODO: Admin/API should fully specify their bower static deps, and not include ./website/static in their defaults.py. +# (this adds an additional 300+mb to the build image) +RUN for module in \ + api.base.settings \ + admin.base.settings \ + ; do \ + export DJANGO_SETTINGS_MODULE=$module \ + && python3 manage.py collectstatic --noinput --no-init-app \ + ; done \ + && for file in \ + ./website/templates/_log_templates.mako \ + ./website/static/built/nodeCategories.json \ + ; do \ + touch $file && chmod o+w $file \ + ; done \ + && rm ./website/settings/local.py ./api/base/settings/local.py + +CMD ["su-exec", "nobody", "invoke", "--list"] diff --git a/ScreenExpansion/osf.io/config/addons.json b/ScreenExpansion/osf.io/config/addons.json new file mode 100644 index 0000000..45f0cc7 --- /dev/null +++ b/ScreenExpansion/osf.io/config/addons.json @@ -0,0 +1,146 @@ +{ + "addons": [ + "box", + "dataverse", + "dropbox", + "figshare", + "forward", + "github", + "gitlab", + "mendeley", + "zotero", + "osfstorage", + "owncloud", + "onedrive", + "s3", + "twofactor", + "wiki", + "googledrive", + "bitbucket", + "swift", + "azureblobstorage", + "weko", + "jupyterhub", + "s3compat", + "nextcloud", + "nextcloudinstitutions", + "iqbrims", + "dropboxbusiness", + "myscreen" + ], + "addons_default": [ + "osfstorage", + "nextcloudinstitutions", + "dropboxbusiness" + ], + "addons_archivable": { + "osfstorage": "full", + "box": "partial", + "dataverse": "partial", + "dropbox": "partial", + "figshare": "partial", + "forward": "full", + "googledrive": "partial", + "onedrive": "partial", + "github": "partial", + "gitlab": "partial", + "owncloud": "partial", + "s3": "partial", + "wiki": "full", + "bitbucket": "partial", + "swift": "partial", + "azureblobstorage": "partial", + "weko": "partial", + "s3compat": "partial", + "nextcloud": "partial", + "nextcloudinstitutions": "partial", + "iqbrims": "partial", + "dropboxbusiness": "partial", + "myscreen": "partial" + }, + "addons_commentable": [ + "osfstorage", + "box", + "dataverse", + "dropbox", + "figshare", + "github", + "gitlab", + "googledrive", + "owncloud", + "s3", + "bitbucket", + "onedrive", + "swift", + "swift", + "azureblobstorage", + "weko", + "s3compat", + "nextcloud", + "nextcloudinstitutions", + "iqbrims", + "dropboxbusiness", + "myscreen" + ], + "addons_based_on_ids": [ + "osfstorage", + "box", + "onedrive" + ], + "addons_oauth_no_redirect": [ + "bitbucket" + ], + "addons_description": { + "box": "Box is a file storage add-on. Connect your Box account to a GakuNin RDM project to interact with files hosted on Box via the GakuNin RDM.", + "dataverse": "Dataverse is an open source software application to share, cite, and archive data. Connect your Dataverse account to share your Dataverse datasets via the GakuNin RDM.", + "dropbox": "Dropbox is a file storage add-on. Connect your Dropbox account to a GakuNin RDM project to interact with files hosted on Dropbox via the GakuNin RDM.", + "figshare": "Figshare is an online digital repository. Connect your figshare account to share your figshare files along with other materials in your GakuNin RDM project.", + "forward": "The External Link add-on allows you to provide a link to a website outside of the GakuNin RDM.", + "github": "GitHub is a web-based Git repository hosting service. Connect your GitHub repo to your GakuNin RDM project to share your code alongside other materials in your GakuNin RDM project.", + "gitlab": "GitLab is an open-source web-based Git repository hosting tool and service. Connect your GitLab repo to your GakuNin RDM project to share your code alongside other materials in your GakuNin RDM project.", + "mendeley": "Mendeley is a reference management tool. Connecting Mendeley folders to GakuNin RDM projects allows you and others to view, copy, and download citations that are relevant to your project from the Project Overview page.", + "zotero": "Zotero is a reference management tool. Connecting Zotero folders to GakuNin RDM projects allows you and others to view, copy, and download citations that are relevant to your project from the Project Overview page.", + "osfstorage": "NII Storage is the default storage provider for GakuNin RDM projects.", + "owncloud": "ownCloud is an open source, self-hosted file sync and share app platform. Connect your ownCloud account to a GakuNin RDM project to interact with files hosted on ownCloud via the GakuNin RDM.", + "s3": "Amazon S3 is a file storage add-on. Connect your S3 account to a GakuNin RDM project to interact with files hosted on S3 via the GakuNin RDM.", + "twofactor": "Two-factor authentication is a security add-on. By using two-factor authentication, you'll protect your GakuNin RDM account with both your password and your mobile phone.", + "wiki": "The wiki is a versatile communication tool. Wikis can be used to explain the main points of your project and can contain information like lab notes or contact information.", + "googledrive": "Google Drive is a file storage add-on. Connect your Google Drive account to a GakuNin RDM project to interact with files hosted on Google Drive via the GakuNin RDM.", + "bitbucket": "Bitbucket is a web-based Git repository hosting service. Connect your Bitbucket repo to your GakuNin RDM project to share your code alongside other materials in your GakuNin RDM project.", + "onedrive": "Microsoft OneDrive is a file storage add-on. Connect your Microsoft OneDrive account to a GakuNin RDM project to interact with files hosted on Microsoft OneDrive via the GakuNin RDM.", + "swift": "OpenStack Swift is a file storage add-on. Connect your OpenStack Swift account to a GakuNin RDM project to interact with files hosted on OpenStack Swift via the GakuNin RDM.", + "azureblobstorage": "Azure Blob Storage is a file storage add-on. Connect your Azure Storage account to a GakuNin RDM project to interact with files hosted on Azure Blob Storage (Block Blob) via the GakuNin RDM.", + "weko": "WEKO is an application server to share, archive data.", + "jupyterhub": "Jupyter is a web-based interactive computational environment. Files on a GakuNin RDM project can be imported to/exported from Jupyter", + "s3compat": "S3 Compatible Storage is a file storage add-on. Connect your S3 Compatible Storage account to a GakuNin RDM project to interact with files hosted on S3 Compatible Storage via the GakuNin RDM.", + "nextcloud": "Nextcloud is an open source, self-hosted file sync and share app platform. Connect your Nextcloud account to a GakuNin RDM project to interact with files hosted on Nextcloud via the GakuNin RDM.", + "iqbrims": "IQB-RIMS is a file storage add-on. Connect your Google Drive account to a GakuNin RDM project to interact with files hosted on Google Drive via the GakuNin RDM.", + "nextcloudinstitutions": "Nextcloud for Institutions is a file storage add-on for Institutions. Connect your Nextcloud account to a GakuNin RDM project to interact with files hosted on Nextcloud via the GakuNin RDM.", + "dropboxbusiness": "Dropbox Business for Institutions is a file storage add-on for Institutions. Connect your Dropbox Business administrator account to a GakuNin RDM project to interact with files hosted on Dropbox via the GakuNin RDM.", + "myscreen": "My Screen Addon is ..." + }, + "addons_url": { + "box": "http://www.box.com", + "dataverse": "https://dataverse.harvard.edu/", + "dropbox": "http://www.dropbox.com", + "figshare": "http://www.figshare.com", + "github": "http://www.github.com", + "gitlab": "https://www.gitlab.com", + "mendeley": "http://www.mendeley.com", + "owncloud": "https://owncloud.org/", + "zotero": "http://www.zotero.org", + "s3": "https://aws.amazon.com/s3/", + "googledrive": "https://drive.google.com", + "bitbucket": "https://bitbucket.org/", + "onedrive": "https://onedrive.live.com", + "swift": "https://wiki.openstack.org/wiki/Swift", + "azureblobstorage": "https://azure.microsoft.com/", + "weko": "https://weko.at.nii.ac.jp/", + "jupyterhub": "https://jupyterhub.readthedocs.io/", + "s3compat": "https://aws.amazon.com/s3/", + "nextcloud": "https://nextcloud.com/", + "iqbrims": "https://drive.google.com", + "dropboxbusiness": "http://www.dropbox.com", + "myscreen": "https://dummy.nii.ac.jp/myscreen" + } +} diff --git a/ScreenExpansion/osf.io/config/api/base/settings/defaults.py b/ScreenExpansion/osf.io/config/api/base/settings/defaults.py new file mode 100644 index 0000000..f13fa6d --- /dev/null +++ b/ScreenExpansion/osf.io/config/api/base/settings/defaults.py @@ -0,0 +1,493 @@ +""" +Django settings for api project. + +Generated by 'django-admin startproject' using Django 1.8. + +For more information on this file, see +https://docs.djangoproject.com/en/1.8/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.8/ref/settings/ +""" + +import os +from future.moves.urllib.parse import urlparse +from website import settings as osf_settings + +BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ + +DATABASES = { + 'default': { + 'CONN_MAX_AGE': 0, + 'ENGINE': 'osf.db.backends.postgresql', # django.db.backends.postgresql + 'NAME': os.environ.get('OSF_DB_NAME', 'osf'), + 'USER': os.environ.get('OSF_DB_USER', 'postgres'), + 'PASSWORD': os.environ.get('OSF_DB_PASSWORD', ''), + 'HOST': os.environ.get('OSF_DB_HOST', '127.0.0.1'), + 'PORT': os.environ.get('OSF_DB_PORT', '5432'), + 'ATOMIC_REQUESTS': True, + 'TEST': { + 'SERIALIZE': False, + }, + }, +} + +DATABASE_ROUTERS = ['osf.db.router.PostgreSQLFailoverRouter', ] +PASSWORD_HASHERS = [ + 'django.contrib.auth.hashers.BCryptSHA256PasswordHasher', + 'django.contrib.auth.hashers.BCryptPasswordHasher', +] + +AUTH_USER_MODEL = 'osf.OSFUser' + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = osf_settings.SECRET_KEY + +AUTHENTICATION_BACKENDS = ( + 'api.base.authentication.backends.ODMBackend', + 'guardian.backends.ObjectPermissionBackend', +) + +# SECURITY WARNING: don't run with debug turned on in production! +DEV_MODE = osf_settings.DEV_MODE +DEBUG = osf_settings.DEBUG_MODE +DEBUG_PROPAGATE_EXCEPTIONS = True + +# session: +SESSION_COOKIE_NAME = 'api' +SESSION_COOKIE_SECURE = osf_settings.SECURE_MODE +SESSION_COOKIE_HTTPONLY = osf_settings.SESSION_COOKIE_HTTPONLY +SESSION_COOKIE_SAMESITE = osf_settings.SESSION_COOKIE_SAMESITE + +# csrf: +CSRF_COOKIE_NAME = 'api-csrf' +CSRF_COOKIE_SECURE = osf_settings.SECURE_MODE +CSRF_COOKIE_HTTPONLY = osf_settings.SECURE_MODE + +ALLOWED_HOSTS = [ + '.osf.io', +] + + +# Application definition + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.messages', + 'django.contrib.sessions', + 'django.contrib.staticfiles', + 'django.contrib.admin', + + # 3rd party + 'django_celery_beat', + 'django_celery_results', + 'rest_framework', + 'corsheaders', + 'raven.contrib.django.raven_compat', + 'django_extensions', + 'guardian', + 'storages', + 'waffle', + 'elasticsearch_metrics', + + # OSF + 'osf', + + # Addons + 'addons.osfstorage', + 'addons.bitbucket', + 'addons.box', + 'addons.dataverse', + 'addons.dropbox', + 'addons.figshare', + 'addons.forward', + 'addons.github', + 'addons.gitlab', + 'addons.googledrive', + 'addons.mendeley', + 'addons.onedrive', + 'addons.owncloud', + 'addons.s3', + 'addons.twofactor', + 'addons.wiki', + 'addons.zotero', + 'addons.swift', + 'addons.azureblobstorage', + 'addons.weko', + 'addons.jupyterhub', + 'addons.iqbrims', + 'addons.dropboxbusiness', + 'addons.nextcloudinstitutions', + 'addons.myscreen' +) + +# local development using https +if osf_settings.SECURE_MODE and DEBUG: + INSTALLED_APPS += ('sslserver',) + +# TODO: Are there more granular ways to configure reporting specifically related to the API? +RAVEN_CONFIG = { + 'tags': {'App': 'api'}, + 'dsn': osf_settings.SENTRY_DSN, + 'release': osf_settings.VERSION, +} + +BULK_SETTINGS = { + 'DEFAULT_BULK_LIMIT': 100, +} + +MAX_PAGE_SIZE = 100 + +REST_FRAMEWORK = { + 'PAGE_SIZE': 10, + 'DEFAULT_RENDERER_CLASSES': ( + 'api.base.renderers.JSONAPIRenderer', + 'api.base.renderers.JSONRendererWithESISupport', + 'api.base.renderers.BrowsableAPIRendererNoForms', + ), + 'DEFAULT_PARSER_CLASSES': ( + 'api.base.parsers.JSONAPIParser', + 'api.base.parsers.JSONAPIParserForRegularJSON', + 'rest_framework.parsers.FormParser', + 'rest_framework.parsers.MultiPartParser', + ), + 'EXCEPTION_HANDLER': 'api.base.exceptions.json_api_exception_handler', + 'DEFAULT_CONTENT_NEGOTIATION_CLASS': 'api.base.content_negotiation.JSONAPIContentNegotiation', + 'DEFAULT_VERSIONING_CLASS': 'api.base.versioning.BaseVersioning', + 'DEFAULT_VERSION': '2.0', + 'ALLOWED_VERSIONS': ( + '2.0', + '2.1', + '2.2', + '2.3', + '2.4', + '2.5', + '2.6', + '2.7', + '2.8', + '2.9', + '2.10', + '2.11', + '2.12', + '2.13', + '2.14', + '2.15', + '2.16', + '2.17', + '2.18', + '2.19', + '2.20', + ), + 'DEFAULT_FILTER_BACKENDS': ('api.base.filters.OSFOrderingFilter',), + 'DEFAULT_PAGINATION_CLASS': 'api.base.pagination.JSONAPIPagination', + 'ORDERING_PARAM': 'sort', + 'DEFAULT_AUTHENTICATION_CLASSES': ( + # Custom auth classes + 'api.base.authentication.drf.OSFBasicAuthentication', + 'api.base.authentication.drf.OSFSessionAuthentication', + 'api.base.authentication.drf.OSFCASAuthentication', + ), + 'DEFAULT_THROTTLE_CLASSES': ( + 'rest_framework.throttling.UserRateThrottle', + 'api.base.throttling.NonCookieAuthThrottle', + 'api.base.throttling.BurstRateThrottle', + ), + 'DEFAULT_THROTTLE_RATES': { + 'user': '10000/day', + 'non-cookie-auth': '100/hour', + 'add-contributor': '10/second', + 'create-guid': '1000/hour', + 'root-anon-throttle': '1000/hour', + 'test-user': '2/hour', + 'test-anon': '1/hour', + 'send-email': '2/minute', + 'burst': '10/second', + }, +} + +# Settings related to CORS Headers addon: allow API to receive authenticated requests from OSF +# CORS plugin only matches based on "netloc" part of URL, so as workaround we add that to the list +CORS_ORIGIN_ALLOW_ALL = False +CORS_ORIGIN_WHITELIST = ( + urlparse(osf_settings.DOMAIN).netloc, + osf_settings.DOMAIN, +) +# This needs to remain True to allow cross origin requests that are in CORS_ORIGIN_WHITELIST to +# use cookies. +CORS_ALLOW_CREDENTIALS = True +# Set dynamically on app init +ORIGINS_WHITELIST = () + +MIDDLEWARE = ( + 'api.base.middleware.DjangoGlobalMiddleware', + 'api.base.middleware.CeleryTaskMiddleware', + 'api.base.middleware.PostcommitTaskMiddleware', + # A profiling middleware. ONLY FOR DEV USE + # Uncomment and add "prof" to url params to recieve a profile for that url + # 'api.base.middleware.ProfileMiddleware', + + # 'django.contrib.sessions.middleware.SessionMiddleware', + 'api.base.middleware.CorsMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + # 'django.contrib.auth.middleware.AuthenticationMiddleware', + # 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', + # 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', + 'django.middleware.security.SecurityMiddleware', + # 'waffle.middleware.WaffleMiddleware', + 'api.base.middleware.SloanOverrideWaffleMiddleware', # Delete this and uncomment WaffleMiddleware to revert Sloan +) + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [os.path.join(BASE_DIR, 'templates')], + 'APP_DIRS': True, + }, +] + + +ROOT_URLCONF = 'api.base.urls' +WSGI_APPLICATION = 'api.base.wsgi.application' + + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = True + +# https://django-storages.readthedocs.io/en/latest/backends/gcloud.html +if os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', False): + # Required to interact with Google Cloud Storage + DEFAULT_FILE_STORAGE = 'api.base.storage.RequestlessURLGoogleCloudStorage' + GS_BUCKET_NAME = os.environ.get('GS_BUCKET_NAME', 'cos-osf-stage-cdn-us') + GS_FILE_OVERWRITE = os.environ.get('GS_FILE_OVERWRITE', False) +elif osf_settings.DEV_MODE or osf_settings.DEBUG_MODE: + DEFAULT_FILE_STORAGE = 'api.base.storage.DevFileSystemStorage' + +# https://docs.djangoproject.com/en/1.8/howto/static-files/ + +STATIC_ROOT = os.path.join(BASE_DIR, 'static/vendor') + +API_BASE = 'v2/' +API_PRIVATE_BASE = '_/' +STATIC_URL = '/static/' + +NODE_CATEGORY_MAP = osf_settings.NODE_CATEGORY_MAP + +DEBUG_TRANSACTIONS = DEBUG + +JWT_SECRET = b'osf_api_cas_login_jwt_secret_32b' +JWE_SECRET = b'osf_api_cas_login_jwe_secret_32b' + +ENABLE_VARNISH = osf_settings.ENABLE_VARNISH +ENABLE_ESI = osf_settings.ENABLE_ESI +VARNISH_SERVERS = osf_settings.VARNISH_SERVERS +ESI_MEDIA_TYPES = osf_settings.ESI_MEDIA_TYPES + +ADDONS_FOLDER_CONFIGURABLE = ['box', 'dropbox', 's3', 'googledrive', 'figshare', 'owncloud', 'onedrive', 'swift', 'azureblobstorage', 'weko', 'iqbrims'] +ADDONS_OAUTH = ADDONS_FOLDER_CONFIGURABLE + ['dataverse', 'github', 'bitbucket', 'gitlab', 'mendeley', 'zotero', 'forward'] + +BYPASS_THROTTLE_TOKEN = 'test-token' + +OSF_SHELL_USER_IMPORTS = None + +# Settings for use in the admin +OSF_URL = 'https://osf.io' + +SELECT_FOR_UPDATE_ENABLED = True + +# Disable anonymous user permissions in django-guardian +ANONYMOUS_USER_NAME = None + +# If set to True, automated tests with extra queries will fail. +NPLUSONE_RAISE = False + +# Timestamp - number of requests to send to cloud storages per minute +TS_REQUESTS_PER_MIN = 30 + +# salt used for generating hashids +HASHIDS_SALT = 'pinkhimalayan' + +# django-elasticsearch-metrics +ELASTICSEARCH_DSL = { + 'default': { + 'hosts': os.environ.get('ELASTIC6_URI', '127.0.0.1:9201'), + 'retry_on_timeout': True, + }, +} +# Store yearly indices for time-series metrics +ELASTICSEARCH_METRICS_DATE_FORMAT = '%Y' + +WAFFLE_CACHE_NAME = 'waffle_cache' +STORAGE_USAGE_CACHE_NAME = 'storage_usage' + + +CACHES = { + 'default': { + 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', + }, + STORAGE_USAGE_CACHE_NAME: { + 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', + 'LOCATION': 'osf_cache_table', + }, + WAFFLE_CACHE_NAME: { + 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', + }, +} + +SLOAN_ID_COOKIE_NAME = 'sloan_id' + +EGAP_PROVIDER_NAME = 'EGAP' + +MAX_SIZE_OF_ES_QUERY = 10000 +DEFAULT_ES_NULL_VALUE = 'N/A' + +TRAVIS_ENV = False + +### NII extensions +LOGIN_BY_EPPN = osf_settings.to_bool('LOGIN_BY_EPPN', False) +USER_TIMEZONE = osf_settings.USER_TIMEZONE +USER_LOCALE = osf_settings.USER_LOCALE +CLOUD_GATEWAY_ISMEMBEROF_PREFIX = osf_settings.CLOUD_GATEWAY_ISMEMBEROF_PREFIX +# install-addons.py +INSTALLED_APPS += ('addons.s3compat',) +ADDONS_FOLDER_CONFIGURABLE.append('s3compat') +ADDONS_OAUTH.append('s3compat') +INSTALLED_APPS += ('addons.nextcloud',) +ADDONS_FOLDER_CONFIGURABLE.append('nextcloud') +ADDONS_OAUTH.append('nextcloud') + +TST_COMMAND_DELIMITER = ' ' +# RSA key generation settings +SSL_GENERATE_KEY = 'openssl' + TST_COMMAND_DELIMITER + \ + 'genrsa' + TST_COMMAND_DELIMITER + \ + '-des3' + TST_COMMAND_DELIMITER + \ + '-out' + TST_COMMAND_DELIMITER + \ + '{0}.key {1}' +SSL_GENERATE_KEY_NOPASS = 'openssl' + TST_COMMAND_DELIMITER + \ + 'rsa' + TST_COMMAND_DELIMITER + \ + '-in' + TST_COMMAND_DELIMITER + \ + '{0}.key' + TST_COMMAND_DELIMITER + \ + '-out' + TST_COMMAND_DELIMITER + \ + '{0}.key.nopass' +SSL_GENERATE_CSR = 'openssl' + TST_COMMAND_DELIMITER + \ + 'req' + TST_COMMAND_DELIMITER + \ + '-new' + TST_COMMAND_DELIMITER + \ + '-key' + TST_COMMAND_DELIMITER + \ + '{0}.key.nopass' + TST_COMMAND_DELIMITER + \ + '-out' + TST_COMMAND_DELIMITER + \ + '{0}.csr' +SSL_GENERATE_SELF_SIGNED = 'openssl' + TST_COMMAND_DELIMITER + \ + 'req' + TST_COMMAND_DELIMITER + \ + '-x509' + TST_COMMAND_DELIMITER + \ + '-nodes' + TST_COMMAND_DELIMITER + \ + '-days' + TST_COMMAND_DELIMITER + \ + '365' + TST_COMMAND_DELIMITER + \ + '-newkey' + TST_COMMAND_DELIMITER + \ + 'rsa:2048' + TST_COMMAND_DELIMITER + \ + '-keyout' + TST_COMMAND_DELIMITER + \ + '{0}.key' + TST_COMMAND_DELIMITER + \ + '-out' + TST_COMMAND_DELIMITER + \ + '{0}.crt' +SSL_PRIVATE_KEY_GENERATION = 'openssl' + TST_COMMAND_DELIMITER + \ + 'genrsa' + TST_COMMAND_DELIMITER + \ + '-out' + TST_COMMAND_DELIMITER + \ + '{0}' + TST_COMMAND_DELIMITER + \ + '{1}' +SSL_PUBLIC_KEY_GENERATION = 'openssl' + TST_COMMAND_DELIMITER + \ + 'rsa' + TST_COMMAND_DELIMITER + \ + '-in' + TST_COMMAND_DELIMITER + \ + '{0}' + TST_COMMAND_DELIMITER + \ + '-pubout' + TST_COMMAND_DELIMITER + \ + '-out' + TST_COMMAND_DELIMITER + \ + '{1}' + +# UserKey Placement destination +KEY_NAME_PRIVATE = 'pvt' +KEY_NAME_PUBLIC = 'pub' +KEY_BIT_VALUE = '3072' +KEY_EXTENSION = '.pem' +KEY_SAVE_PATH = '/user_key_info/' +KEY_NAME_FORMAT = '{0}_{1}_{2}{3}' +PRIVATE_KEY_VALUE = 1 +PUBLIC_KEY_VALUE = 2 +# FreeTSA openation commands +SSL_CREATE_TIMESTAMP_REQUEST = 'openssl' + TST_COMMAND_DELIMITER + \ + 'ts' + TST_COMMAND_DELIMITER + \ + '-query' + TST_COMMAND_DELIMITER + \ + '-data' + TST_COMMAND_DELIMITER + \ + '{0}' + TST_COMMAND_DELIMITER + \ + '-cert' + TST_COMMAND_DELIMITER + \ + '-sha512' +SSL_GET_TIMESTAMP_RESPONSE = 'openssl' + TST_COMMAND_DELIMITER + \ + 'ts' + TST_COMMAND_DELIMITER + \ + '-verify' + TST_COMMAND_DELIMITER + \ + '-data' + TST_COMMAND_DELIMITER + \ + '{0}' + TST_COMMAND_DELIMITER + \ + '-in' + TST_COMMAND_DELIMITER + \ + '{1}' + TST_COMMAND_DELIMITER + \ + '-CAfile' + TST_COMMAND_DELIMITER + \ + '{2}' + +SSL_CREATE_TIMESTAMP_HASH_REQUEST = 'openssl ts -query -digest {digest} {digest_type} -cert' +SSL_GET_TIMESTAMP_HASH_RESPONSE = 'openssl ts -verify {digest_type} -digest {digest} -in {input} -CAfile {ca}' + +# openssl ts verify check value +OPENSSL_VERIFY_RESULT_OK = 'OK' +# timestamp verify rootKey +VERIFY_ROOT_CERTIFICATE = 'root_cert_verifycate.pem' +# timestamp request const +REQUEST_HEADER = {'Content-Type': 'application/timestamp-query'} +TIME_STAMP_AUTHORITY_URL = 'http://eswg.jnsa.org/freetsa' +ERROR_HTTP_STATUS = [400, 401, 402, 403, 500, 502, 503, 504] +REQUEST_TIME_OUT = 5 +RETRY_COUNT = 3 + +# UPKI flag +USE_UPKI = False + +#uPKI operation commands +UPKI_TIMESTAMP_URL = '' +UPKI_CREATE_TIMESTAMP = '' # {0}=target, {1}=out +UPKI_VERIFY_TIMESTAMP = '' # {0}=target, {1}=in +UPKI_CREATE_TIMESTAMP_HASH = '' # {digest_type}, {digest}, {output} +UPKI_VERIFY_TIMESTAMP_HASH = '' # {digest}, {input} +UPKI_VERIFY_INVALID_MSG = 'LPC_ERR_VERIFY_INVALID' + +# TimeStamp Inspection Status +TIME_STAMP_TOKEN_UNCHECKED = 0 +TIME_STAMP_TOKEN_CHECK_SUCCESS = 1 +TIME_STAMP_TOKEN_CHECK_SUCCESS_MSG = 'OK' +TIME_STAMP_TOKEN_CHECK_NG = 2 +TIME_STAMP_TOKEN_CHECK_NG_MSG = 'Fail: file modified.' +TIME_STAMP_TOKEN_CHECK_FILE_NOT_FOUND = 3 +TIME_STAMP_TOKEN_CHECK_FILE_NOT_FOUND_MSG = 'Fail: not inspected.' +TIME_STAMP_TOKEN_NO_DATA = 4 +TIME_STAMP_TOKEN_NO_DATA_MSG = 'Error: some errors has occurred in processing.' +FILE_NOT_EXISTS = 5 +FILE_NOT_EXISTS_MSG = 'Fail: deleted file.' +FILE_NOT_FOUND = 6 +FILE_NOT_FOUND_MSG = 'Fail: file was gone.' +TIME_STAMP_VERIFICATION_ERR = 7 +TIME_STAMP_VERIFICATION_ERR_MSG = 'Error: some errors has occurred in verification.' +TIME_STAMP_STORAGE_DISCONNECTED = 8 +TIME_STAMP_STORAGE_DISCONNECTED_MSG = 'Error: storage disconnected.' +TIME_STAMP_STORAGE_NOT_ACCESSIBLE = 9 +TIME_STAMP_STORAGE_NOT_ACCESSIBLE_MSG = 'Error: storage service connection error occurred.' + +# Quota settings +DEFAULT_MAX_QUOTA = 100 +WARNING_THRESHOLD = 0.9 +BASE_FOR_METRIC_PREFIX = 1000 +SIZE_UNIT_GB = BASE_FOR_METRIC_PREFIX ** 3 +NII_STORAGE_REGION_ID = 1 diff --git a/ScreenExpansion/osf.io/config/framework/addons/data/addons.json b/ScreenExpansion/osf.io/config/framework/addons/data/addons.json new file mode 100644 index 0000000..1050dcd --- /dev/null +++ b/ScreenExpansion/osf.io/config/framework/addons/data/addons.json @@ -0,0 +1,628 @@ +{ + "addons": { + "GitHub": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of making a GitHub repo public or private. The GakuNin RDM does not alter the permissions of linked GitHub repos." + }, + "View / download file versions": { + "status": "full", + "text": "GitHub files and their versions can be viewed/downloaded via GakuNin RDM." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in GitHub." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in GitHub." + }, + "Logs": { + "status": "full", + "text": "GitHub dynamically updates GakuNin RDM logs when files are modified outside the GakuNin RDM. Changes to GitHub repos made before the repo is linked to the GakuNin RDM will not be reflected in GakuNin RDM logs." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Github authorization unless the user forking the project is the same user who authorized the Github add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "GitHub content will be registered, but version history will not be copied to the registration." + } + }, + "GitLab": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of making a GitLab repo public or private. The GakuNin RDM does not alter the permissions of linked GitLab repos." + }, + "View / download file versions": { + "status": "full", + "text": "GitLab files and their versions can be viewed/downloaded via GakuNin RDM." + }, + "Add / update files": { + "status": "none", + "text": "Adding/updating files in the project via GakuNin RDM is not implemented yet." + }, + "Delete files": { + "status": "none", + "text": "Deleting files via GakuNin RDM is not implemented yet." + }, + "Logs": { + "status": "none", + "text": "GakuNin RDM does not keep track of changes made using Gitlab directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy GitLab authorization unless the user forking the project is the same user who authorized the GitLab add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "GitLab content will be registered, but version history will not be copied to the registration." + } + }, + "Amazon S3": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of making an S3 bucket public or private. The GakuNin RDM does not alter the permissions of linked S3 buckets." + }, + "View / download file versions": { + "status": "partial", + "text": "The S3 add-on supports file versions if versioning is enabled for your S3 buckets." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in Amazon S3." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in Amazon S3." + }, + "Logs": { + "status": "partial", + "text": "The GakuNin RDM keeps track of changes you make to your S3 buckets through the GakuNin RDM, but not for changes made using S3 directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy S3 authorization unless the user forking the project is the same user who authorized the S3 add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "S3 content will be registered, but version history will not be copied to the registration." + } + }, + "figshare": { + "Permissions": { + "status": "partial", + "text": " Making a GakuNin RDM project public or private is independent of making figshare content public or private. The GakuNin RDM does not alter the permissions of linked figshare content." + }, + "View / download file versions": { + "status": "partial", + "text": "figshare files can be viewed/downloaded via GakuNin RDM, but version history is not supported." + }, + "Add / update files": { + "status": "partial", + "text": "Files can be added but not updated." + }, + "Delete files": { + "status": "partial", + "text": "Private files and filesets can be deleted via GakuNin RDM." + }, + "Logs": { + "status": "partial", + "text": "GakuNin RDM keeps track of changes you make to your figshare content through GakuNin RDM, but not for changes made using figshare directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy figshare authorization unless the user forking the project is the same user who authorized the figshare add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "figshare content will be registered, but version history will not be copied to the registration." + } + }, + "Dropbox": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of Dropbox privacy. The GakuNin RDM does not alter the permissions of linked Dropbox folders." + }, + "View / download file versions": { + "status": "full", + "text": "Dropbox files and their versions can be viewed/downloaded via GakuNin RDM." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in Dropbox." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in Dropbox." + }, + "Logs": { + "status": "partial", + "text": "GakuNin RDM keeps track of changes you make to your Dropbox content through GakuNin RDM, but not for changes made using Dropbox directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Dropbox authorization unless the user forking the project is the same user who authorized the Dropbox add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "Dropbox content will be registered, but version history will not be copied to the registration." + } + }, + "OneDrive": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of OneDrive privacy. The GakuNin RDM does not alter the permissions of linked OneDrive folders." + }, + "View / download file versions": { + "status": "full", + "text": "OneDrive files and their versions can be viewed/downloaded via GakuNin RDM. OneNote files are unexportable and cannot be downloaded or viewed." + }, + "Add / update files": { + "status": "none", + "text": "The OneDrive add-on is read-only." + }, + "Delete files": { + "status": "none", + "text": "The OneDrive add-on is read-only." + }, + "Logs": { + "status": "partial", + "text": "GakuNin RDM keeps track of changes you make to your OneDrive add-on configuration. It does not track changes to OneDrive content." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy OneDrive authorization unless the user forking the project is the same user who authorized the OneDrive add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "OneDrive content will be registered, but version history will not be copied to the registration. OneNote files are unexportable and will not be archived." + } + }, + "Dataverse": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of making a Dataverse study public or private. The GakuNin RDM allows you to release the latest draft version of a Dataverse dataset." + }, + "View / download file versions": { + "status": "partial", + "text": "Files from the latest release of the selected Dataverse study can be viewed/downloaded. GakuNin RDM users with write permissions can view/download draft files as well." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in Dataverse." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in Dataverse." + }, + "Logs": { + "status": "partial", + "text": "The GakuNin RDM keeps track of changes you make to your Dataverse studies through the GakuNin RDM, but not for changes made using Dataverse directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Dataverse authorization unless the user forking the project is the same user who authorized the Dataverse add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "Dataverse content will be registered, but version history will not be copied to the registration." + } + }, + "Google Drive": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of Google Drive privacy. The GakuNin RDM does not alter the permissions of linked Google Drive folders." + }, + "View / download file versions": { + "status": "full", + "text": "Google Drive files and their versions can be viewed/downloaded via GakuNin RDM." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in Google Drive." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in Google Drive." + }, + "Logs": { + "status": "partial", + "text": "The GakuNin RDM keeps track of changes you make to your Google Drive content through the GakuNin RDM, but not for changes made using Google Drive directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Google Drive authorization unless the user forking the project is the same user who authorized the Google Drive add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "Google Drive content will be registered, but version history will not be copied to the registration." + } + }, + "Box": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of Box privacy. The GakuNin RDM does not alter the permissions of linked Box folders." + }, + "View / download file versions": { + "status": "full", + "text": "Box files and their versions can be viewed/downloaded via GakuNin RDM." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in Box." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in Box." + }, + "Logs": { + "status": "partial", + "text": "The GakuNin RDM keeps track of changes you make to your Box content through the GakuNin RDM, but not for changes made using Box directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Box authorization unless the user forking the project is the same user who authorized the Box add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "Box content will be registered, but version history will not be copied to the registration." + } + }, + "Mendeley": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of making a Mendeley folder public or private. The GakuNin RDM does not alter the permissions of a linked Mendeley folder." + }, + "View / download file versions": { + "status": "NA" + }, + "Add / update files": { + "status": "NA" + }, + "Delete files": { + "status": "NA" + }, + "Logs": { + "status": "NA" + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Mendeley authorization unless the user forking the project is the same user who authorized the Mendeley add-on in the source project being forked." + }, + "Registering": { + "status": "none", + "text": "Mendeley content will not be registered." + } + }, + "ownCloud": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of ownCloud privacy. The GakuNin RDM does not alter the permissions of linked ownCloud folders." + }, + "View / download file versions": { + "status": "partial", + "text": "ownCloud files can be viewed/downloaded via GakuNin RDM, but version history is not supported by the ownCloud WebDAV API." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in ownCloud." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in ownCloud." + }, + "Logs": { + "status": "partial", + "text": "GakuNin RDM keeps track of changes you make to your ownCloud content through GakuNin RDM, but not for changes made using ownCloud directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy ownCloud authorization unless the user forking the project is the same user who authorized the ownCloud add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "ownCloud content will be registered, but version history will not be copied to the registration." + } + }, + "Zotero": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of making a Zotero folder public or private. The GakuNin RDM does not alter the permissions of a linked Zotero folder." + }, + "View / download file versions": { + "status": "NA" + }, + "Add / update files": { + "status": "NA" + }, + "Delete files": { + "status": "NA" + }, + "Logs": { + "status": "NA" + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Zotero authorization unless the user forking the project is the same user who authorized the Zotero add-on in the source project being forked." + }, + "Registering": { + "status": "none", + "text": "Zotero content will not be registered." + } + }, + "Bitbucket": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of making a Bitbucket repo public or private. The GakuNin RDM does not alter the permissions of linked Bitbucket repos." + }, + "View / download file versions": { + "status": "full", + "text": "Bitbucket files and their versions can be viewed/downloaded via GakuNin RDM." + }, + "Add / update files": { + "status": "none", + "text": "Bitbucket does not support adding or updating files via their API." + }, + "Delete files": { + "status": "none", + "text": "Bitbucket does not support deleting files via their API." + }, + "Logs": { + "status": "full", + "text": "GakuNin RDM keeps track of changes you make to your Bitbucket content through GakuNin RDM, but not for changes made using Bitbucket directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Bitbucket authorization unless the user forking the project is the same user who authorized the Bitbucket add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "Bitbucket content will be registered, but version history will not be copied to the registration." + } + }, + "OpenStack Swift": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of making an Swift container public or private." + }, + "View / download file versions": { + "status": "partial", + "text": "The Swift add-on does not support file versions." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in Swift." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in Swift." + }, + "Logs": { + "status": "partial", + "text": "The GakuNin RDM keeps track of changes you make to your Swift containers through the GakuNin RDM, but not for changes made using Swift directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Swift authorization unless the user forking the project is the same user who authorized the Swift add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "Swift object will be registered, but version history will not be copied to the registration." + } + }, + "Azure Blob Storage": { + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of making an Azure Blob Storage container public or private." + }, + "View / download file versions": { + "status": "partial", + "text": "The Azure Blob Storage add-on supports only Block Blobs, and does not support file versions." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in Azure Blob Storage." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in Azure Blob Storage." + }, + "Logs": { + "status": "partial", + "text": "The GakuNin RDM keeps track of changes you make to your Azure Blob Storage containers through the GakuNin RDM, but not for changes made using Azure Blob Storage directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Azure Blob Storage authorization unless the user forking the project is the same user who authorized the Azure Blob Storage add-on in the source project being forked." + }, + "Registering": { + "status": "none", + "text": "Azure Blob Storage content will not be registered." + } + }, + "WEKO": { + "Permissions": { + "status": "NA" + }, + "View / download file versions": { + "status": "NA" + }, + "Add / update files": { + "status": "partial", + "text": "Adding/updating indices/items in the project via GakuNin RDM will be reflected in WEKO." + }, + "Delete files": { + "status": "partial", + "text": "Items deleted via GakuNin RDM will be deleted in WEKO." + }, + "Logs": { + "status": "partial", + "text": "The GakuNin RDM keeps track of changes you make to your WEKO index through the GakuNin RDM, but not for changes made using WEKO directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy WEKO authorization unless the user forking the project is the same user who authorized the WEKO add-on in the source project being forked." + }, + "Registering": { + "status": "none", + "text": "WEKO content will not be registered." + } + }, + "S3 Compatible Storage": { + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy S3 Compatible Storage authorization unless the user forking the project is the same user who authorized the S3 Compatible Storage add-on in the source project being forked." + }, + "Logs": { + "status": "partial", + "text": "The GakuNin RDM keeps track of changes you make to your S3 Compatible Storage buckets through the GakuNin RDM, but not for changes made using S3 Compatible Storage directly." + }, + "Registering": { + "status": "partial", + "text": "S3 Compatible Storage content will be registered, but version history will not be copied to the registration." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in S3 Compatible Storage." + }, + "View / download file versions": { + "status": "partial", + "text": "The S3 add-on supports file versions if versioning is enabled for your S3 Compatible Storage buckets." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in S3 Compatible Storage." + }, + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of making an S3 Compatible Storage bucket public or private. The GakuNin RDM does not alter the permissions of linked S3 Compatible Storage buckets." + } + }, + "JupyterHub": { + "Permissions": { + "status": "none", + "text": "The GakuNin RDM does not affect the permissions of JupyterHub." + }, + "View / download file versions": { + "status": "none", + "text": "The JupyterHub add-on does not provide Storage Features." + }, + "Add / update files": { + "status": "none", + "text": "The JupyterHub add-on does not provide Storage Features." + }, + "Delete files": { + "status": "none", + "text": "The JupyterHub add-on does not provide Storage Features." + }, + "Logs": { + "status": "none", + "text": "The JupyterHub add-on does not provide Storage Features." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component copies information about linked JupyterHub but the GakuNin RDM does not affect authentication of JupyterHub." + }, + "Registering": { + "status": "none", + "text": "JupyterHub information will not be registered." + } + }, + "Nextcloud": { + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Nextcloud authorization unless the user forking the project is the same user who authorized the Nextcloud add-on in the source project being forked." + }, + "Logs": { + "status": "partial", + "text": "GakuNin RDM keeps track of changes you make to your Nextcloud content through GakuNin RDM, but not for changes made using Nextcloud directly." + }, + "Registering": { + "status": "partial", + "text": "Nextcloud content will be registered, but version history will not be copied to the registration." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in Nextcloud." + }, + "View / download file versions": { + "status": "partial", + "text": "Nextcloud files can be viewed/downloaded via GakuNin RDM, but version history is not supported by the Nextcloud WebDAV API." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in Nextcloud." + }, + "Permissions": { + "status": "partial", + "text": "Making a GakuNin RDM project public or private is independent of Nextcloud privacy. The GakuNin RDM does not alter the permissions of linked Nextcloud folders." + } + }, + "IQB-RIMS": { + "Permissions": { + "status": "partial", + "text": "Making an GakuNin RDM project public or private is independent of Google Drive privacy. The GakuNin RDM does not alter the permissions of linked Google Drive folders." + }, + "View / download file versions": { + "status": "full", + "text": "IQB-RIMS files and their versions can be viewed/downloaded via GakuNin RDM." + }, + "Add / update files": { + "status": "full", + "text": "Adding/updating files in the project via GakuNin RDM will be reflected in Google Drive." + }, + "Delete files": { + "status": "full", + "text": "Files deleted via GakuNin RDM will be deleted in Google Drive." + }, + "Logs": { + "status": "partial", + "text": "The GakuNin RDM keeps track of changes you make to your Google Drive content through the GakuNin RDM, but not for changes made using Google Drive directly." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component does not copy Google Drive authorization unless the user forking the project is the same user who authorized the IQB-RIMS add-on in the source project being forked." + }, + "Registering": { + "status": "partial", + "text": "IQB-RIMS content will be registered, but version history will not be copied to the registration." + } + }, + "My Screen": { + "Permissions": { + "status": "none", + "text": "The GakuNin RDM does not affect the permissions of My Screen." + }, + "View / download file versions": { + "status": "none", + "text": "The My Screen add-on does not provide Storage Features." + }, + "Add / update files": { + "status": "none", + "text": "The My Screen add-on does not provide Storage Features." + }, + "Delete files": { + "status": "none", + "text": "The My Screen add-on does not provide Storage Features." + }, + "Logs": { + "status": "none", + "text": "The My Screen add-on does not provide Storage Features." + }, + "Forking": { + "status": "partial", + "text": "Forking a project or component copies information about linked My Screen but the GakuNin RDM does not affect authentication of My Screen." + }, + "Registering": { + "status": "none", + "text": "My Screen information will not be registered." + } + } + }, + "disclaimers": [ + "This add-on connects your GakuNin RDM project to an external service. Use of this service is bound by its terms and conditions. The GakuNin RDM is not responsible for the service or for your use thereof.", + "This add-on allows you to store files using an external service. Files added to this add-on are not stored within the GakuNin RDM." + ] +} diff --git a/ScreenExpansion/osf.io/website/project/views/node.py b/ScreenExpansion/osf.io/website/project/views/node.py new file mode 100644 index 0000000..92f7052 --- /dev/null +++ b/ScreenExpansion/osf.io/website/project/views/node.py @@ -0,0 +1,1512 @@ +# -*- coding: utf-8 -*- +import os +import logging +from rest_framework import status as http_status +import math +from collections import defaultdict + +from flask import request +from django.apps import apps +from django.utils import timezone +from django.core.exceptions import ValidationError, ObjectDoesNotExist +from django.db.models import Q, OuterRef, Subquery + +from framework import status +from framework.utils import iso8601format +from framework.flask import redirect # VOL-aware redirect +from framework.auth.decorators import must_be_logged_in, collect_auth +from website.ember_osf_web.decorators import ember_flag_is_active +from api.waffle.utils import flag_is_active, storage_i18n_flag_active, storage_usage_flag_active +from framework.exceptions import HTTPError, PermissionsError +from osf.models.nodelog import NodeLog +from osf.utils.functional import rapply +from osf.utils.registrations import strip_registered_meta_comments +from osf.utils import sanitize +from osf import features + +from website import language + +from website.util import rubeus +from website.ember_osf_web.views import use_ember_app +from osf.exceptions import NodeStateError +from website.project import new_node, new_private_link +from website.project.decorators import ( + must_be_contributor_or_public_but_not_anonymized, + must_be_contributor_or_public, + must_be_valid_project, + must_have_permission, + must_not_be_registration, + must_not_be_retracted_registration, +) +from osf.utils.tokens import process_token_or_pass +from website.util.rubeus import collect_addon_js +from website.project.model import has_anonymous_link, NodeUpdateError, validate_title +from website.project.forms import NewNodeForm +from website.project.utils import sizeof_fmt +from website.project.metadata.utils import serialize_meta_schemas +from addons.wiki.models import WikiPage +from osf.models import AbstractNode, Collection, Contributor, Guid, PrivateLink, Node, NodeRelation, Preprint +from osf.models.licenses import serialize_node_license_record +from osf.utils.sanitize import strip_html +from osf.utils.permissions import ADMIN, READ, WRITE, CREATOR_PERMISSIONS, ADMIN_NODE +from osf.models import RdmTimestampGrantPattern +from website import settings +from website.views import find_bookmark_collection, validate_page_num +from website.views import serialize_node_summary, get_storage_region_list +from website.profile import utils +from addons.mendeley.provider import MendeleyCitationsProvider +from addons.zotero.provider import ZoteroCitationsProvider +from addons.wiki.utils import serialize_wiki_widget +from addons.wiki.models import WikiVersion +from addons.dataverse.utils import serialize_dataverse_widget +from addons.forward.utils import serialize_forward_widget +from addons.jupyterhub.utils import serialize_jupyterhub_widget +from addons.iqbrims.utils import serialize_iqbrims_widget +from addons.myscreen.utils import serialize_myscreen_widget +from admin.rdm_addons.utils import validate_rdm_addons_allowed +from api.base import settings as api_settings +from website.util import quota +from osf.models.project_storage_type import ProjectStorageType + + +from nii.mapcore_api import MAPCoreException +from nii.mapcore import (mapcore_sync_is_enabled, + mapcore_log_error, + mapcore_sync_rdm_project_or_map_group, + mapcore_sync_map_group) + +r_strip_html = lambda collection: rapply(collection, strip_html) +logger = logging.getLogger(__name__) + +@must_be_valid_project +@must_have_permission(WRITE) +def edit_node(auth, node, **kwargs): + post_data = request.json + edited_field = post_data.get('name') + value = post_data.get('value', '') + + new_val = None + if edited_field == 'title': + try: + node.set_title(value, auth=auth) + except ValidationError as e: + raise HTTPError( + http_status.HTTP_400_BAD_REQUEST, + data=dict(message_long=str(e)) + ) + new_val = node.title + elif edited_field == 'description': + node.set_description(value, auth=auth) + new_val = node.description + elif edited_field == 'category': + node.category = new_val = value + + try: + node.save() + except ValidationError as e: + raise HTTPError( + http_status.HTTP_400_BAD_REQUEST, + data=dict(message_long=str(e)) + ) + if mapcore_sync_is_enabled(): + mapcore_sync_map_group(auth.user, node) + return { + 'status': 'success', + 'newValue': new_val # Used by x-editable widget to reflect changes made by sanitizer + } + + +############################################################################## +# New Project +############################################################################## + + +@must_be_logged_in +def project_new(**kwargs): + return {} + +@must_be_logged_in +def project_new_post(auth, **kwargs): + user = auth.user + data = request.get_json() + title = strip_html(data.get('title')) + title = title.strip() + category = data.get('category', 'project') + template = data.get('template') + description = strip_html(data.get('description')) + campaign = data.get('campaign', None) + new_project = {} + + if template: + original_node = AbstractNode.load(template) + changes = { + 'title': title, + 'category': category, + 'template_node': original_node, + } + + if description: + changes['description'] = description + + project = original_node.use_as_template( + auth=auth, + changes={ + template: changes, + } + ) + + else: + try: + project = new_node(category, title, user, description, campaign=campaign) + except ValidationError as e: + raise HTTPError( + http_status.HTTP_400_BAD_REQUEST, + data=dict(message_long=str(e)) + ) + new_project = _view_project(project, auth) + return { + 'projectUrl': project.url, + 'newNode': new_project['node'] if new_project else None + }, http_status.HTTP_201_CREATED + + +@must_be_logged_in +@must_be_valid_project +def project_new_from_template(auth, node, **kwargs): + new_node = node.use_as_template( + auth=auth, + changes=dict(), + ) + return {'url': new_node.url}, http_status.HTTP_201_CREATED, None + + +############################################################################## +# New Node +############################################################################## + +@must_be_valid_project +@must_have_permission(WRITE) +@must_not_be_registration +def project_new_node(auth, node, **kwargs): + """ + There's an APIv2 endpoint that does this same thing! + If you make changes here, see if they need to be made there. + """ + form = NewNodeForm(request.form) + user = auth.user + if form.validate(): + try: + new_component = new_node( + title=strip_html(form.title.data), + user=user, + category=form.category.data, + parent=node, + ) + except ValidationError as e: + raise HTTPError( + http_status.HTTP_400_BAD_REQUEST, + data=dict(message_long=str(e)) + ) + redirect_url = node.url + message = ( + 'Your component was created successfully. You can keep working on the project page below, ' + 'or go to the new component.' + ).format(component_url=new_component.url) + if form.inherit_contributors.data and node.has_permission(user, WRITE): + for contributor in node.contributors: + # Using permission property off of Contributor model to get contributor permissions - not group member perms + perm = CREATOR_PERMISSIONS if contributor._id == user._id else Contributor.objects.get(user_id=contributor.id, node_id=node.id).permission + if contributor._id == user._id and not contributor.is_registered: + new_component.add_unregistered_contributor( + fullname=contributor.fullname, email=contributor.email, + permissions=perm, auth=auth, existing_user=contributor + ) + else: + new_component.add_contributor(contributor, permissions=perm, auth=auth) + + for group in node.osf_groups: + if group.is_manager(user): + new_component.add_osf_group(group, group.get_permission_to_node(node), auth=auth) + + new_component.save() + redirect_url = new_component.url + 'contributors/' + message = ( + 'Your component was created successfully. You can edit the contributor permissions below, ' + 'work on your component or return to the ' + 'project page.' + ).format(component_url=new_component.url, project_url=node.url) + status.push_status_message(message, kind='info', trust=True) + + return { + 'status': 'success', + }, 201, None, redirect_url + else: + # TODO: This function doesn't seem to exist anymore? + status.push_errors_to_status(form.errors) + raise HTTPError(http_status.HTTP_400_BAD_REQUEST, redirect_url=node.url) + + +@must_be_logged_in +@must_be_valid_project +def project_before_fork(auth, node, **kwargs): + user = auth.user + + prompts = node.callback('before_fork', user=user) + + if node.has_pointers_recursive: + prompts.append( + language.BEFORE_FORK_HAS_POINTERS.format( + category=node.project_or_component + ) + ) + + return {'prompts': prompts} + + +@must_be_logged_in +@must_be_valid_project +def project_before_template(auth, node, **kwargs): + prompts = [] + + for addon in node.get_addons(): + if 'node' in addon.config.configs: + if addon.to_json(auth.user)['addon_full_name']: + prompts.append(addon.to_json(auth.user)['addon_full_name']) + + return {'prompts': prompts, 'isRegistration': node.is_registration} + + +@must_be_valid_project +@must_be_contributor_or_public_but_not_anonymized +@must_not_be_registration +def node_registrations(auth, node, **kwargs): + if request.path.startswith('/project/'): + return redirect('/{}/registrations/'.format(node._id)) + return use_ember_app() + +@must_be_valid_project +@must_be_contributor_or_public_but_not_anonymized +@must_not_be_retracted_registration +def node_forks(auth, node, **kwargs): + if request.path.startswith('/project/'): + return redirect('/' + node._id + '/forks/') + return use_ember_app() + +@must_be_valid_project +@must_not_be_retracted_registration +@must_be_logged_in +@must_have_permission(READ) +@ember_flag_is_active(features.EMBER_PROJECT_SETTINGS) +def node_setting(auth, node, **kwargs): + if node.is_registration and flag_is_active(request, features.EMBER_REGISTRIES_DETAIL_PAGE): + # Registration settings page obviated during redesign + return redirect(node.url) + auth.user.update_affiliated_institutions_by_email_domain() + auth.user.save() + ret = _view_project(node, auth, primary=True) + + ret['include_wiki_settings'] = WikiPage.objects.include_wiki_settings(node) + ret['wiki_enabled'] = 'wiki' in node.get_addon_names() + + ret['comments'] = { + 'level': node.comment_level, + } + + addon_settings = {} + for addon in ['forward']: + addon_config = apps.get_app_config('addons_{}'.format(addon)) + config = addon_config.to_json() + config['template_lookup'] = addon_config.template_lookup + config['addon_icon_url'] = addon_config.icon_url + config['node_settings_template'] = os.path.basename(addon_config.node_settings_template) + addon_settings[addon] = config + + ret['addon_settings'] = addon_settings + + ret['categories'] = settings.NODE_CATEGORY_MAP + ret['categories'].update({ + 'project': 'Project' + }) + + ret['group'] = node.group.name if node.group is not None else None + ret['can_delete'] = True if node.group is None else False + + return ret + +@must_be_valid_project +@must_not_be_registration +@must_be_logged_in +@must_have_permission(WRITE) +def node_addons(auth, node, **kwargs): + + ret = _view_project(node, auth, primary=True) + + addon_settings = serialize_addons(node, auth) + + ret['addon_capabilities'] = settings.ADDON_CAPABILITIES + + # If an addon is default you cannot connect/disconnect so we don't have to load it. + ret['addon_settings'] = [addon for addon in addon_settings] + + # Addons can have multiple categories, but we only want a set of unique ones being used. + ret['addon_categories'] = set([item for addon in addon_settings for item in addon['categories']]) + + # The page only needs to load enabled addons and it refreshes when a new addon is being enabled. + ret['addon_js'] = collect_node_config_js([addon for addon in addon_settings if addon['enabled']]) + + try: + timestamp_pattern = RdmTimestampGrantPattern.objects.get(node_guid=node._id) + ret['timestamp_pattern_division'] = timestamp_pattern.timestamp_pattern_division + except ObjectDoesNotExist: + timestamp_pattern = None + + return ret +def get_timestamp_pattern_division(auth, node, **kwargs): + try: + timestamp_pattern = RdmTimestampGrantPattern.objects.get(node_guid=node._id) + timestamp_pattern_division = timestamp_pattern.timestamp_pattern_division + except ObjectDoesNotExist: + timestamp_pattern_division = None + + return timestamp_pattern_division + +def serialize_addons(node, auth): + + addon_settings = [] + addons_available = [addon for addon in settings.ADDONS_AVAILABLE + if addon not in settings.SYSTEM_ADDED_ADDONS['node'] + and addon.short_name not in ('wiki', 'forward', 'twofactor')] + +### forced Admin Settings + from admin.rdm_addons.utils import update_with_rdm_addon_settings + + owners_addons_available = sorted([ + owners_addon + for owners_addon in settings.ADDONS_AVAILABLE + if 'node' in owners_addon.owners + and owners_addon.short_name not in settings.SYSTEM_ADDED_ADDONS['node'] + and owners_addon.short_name not in ['wiki', 'forward', 'twofactor'] + ], key=lambda owners_addon: owners_addon.full_name.lower()) + rdm_addon_settings = [{'addon_short_name': owners_addon.short_name} for owners_addon in owners_addons_available] + update_with_rdm_addon_settings(rdm_addon_settings, auth.user) + addons_allowed = [ + addon['addon_short_name'] + for addon in rdm_addon_settings + if (addon['is_allowed'] and not addon['is_forced']) + or (addon['is_allowed'] and addon['is_forced'] and addon['has_user_external_accounts']) + ] + + for addon in addons_available: + addon_config = apps.get_app_config('addons_{}'.format(addon.short_name)) + config = addon_config.to_json() + config['template_lookup'] = addon_config.template_lookup + config['addon_icon_url'] = addon_config.icon_url + config['node_settings_template'] = os.path.basename(addon_config.node_settings_template) + config['addon_short_name'] = addon.short_name + config['addon_full_name'] = addon.full_name + config['categories'] = addon.categories + config['enabled'] = node.has_addon(addon.short_name) + config['default'] = addon.short_name in settings.ADDONS_DEFAULT + + if node.has_addon(addon.short_name): + node_json = node.get_addon(addon.short_name).to_json(auth.user) + config.update(node_json) + + if addon.short_name in addons_allowed: + addon_settings.append(config) + + addon_settings = sorted(addon_settings, key=lambda addon: addon['full_name'].lower()) + + return addon_settings + +def collect_node_config_js(addons): + """Collect webpack bundles for each of the addons' node-cfg.js modules. Return + the URLs for each of the JS modules to be included on the node addons config page. + + :param list addons: List of node's addon config records. + """ + js_modules = [] + for addon in addons: + source_path = os.path.join( + settings.ADDON_PATH, + addon['short_name'], + 'static', + 'node-cfg.js', + ) + if os.path.exists(source_path): + asset_path = os.path.join( + '/', + 'static', + 'public', + 'js', + addon['short_name'], + 'node-cfg.js', + ) + js_modules.append(asset_path) + + return js_modules + + +@must_have_permission(WRITE) +@must_not_be_registration +def node_choose_addons(auth, node, **kwargs): + config = request.json + try: + for addon_name, enabled in config.items(): + if enabled: + validate_rdm_addons_allowed(auth, addon_name) + except PermissionsError as e: + raise HTTPError( + http_status.HTTP_403_FORBIDDEN, + data=dict(message_long=str(e)) + ) + + node.config_addons(request.json, auth) + + +@must_be_valid_project +@must_not_be_retracted_registration +@must_have_permission(READ) +@ember_flag_is_active(features.EMBER_PROJECT_CONTRIBUTORS) +def node_contributors(auth, node, **kwargs): + ret = _view_project(node, auth, primary=True) + ret['contributors'] = utils.serialize_contributors(node.contributors, node) + ret['access_requests'] = utils.serialize_access_requests(node) + ret['adminContributors'] = utils.serialize_contributors(node.parent_admin_contributors, node, admin=True) + return ret + + +@must_have_permission(ADMIN) +def configure_comments(node, **kwargs): + comment_level = request.json.get('commentLevel') + if not comment_level: + node.comment_level = None + elif comment_level in ['public', 'private']: + node.comment_level = comment_level + else: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + node.save() + +@must_have_permission(ADMIN) +@must_not_be_registration +def configure_requests(node, **kwargs): + access_requests_enabled = request.get_json().get('accessRequestsEnabled') + auth = kwargs.get('auth', None) + node.set_access_requests_enabled(access_requests_enabled, auth, save=True) + return {'access_requests_enabled': access_requests_enabled}, 200 + + +############################################################################## +# View Project +############################################################################## + +@process_token_or_pass +@must_be_valid_project(retractions_valid=True) +@must_be_contributor_or_public +@ember_flag_is_active(features.EMBER_PROJECT_DETAIL) +def view_project(auth, node, **kwargs): + primary = '/api/v1' not in request.path + ret = _view_project(node, auth, + primary=primary, + embed_contributors=True, + embed_descendants=True + ) + + ret['addon_capabilities'] = settings.ADDON_CAPABILITIES + # Collect the URIs to the static assets for addons that have widgets + ret['addon_widget_js'] = list(collect_addon_js( + node, + filename='widget-cfg.js', + config_entry='widget' + )) + ret.update(rubeus.collect_addon_assets(node)) + + access_request = node.requests.filter(creator=auth.user).exclude(machine_state='accepted') + ret['user']['access_request_state'] = access_request.get().machine_state if access_request else None + + addons_widget_data = { + 'wiki': None, + 'mendeley': None, + 'zotero': None, + 'forward': None, + 'dataverse': None, + 'jupyterhub': None, + # widget: ここから + 'myscreen': None + # widget: ここまで + } + + if 'wiki' in ret['addons']: + addons_widget_data['wiki'] = serialize_wiki_widget(node) + + if 'dataverse' in ret['addons']: + addons_widget_data['dataverse'] = serialize_dataverse_widget(node) + + if 'forward' in ret['addons']: + addons_widget_data['forward'] = serialize_forward_widget(node) + + if 'zotero' in ret['addons']: + node_addon = node.get_addon('zotero') + zotero_widget_data = ZoteroCitationsProvider().widget(node_addon) + addons_widget_data['zotero'] = zotero_widget_data + + if 'mendeley' in ret['addons']: + node_addon = node.get_addon('mendeley') + mendeley_widget_data = MendeleyCitationsProvider().widget(node_addon) + addons_widget_data['mendeley'] = mendeley_widget_data + + if 'jupyterhub' in ret['addons']: + addons_widget_data['jupyterhub'] = serialize_jupyterhub_widget(node) + + if 'iqbrims' in ret['addons']: + addons_widget_data['iqbrims'] = serialize_iqbrims_widget(node) + + # widget: ここから + if 'myscreen' in ret['addons']: + addons_widget_data['myscreen'] = serialize_myscreen_widget(node) + # widget: ここまで + + ret.update({'addons_widget_data': addons_widget_data}) + try: + projectStorageType = ProjectStorageType.objects.get(node=node) + ret['isCustomStorageLocation'] = projectStorageType.storage_type == ProjectStorageType.CUSTOM_STORAGE + except Exception as err: + logger.critical(err) + ret['isCustomStorageLocation'] = False + + return ret + + +@process_token_or_pass +@must_be_valid_project(retractions_valid=True) +@must_be_contributor_or_public +def token_action(auth, node, **kwargs): + return redirect(node.url) + + +# Reorder components +@must_be_valid_project +@must_not_be_registration +@must_have_permission(WRITE) +def project_reorder_components(node, **kwargs): + """Reorders the components in a project's component list. + + :param-json list new_list: List of strings that include node GUIDs. + """ + ordered_guids = request.get_json().get('new_list', []) + node_relations = ( + node.node_relations + .select_related('child') + .filter(child__is_deleted=False) + ) + deleted_node_relation_ids = list( + node.node_relations.select_related('child') + .filter(child__is_deleted=True) + .values_list('pk', flat=True) + ) + + if len(ordered_guids) > len(node_relations): + raise HTTPError(http_status.HTTP_400_BAD_REQUEST, data=dict(message_long='Too many node IDs')) + + # Ordered NodeRelation pks, sorted according the order of guids passed in the request payload + new_node_relation_ids = [ + each.id for each in sorted(node_relations, + key=lambda nr: ordered_guids.index(nr.child._id)) + ] + + if len(node_relations) == len(ordered_guids): + node.set_noderelation_order(new_node_relation_ids + deleted_node_relation_ids) + node.save() + return {'nodes': ordered_guids} + + logger.error('Got invalid node list in reorder components') + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + +@must_be_valid_project +@must_be_contributor_or_public +@must_not_be_retracted_registration +def project_statistics(auth, node, **kwargs): + if request.path.startswith('/project/'): + return redirect('/' + node._id + '/analytics/') + return use_ember_app() + + +############################################################################### +# Make Private/Public +############################################################################### + +@must_be_valid_project +@must_have_permission(ADMIN) +def project_set_privacy(auth, node, **kwargs): + + permissions = kwargs.get('permissions') + if permissions is None: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + + try: + node.set_privacy(permissions, auth) + except NodeStateError as e: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST, data=dict( + message_short="Can't change privacy", + message_long=str(e) + )) + + return { + 'status': 'success', + 'permissions': permissions, + } + + +@must_be_valid_project +@must_have_permission(WRITE) +def update_node(auth, node, **kwargs): + # in node.update() method there is a key list node.WRITABLE_WHITELIST only allow user to modify + # category, title, and description which can be edited by write permission contributor + data = r_strip_html(request.get_json()) + try: + updated_field_names = node.update(data, auth=auth) + except NodeUpdateError as e: + raise HTTPError(400, data=dict( + message_short='Failed to update attribute \'{0}\''.format(e.key), + message_long=e.reason + )) + # Need to cast tags to a string to make them JSON-serialiable + updated_fields_dict = { + key: getattr(node, key) if key != 'tags' else [str(tag) for tag in node.tags] + for key in updated_field_names + if key != 'logs' and key != 'modified' and key != 'last_logged' + } + return {'updated_fields': updated_fields_dict} + +@must_be_valid_project +@must_have_permission(ADMIN) +@must_not_be_registration +def component_remove(auth, node, **kwargs): + """Remove component, and recursively remove its children. If node has a + parent, add log and redirect to parent; else redirect to user dashboard. + + """ + try: + node.remove_node(auth) + except NodeStateError as e: + raise HTTPError( + http_status.HTTP_400_BAD_REQUEST, + data={ + 'message_short': 'Error', + 'message_long': 'Could not delete component: ' + str(e) + }, + ) + + message = '{} has been successfully deleted.'.format( + node.project_or_component.capitalize() + ) + id = '{}_deleted'.format(node.project_or_component) + status.push_status_message(message, kind='success', trust=False, id=id) + parent = node.parent_node + if parent and parent.can_view(auth): + redirect_url = node.parent_node.url + else: + redirect_url = '/dashboard/' + + return { + 'url': redirect_url, + } + + +@must_be_valid_project +@must_have_permission(ADMIN) +def remove_private_link(*args, **kwargs): + link_id = request.json['private_link_id'] + + try: + link = PrivateLink.objects.get(_id=link_id) + except PrivateLink.DoesNotExist: + raise HTTPError(http_status.HTTP_404_NOT_FOUND) + + link.is_deleted = True + link.deleted = timezone.now() + link.save() + + for node in link.nodes.all(): + log_dict = { + 'project': node.parent_id, + 'node': node._id, + 'user': kwargs.get('auth').user._id, + 'anonymous_link': link.anonymous, + } + + node.add_log( + NodeLog.VIEW_ONLY_LINK_REMOVED, + log_dict, + auth=kwargs.get('auth', None) + ) + +# TODO: Split into separate functions +def _render_addons(addons): + + widgets = {} + configs = {} + js = [] + css = [] + + for addon in addons: + configs[addon.config.short_name] = addon.config.to_json() + js.extend(addon.config.include_js.get('widget', [])) + css.extend(addon.config.include_css.get('widget', [])) + + js.extend(addon.config.include_js.get('files', [])) + css.extend(addon.config.include_css.get('files', [])) + + return widgets, configs, js, css + + +def _should_show_wiki_widget(node, user): + has_wiki = bool(node.get_addon('wiki')) + wiki_page = WikiVersion.objects.get_for_node(node, 'home') + + if node.has_permission(user, WRITE) and not node.is_registration: + return has_wiki + else: + return has_wiki and wiki_page and wiki_page.html(node) + + +def _view_project(node, auth, primary=False, + embed_contributors=False, embed_descendants=False, + embed_registrations=False, embed_forks=False): + """Build a JSON object containing everything needed to render + project.view.mako. + """ + node = AbstractNode.objects.filter(pk=node.pk).include('contributor__user__guids').get() + if node.is_deleted: + raise HTTPError(http_status.HTTP_410_GONE) + + user = auth.user + + if mapcore_sync_is_enabled(): + try: + mapcore_sync_rdm_project_or_map_group(auth.user, node) + except MAPCoreException as e: + # Do not call redirect() here + if settings.DEBUG_MODE: + import traceback + emsg = '
    {}
    '.format( + traceback.format_exc()) + else: + emsg = str(e) + mapcore_log_error('{}: {}'.format( + e.__class__.__name__, emsg)) + raise HTTPError(http_status.HTTP_503_SERVICE_UNAVAILABLE, data={ + 'message_short': 'mAP Core API Error', + 'message_long': emsg + }) + else: + # for CloudGateway API v1 + if node.group is not None and user.cggroups_sync is not None \ + and not user.cggroups_sync.filter(name=node.group.name).exists(): + from nii import project_sync + project_sync.project_sync_one(node, None) + user.cggroups_sync.add(node.group) # checked + user.save() + + in_bookmark_collection = False + bookmark_collection_id = '' + + parent = node.find_readable_antecedent(auth) + if user: + bookmark_collection = find_bookmark_collection(user) + if bookmark_collection: + bookmark_collection_id = bookmark_collection._id + in_bookmark_collection = bookmark_collection.guid_links.filter(_id=node._id).exists() + + view_only_link = auth.private_key or request.args.get('view_only', '').strip('/') + anonymous = has_anonymous_link(node, auth) + addons = list(node.get_addons()) + widgets, configs, js, css = _render_addons(addons) + redirect_url = node.url + '?view_only=None' + + disapproval_link = '' + if (node.is_pending_registration and node.has_permission(user, ADMIN)): + disapproval_link = node.root.registration_approval.stashed_urls.get(user._id, {}).get('reject', '') + + if (node.is_pending_embargo and node.has_permission(user, ADMIN)): + disapproval_link = node.root.embargo.stashed_urls.get(user._id, {}).get('reject', '') + + # Before page load callback; skip if not primary call + if primary: + for addon in addons: + messages = addon.before_page_load(node, user) or [] + for message in messages: + status.push_status_message(message, kind='info', dismissible=False, trust=True) + NodeRelation = apps.get_model('osf.NodeRelation') + max_quota, used_quota = quota.get_quota_info( + node.creator, quota.get_project_storage_type(node) + ) + is_registration = node.is_registration + timestamp_pattern = get_timestamp_pattern_division(auth, node) + data = { + 'node': { + 'disapproval_link': disapproval_link, + 'id': node._primary_key, + 'title': sanitize.unescape_entities(node.title), + 'category': node.category_display, + 'category_short': node.category, + 'used_quota': used_quota, + 'max_quota': max_quota * api_settings.SIZE_UNIT_GB, + 'threshold': api_settings.WARNING_THRESHOLD, + 'node_type': node.project_or_component, + 'description': node.description or '', + 'license': serialize_node_license_record(node.license), + 'url': node.url, + 'api_url': node.api_url, + 'absolute_url': node.absolute_url, + 'redirect_url': redirect_url, + 'display_absolute_url': node.display_absolute_url, + 'update_url': node.api_url_for('update_node'), + 'in_dashboard': in_bookmark_collection, + 'is_public': node.is_public, + 'is_archiving': node.archiving, + 'date_created': iso8601format(node.created), + 'date_modified': iso8601format(node.last_logged) if node.last_logged else '', + 'tags': list(node.tags.filter(system=False).values_list('name', flat=True)), + 'children': node.nodes_active.exists(), + 'child_exists': Node.objects.get_children(node, active=True).exists(), + 'is_supplemental_project': node.has_linked_published_preprints, + 'is_registration': is_registration, + 'is_pending_registration': node.is_pending_registration if is_registration else False, + 'is_retracted': node.is_retracted if is_registration else False, + 'is_pending_retraction': node.is_pending_retraction if is_registration else False, + 'retracted_justification': getattr(node.root.retraction, 'justification', None) if is_registration else None, + 'date_retracted': iso8601format(getattr(node.root.retraction, 'date_retracted', None)) if is_registration else '', + 'embargo_end_date': node.embargo_end_date.strftime('%A, %b %d, %Y') if is_registration and node.embargo_end_date else '', + 'is_pending_embargo': node.is_pending_embargo if is_registration else False, + 'is_embargoed': node.is_embargoed if is_registration else False, + 'is_pending_embargo_termination': is_registration and node.is_pending_embargo_termination, + 'registered_from_url': node.registered_from.url if is_registration else '', + 'registered_date': iso8601format(node.registered_date) if is_registration else '', + 'root_id': node.root._id if node.root else None, + 'registered_meta': strip_registered_meta_comments(node.registered_meta), + 'registered_schemas': serialize_meta_schemas(list(node.registered_schema.all())) if is_registration else False, + 'is_fork': node.is_fork, + 'is_collected': node.is_collected, + 'collections': serialize_collections(node.collecting_metadata_list, auth), + 'forked_from_id': node.forked_from._primary_key if node.is_fork else '', + 'forked_from_display_absolute_url': node.forked_from.display_absolute_url if node.is_fork else '', + 'forked_date': iso8601format(node.forked_date) if node.is_fork else '', + 'fork_count': node.forks.exclude(type='osf.registration').filter(is_deleted=False).count(), + 'private_links': [x.to_json() for x in node.private_links_active], + 'link': view_only_link, + 'templated_count': node.templated_list.count(), + 'linked_nodes_count': NodeRelation.objects.filter(child=node, is_node_link=True).exclude(parent__type='osf.collection').count(), + 'anonymous': anonymous, + 'comment_level': node.comment_level, + 'has_comments': node.comment_set.exists(), + 'identifiers': { + 'doi': node.get_identifier_value('doi'), + 'ark': node.get_identifier_value('ark'), + }, + 'visible_preprints': serialize_preprints(node, user), + 'institutions': get_affiliated_institutions(node) if node else [], + 'has_draft_registrations': node.has_active_draft_registrations, + 'timestamp_pattern_division': timestamp_pattern, + 'access_requests_enabled': node.access_requests_enabled, + 'storage_location': node.osfstorage_region.name, + 'waterbutler_url': node.osfstorage_region.waterbutler_url, + 'mfr_url': node.osfstorage_region.mfr_url, + 'groups': list(node.osf_groups.values_list('name', flat=True)), + }, + 'parent_node': { + 'exists': parent is not None, + 'id': parent._primary_key if parent else '', + 'title': parent.title if parent else '', + 'category': parent.category_display if parent else '', + 'url': parent.url if parent else '', + 'api_url': parent.api_url if parent else '', + 'absolute_url': parent.absolute_url if parent else '', + 'registrations_url': parent.web_url_for('node_registrations', _guid=True) if parent else '', + 'is_public': parent.is_public if parent else '', + 'is_contributor_or_group_member': parent.is_contributor_or_group_member(user) if parent else '', + 'is_contributor': parent.is_contributor(user) if parent else '', + 'can_view': parent.can_view(auth) if parent else False, + }, + 'user': { + 'is_contributor_or_group_member': node.is_contributor_or_group_member(user), + 'is_contributor': node.is_contributor(user), + 'is_admin': node.has_permission(user, ADMIN), + 'is_admin_parent_contributor': parent.is_admin_parent(user, include_group_admin=False) if parent else False, + 'is_admin_parent_contributor_or_group_member': parent.is_admin_parent(user) if parent else False, + 'can_edit': node.has_permission(user, WRITE), + 'can_edit_tags': node.has_permission(user, WRITE), + 'has_read_permissions': node.has_permission(user, READ), + 'permissions': node.get_permissions(user) if user else [], + 'id': user._id if user else None, + 'username': user.username if user else None, + 'fullname': user.fullname if user else '', + 'can_comment': node.can_comment(auth), + 'show_wiki_widget': _should_show_wiki_widget(node, user), + 'dashboard_id': bookmark_collection_id, + 'institutions': get_affiliated_institutions(user) if user else [], + }, + # TODO: Namespace with nested dicts + 'addons_enabled': [each.short_name for each in addons], + 'addons': configs, + 'addon_widgets': widgets, + 'addon_widget_js': js, + 'addon_widget_css': css, + 'node_categories': [ + {'value': key, 'display_name': value} + for key, value in list(settings.NODE_CATEGORY_MAP.items()) + ] + } + + # Default should be at top of list for UI and for the project overview page the default region + # for a component is that of the it's parent node. + region_list = get_storage_region_list(user, node=node) + + data.update({'storage_regions': region_list}) + data.update({'storage_flag_is_active': storage_i18n_flag_active()}) + if storage_usage_flag_active(): + storage_usage = node.storage_usage + if storage_usage: + data['node']['storage_usage'] = sizeof_fmt(storage_usage) + + if embed_contributors and not anonymous: + data['node']['contributors'] = utils.serialize_visible_contributors(node) + else: + data['node']['contributors'] = list(node.contributors.values_list('guids___id', flat=True)) + if embed_descendants: + descendants, all_readable = _get_readable_descendants(auth=auth, node=node) + data['user']['can_sort'] = all_readable + data['node']['descendants'] = [ + serialize_node_summary(node=each, auth=auth, primary=not node.has_node_link_to(each), show_path=False) + for each in descendants + ] + if embed_registrations: + data['node']['registrations'] = [ + serialize_node_summary(node=each, auth=auth, show_path=False) + for each in node.registrations_all.order_by('-registered_date').exclude(is_deleted=True) + ] + if embed_forks: + data['node']['forks'] = [ + serialize_node_summary(node=each, auth=auth, show_path=False) + for each in node.forks.exclude(type='osf.registration').exclude(is_deleted=True).order_by('-forked_date') + ] + return data + +def get_affiliated_institutions(obj): + ret = [] + for institution in obj.affiliated_institutions.all(): + ret.append({ + 'name': institution.name, + 'logo_path': institution.logo_path, + 'logo_path_rounded_corners': institution.logo_path_rounded_corners, + 'id': institution._id, + }) + return ret + +def serialize_collections(cgms, auth): + return [{ + 'title': cgm.collection.title, + 'name': cgm.collection.provider.name, + 'url': '/collections/{}/'.format(cgm.collection.provider._id), + 'status': cgm.status, + 'type': cgm.collected_type, + 'issue': cgm.issue, + 'volume': cgm.volume, + 'program_area': cgm.program_area, + 'subjects': list(cgm.subjects.values_list('text', flat=True)), + 'is_public': cgm.collection.is_public, + 'logo': cgm.collection.provider.get_asset_url('favicon') + } for cgm in cgms if cgm.collection.provider and (cgm.collection.is_public + or (auth.user and auth.user.has_perm('read_collection', cgm.collection)))] + +def serialize_preprints(node, user): + return [ + { + 'title': preprint.title, + 'is_moderated': preprint.provider.reviews_workflow, + 'is_withdrawn': preprint.date_withdrawn is not None, + 'state': preprint.machine_state, + 'word': preprint.provider.preprint_word, + 'provider': {'name': 'OSF Preprints' if preprint.provider.name == 'Open Science Framework' else preprint.provider.name, 'workflow': preprint.provider.reviews_workflow}, + 'url': preprint.url, + 'absolute_url': preprint.absolute_url + } for preprint in Preprint.objects.can_view(base_queryset=node.preprints, user=user).filter(date_withdrawn__isnull=True) + ] + + +def serialize_children(child_list, nested, indent=0): + """ + Returns the serialized representation of a list of child nodes. + + This is a helper function for _get_children and as such it does not + redundantly check permissions. + """ + results = [] + for child in child_list: + results.append({ + 'id': child._id, + 'title': child.title, + 'is_public': child.is_public, + 'parent_id': child.parentnode_id, + 'indent': indent + }) + if child._id in nested.keys(): + results.extend(serialize_children(nested.get(child._id), nested, indent + 1)) + return results + +def _get_children(node, auth): + """ + Returns the serialized representation of the given node and all of its children + for which the given user has ADMIN permission. + """ + parent_node_sqs = NodeRelation.objects.filter(child=OuterRef('pk'), is_node_link=False).values('parent__guids___id') + children = (Node.objects.get_children(node) + .filter(is_deleted=False) + .annotate(parentnode_id=Subquery(parent_node_sqs[:1]))) + admin_children = Node.objects.get_nodes_for_user(auth.user, ADMIN_NODE, children) + + nested = defaultdict(list) + for child in admin_children: + nested[child.parentnode_id].append(child) + + return serialize_children(nested[node._id], nested) + + +@must_be_valid_project +@must_have_permission(ADMIN) +def private_link_table(node, **kwargs): + data = { + 'node': { + 'absolute_url': node.absolute_url, + 'private_links': [x.to_json() for x in node.private_links_active], + } + } + return data + + +@collect_auth +@must_be_valid_project +@must_have_permission(ADMIN) +def get_editable_children(auth, node, **kwargs): + + children = _get_children(node, auth) + + return { + 'node': {'id': node._id, 'title': node.title, 'is_public': node.is_public}, + 'children': children, + } + + +@must_be_valid_project +def get_recent_logs(node, **kwargs): + logs = list(reversed(node.logs._to_primary_keys()))[:3] + return {'logs': logs} + + +def _get_readable_descendants(auth, node, permission=None): + descendants = [] + all_readable = True + for child in node.get_nodes(is_deleted=False): + if permission: + perm = permission.lower().strip() + if not child.has_permission(auth.user, perm): + all_readable = False + continue + # User can view child + if child.can_view(auth): + descendants.append(child) + # Child is a node link and user has write permission + elif node.linked_nodes.filter(id=child.id).exists(): + if node.has_permission(auth.user, WRITE): + descendants.append(child) + else: + all_readable = False + else: + all_readable = False + for descendant in child.find_readable_descendants(auth): + descendants.append(descendant) + return descendants, all_readable + +def serialize_child_tree(child_list, user, nested): + """ + Recursively serializes and returns a list of child nodes. + + This is a helper function for node_child_tree and as such it does not + redundantly check permissions. + """ + serialized_children = [] + for child in child_list: + if child.has_permission(user, READ) or child.has_permission_on_children(user, READ): + # is_admin further restricted here to mean user is a traditional admin group contributor - + # admin group membership not sufficient + contributors = [{ + 'id': contributor.user._id, + 'is_admin': child.is_admin_contributor(contributor.user), + 'is_confirmed': contributor.user.is_confirmed, + 'visible': contributor.visible + } for contributor in child.contributor_set.all()] + + serialized_children.append({ + 'node': { + 'id': child._id, + 'url': child.url, + 'title': sanitize.unescape_entities(child.title), + 'is_public': child.is_public, + 'contributors': contributors, + 'is_admin': child.has_permission(user, ADMIN), + 'is_supplemental_project': child.has_linked_published_preprints, + }, + 'user_id': user._id, + 'children': serialize_child_tree(nested.get(child._id), user, nested) if child._id in nested.keys() else [], + 'nodeType': 'project' if not child.parentnode_id else 'component', + 'category': child.category, + 'permissions': { + 'view': True, + 'is_admin': child.has_permission(user, ADMIN) + } + }) + + return sorted(serialized_children, key=lambda k: len(k['children']), reverse=True) + +def node_child_tree(user, node): + """ Returns the serialized representation (for treebeard) of a given node and its children. + :param user: OSFUser object + :param node: parent project Node object + :return: treebeard-formatted data + """ + serialized_nodes = [] + + assert node, '{} is not a valid Node.'.format(node._id) + + parent_node_sqs = NodeRelation.objects.filter(child=OuterRef('pk'), is_node_link=False).values('parent__guids___id') + children = (Node.objects.get_children(node) + .filter(is_deleted=False) + .annotate(parentnode_id=Subquery(parent_node_sqs[:1])) + .include('contributor__user__guids') + ) + + nested = defaultdict(list) + for child in children: + nested[child.parentnode_id].append(child) + + contributors = [{ + 'id': contributor.user._id, + 'is_admin': node.is_admin_contributor(contributor.user), + 'is_confirmed': contributor.user.is_confirmed, + 'visible': contributor.visible + } for contributor in node.contributor_set.all().include('user__guids')] + + can_read = node.has_permission(user, READ) + is_admin = node.has_permission(user, ADMIN) + + if can_read or node.has_permission_on_children(user, READ): + serialized_nodes.append({ + 'node': { + 'id': node._id, + 'url': node.url if can_read else '', + 'title': sanitize.unescape_entities(node.title) if can_read else 'Private Project', + 'is_public': node.is_public, + 'contributors': contributors, + 'is_admin': is_admin, + 'is_supplemental_project': node.has_linked_published_preprints, + + }, + 'user_id': user._id, + 'children': serialize_child_tree(nested.get(node._id), user, nested) if node._id in nested.keys() else [], + 'kind': 'folder' if not node.parent_node or not node.parent_node.has_permission(user, READ) else 'node', + 'nodeType': node.project_or_component, + 'category': node.category, + 'permissions': { + 'view': can_read, + 'is_admin': is_admin + } + }) + + return serialized_nodes + +@must_be_logged_in +@must_be_valid_project +def get_node_tree(auth, **kwargs): + node = kwargs.get('node') or kwargs['project'] + tree = node_child_tree(auth.user, node) + return tree + +@must_be_valid_project +@must_have_permission(ADMIN) +def project_generate_private_link_post(auth, node, **kwargs): + """ creata a new private link object and add it to the node and its selected children""" + + node_ids = request.json.get('node_ids', []) + name = request.json.get('name', '') + + anonymous = request.json.get('anonymous', False) + + if node._id not in node_ids: + node_ids.insert(0, node._id) + + nodes = [AbstractNode.load(node_id) for node_id in node_ids] + + try: + new_link = new_private_link( + name=name, user=auth.user, nodes=nodes, anonymous=anonymous + ) + except ValidationError as e: + raise HTTPError( + http_status.HTTP_400_BAD_REQUEST, + data=dict(message_long=str(e)) + ) + + return new_link + + +@must_be_valid_project +@must_have_permission(ADMIN) +def project_private_link_edit(auth, **kwargs): + name = request.json.get('value', '') + try: + validate_title(name) + except ValidationError as e: + message = 'Invalid link name.' if e.message == 'Invalid title.' else e.message + raise HTTPError( + http_status.HTTP_400_BAD_REQUEST, + data=dict(message_long=message) + ) + + private_link_id = request.json.get('pk', '') + private_link = PrivateLink.load(private_link_id) + + if private_link: + new_name = strip_html(name) + private_link.name = new_name + private_link.save() + return new_name + else: + raise HTTPError( + http_status.HTTP_400_BAD_REQUEST, + data=dict(message_long='View-only link not found.') + ) + + +def _serialize_node_search(node): + """Serialize a node for use in pointer search. + + :param Node node: Node to serialize + :return: Dictionary of node data + + """ + data = { + 'id': node._id, + 'title': node.title, + 'etal': len(node.visible_contributors) > 1, + 'isRegistration': node.is_registration + } + if node.is_registration: + data['title'] += ' (registration)' + data['dateRegistered'] = node.registered_date.isoformat() + else: + data['dateCreated'] = node.created.isoformat() + data['dateModified'] = node.modified.isoformat() + + first_author = node.visible_contributors[0] + data['firstAuthor'] = first_author.family_name or first_author.given_name or first_author.fullname + + return data + + +@must_be_logged_in +def search_node(auth, **kwargs): + """ + + """ + # Get arguments + node = AbstractNode.load(request.json.get('nodeId')) + include_public = request.json.get('includePublic') + size = float(request.json.get('size', '5').strip()) + page = request.json.get('page', 0) + query = request.json.get('query', '').strip() + + start = (page * size) + if not query: + return {'nodes': []} + + # Exclude current node from query if provided + nin = [node.id] + list(node._nodes.values_list('pk', flat=True)) if node else [] + + can_view_query = Q(_contributors=auth.user) + if include_public: + can_view_query = can_view_query | Q(is_public=True) + + nodes = (AbstractNode.objects + .filter( + can_view_query, + title__icontains=query, + is_deleted=False) + .exclude(id__in=nin) + .exclude(type='osf.collection') + .exclude(type='osf.quickfilesnode')) + + count = nodes.count() + pages = math.ceil(count / size) + validate_page_num(page, pages) + + return { + 'nodes': [ + _serialize_node_search(each) + for each in nodes[start: start + size] + if each.contributors + ], + 'total': count, + 'pages': pages, + 'page': page + } + + +def _add_pointers(node, pointers, auth): + """ + + :param Node node: Node to which pointers will be added + :param list pointers: Nodes to add as pointers + + """ + added = False + for pointer in pointers: + if isinstance(node, Collection): + node.collect_object(pointer, auth.user) + else: + node.add_pointer(pointer, auth, save=False) + added = True + + if added: + node.save() + + +@collect_auth +def add_pointer(auth): + """Add a single pointer to a node using only JSON parameters + + """ + to_node_id = request.json.get('toNodeID') + pointer_to_move = request.json.get('pointerID') + + if not (to_node_id and pointer_to_move): + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + + pointer = AbstractNode.load(pointer_to_move) + to_node = Guid.load(to_node_id).referent + try: + _add_pointers(to_node, [pointer], auth) + except ValueError: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + + +@must_have_permission(WRITE) +@must_not_be_registration +def add_pointers(auth, node, **kwargs): + """Add pointers to a node. + + """ + node_ids = request.json.get('nodeIds') + + if not node_ids: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + + nodes = [ + AbstractNode.load(node_id) + for node_id in node_ids + ] + + try: + _add_pointers(node, nodes, auth) + except ValueError: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + + return {} + + +@must_have_permission(WRITE) +@must_not_be_registration +def remove_pointer(auth, node, **kwargs): + """Remove a pointer from a node, raising a 400 if the pointer is not + in `node.nodes`. + + """ + # TODO: since these a delete request, shouldn't use request body. put pointer + # id in the URL instead + pointer_id = request.json.get('pointerId') + if pointer_id is None: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + + pointer = AbstractNode.load(pointer_id) + if pointer is None: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + + try: + node.rm_pointer(pointer, auth=auth) + except ValueError: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + + node.save() + + +@must_have_permission(WRITE) +@must_not_be_registration +def fork_pointer(auth, node, **kwargs): + """Fork a pointer. Raises BAD_REQUEST if pointer not provided, not found, + or not present in `nodes`. + + :param Auth auth: Consolidated authorization + :param Node node: root from which pointer is child + :return: Fork of node to which nodelink(pointer) points + """ + NodeRelation = apps.get_model('osf.NodeRelation') + + linked_node_id = request.json.get('nodeId') + linked_node = AbstractNode.load(linked_node_id) + pointer = NodeRelation.objects.filter(child=linked_node, is_node_link=True, parent=node).first() + + if pointer is None: + # TODO: Change this to 404? + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + + try: + fork = node.fork_pointer(pointer, auth=auth, save=True) + except ValueError: + raise HTTPError(http_status.HTTP_400_BAD_REQUEST) + + return { + 'data': { + 'node': serialize_node_summary(node=fork, auth=auth, show_path=False) + } + }, http_status.HTTP_201_CREATED + +def abbrev_authors(node): + lead_author = node.visible_contributors[0] + ret = lead_author.family_name or lead_author.given_name or lead_author.fullname + if node.visible_contributors.count() > 1: + ret += ' et al.' + return ret + + +def serialize_pointer(node, auth): + if node.can_view(auth): + return { + 'id': node._id, + 'url': node.url, + 'title': node.title, + 'authorShort': abbrev_authors(node), + } + return { + 'url': None, + 'title': 'Private Component', + 'authorShort': 'Private Author(s)', + } + + +@must_be_contributor_or_public +def get_pointed(auth, node, **kwargs): + """View that returns the pointers for a project.""" + NodeRelation = apps.get_model('osf.NodeRelation') + return {'pointed': [ + serialize_pointer(each.parent, auth) + for each in NodeRelation.objects.filter(child=node, is_node_link=True) + ]} diff --git a/ScreenExpansion/osf.io/website/templates/project/project.mako b/ScreenExpansion/osf.io/website/templates/project/project.mako new file mode 100644 index 0000000..94283e1 --- /dev/null +++ b/ScreenExpansion/osf.io/website/templates/project/project.mako @@ -0,0 +1,745 @@ +<%inherit file="project/project_base.mako"/> +<%namespace name="render_nodes" file="util/render_nodes.mako" /> +<%namespace name="contributor_list" file="util/contributor_list.mako" /> +<%namespace name="render_addon_widget" file="util/render_addon_widget.mako" /> +<%include file="project/nodes_privacy.mako"/> + +<% + is_project = node['node_type'] == 'project' +%> + +
    +
    +
    +
    + % if parent_node['exists']: + % if parent_node['can_view'] or parent_node['is_public'] or parent_node['is_contributor_or_group_member']: +

    + ${parent_node['title']}  / +

    + % else: +

    + ${_("Private Project")} / +

    + % endif + % endif + + % if node['institutions'] != [] and enable_institutions and not node['anonymous']: + + % endif + +

    + ${node['title']} +

    +
    +
    +
    +
    + % if node.get('storage_usage'): +
    + +
    + % endif +
    + % if not node["is_public"]: + + % if project_makepublic: + % if permissions.ADMIN in user['permissions'] and not (node['is_pending_registration'] or node['is_pending_embargo']) and not (node['is_embargoed'] and parent_node['exists']): + + ${_("Make Public")} + + + + + % endif + % endif + % else: + % if permissions.ADMIN in user['permissions'] and not node['is_registration']: + ${_("Make Private")} + % endif + + % endif +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +
    + % if user['is_contributor_or_group_member']: + ${_("Contributors")}: + % else: + ${_("Contributors:")} + % endif + + % if node['anonymous']: +
      ${_("Anonymous Contributors")}
    + % else: +
      + ${contributor_list.render_contributors_full(contributors=node['contributors'])} +
    + % endif +
    + % if node['groups']: +
    + Groups: + %for i, group_name in enumerate(node['groups']): +
      + % if i == len(node['groups']) - 1: + ${group_name} + % else: + ${group_name}, + % endif +
    + %endfor +
    + % endif + % if enable_institutions and not node['anonymous']: + % if (permissions.ADMIN in user['permissions'] and not node['is_registration']) and (len(node['institutions']) != 0 or len(user['institutions']) != 0): + ${_("Affiliated Institutions:")} + % if node['institutions'] != []: + % for inst in node['institutions']: + % if inst != node['institutions'][-1]: + ${inst['name']}, + % else: + ${inst['name']} + % endif + % endfor + % else: + ${_("None")} + % endif + % endif + % if not (permissions.ADMIN in user['permissions'] and not node['is_registration']) and node['institutions'] != []: + Affiliated institutions: + % for inst in node['institutions']: + % if inst != node['institutions'][-1]: + ${inst['name']}, + % else: + ${inst['name']} + % endif + % endfor + % endif + % endif + % if node['is_fork']: +

    + ${_('Forked from %(forkedFromDisplayAbsoluteUrl)s on\ + ') % dict(forkedFromId='class="node-forked-from"' + ' href=/' + h(node['forked_from_id']) + '/',\ + forkedFromDisplayAbsoluteUrl=h(node['forked_from_display_absolute_url']),dateForked='data-bind="text: dateForked.local, tooltip: {title: dateForked.utc}"') | n} +

    + % endif + % if node['is_registration']: +

    + ${_("Date registered:")} + +

    + % endif +

    + ${_("Date created:")} + + % if not node['is_registration']: + ${_("| Last Updated:")} + + % endif +

    + +

    + : + DOI + | ARK +

    +
    + + +

    + + ${_("Creating DOI. Please wait...")} +

    + + + +

    + ${_("Create DOI")} +

    + +
    +

    + ${_("Category:")} + ${_(node['category'])} +

    + + % if (node['description']) or (not node['description'] and permissions.WRITE in user['permissions'] and not node['is_registration']): +

    + ${_("Description:")} + ${node['description']} +

    + % endif +
    + % if not node['is_registration']: +
    + % else: +
    + % endif + % if (permissions.ADMIN in user['permissions'] or node['license'].get('name', 'No license') != 'No license'): +

    + + ${_("License:")} + ${_(node['license'].get('name', 'No license'))} + +

    + % endif +
    + % if node['is_registration']: +
    + % if len(node['registered_schemas']) == 1: + ${_("View Registration Form")} + % else: + ## This is a special case that is right now only possible on 12 Nodes in production + + % endif +
    + % endif +
    +
    +
    + +
    +
    + + +<%def name="title()">${node['title']} + +<%include file="project/modal_add_pointer.mako"/> + +% if (user['can_comment'] or node['has_comments']) and not node['anonymous']: + <%include file="include/comment_pane_template.mako"/> +% endif + +% if node['is_collected']: +
    + % for i, collection in enumerate(node['collections'][:5]): +
    +
    +
    + Included in ${collection['title']} + + % if permissions.ADMIN in user['permissions']: + + % endif +   +
    +
    +
      + + % if collection['type']: +
    • ${_("Type:")}  ${collection['type']}
    • + % endif + + % if collection['status']: +
    • ${_("Status:")}  ${collection['status']}
    • + % endif + + % if collection['volume']: +
    • ${_("Volume:")}  ${collection['volume']}
    • + % endif + + % if collection['issue']: +
    • ${_("Issue:")}  ${collection['issue']}
    • + % endif + + % if collection['program_area']: +
    • ${_("Program Area:")}  ${collection['program_area']}
    • + % endif + + % if collection['subjects']: +
    • +
      +
      ${_("Subjects:")}  
      +
      + % for subject in collection['subjects']: + + ${subject} + + % endfor +
      +
      +
    • + % endif +
    +
    +
    +
    + % endfor +
    +% endif + +% for i, preprint in enumerate(node['visible_preprints']): +
    +
    +
    + Has supplemental materials for ${preprint['title']} + on ${preprint['provider']['name']} + % if user['is_admin_parent_contributor_or_group_member'] or user['is_contributor_or_group_member']: +   + % endif +
    + % if user['is_admin_parent_contributor_or_group_member'] or user['is_contributor_or_group_member']: +
    +
      +
    • + ${_("Status:")}   + + % if preprint['is_withdrawn']: + ${_("Withdrawn")} + % else: + ${preprint['state'].capitalize()} + % endif + + % if preprint['is_moderated'] and not preprint['is_withdrawn']: + <% icon_tooltip = ''%> + % if preprint['state'] == 'pending': + % if preprint['provider']['workflow'] == 'post-moderation': + <% icon_tooltip = _('This {preprint_word} is publicly available and searchable but is subject to' \ + ' removal by a moderator.').format(preprint_word=preprint['word'])%> + % else: + <% icon_tooltip = _('This {preprint_word} is not publicly available or searchable until approved ' \ + 'by a moderator.').format(preprint_word=preprint['word'])%> + % endif + % elif preprint['state'] == 'accepted': + <% icon_tooltip = _('This {preprint_word} is publicly available and searchable.').format(preprint_word=preprint['word'])%> + % else: + <% icon_tooltip = _('This {preprint_word} is not publicly available or searchable.').format(preprint_word=preprint['word'])%> + % endif + + % endif +
    • +
    +
    + % endif +
    +
    +% endfor + + +
    + +
    + + + % if 'myscreen' in addons_enabled and addons['myscreen']['has_widget']: + ${ render_addon_widget.render_addon_widget('myscreen', addons_widget_data['myscreen']) } + % endif + + + %if user['show_wiki_widget']: + ${ render_addon_widget.render_addon_widget('wiki', addons_widget_data['wiki']) } + %endif + + +
    +
    +

    ${_("Files")}

    +
    + +
    +
    + % if not node['is_registration'] and not node['anonymous'] and permissions.WRITE in user['permissions']: +
    +
    + ${_("Click on a storage provider or drag and drop to upload")} +
    +
    +
    + %else: +
    + %endif +
    +
    +
    +
    +
    +

    ${_("Loading files...")}

    +
    +
    +
    + + +
    + + % if addons: + + % for addon in addons_enabled: + % if addons[addon]['has_widget']: + + %if addon != 'wiki' and addon != 'iqbrims' and addon != 'myscreen': ## We already show the wiki widget at the top + + ${ render_addon_widget.render_addon_widget(addon, addons_widget_data[addon]) } + %endif + % endif + % endfor + % else: + + ${children()} + % endif + +
    + +
    + % if addons: + + % for addon in addons_enabled: + % if addons[addon]['has_widget']: + %if addon == 'iqbrims': + ${ render_addon_widget.render_addon_widget(addon, addons_widget_data[addon]) } + %endif + % endif + % endfor + % endif + + + % if not node['anonymous']: + +
    +
    +

    ${_("Citation")}

    +
    + +
    +
    +
    + +
    +
    + % endif + + + % if addons: + ${children()} + % endif + + + %if node['tags'] or permissions.WRITE in user['permissions']: +
    +
    +

    ${_("Tags")}

    +
    +
    +
    +
    + +
    +
    + + %endif + + +
    +
    +

    ${_("Recent Activity")}

    +
    ${_("Clear Filters")}
    +
    ${_("Refresh")}
    +
    +
    + +
    +
    +
    + +
    +
    + +
    +
    + + +
    +
    +
    + +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    +

    ${_("Loading logs...")}

    +
    +
    +
    + % if 'admin' in user['permissions']: +
    +

    ${_("Download as file")}

    +
    ${_("Download")}
    +
    + % endif +
    + +
    + +
    + +<%def name="children()"> +% if (permissions.WRITE in user['permissions'] and not node['is_registration']) or node['children']: +
    +
    +

    ${_("Components")}

    +
    + % if permissions.WRITE in user['permissions'] and not node['is_registration']: + + + + ${_("Link Projects")} + % endif +
    +
    +
    + % if node['children']: +
    + ${render_nodes.render_nodes(nodes=node['descendants'], sortable=user['can_sort'], user=user, pluralized_node_type='components', show_path=False, include_js=True)} +
    + % else: +

    ${_("Add components to organize your project.")}

    + % endif +
    +
    +%endif + + + +<%def name="stylesheets()"> + ${parent.stylesheets()} + % for style in addon_widget_css: + + % endfor + % for stylesheet in tree_css: + + % endfor + + + + +<%def name="javascript_bottom()"> + +${parent.javascript_bottom()} + +% for script in tree_js: + +% endfor + + + + + +% for asset in addon_widget_js: + +% endfor + + diff --git a/ScreenExpansion/osf.io/website/templates/project/project_header.mako b/ScreenExpansion/osf.io/website/templates/project/project_header.mako new file mode 100644 index 0000000..a1d0207 --- /dev/null +++ b/ScreenExpansion/osf.io/website/templates/project/project_header.mako @@ -0,0 +1,219 @@ +<% + is_project = node['node_type'] == 'project' +%> + +
    +
    + +
    + + + + %if maintenance: + + %endif + + % if node['is_registration']: ## Begin registration undismissable labels + + % if not node['is_retracted']: + % if not node['is_pending_registration']: + % if file_name and urls.get('archived_from'): +
    ${ _("This file is part of a registration and is being shown in its archived version (and cannot be altered).")} + ${_("The active file is viewable from within the live %(nodeType)s.") % dict(archivedFromUrl='class="link-solid" href="' + urls['archived_from'] +'"',registeredFromUrl='class="link-solid" href="' + node['registered_from_url'] + '"',nodeType=node['node_type'] ) | n}
    + % else: +
    ${ _('This registration is a frozen, non-editable version of this %(nodeType)s') % dict(registeredFromUrl='class="link-solid" href="' + h(node['registered_from_url']) + '"',nodeType=node['node_type']) }
    + % endif + % else: +
    +
    ${ _('This is a pending registration of this %(nodeType)s, awaiting approval from project administrators. This registration will be final when all project administrators approve the registration or 48 hours pass, whichever comes first.') % dict(registeredFromUrl='class="link-solid" href="' + h(node['registered_from_url']) + '"', nodeType=h(node['node_type'])) | n }
    + + % if 'permissions.ADMIN' in user['permissions']: +
    +
    + +
    + <%include file="modal_confirm_cancel_registration.mako"/> + % endif +
    + % endif + + + + % endif + + % if node['is_pending_retraction']: +
    ${ _("This %(nodeType)s is currently pending withdrawal.") % dict(nodeType=node['node_type']) }
    + % endif + + % if node['is_retracted']: +
    ${ _('This %(nodeType)s is a withdrawn registration of this %(nodeType)s; the content of the %(nodeType)s has been taken down for the reason(s) stated below.') % dict(nodeType=node['node_type'],registeredFromUrl='class="link-solid" href="' + h(node['registered_from_url']) + '"') | n }
    + % endif + + % if node['is_pending_embargo']: +
    ${ _('This %(nodeType)s is currently pending registration, awaiting approval from project administrators. This registration will be final and enter the embargo period when all project administrators approve the registration or 48 hours pass, whichever comes first. The embargo will keep the registration private until the embargo period ends.') % dict(nodeType=node['node_type']) } + % if permissions.ADMIN in user['permissions']: +
    +
    + +
    + <%include file="modal_confirm_cancel_registration.mako"/> + % endif +
    + % endif + + % if node['is_embargoed']: +
    ${ _('This registration is currently embargoed. It will remain private until its embargo end date, %(embargoEndDate)s.') % dict(embargoEndDate=node['embargo_end_date']) }
    + % endif + + % endif ## End registration undismissable labels + + % if node['is_supplemental_project'] and user['is_contributor_or_group_member'] and not node['is_public']: +
    ${ _('This %(nodeType)s contains supplemental materials for a preprint, but has been made Private. Make your supplemental materials discoverable by making this %(nodeType)s Public.') % dict(nodeType=node['node_type']) }
    + % endif + + % if node['anonymous'] and user['is_contributor_or_group_member']: +
    ${ _('This %(nodeType)s is being viewed through an anonymized, view-only link. If you want to view it as a contributor, click here.') % dict(nodeType=node['node_type'],redirectUrl='class="link-solid" href="' + h(node['redirect_url']) + '"') }
    + % endif + + % if node['link'] and not node['is_public'] and not user['is_contributor_or_group_member']: +
    ${ _('This %(nodeType)s is being viewed through a private, view-only link. Anyone with the link can view this project. Keep the link safe.') % dict(nodeType=node['node_type']) }
    + % endif + + % if disk_saving_mode: +
    ${ _("NOTICE: Forks, registrations, and uploads will be temporarily disabled while the GakuNin RDM undergoes a hardware upgrade. These features will return shortly. Thank you for your patience.") | n }
    + % endif + +
    diff --git a/ScreenExpansion/osf.io/website/templates/util/render_addon_widget.mako b/ScreenExpansion/osf.io/website/templates/util/render_addon_widget.mako new file mode 100644 index 0000000..5a46c24 --- /dev/null +++ b/ScreenExpansion/osf.io/website/templates/util/render_addon_widget.mako @@ -0,0 +1,269 @@ +<%def name="render_addon_widget(addon_name, addon_data)"> + + % if addon_data['complete'] or permissions.WRITE in user['permissions']: +
    +
    +

    ${addon_data['full_name']}

    +
    + % if addon_data['has_page']: + + % endif + % if 'can_expand' in addon_data and addon_data['can_expand']: + + % endif +
    +
    + % if addon_data['complete']: +
    + + % if addon_name == 'wiki': +
    + % if addon_data['wiki_content']: + ${addon_data['wiki_content']} + % else: +

    ${_("Add important information, links, or images here to describe your project.")}

    + % endif +
    + + + + + + + % endif + + % if addon_name == 'dataverse': + % if addon_data['complete']: +
    + + + +
    + +
    ${_("Dataset")}
    +
    + +
    ${_("Global ID")}
    +
    + +
    ${_("Dataverse")}
    +
    ${_("Dataverse")}
    + +
    ${_("Citation")}
    +
    + +
    +
    + +
    + +
    +

    +
    + +
    + % endif + + % endif + + % if addon_name == 'forward': +
    + + + +
    + +
    + ${_('This project contains a forward to\ + .') % dict(textLinkDisplay='data-bind="attr: {href: url}, text: linkDisplay"') | n} +
    + + + +
    + +
    + % endif + + % if addon_name == 'zotero' or addon_name == 'mendeley': + +
    + +
    +
    +
    +
    +
    +
    +

    ${_("Loading citations...")}

    +
    +
    + % endif + + % if addon_name == 'jupyterhub': + + % endif + + % if addon_name == 'iqbrims': +
    + +
    ${_("Loading")}
    + + +
    ${_("Error occurred")}
    + + + + ${_("Management Project")} + + + + + +
    + + + +
    + + +
    + + + +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    + + + +
    +
    + + + +
    + + + +
    + % endif + + + % if addon_name == 'myscreen': +
    + +
    ${_("Loading")}
    + + +
    ${_("Error occurred")}
    + + +
    ${_("My Screen Test")}
    +
    + +

    +
    + +
    + % endif + + +
    + % else: +
    + ${addon_data['full_name']} add-on is not configured properly. + % if user['is_contributor_or_group_member']: + ${_('Configure this add-on on the add-ons page.') % dict(nodeUrl='"' + h(node['url']) + 'addons/"') | n} + % endif +
    + + % endif +
    + % endif + + +<%inherit file="../project/addon/widget.mako"/> diff --git a/ScreenExpansion/osf.io/website/translations/en/LC_MESSAGES/js_messages.po b/ScreenExpansion/osf.io/website/translations/en/LC_MESSAGES/js_messages.po new file mode 100644 index 0000000..24e8423 --- /dev/null +++ b/ScreenExpansion/osf.io/website/translations/en/LC_MESSAGES/js_messages.po @@ -0,0 +1,6669 @@ +# English translations for . +# Copyright (C) 2020 ORGANIZATION +# This file is distributed under the same license as the project. +# FIRST AUTHOR , 2020. +# +msgid "" +msgstr "" +"Project-Id-Version: 0.6.0\n" +"Report-Msgid-Bugs-To: rocs-office@nii.ac.jp\n" +"POT-Creation-Date: 2020-09-03 12:45+0900\n" +"PO-Revision-Date: 2020-09-03 12:45+0900\n" +"Last-Translator: Takuya Ishibashi\n" +"Language: en\n" +"Language-Team: RCOS \n" +"Plural-Forms: nplurals=1; plural=0\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.7.0\n" + +#: addons/twofactor/static/twoFactorUserConfig.js:148 +#: addons/twofactor/static/twoFactorUserConfig.js:190 +#: admin/static/js/rdm_addons/rdm-addons-page.js:71 +#: website/static/js/accountSettings.js:286 +#: website/static/js/accountSettings.js:351 +#: website/static/js/accountSettings.js:477 +#: website/static/js/accountSettings.js:549 +#: website/static/js/addProjectPlugin.js:347 +#: website/static/js/addonPermissions.js:55 +#: website/static/js/addonSettings.js:71 website/static/js/addonSettings.js:134 +#: website/static/js/apiApplication.js:249 +#: website/static/js/apiApplication.js:420 +#: website/static/js/apiApplication.js:487 +#: website/static/js/apiPersonalToken.js:228 +#: website/static/js/apiPersonalToken.js:399 +#: website/static/js/apiPersonalToken.js:426 +#: website/static/js/citationsNodeConfig.js:169 +#: website/static/js/citationsNodeConfig.js:187 +#: website/static/js/contribManager.js:433 website/static/js/fangorn.js:537 +#: website/static/js/fangorn.js:542 website/static/js/fangorn.js:1212 +#: website/static/js/fangorn.js:1235 website/static/js/fangorn.js:1288 +#: website/static/js/fangorn.js:1307 website/static/js/fangorn.js:2006 +#: website/static/js/filepage/index.js:213 +#: website/static/js/folderPickerNodeConfig.js:510 +#: website/static/js/folderPickerNodeConfig.js:566 +#: website/static/js/institutionProjectSettings.js:102 +#: website/static/js/licensePicker.js:243 website/static/js/myProjects.js:1560 +#: website/static/js/myProjects.js:1608 website/static/js/myProjects.js:1632 +#: website/static/js/nodeControl.js:227 +#: website/static/js/oauthAddonNodeConfig.js:156 +#: website/static/js/oauthAddonNodeConfig.js:174 +#: website/static/js/osfHelpers.js:796 website/static/js/osfHelpers.js:897 +#: website/static/js/pages/profile-settings-addons-page.js:35 +#: website/static/js/pages/profile-settings-addons-page.js:101 +#: website/static/js/pages/project-addons-page.js:41 +#: website/static/js/pages/project-addons-page.js:66 +#: website/static/js/privateLinkTable.js:119 website/static/js/profile.js:373 +#: website/static/js/profile.js:743 website/static/js/profile.js:975 +#: website/static/js/project.js:39 website/static/js/project.js:143 +#: website/static/js/project.js:253 +#: website/static/js/wikiSettingsTreebeard.js:31 +msgid "Cancel" +msgstr "" + +#: addons/twofactor/static/twoFactorUserConfig.js:178 +msgid "Enable Two-factor Authentication" +msgstr "" + +#: addons/twofactor/static/twoFactorUserConfig.js:179 +msgid "" +"Enabling two-factor authentication will not immediately activate this " +"feature for your account. You will need to follow the steps that appear " +"below to complete the activation of two-factor authentication for your " +"account." +msgstr "" + +#: addons/twofactor/static/twoFactorUserConfig.js:187 +msgid "Enable" +msgstr "" + +#: addons/wiki/static/WikiEditor.js:86 +msgid "Live editing mode" +msgstr "" + +#: addons/wiki/static/WikiEditor.js:88 +msgid "Attempting to connect" +msgstr "" + +#: addons/wiki/static/WikiEditor.js:90 +msgid "Unsupported browser" +msgstr "" + +#: addons/wiki/static/WikiEditor.js:92 +msgid "Unavailable: Live editing" +msgstr "" + +#: addons/wiki/static/WikiEditor.js:153 +msgid "The wiki content could not be loaded." +msgstr "" + +#: addons/wiki/static/WikiEditor.js:155 +msgid "Could not GET wiki contents." +msgstr "" + +#: addons/wiki/static/WikiEditor.js:176 +msgid "There are unsaved changes to your wiki. If you exit " +msgstr "" + +#: addons/wiki/static/WikiEditor.js:177 +msgid "the page now, those changes may be lost." +msgstr "" + +#: addons/wiki/static/wikiPage.js:94 +#: website/static/js/pages/project-dashboard-page.js:733 +msgid "" +"*Add important information, links, or images here to describe your " +"project.*" +msgstr "" + +#: addons/wiki/static/wikiPage.js:96 +#: website/static/js/pages/project-dashboard-page.js:735 +msgid "*No wiki content.*" +msgstr "" + +#: addons/wiki/static/wikiPage.js:220 +msgid "Live preview" +msgstr "" + +#: addons/wiki/static/wikiPage.js:222 +msgid "Current version" +msgstr "" + +#: addons/wiki/static/wikiPage.js:224 +msgid "Previous version" +msgstr "" + +#: addons/wiki/static/wikiPage.js:226 +msgid "Version " +msgstr "" + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:48 +msgid "Strong " +msgstr "" + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:51 +msgid "Emphasis " +msgstr "" + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:54 +msgid "Spellcheck: Toggle spellcheck on and off" +msgstr "" + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:56 +msgid "Hyperlink " +msgstr "" + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:60 +msgid "Blockquote
    " +msgstr "" + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:63 +msgid "Code Sample
    "
    +msgstr ""
    +
    +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:66
    +msgid "Image "
    +msgstr ""
    +
    +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:70
    +msgid "Numbered List 
      " +msgstr "" + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:71 +msgid "Bulleted List

    " +msgstr "" + +#: website/static/js/institutionProjectSettings.js:85 +msgid "Remove %1$s from %2$s." +msgstr "" + +#: website/static/js/institutionProjectSettings.js:157 +msgid "Updating affiliation... this may take a minute." +msgstr "" + +#: website/static/js/institutionProjectSettings.js:202 +msgid "" +"Unable to modify the institution on this node. Please try again. If the " +"problem persists, email %1$s" +msgstr "" + +#: website/static/js/institutionProjectSettings.js:203 +msgid "Unable to modify this institution!" +msgstr "" + +#: website/static/js/js_messages.js:3 +msgid "Bookmarks" +msgstr "" + +#: website/static/js/js_messages.js:5 +msgid "Edit" +msgstr "" + +#: website/static/js/js_messages.js:7 +msgid "Analysis" +msgstr "" + +#: website/static/js/js_messages.js:7 +msgid "Communication" +msgstr "" + +#: website/static/js/js_messages.js:7 +msgid "Data" +msgstr "" + +#: website/static/js/js_messages.js:7 +msgid "Hypothesis" +msgstr "" + +#: website/static/js/js_messages.js:7 +msgid "Instrumentation" +msgstr "" + +#: website/static/js/js_messages.js:7 +msgid "Methods and Measures" +msgstr "" + +#: website/static/js/js_messages.js:7 +msgid "Procedure" +msgstr "" + +#: website/static/js/js_messages.js:7 +#: website/static/js/projectSettingsTreebeardBase.js:90 +msgid "Project" +msgstr "" + +#: website/static/js/js_messages.js:7 +msgid "Software" +msgstr "" + +#: website/static/js/js_messages.js:7 +msgid "Other" +msgstr "" + +#: website/static/js/js_messages.js:9 +msgid "analysis" +msgstr "" + +#: website/static/js/js_messages.js:9 +msgid "communication" +msgstr "" + +#: website/static/js/js_messages.js:9 +msgid "data" +msgstr "" + +#: website/static/js/js_messages.js:9 +msgid "hypothesis" +msgstr "" + +#: website/static/js/js_messages.js:9 +msgid "instrumentation" +msgstr "" + +#: website/static/js/js_messages.js:9 +msgid "methods and measures" +msgstr "" + +#: website/static/js/js_messages.js:9 +msgid "procedure" +msgstr "" + +#: website/static/js/js_messages.js:9 website/static/js/nodeControl.js:114 +#: website/static/js/nodeSelectTreebeard.js:87 +#: website/static/js/nodesDeleteTreebeard.js:62 +#: website/static/js/nodesPrivacySettingsTreebeard.js:62 +msgid "project" +msgstr "" + +#: website/static/js/js_messages.js:9 +msgid "software" +msgstr "" + +#: website/static/js/js_messages.js:9 +msgid "other" +msgstr "" + +#: website/static/js/js_messages.js:11 website/static/js/js_messages.js:13 +msgid "Comments added" +msgstr "" + +#: website/static/js/js_messages.js:11 website/static/js/js_messages.js:13 +msgid "Files updated" +msgstr "" + +#: website/static/js/js_messages.js:13 +msgid "Replies to your comments" +msgstr "" + +#: website/static/js/js_messages.js:13 +msgid "Mentions added" +msgstr "" + +#: website/static/js/js_messages.js:13 +msgid "Preprint submissions updated" +msgstr "" + +#: website/static/js/js_messages.js:15 +msgid "No license" +msgstr "" + +#: website/static/js/js_messages.js:17 website/static/js/passwordForms.js:178 +#: website/static/js/passwordForms.js:241 +msgid "This field is required." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please enter a value greater than or equal to {0}." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please enter a value less than or equal to {0}." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please enter at least {0} characters." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please enter no more than {0} characters." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please check this value." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "The value must increment by {0}." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please enter a proper email address." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please enter a proper date." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please enter a number." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please enter a digit." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please specify a valid phone number." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Values must equal." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please choose another value." +msgstr "" + +#: website/static/js/js_messages.js:17 +msgid "Please make sure the value is unique." +msgstr "" + +#: website/static/js/js_messages.js:19 +msgid "Project Wiki Pages" +msgstr "" + +#: website/static/js/js_messages.js:19 +msgid "Component Wiki Pages" +msgstr "" + +#: website/static/js/js_messages.js:19 +msgid "Home" +msgstr "" + +#: website/static/js/js_messages.js:21 +msgid "Projects" +msgstr "" + +#: website/static/js/js_messages.js:21 +msgid "Components" +msgstr "" + +#: website/static/js/js_messages.js:21 +msgid "Registrations" +msgstr "" + +#: website/static/js/js_messages.js:21 +msgid "Users" +msgstr "" + +#: website/static/js/js_messages.js:21 +msgid "All Results" +msgstr "" + +#: website/static/js/js_messages.js:21 +msgid "Files" +msgstr "" + +#: website/static/js/js_messages.js:21 +msgid "Institutions" +msgstr "" + +#: website/static/js/js_messages.js:21 +msgid "Preprints" +msgstr "" + +#: website/static/js/js_messages.js:21 +msgid "Groups" +msgstr "" + +#: website/static/js/js_messages.js:21 +msgid "Wiki" +msgstr "" + +#: website/static/js/js_messages.js:21 +msgid "Comments" +msgstr "" + +#: website/static/js/js_messages.js:23 +msgid "Default Notification Settings" +msgstr "" + +#: website/static/js/js_messages.js:23 +msgid "" +"These are default settings for new projects you create or are added to. " +"Modifying these settings will not modify settings on existing projects." +msgstr "" + +#: website/static/js/js_messages.js:23 +msgid "Project Notifications" +msgstr "" + +#: website/static/js/js_messages.js:23 +msgid "" +"These are settings for each of your projects. Modifying these settings " +"will only modify the settings for the selected project." +msgstr "" + +#: website/static/js/js_messages.js:25 +msgid "moved" +msgstr "" + +#: website/static/js/js_messages.js:25 +msgid "renamed" +msgstr "" + +#: website/static/js/js_messages.js:27 +msgid "Skipped" +msgstr "" + +#: website/static/js/js_messages.js:27 +msgid "Moved or replaced old version" +msgstr "" + +#: website/static/js/js_messages.js:27 +msgid "Kept both versions" +msgstr "" + +#: website/static/js/js_messages.js:29 +msgid "admin" +msgstr "" + +#: website/static/js/js_messages.js:29 +msgid "write" +msgstr "" + +#: website/static/js/js_messages.js:29 +msgid "read" +msgstr "" + +#: website/static/js/js_messages.js:31 +msgid "home" +msgstr "" + +#: website/static/js/js_messages.js:33 +msgid "No tokens." +msgstr "" + +#: website/static/js/js_messages.js:33 +msgid "Invalid tokens." +msgstr "" + +#: website/static/js/js_messages.js:35 +msgid "Invalid folder." +msgstr "" + +#: website/static/js/js_messages.js:35 +msgid "Credentials are valid" +msgstr "" + +#: website/static/js/keen.js:114 +msgid "Error sending Keen data to %1$s:<%2$s>" +msgstr "" + +#: website/static/js/keen.js:132 +msgid "Error sending Keen data for multiple events: <%1$s>" +msgstr "" + +#: website/static/js/keen.js:141 +msgid "Error sending Keen data to %1$s." +msgstr "" + +#: website/static/js/keen.js:153 +msgid "Cannot instantiate another KeenTracker instance." +msgstr "" + +#: website/static/js/koHelpers.js:129 +msgid "End date must be greater than or equal to the start date." +msgstr "" + +#: website/static/js/koHelpers.js:147 +msgid "Date must be greater than or equal to 1900." +msgstr "" + +#: website/static/js/koHelpers.js:169 +msgid "Please enter a date prior to the current date." +msgstr "" + +#: website/static/js/koHelpers.js:175 +msgid "Please enter a valid year." +msgstr "" + +#: website/static/js/koHelpers.js:190 +msgid "Please enter a valid URL." +msgstr "" + +#: website/static/js/koHelpers.js:197 +msgid "The field does not match the required input." +msgstr "" + +#: website/static/js/licensePicker.js:20 website/static/js/profile.js:128 +#: website/static/js/profile.js:132 +msgid "Year" +msgstr "" + +#: website/static/js/licensePicker.js:21 +msgid "Copyright Holders" +msgstr "" + +#: website/static/js/licensePicker.js:26 +msgid "License:" +msgstr "" + +#: website/static/js/licensePicker.js:27 +msgid "Choose a license:" +msgstr "" + +#: website/static/js/licensePicker.js:28 +msgid ">Save<" +msgstr "" + +#: website/static/js/licensePicker.js:68 +msgid "Add a license" +msgstr "" + +#: website/static/js/licensePicker.js:104 +msgid "Please specify a valid year." +msgstr "" + +#: website/static/js/licensePicker.js:108 +msgid "Future years are not allowed." +msgstr "" + +#: website/static/js/licensePicker.js:190 +msgid "License updated successfully." +msgstr "" + +#: website/static/js/licensePicker.js:195 +msgid "There was a problem updating your license. Please try again." +msgstr "" + +#: website/static/js/licensePicker.js:239 +msgid "Your Own License" +msgstr "" + +#: website/static/js/licensePicker.js:240 +msgid "" +"You have opted to use your own license. Please upload a license file " +"named \"license.txt\" into the GakuNin RDM Storage of this project." +msgstr "" + +#: website/static/js/licensePicker.js:247 +msgid "Add license" +msgstr "" + +#: website/static/js/licenses.js:27 +msgid "Content:" +msgstr "" + +#: website/static/js/licenses.js:31 +msgid "Code - Permissive:" +msgstr "" + +#: website/static/js/licenses.js:35 +msgid "Code - Copyleft:" +msgstr "" + +#: website/static/js/licenses.js:39 +msgid "Code - Other:" +msgstr "" + +#: website/static/js/logActionsList_extract.js:3 +#: website/static/js/logActionsList_extract.js:70 +msgid "${user} created ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:4 +msgid "${user} registered ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:5 +msgid "${node} registered" +msgstr "" + +#: website/static/js/logActionsList_extract.js:6 +msgid "" +"${user} submitted for review to the Preregistration Challenge a " +"registration of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:7 +msgid "${user} deleted ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:8 +msgid "${user} created ${node} based on ${template}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:9 +msgid "${user} created a link to ${pointer_category} ${pointer}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:10 +msgid "${user} forked a link to ${pointer_category} ${pointer}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:11 +msgid "${user} removed a link to ${pointer_category} ${pointer}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:12 +msgid "${user} added ${group} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:13 +msgid "${user} removed ${group} from ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:14 +msgid "${user} changed ${group} permissions to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:15 +msgid "${user} made ${node} public" +msgstr "" + +#: website/static/js/logActionsList_extract.js:16 +msgid "${node} made public" +msgstr "" + +#: website/static/js/logActionsList_extract.js:17 +msgid "${user} made ${node} private" +msgstr "" + +#: website/static/js/logActionsList_extract.js:18 +msgid "${user} added tag ${tag} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:19 +msgid "${user} removed tag ${tag} from ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:20 +msgid "${user} changed the title from ${title_original} to ${title_new}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:21 +msgid "${user} edited description of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:22 +msgid "${user} changed the ${updated_fields} for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:23 +msgid "${user} created external identifier(s) ${identifiers} on ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:24 +msgid "${user} created a custom citation for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:25 +msgid "${user} edited a custom citation for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:26 +msgid "${user} removed a custom citation for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:27 +msgid "${user} added ${contributors} as contributor(s) to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:28 +msgid "${user} removed ${contributors} as contributor(s) from ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:29 +msgid "${user} reordered contributors for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:30 +msgid "${user} changed permissions for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:31 +msgid "" +"${user} made non-bibliographic contributor ${contributors} a " +"bibliographic contributor on ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:32 +msgid "" +"${user} made bibliographic contributor ${contributors} a non-" +"bibliographic contributor on ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:33 +msgid "${user} updated wiki page ${page} to version ${version} of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:34 +msgid "${user} deleted wiki page ${page} of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:35 +msgid "${user} renamed wiki page ${old_page} to ${page} of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:36 +msgid "${user} made the wiki of ${node} publicly editable" +msgstr "" + +#: website/static/js/logActionsList_extract.js:37 +msgid "${user} made the wiki of ${node} privately editable" +msgstr "" + +#: website/static/js/logActionsList_extract.js:38 +msgid "${user} added addon ${addon} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:39 +msgid "${user} removed addon ${addon} from ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:40 +msgid "${user} moved ${source} to ${destination} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:41 +msgid "${user} copied ${source} to ${destination} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:42 +msgid "${user} renamed ${source} to ${destination} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:43 +msgid "${user} created a folder in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:44 +msgid "${user} added file ${path} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:45 +msgid "${user} updated file in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:46 +msgid "${user} removed ${path_type} ${path} from ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:47 +msgid "${user} restored file ${path} from ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:48 +msgid "${user} updated the file metadata for ${path}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:49 +msgid "${user} checked out ${kind} ${path} from ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:50 +msgid "${user} checked in ${kind} ${path} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:51 +msgid "${user} added a comment ${comment_location} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:52 +msgid "${user} deleted a comment ${comment_location} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:53 +msgid "${user} restored a comment ${comment_location} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:54 +msgid "${user} updated a comment ${comment_location} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:55 +msgid "${user} initiated an embargoed registration of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:56 +msgid "${user} approved embargoed registration of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:57 +msgid "Embargo of registration of ${node} approved" +msgstr "" + +#: website/static/js/logActionsList_extract.js:58 +msgid "${user} cancelled embargoed registration of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:59 +msgid "${user} completed embargo of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:60 +msgid "Embargo for ${node} completed" +msgstr "" + +#: website/static/js/logActionsList_extract.js:61 +msgid "Embargo for ${node} ended" +msgstr "" + +#: website/static/js/logActionsList_extract.js:62 +msgid "${user} initiated withdrawal of registration of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:63 +msgid "A withdrawal of registration of ${node} is proposed" +msgstr "" + +#: website/static/js/logActionsList_extract.js:64 +msgid "${user} approved withdrawal of registration of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:65 +msgid "${user} cancelled withdrawal of registration of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:66 +msgid "${user} initiated registration of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:67 +msgid "${user} approved registration of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:68 +msgid "Registration of ${node} approved" +msgstr "" + +#: website/static/js/logActionsList_extract.js:69 +msgid "${user} cancelled registration of ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:71 +msgid "${user} created fork from ${forked_from}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:72 +msgid "${user} removed ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:73 +msgid "${user} enabled access requests for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:74 +msgid "${user} disabled access requests for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:75 +msgid "${user} updated the license of ${node} ${license}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:76 +msgid "${user} added tag ${tag} to ${path} in ${storage_name} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:77 +msgid "${user} removed tag ${tag} from ${path} in ${storage_name} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:78 +msgid "${user} added file ${path} to ${storage_name} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:79 +msgid "${user} created folder ${path} in ${storage_name} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:80 +msgid "${user} updated file ${path} in ${storage_name} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:81 +msgid "${user} removed ${path_type} ${path} from ${storage_name} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:82 +msgid "${user} added ${institution} affiliation to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:83 +msgid "${user} removed ${institution} affiliation from ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:84 +msgid "${user} made ${node} a ${preprint} on ${preprint_provider} Preprints" +msgstr "" + +#: website/static/js/logActionsList_extract.js:85 +msgid "" +"${user} updated the primary file of this ${preprint} on " +"${preprint_provider} Preprints" +msgstr "" + +#: website/static/js/logActionsList_extract.js:86 +msgid "" +"${user} updated the license of this ${preprint} on ${preprint_provider} " +"Preprints ${license}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:87 +msgid "${user} updated the subjects on ${node} to ${subjects}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:88 +msgid "${user} created ${anonymous_link} view-only link to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:89 +msgid "${user} removed ${anonymous_link} view-only link to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:90 +msgid "${user} verified timestamp" +msgstr "" + +#: website/static/js/logActionsList_extract.js:91 +msgid "${user} requested trusted timestamp" +msgstr "" + +#: website/static/js/logActionsList_extract.js:92 +msgid "${user} requested trusted timestamp file ${path}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:93 +msgid "" +"${user} downloaded a file of timestamp errors as a " +"${timestamp_errors_file_format}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:94 +msgid "" +"[MAPCORE_SYNC:ERROR] ${user} cannot create a new mAP group for GRDM " +"project <${node}> (See logs for details)" +msgstr "" + +#: website/static/js/logActionsList_extract.js:95 +msgid "" +"[MAPCORE_SYNC:ERROR] mAP group for GRDM project <${node}> cannot be " +"updated (See logs for details)" +msgstr "" + +#: website/static/js/logActionsList_extract.js:96 +msgid "" +"[MAPCORE_SYNC:ERROR] GRDM project <${node}> cannot be updated with mAP " +"group (See logs for details)" +msgstr "" + +#: website/static/js/logActionsList_extract.js:97 +msgid "" +"[MAPCORE_SYNC:NOTICE] Unknown (unregistered in GRDM) users belong to mAP " +"group <${node}> (ignored) (See logs for details)" +msgstr "" + +#: website/static/js/logActionsList_extract.js:98 +msgid "${user} linked the Azure Blob Storage container ${bucket} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:99 +msgid "${user} unselected the Azure Blob Storage container ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:100 +msgid "" +"${user} added file ${path} to Azure Blob Storage container ${bucket} in " +"${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:101 +msgid "" +"${user} removed ${path} in Azure Blob Storage container ${bucket} in " +"${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:102 +msgid "" +"${user} updated file ${path} in Azure Blob Storage container ${bucket} in" +" ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:103 +msgid "" +"${user} created folder ${path} in Azure Blob Storage container ${bucket} " +"in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:104 +msgid "${user} authorized the Azure Blob Storage addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:105 +msgid "${user} deauthorized the Azure Blob Storage addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:106 +msgid "Azure Blob Storage addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:107 +msgid "${user} added file ${path} to Bitbucket repo ${bitbucket_repo} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:108 +msgid "" +"${user} removed ${path_type} ${path} in Bitbucket repo ${bitbucket_repo} " +"in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:109 +msgid "" +"${user} updated file ${path} in Bitbucket repo ${bitbucket_repo} in " +"${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:110 +msgid "" +"${user} created folder ${path} in Bitbucket repo ${bitbucket_repo} in " +"${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:111 +msgid "${user} authorized the Bitbucket addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:112 +msgid "${user} deauthorized the Bitbucket addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:113 +msgid "Bitbucket addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:114 +msgid "${user} linked Bitbucket repo ${bitbucket_repo} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:115 +msgid "${user} added file ${path} to Box in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:116 +msgid "${user} removed ${path_type} ${path} from Box in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:117 +msgid "${user} updated file ${path} in Box in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:118 +msgid "${user} created folder ${path} in Box in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:119 +msgid "${user} linked Box folder ${box_folder} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:120 +msgid "${user} authorized the Box addon in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:121 +msgid "${user} deauthorized the Box addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:122 +msgid "Box addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:123 +msgid "${user} added a citation ${citation} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:124 +msgid "${user} updated a citation ${citation} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:125 +msgid "${user} removed a citation ${citation} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:126 +msgid "${user} added file ${filename} to Dataverse dataset ${dataset} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:127 +msgid "" +"${user} removed file ${filename} from Dataverse dataset ${dataset} in " +"${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:128 +msgid "${user} linked Dataverse dataset ${dataset} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:129 +msgid "${user} linked Dataverse dataset ${study} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:130 +msgid "${user} published a new version of Dataverse dataset ${dataset} on ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:131 +msgid "${user} published a new version of Dataverse dataset ${study} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:132 +msgid "${user} authorized the Dataverse addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:133 +msgid "${user} deauthorized the Dataverse addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:134 +msgid "Dataverse addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:135 +msgid "${user} added file ${path} to Dropbox in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:136 +msgid "${user} removed ${path_type} ${path} from Dropbox in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:137 +msgid "${user} updated file ${path} in Dropbox in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:138 +msgid "${user} created folder ${path} in Dropbox in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:139 +msgid "${user} linked Dropbox folder ${dropbox_folder} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:140 +msgid "${user} authorized the Dropbox addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:141 +msgid "${user} deauthorized the Dropbox addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:142 +msgid "Dropbox addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:143 +msgid "${user} added file ${path} to Dropbox Business in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:144 +msgid "${user} removed ${path_type} ${path} from Dropbox Business in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:145 +msgid "${user} updated file ${path} in Dropbox Business in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:146 +msgid "${user} created folder ${path} in Dropbox Business in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:147 +msgid "" +"${user} linked Dropbox Business folder ${dropboxbusiness_folder} to " +"${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:148 +msgid "${user} authorized the Dropbox Business addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:149 +msgid "${user} deauthorized the Dropbox Business addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:150 +msgid "Dropbox Business addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:151 +msgid "${user} linked figshare ${folder} ${folder_name} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:152 +msgid "${user} unlinked content from figshare in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:153 +msgid "${user} added file ${path} to figshare in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:154 +msgid "${user} removed ${path_type} ${path} from figshare in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:155 +msgid "${user} created folder ${path} in figshare in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:156 +msgid "${user} authorized the figshare addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:157 +msgid "${user} deauthorized the figshare addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:158 +msgid "figshare addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:159 +msgid "${user} changed external link to ${forward_url} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:160 +msgid "${user} added file ${path} to GitHub repo ${repo} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:161 +msgid "${user} removed ${path_type} ${path} in GitHub repo ${repo} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:162 +msgid "${user} updated file ${path} in GitHub repo ${repo} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:163 +msgid "${user} created folder ${path} in GitHub repo ${repo} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:164 +msgid "${user} authorized the GitHub addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:165 +msgid "${user} deauthorized the GitHub addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:166 +msgid "GitHub addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:167 +msgid "${user} linked GitHub repo ${repo} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:168 +msgid "${user} added file ${path} to GitLab repo ${gitlab_repo} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:169 +msgid "${user} removed file ${path} in GitLab repo ${gitlab_repo} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:170 +msgid "${user} updated file ${path} in GitLab repo ${gitlab_repo} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:171 +msgid "${user} created folder ${path} in GitLab repo ${gitlab_repo} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:172 +msgid "${user} authorized the GitLab addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:173 +msgid "${user} deauthorized the GitLab addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:174 +msgid "GitLab addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:175 +msgid "${user} linked GitLab repo ${gitlab_repo} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:176 +msgid "${user} added file ${googledrive_path} to Google Drive in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:177 +msgid "" +"${user} removed ${path_type} ${googledrive_path} from Google Drive in " +"${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:178 +msgid "${user} updated file ${googledrive_path} in Google Drive in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:179 +msgid "${user} created folder ${googledrive_path} in Google Drive in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:180 +msgid "${user} linked Google Drive folder ${googledrive_folder} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:181 +msgid "${user} authorized the Google Drive addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:182 +msgid "${user} deauthorized the Google Drive addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:183 +msgid "Google Drive addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:184 +msgid "${user} added file ${iqbrims_path} to IQB-RIMS in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:185 +msgid "${user} removed ${path_type} ${iqbrims_path} from IQB-RIMS in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:186 +msgid "${user} updated file ${iqbrims_path} in IQB-RIMS in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:187 +msgid "${user} created folder ${iqbrims_path} in IQB-RIMS in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:188 +msgid "${user} linked IQB-RIMS folder ${iqbrims_folder} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:189 +msgid "${user} authorized the IQB-RIMS addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:190 +msgid "${user} deauthorized the IQB-RIMS addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:191 +msgid "IQB-RIMS addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:192 +#: website/static/js/logActionsList_extract.js:194 +msgid "${user} started IQB-RIMS workflow for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:193 +#: website/static/js/logActionsList_extract.js:195 +msgid "Finished workflow of ${user} for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:196 +msgid "${user} linked Mendeley folder ${folder_name} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:197 +msgid "${user} authorized the Mendeley addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:198 +msgid "${user} deauthorized the Mendeley addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:199 +msgid "${user} added file ${path} to Nextcloud in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:200 +msgid "${user} removed ${path_type} ${path} from Nextcloud in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:201 +msgid "${user} updated file ${path} in Nextcloud in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:202 +msgid "${user} created folder ${path} in Nextcloud in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:203 +msgid "${user} linked Nextcloud folder ${folder} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:204 +msgid "${user} authorized the Nextcloud addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:205 +msgid "${user} deauthorized the Nextcloud addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:206 +msgid "Nextcloud addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:207 +msgid "${user} added file ${path} to Microsoft OneDrive in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:208 +msgid "${user} removed ${path_type} ${path} from Microsoft OneDrive in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:209 +msgid "${user} updated file ${path} in Microsoft OneDrive in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:210 +msgid "${user} created folder ${path} in Microsoft OneDrive in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:211 +msgid "${user} linked Microsoft OneDrive folder ${onedrive_folder} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:212 +msgid "${user} authorized the Microsoft OneDrive addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:213 +msgid "${user} deauthorized the Microsoft OneDrive addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:214 +msgid "Microsoft OneDrive addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:215 +msgid "${user} added file ${path} to ownCloud in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:216 +msgid "${user} removed ${path_type} ${path} from ownCloud in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:217 +msgid "${user} updated file ${path} in ownCloud in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:218 +msgid "${user} created folder ${path} in ownCloud in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:219 +msgid "${user} linked ownCloud folder ${folder} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:220 +msgid "${user} authorized the ownCloud addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:221 +msgid "${user} deauthorized the ownCloud addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:222 +msgid "ownCloud addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:223 +msgid "${user} linked the Amazon S3 bucket ${bucket} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:224 +msgid "${user} unselected the Amazon S3 bucket ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:225 +msgid "${user} added file ${path} to Amazon S3 bucket ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:226 +msgid "${user} removed ${path} in Amazon S3 bucket ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:227 +msgid "${user} updated file ${path} in Amazon S3 bucket ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:228 +msgid "${user} created folder ${path} in Amazon S3 bucket ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:229 +msgid "${user} authorized the Amazon S3 addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:230 +msgid "${user} deauthorized the Amazon S3 addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:231 +msgid "Amazon S3 addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:232 +msgid "${user} linked the S3 Compatible Storage bucket ${bucket} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:233 +msgid "${user} unselected the S3 Compatible Storage bucket ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:234 +msgid "" +"${user} added file ${path} to S3 Compatible Storage bucket ${bucket} in " +"${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:235 +msgid "" +"${user} removed ${path} in S3 Compatible Storage bucket ${bucket} in " +"${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:236 +msgid "" +"${user} updated file ${path} in S3 Compatible Storage bucket ${bucket} in" +" ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:237 +msgid "" +"${user} created folder ${path} in S3 Compatible Storage bucket ${bucket} " +"in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:238 +msgid "${user} authorized the S3 Compatible Storage addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:239 +msgid "${user} deauthorized the S3 Compatible Storage addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:240 +msgid "S3 Compatible Storage addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:241 +msgid "${user} linked the Swift container ${bucket} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:242 +msgid "${user} unselected the Swift container ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:243 +msgid "${user} added file ${path} to Swift container ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:244 +msgid "${user} removed ${path} in Swift container ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:245 +msgid "${user} updated file ${path} in Swift container ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:246 +msgid "${user} created folder ${path} in Swift container ${bucket} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:247 +msgid "${user} authorized the Swift addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:248 +msgid "${user} deauthorized the Swift addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:249 +msgid "Swift addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:250 +msgid "${user} added file ${filename} to WEKO index ${dataset} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:251 +msgid "${user} removed file ${filename} from WEKO index ${dataset} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:252 +msgid "${user} linked WEKO index ${dataset} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:253 +msgid "${user} created an index ${filename} on ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:254 +msgid "${user} created an item ${filename} on ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:255 +msgid "${user} created folder ${filename} in WEKO index ${dataset} in ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:256 +msgid "${user} authorized the WEKO addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:257 +msgid "${user} deauthorized the WEKO addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:258 +msgid "WEKO addon for ${node} deauthorized" +msgstr "" + +#: website/static/js/logActionsList_extract.js:259 +msgid "${user} linked Zotero folder ${folder_name} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:260 +msgid "${user} linked Zotero library ${library_name} to ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:261 +msgid "${user} authorized the Zotero addon for ${node}" +msgstr "" + +#: website/static/js/logActionsList_extract.js:262 +msgid "${user} deauthorized the Zotero addon for ${node}" +msgstr "" + +#: website/static/js/logTextParser.js:824 +msgid "unknown format" +msgstr "" + +#: website/static/js/meetings.js:24 +msgid "Submissions" +msgstr "" + +#: website/static/js/meetings.js:30 +msgid "Location" +msgstr "" + +#: website/static/js/filepage/revisions.js:109 website/static/js/meetings.js:36 +msgid "Date" +msgstr "" + +#: website/static/js/myProjects.js:308 +msgid "We're having some trouble contacting our servers. Try reloading the page." +msgstr "" + +#: website/static/js/myProjects.js:308 +msgid "Something went wrong!" +msgstr "" + +#: website/static/js/myProjects.js:433 +msgid "All my projects" +msgstr "" + +#: website/static/js/myProjects.js:461 +msgid "Error loading project category names." +msgstr "" + +#: website/static/js/myProjects.js:665 +msgid "Some projects" +msgstr "" + +#: website/static/js/myProjects.js:669 +msgid " could not be removed from the collection" +msgstr "" + +#: website/static/js/myProjects.js:671 +msgid "Please try again." +msgstr "" + +#: website/static/js/myProjects.js:764 +msgid "You have not created any projects yet." +msgstr "" + +#: website/static/js/myProjects.js:768 +msgid "" +"There have been no completed registrations for this institution, but you " +"can view the " +msgstr "" + +#: website/static/js/myProjects.js:769 +msgid "newest public registrations" +msgstr "" + +#: website/static/js/myProjects.js:770 website/static/js/myProjects.js:778 +msgid " or " +msgstr "" + +#: website/static/js/myProjects.js:771 +msgid "popular public registrations." +msgstr "" + +#: website/static/js/myProjects.js:774 +msgid "You have not made any registrations yet. Go to " +msgstr "" + +#: website/static/js/myProjects.js:775 +msgid "Guides" +msgstr "" + +#: website/static/js/myProjects.js:775 +msgid " to learn how registrations work." +msgstr "" + +#: website/static/js/myProjects.js:778 +msgid "You have not made any preprints yet. Learn more about preprints in the " +msgstr "" + +#: website/static/js/myProjects.js:778 +msgid "OSF Guides" +msgstr "" + +#: website/static/js/myProjects.js:778 +msgid "make one now." +msgstr "" + +#: website/static/js/myProjects.js:780 +msgid "" +"You have no bookmarks. You can add projects or registrations by dragging " +"them into your bookmarks or by clicking the Add to Bookmark button on the" +" project or registration." +msgstr "" + +#: website/static/js/myProjects.js:782 +msgid "This collection is empty." +msgstr "" + +#: website/static/js/myProjects.js:784 +msgid "" +" You can add projects, registrations, or preprints by dragging them into " +"the collection." +msgstr "" + +#: website/static/js/myProjects.js:795 +msgid "" +"No components to display. Either there are no components, or there are " +"private components in which you are not a contributor." +msgstr "" + +#: website/static/js/myProjects.js:966 +msgid "Collections could not be loaded." +msgstr "" + +#: website/static/js/myProjects.js:967 +msgid "Please reload the page." +msgstr "" + +#: website/static/js/myProjects.js:1109 +msgid "My Projects " +msgstr "" + +#: website/static/js/myProjects.js:1110 +msgid "Browse and organize all your projects" +msgstr "" + +#: website/static/js/myProjects.js:1115 +msgid "Create Project" +msgstr "" + +#: website/static/js/myProjects.js:1172 +msgid "Fetching more projects" +msgstr "" + +#: website/static/js/myProjects.js:1278 +msgid "\" collection could not be created." +msgstr "" + +#: website/static/js/myProjects.js:1279 website/static/js/myProjects.js:1311 +#: website/static/js/myProjects.js:1336 +msgid "Please try again" +msgstr "" + +#: website/static/js/myProjects.js:1310 +msgid "\" could not be deleted." +msgstr "" + +#: website/static/js/myProjects.js:1335 +msgid "\" could not be renamed." +msgstr "" + +#: website/static/js/myProjects.js:1383 +msgid "\" is already in \"%1$s\"" +msgstr "" + +#: website/static/js/myProjects.js:1469 +msgid "Collections " +msgstr "" + +#: website/static/js/myProjects.js:1472 +msgid "" +"Collections are groups of projects. You can create custom collections. " +"Drag and drop your projects or bookmarked projects to add them." +msgstr "" + +#: website/static/js/myProjects.js:1501 +msgid " Rename" +msgstr "" + +#: website/static/js/myProjects.js:1510 +msgid " Delete" +msgstr "" + +#: website/static/js/myProjects.js:1528 +msgid "Add new collection" +msgstr "" + +#: website/static/js/myProjects.js:1531 +msgid "" +"Collections are groups of projects that help you organize your work. " +"After you create your collection, you can add projects by dragging them " +"into the collection." +msgstr "" + +#: website/static/js/myProjects.js:1533 +msgid "Collection name" +msgstr "" + +#: website/static/js/myProjects.js:1548 +msgid "e.g. My Replications" +msgstr "" + +#: website/static/js/myProjects.js:1565 +msgid "Add" +msgstr "" + +#: website/static/js/myProjects.js:1576 +msgid "Rename collection" +msgstr "" + +#: website/static/js/myProjects.js:1581 +msgid "Rename to: " +msgstr "" + +#: website/static/js/myProjects.js:1624 +msgid "Delete collection \"%1$s\"?" +msgstr "" + +#: website/static/js/myProjects.js:1627 +msgid "This will delete your collection, but your projects will not be deleted." +msgstr "" + +#: website/static/js/myProjects.js:1737 +msgid "Parent projects" +msgstr "" + +#: website/static/js/myProjects.js:1786 +msgid "Create component" +msgstr "" + +#: website/static/js/myProjects.js:1875 +msgid "" +"No contributors to display in this collection. Project administrators can" +" add contributors." +msgstr "" + +#: website/static/js/myProjects.js:1898 +msgid "" +"No tags to display in this collection. Project administrators and write " +"contributors can add tags." +msgstr "" + +#: website/static/js/myProjects.js:1924 +msgid "Contributors " +msgstr "" + +#: website/static/js/myProjects.js:1927 +msgid "Click a contributor's name to see projects that you have in common." +msgstr "" + +#: website/static/js/myProjects.js:1938 website/static/js/myProjects.js:2019 +msgid "Tags" +msgstr "" + +#: website/static/js/myProjects.js:1963 +msgid "Select a row to view project details." +msgstr "" + +#: website/static/js/myProjects.js:1994 +msgid "Information" +msgstr "" + +#: website/static/js/myProjects.js:1998 +msgid "Activity" +msgstr "" + +#: website/static/js/myProjects.js:2005 +msgid "Visibility: " +msgstr "" + +#: website/static/js/myProjects.js:2005 +msgid "Public" +msgstr "" + +#: website/static/js/myProjects.js:2005 +msgid "Private" +msgstr "" + +#: website/static/js/myProjects.js:2007 +msgid "Category: " +msgstr "" + +#: website/static/js/myProjects.js:2011 +msgid "Permission: " +msgstr "" + +#: website/static/js/myProjects.js:2012 +msgid "Last Modified on: " +msgstr "" + +#: website/static/js/myProjects.js:2040 +msgid "Remove selected from collection" +msgstr "" + +#: website/static/js/nodeControl.js:61 +msgid "A request to make this registration public is pending" +msgstr "" + +#: website/static/js/nodeControl.js:102 +msgid "Edit Title" +msgstr "" + +#: website/static/js/nodeControl.js:106 +msgid "Title cannot be blank." +msgstr "" + +#: website/static/js/nodeControl.js:109 +msgid "Title cannot exceed 512 characters." +msgstr "" + +#: website/static/js/nodeControl.js:114 +msgid "component" +msgstr "" + +#: website/static/js/nodeControl.js:117 +msgid "Edit Description" +msgstr "" + +#: website/static/js/nodeControl.js:118 +msgid "Add a brief description to your %1$s" +msgstr "" + +#: website/static/js/nodeControl.js:135 +msgid "Select a category" +msgstr "" + +#: website/static/js/nodeControl.js:175 +msgid "The project could not be removed" +msgstr "" + +#: website/static/js/nodeControl.js:212 +msgid "Create DOI" +msgstr "" + +#: website/static/js/nodeControl.js:214 +msgid "Are you sure you want to create a DOI for this %1$s" +msgstr "" + +#: website/static/js/nodeControl.js:215 +msgid "? A DOI" +msgstr "" + +#: website/static/js/nodeControl.js:216 +msgid " is persistent and will always resolve to this page." +msgstr "" + +#: website/static/js/nodeControl.js:245 +msgid "We could not create the identifier at this time. " +msgstr "" + +#: website/static/js/nodeControl.js:246 +msgid "The DOI acquisition service may be down right now. " +msgstr "" + +#: website/static/js/nodeControl.js:247 +msgid "Please try again soon and/or contact %1$s" +msgstr "" + +#: website/static/js/nodeControl.js:249 +msgid "Could not create doi" +msgstr "" + +#: website/static/js/nodeSelectTreebeard.js:62 +#: website/static/js/notificationsTreebeard.js:62 +#: website/static/js/profile.js:320 +#: website/static/js/wikiSettingsTreebeard.js:57 +msgid "Could not update settings" +msgstr "" + +#: website/static/js/nodeSelectTreebeard.js:81 +#: website/static/js/nodesDeleteTreebeard.js:56 +#: website/static/js/nodesPrivacySettingsTreebeard.js:56 +msgid "checkBox" +msgstr "" + +#: website/static/js/nodesDelete.js:38 +msgid "" +"This %1$s also contains supplemental materials for a " +"preprint. It will" +msgstr "" + +#: website/static/js/nodesDelete.js:39 +msgid " no longer be available to contributors or connected to the preprint." +msgstr "" + +#: website/static/js/nodesDelete.js:43 +msgid "It will no longer be available to other contributors on the project." +msgstr "" + +#: website/static/js/nodesDelete.js:49 +msgid "Are you sure you want to delete this %1$s?" +msgstr "" + +#: website/static/js/nodesDelete.js:80 website/static/js/nodesDelete.js:340 +msgid "Unable to delete %1$s" +msgstr "" + +#: website/static/js/nodesDelete.js:84 website/static/js/nodesDelete.js:344 +msgid "Problem deleting %1$s" +msgstr "" + +#: website/static/js/nodesDelete.js:85 +msgid "Could not delete %$1s" +msgstr "" + +#: website/static/js/nodesDelete.js:116 +msgid "" +"

    This %1$s also contains supplemental materials for a " +"preprint, and one or more of its %2$s contains " +"supplemental materials for a preprint." +msgstr "" + +#: website/static/js/nodesDelete.js:119 +msgid "" +"

    This %1$s also contains supplemental materials for a " +"preprint." +msgstr "" + +#: website/static/js/nodesDelete.js:122 +msgid "" +"

    This %1$s also has one or more %2$s that contain supplemental " +"materials for a preprint." +msgstr "" + +#: website/static/js/nodesDelete.js:150 +msgid "Delete %1$s" +msgstr "" + +#: website/static/js/nodesDelete.js:151 +msgid "Delete %1$s and %2$s" +msgstr "" + +#: website/static/js/nodesDelete.js:156 +msgid "This %1$s contains %2$s." +msgstr "" + +#: website/static/js/nodesDelete.js:156 +msgid " To delete this %1$s, you must also delete all %2$s." +msgstr "" + +#: website/static/js/nodesDelete.js:158 +msgid " The following %1$s and %2$s will be deleted." +msgstr "" + +#: website/static/js/nodesDelete.js:161 +msgid " This action is irreversible." +msgstr "" + +#: website/static/js/nodesDelete.js:167 +msgid "" +"Please note that deleting your %1$s will erase all your %2$s data and " +"this process is IRREVERSIBLE. Deleted %3$s and %4$s will no longer be " +"available to other contributors on the %5$s" +msgstr "" + +#: website/static/js/nodesDelete.js:168 +msgid " and will be disconnected from your preprints." +msgstr "" + +#: website/static/js/nodesDelete.js:168 +msgid "." +msgstr "" + +#: website/static/js/nodesDelete.js:331 +msgid "Your %1$s has been successfully deleted." +msgstr "" + +#: website/static/js/nodesDelete.js:345 +msgid "Could not batch delete project and its components." +msgstr "" + +#: website/static/js/nodesDeleteTreebeard.js:84 +msgid "You must have admin permissions on this component to be able to delete it." +msgstr "" + +#: website/static/js/nodesPrivacy.js:19 +msgid "" +"Please review your projects, components, and add-ons for sensitive or " +"restricted information before making them public." +msgstr "" + +#: website/static/js/nodesPrivacy.js:20 +msgid "" +"

    Once they are made public, you should assume they will always be " +"public. You can " +msgstr "" + +#: website/static/js/nodesPrivacy.js:21 +msgid "" +"return them to private later, but search engines (including Google’s " +"cache) or others may access files, wiki pages, or analytics before you " +"do." +msgstr "" + +#: website/static/js/nodesPrivacy.js:23 +msgid "" +"
    • Public forks and registrations of this project will remain " +"public.
    • " +msgstr "" + +#: website/static/js/nodesPrivacy.js:24 website/static/js/nodesPrivacy.js:27 +msgid "" +"
    • Search engines (including Google's cache) or others may have accessed" +" files, wiki pages, or analytics while this project was public.
    " +msgstr "" + +#: website/static/js/nodesPrivacy.js:26 +msgid "" +"
    • Preprints will remain public.
    • Public forks and " +"registrations of this project will remain public.
    • " +msgstr "" + +#: website/static/js/nodesPrivacy.js:28 +msgid "" +"By clicking confirm, an email will be sent to project administrator(s) to" +" approve ending the embargo. If approved, this registration, including " +"any components, will be made public immediately. This action is " +"irreversible." +msgstr "" + +#: website/static/js/nodesPrivacy.js:29 +msgid "End embargo early" +msgstr "" + +#: website/static/js/nodesPrivacy.js:30 +msgid "Adjust your privacy settings by checking the boxes below. " +msgstr "" + +#: website/static/js/nodesPrivacy.js:31 +msgid "" +"

      Checked projects and components will be public. " +"
      Unchecked components will be private." +msgstr "" + +#: website/static/js/nodesPrivacy.js:33 +msgid "The following projects and components will be made public." +msgstr "" + +#: website/static/js/nodesPrivacy.js:34 +msgid "The following projects and components will be made private." +msgstr "" + +#: website/static/js/nodesPrivacy.js:35 +msgid "No privacy settings were changed. Go back to make a change." +msgstr "" + +#: website/static/js/nodesPrivacy.js:36 +msgid "" +"You can only change the privacy of 100 projects and components at a time." +" Please go back and limit your selection." +msgstr "" + +#: website/static/js/nodesPrivacy.js:38 +msgid "This project/component contains supplemental materials for a preprint." +msgstr "" + +#: website/static/js/nodesPrivacy.js:39 +msgid "" +"

      Making this project/component private will prevent others from" +" accessing it.

      " +msgstr "" + +#: website/static/js/nodesPrivacy.js:155 +msgid "Make %1$s private" +msgstr "" + +#: website/static/js/nodesPrivacy.js:156 +msgid "Warning" +msgstr "" + +#: website/static/js/nodesPrivacy.js:157 +msgid "Change privacy settings" +msgstr "" + +#: website/static/js/nodesPrivacy.js:158 +msgid "Projects and components affected" +msgstr "" + +#: website/static/js/nodesPrivacy.js:247 +msgid "Updating Privacy" +msgstr "" + +#: website/static/js/nodesPrivacy.js:257 +msgid "Unable to update project privacy" +msgstr "" + +#: website/static/js/nodesPrivacy.js:261 +msgid "Problem changing privacy" +msgstr "" + +#: website/static/js/nodesPrivacy.js:262 +msgid "Could not PATCH project settings." +msgstr "" + +#: website/static/js/nodesPrivacy.js:318 +msgid "Submitting request to end embargo early ..." +msgstr "" + +#: website/static/js/nodesPrivacy.js:324 +msgid "Email sent" +msgstr "" + +#: website/static/js/nodesPrivacy.js:325 +msgid "" +"The administrator(s) can approve or cancel the action within 48 hours. If" +" 48 hours pass without any action taken, then the registration will " +"become public." +msgstr "" + +#: website/static/js/notificationsConfig.js:31 +msgid "Could not retrieve settings information." +msgstr "" + +#: website/static/js/notificationsConfig.js:63 +msgid "Could not update email preferences at this time. If this issue persists, " +msgstr "" + +#: website/static/js/notificationsConfig.js:64 +#: website/static/js/osfHelpers.js:316 +msgid "please report it to %1$s." +msgstr "" + +#: website/static/js/notificationsTreebeard.js:68 +#: website/static/js/notificationsTreebeard.js:182 +#: website/static/js/notificationsTreebeard.js:187 +#: website/static/js/notificationsTreebeard.js:230 +msgid "Instantly" +msgstr "" + +#: website/static/js/notificationsTreebeard.js:69 +#: website/static/js/notificationsTreebeard.js:188 +#: website/static/js/notificationsTreebeard.js:231 +msgid "Daily" +msgstr "" + +#: website/static/js/notificationsTreebeard.js:70 +msgid "Adopt setting from parent project" +msgstr "" + +#: website/static/js/notificationsTreebeard.js:71 +#: website/static/js/notificationsTreebeard.js:186 +#: website/static/js/notificationsTreebeard.js:229 +msgid "Never" +msgstr "" + +#: website/static/js/notificationsTreebeard.js:118 +msgid " No configured projects." +msgstr "" + +#: website/static/js/notificationsTreebeard.js:228 +msgid "Adopt setting from parent project %1$s" +msgstr "" + +#: website/static/js/oauthAddonNodeConfig.js:143 +msgid "Choose %1$s Account to Import" +msgstr "" + +#: website/static/js/osfHelpers.js:311 +msgid "Please refresh the page and try again or contact %1$s" +msgstr "" + +#: website/static/js/osfHelpers.js:315 +msgid "GakuNin RDM was unable to resolve your request. If this issue persists, " +msgstr "" + +#: website/static/js/osfHelpers.js:339 +msgid "Unexpected error occurred in JSON request" +msgstr "" + +#: website/static/js/osfHelpers.js:344 +msgid "Unexpected error occurred in an editable input" +msgstr "" + +#: website/static/js/osfHelpers.js:361 +#: website/static/js/privateLinkManager.js:105 +msgid "Please wait" +msgstr "" + +#: website/static/js/osfHelpers.js:800 +#: website/static/js/pages/profile-settings-addons-page.js:32 +#: website/static/js/pages/project-addons-page.js:63 +msgid "Confirm" +msgstr "" + +#: website/static/js/osfHelpers.js:811 +msgid "

      Type the following to continue: " +msgstr "" + +#: website/static/js/passwordForms.js:23 +msgid "Please enter a more complex password." +msgstr "" + +#: website/static/js/passwordForms.js:117 +#: website/static/js/passwordForms.js:192 +#: website/static/js/passwordForms.js:258 +msgid "Your password cannot be the same as your email address." +msgstr "" + +#: website/static/js/passwordForms.js:132 +msgid "Your new password cannot be the same as your old password." +msgstr "" + +#: website/static/js/passwordForms.js:143 +#: website/static/js/passwordForms.js:203 +msgid "Passwords must match." +msgstr "" + +#: website/static/js/passwordForms.js:230 +msgid "Email addresses must match." +msgstr "" + +#: website/static/js/passwordForms.js:301 +msgid "You have already submitted. You cannot sign up more than once." +msgstr "" + +#: website/static/js/passwordForms.js:322 +msgid "Please complete reCAPTCHA" +msgstr "" + +#: website/static/js/pointers.js:28 +msgid "Search all projects" +msgstr "" + +#: website/static/js/pointers.js:29 +msgid "Search my projects" +msgstr "" + +#: website/static/js/pointers.js:133 +msgid "No results found." +msgstr "" + +#: website/static/js/pointers.js:183 +msgid "Error retrieving nodes" +msgstr "" + +#: website/static/js/pointers.js:328 +msgid "Registered: " +msgstr "" + +#: website/static/js/pointers.js:330 +msgid "Created: " +msgstr "" + +#: website/static/js/pointers.js:330 +msgid "" +"\n" +"Modified: " +msgstr "" + +#: website/static/js/pointers.js:362 +msgid "Could not get links" +msgstr "" + +#: website/static/js/privateLinkManager.js:63 +msgid "Could not retrieve projects." +msgstr "" + +#: website/static/js/privateLinkManager.js:63 +#: website/static/js/privateLinkTable.js:72 +msgid "Please refresh the page or " +msgstr "" + +#: website/static/js/privateLinkManager.js:64 +#: website/static/js/privateLinkTable.js:73 +msgid "contact %1$s" +msgstr "" + +#: website/static/js/privateLinkManager.js:64 +#: website/static/js/privateLinkTable.js:73 +msgid " if the " +msgstr "" + +#: website/static/js/privateLinkManager.js:65 +#: website/static/js/privateLinkTable.js:74 +msgid "problem persists." +msgstr "" + +#: website/static/js/privateLinkTable.js:37 +msgid "Yes" +msgstr "" + +#: website/static/js/privateLinkTable.js:37 +msgid "No" +msgstr "" + +#: website/static/js/privateLinkTable.js:72 +msgid "Could not retrieve view-only links." +msgstr "" + +#: website/static/js/privateLinkTable.js:96 +msgid "Remove view-only link?" +msgstr "" + +#: website/static/js/privateLinkTable.js:97 +msgid "Are you sure you want to remove this view-only link?" +msgstr "" + +#: website/static/js/privateLinkTable.js:109 +msgid "Failed to delete the private link." +msgstr "" + +#: website/static/js/privateLinkTable.js:138 +msgid "Edit Link Name" +msgstr "" + +#: website/static/js/profile.js:106 +msgid "January" +msgstr "" + +#: website/static/js/profile.js:106 +msgid "February" +msgstr "" + +#: website/static/js/profile.js:106 +msgid "March" +msgstr "" + +#: website/static/js/profile.js:106 +msgid "April" +msgstr "" + +#: website/static/js/profile.js:106 +msgid "May" +msgstr "" + +#: website/static/js/profile.js:106 +msgid "June" +msgstr "" + +#: website/static/js/profile.js:107 +msgid "July" +msgstr "" + +#: website/static/js/profile.js:107 +msgid "August" +msgstr "" + +#: website/static/js/profile.js:107 +msgid "September" +msgstr "" + +#: website/static/js/profile.js:107 +msgid "October" +msgstr "" + +#: website/static/js/profile.js:107 +msgid "November" +msgstr "" + +#: website/static/js/profile.js:107 +msgid "December" +msgstr "" + +#: website/static/js/profile.js:112 +msgid "ongoing" +msgstr "" + +#: website/static/js/profile.js:152 +msgid "Please enter a year for the start date." +msgstr "" + +#: website/static/js/profile.js:165 +msgid "Please enter an end date or mark as ongoing." +msgstr "" + +#: website/static/js/profile.js:168 +msgid "Please enter a year for the end date." +msgstr "" + +#: website/static/js/profile.js:265 website/static/js/profile.js:274 +msgid "There are unsaved changes to your settings." +msgstr "" + +#: website/static/js/profile.js:275 +msgid "Please save or discard your changes before switching " +msgstr "" + +#: website/static/js/profile.js:276 +msgid "tabs." +msgstr "" + +#: website/static/js/profile.js:341 +msgid "Could not fetch data" +msgstr "" + +#: website/static/js/profile.js:358 +msgid "Are you sure you want to discard your unsaved changes?" +msgstr "" + +#: website/static/js/profile.js:720 +msgid "Remove website?" +msgstr "" + +#: website/static/js/profile.js:721 +msgid "Are you sure you want to remove this website from your profile?" +msgstr "" + +#: website/static/js/profile.js:728 +msgid "Website removed" +msgstr "" + +#: website/static/js/profile.js:815 +msgid "Please update your website" +msgstr "" + +#: website/static/js/profile.js:953 +msgid "Remove Institution?" +msgstr "" + +#: website/static/js/profile.js:954 +msgid "Are you sure you want to remove this institution?" +msgstr "" + +#: website/static/js/profile.js:963 +msgid "Institution Removed" +msgstr "" + +#: website/static/js/profile.js:1078 +msgid "Institution/Employer required" +msgstr "" + +#: website/static/js/profile.js:1132 +msgid "Institution required" +msgstr "" + +#: website/static/js/components/publicNodes.js:103 +#: website/static/js/project-organizer.js:100 +msgid "A contributor" +msgstr "" + +#: website/static/js/project-organizer.js:197 +msgid "Contributors" +msgstr "" + +#: website/static/js/project-organizer.js:416 +msgid "" +"input.form-control[placeholder=\"Filter displayed " +"projects\"][type=\"text\"]" +msgstr "" + +#: website/static/js/project.js:28 +msgid "

      Are you sure you want to fork this project?

      " +msgstr "" + +#: website/static/js/project.js:36 website/static/js/project.js:115 +msgid "Fork" +msgstr "" + +#: website/static/js/project.js:50 +msgid "Fork created successfully!" +msgstr "" + +#: website/static/js/project.js:58 +msgid "Go to new fork" +msgstr "" + +#: website/static/js/project.js:87 +msgid "Your fork is being created. You'll receive an email when it is complete." +msgstr "" + +#: website/static/js/project.js:93 +msgid "Fork this project?" +msgstr "" + +#: website/static/js/project.js:94 +msgid "Are you sure you want to fork this project?" +msgstr "" + +#: website/static/js/project.js:109 +msgid "Could not fork link." +msgstr "" + +#: website/static/js/project.js:126 +msgid "" +"

      Are you sure you want to create a new project using this project as a" +" template?

      " +msgstr "" + +#: website/static/js/project.js:127 +msgid "" +"

      Any add-ons configured for this project will not be authenticated in " +"the new project.

      " +msgstr "" + +#: website/static/js/project.js:129 +msgid "" +"

      Are you sure you want to create a new project using this registration" +" as a template?

      " +msgstr "" + +#: website/static/js/project.js:205 +msgid "
      Read
      " +msgstr "" + +#: website/static/js/project.js:206 +msgid "
      • View project content and comment
      " +msgstr "" + +#: website/static/js/project.js:207 +msgid "
      Read + Write
      " +msgstr "" + +#: website/static/js/project.js:208 +msgid "
      • Read privileges
      • " +msgstr "" + +#: website/static/js/project.js:209 +msgid "
      • Add and configure components
      • " +msgstr "" + +#: website/static/js/project.js:210 +msgid "
      • Add and edit content
      " +msgstr "" + +#: website/static/js/project.js:211 +msgid "
      Administrator
        " +msgstr "" + +#: website/static/js/project.js:212 +msgid "
      • Read and write privileges
      • " +msgstr "" + +#: website/static/js/project.js:213 +msgid "
      • Manage contributor
      • " +msgstr "" + +#: website/static/js/project.js:214 +msgid "" +"
      • Delete and register project
      • Public-private " +"settings
      " +msgstr "" + +#: website/static/js/project.js:223 +msgid "" +"Only bibliographic contributors will be displayed in the Contributors " +"list and in project citations. Non-bibliographic contributors can read " +"and modify the project as normal." +msgstr "" + +#: website/static/js/project.js:238 +msgid "Remove this link?" +msgstr "" + +#: website/static/js/project.js:239 +msgid "" +"Are you sure you want to remove this link? This will not remove the " +"project this link refers to." +msgstr "" + +#: website/static/js/projectSettingsTreebeardBase.js:96 +msgid "Editing Toggle" +msgstr "" + +#: website/static/js/requestAccess.js:17 +msgid "Request access" +msgstr "" + +#: website/static/js/requestAccess.js:27 website/static/js/requestAccess.js:62 +msgid "Access requested" +msgstr "" + +#: website/static/js/requestAccess.js:30 +msgid "Request declined" +msgstr "" + +#: website/static/js/requestAccess.js:67 +msgid "Access request failed. Please contact %1$s if the problem persists." +msgstr "" + +#: website/static/js/requestAccess.js:70 +msgid "Error requesting project access" +msgstr "" + +#: website/static/js/requestAccess.js:83 +msgid "If this should not have occurred, please contact %1$s." +msgstr "" + +#: website/static/js/saveManager.js:24 +msgid "You have unsaved changes." +msgstr "" + +#: website/static/js/search-grdm.js:150 +msgid "Date Modified (Desc)" +msgstr "" + +#: website/static/js/search-grdm.js:151 +msgid "Date Modified (Asc)" +msgstr "" + +#: website/static/js/search-grdm.js:152 +msgid "Date Created (Desc)" +msgstr "" + +#: website/static/js/search-grdm.js:153 +msgid "Date Created (Asc)" +msgstr "" + +#: website/static/js/search-grdm.js:154 +msgid "Project name (Asc)" +msgstr "" + +#: website/static/js/search-grdm.js:155 +msgid "Project name (Desc)" +msgstr "" + +#: website/static/js/search-grdm.js:156 +msgid "File name (Asc)" +msgstr "" + +#: website/static/js/search-grdm.js:157 +msgid "File name (Desc)" +msgstr "" + +#: website/static/js/search-grdm.js:158 +msgid "User name (Asc)" +msgstr "" + +#: website/static/js/search-grdm.js:159 +msgid "User name (Desc)" +msgstr "" + +#: website/static/js/search-grdm.js:160 +msgid "Institution name (Asc)" +msgstr "" + +#: website/static/js/search-grdm.js:161 +msgid "Institution name (Desc)" +msgstr "" + +#: website/static/js/search-grdm.js:162 +msgid "Wiki title (Asc)" +msgstr "" + +#: website/static/js/search-grdm.js:163 +msgid "Wiki title (Desc)" +msgstr "" + +#: website/static/js/search-grdm.js:313 website/static/js/search.js:190 +msgid "Page %1$s of %2$s" +msgstr "" + +#: website/static/js/search-grdm.js:393 website/static/js/search.js:270 +msgid "Search help" +msgstr "" + +#: website/static/js/search-grdm.js:394 website/static/js/search.js:271 +msgid "

      Queries

      " +msgstr "" + +#: website/static/js/search-grdm.js:395 website/static/js/search.js:272 +msgid "" +"

      Search uses the Lucene" +" search syntax. " +msgstr "" + +#: website/static/js/search-grdm.js:396 website/static/js/search.js:273 +msgid "This gives you many options, but can be very simple as well. " +msgstr "" + +#: website/static/js/search-grdm.js:397 website/static/js/search.js:274 +msgid "Examples of valid searches include:" +msgstr "" + +#: website/static/js/search-grdm.js:769 website/static/js/search-grdm.js:1067 +#: website/static/js/search.js:578 website/static/js/search.js:605 +msgid "GakuNin RDM | Search" +msgstr "" + +#: website/static/js/wikiSettingsTreebeard.js:26 +msgid "Make publicly editable" +msgstr "" + +#: website/static/js/wikiSettingsTreebeard.js:27 +msgid "" +"Are you sure you want to make the wiki of %1$s publicly editable? " +"This will allow any logged in user to edit the content of this wiki. " +msgstr "" + +#: website/static/js/wikiSettingsTreebeard.js:28 +msgid "" +"Note: Users without write access will not be able to add, delete, " +"or rename pages." +msgstr "" + +#: website/static/js/wikiSettingsTreebeard.js:36 +msgid "Apply" +msgstr "" + +#: website/static/js/wikiSettingsTreebeard.js:114 +msgid "Only admins may change permissions of this wiki." +msgstr "" + +#: website/static/js/wikiSettingsTreebeard.js:116 +msgid "Select who can edit" +msgstr "" + +#: website/static/js/wikiSettingsTreebeard.js:116 +msgid "This feature is disabled for wikis of private %1$ss" +msgstr "" + +#: website/static/js/wikiSettingsTreebeard.js:133 +msgid "Contributors (with write access)" +msgstr "" + +#: website/static/js/wikiSettingsTreebeard.js:134 +msgid "All GakuNin RDM users" +msgstr "" + +#: website/static/js/components/autocomplete.js:84 +msgid "Could not GET autocomplete data" +msgstr "" + +#: website/static/js/components/autocomplete.js:150 +msgid "Initiated by: " +msgstr "" + +#: website/static/js/components/autocomplete.js:156 +msgid "Initiated: " +msgstr "" + +#: website/static/js/components/autocomplete.js:162 +msgid "Last updated: " +msgstr "" + +#: website/static/js/components/publicNodes.js:68 +msgid "Error retrieving projects" +msgstr "" + +#: website/static/js/components/publicNodes.js:120 +msgid " more" +msgstr "" + +#: website/static/js/components/publicNodes.js:152 +msgid "-- private project -- / " +msgstr "" + +#: website/static/js/components/publicNodes.js:190 +msgid "Unable to retrieve public %1$s" +msgstr "" + +#: website/static/js/components/publicNodes.js:190 +msgid " at this time. Please refresh the page or contact " +msgstr "" + +#: website/static/js/components/publicNodes.js:204 +msgid "You have no public %1$s." +msgstr "" + +#: website/static/js/components/publicNodes.js:206 +msgid "Find out how to make your %1$s" +msgstr "" + +#: website/static/js/components/publicNodes.js:207 +msgid "public" +msgstr "" + +#: website/static/js/components/publicNodes.js:211 +msgid "This user has no public %1$s." +msgstr "" + +#: website/static/js/components/quickFiles.js:54 +msgid "Error retrieving quickfiles" +msgstr "" + +#: website/static/js/components/quickFiles.js:121 +msgid "" +"Unable to retrieve quickfiles at this time. Please refresh the page or " +"contact " +msgstr "" + +#: website/static/js/components/quickFiles.js:134 +msgid "You have no public quickfiles" +msgstr "" + +#: website/static/js/components/quickFiles.js:135 +msgid "This user has no public quickfiles." +msgstr "" + +#: website/static/js/components/utils.js:15 +msgid "Missing required option: " +msgstr "" + +#: website/static/js/filepage/editor.js:82 +msgid "The file content could not be loaded." +msgstr "" + +#: website/static/js/filepage/editor.js:83 +msgid "Could not GET file contents." +msgstr "" + +#: website/static/js/filepage/editor.js:113 +msgid "Could not update file. Insufficient storage space in your Dropbox." +msgstr "" + +#: website/static/js/filepage/editor.js:115 +msgid "The file could not be updated." +msgstr "" + +#: website/static/js/filepage/editor.js:122 +msgid "Could not PUT file content." +msgstr "" + +#: website/static/js/filepage/editor.js:178 +msgid "Revert" +msgstr "" + +#: website/static/js/filepage/index.js:89 +msgid "Direct iframe with fixed height and width" +msgstr "" + +#: website/static/js/filepage/index.js:131 +#: website/static/js/filepage/index.js:136 +msgid "File is checked out." +msgstr "" + +#: website/static/js/filepage/index.js:132 +msgid "" +" This file has been checked out by a COS Preregistration Challenge " +"Reviewer and will become available when review is complete." +msgstr "" + +#: website/static/js/filepage/index.js:137 +msgid " This file has been checked out by a " +msgstr "" + +#: website/static/js/filepage/index.js:138 +msgid "collaborator" +msgstr "" + +#: website/static/js/filepage/index.js:139 +msgid ". It needs to be checked in before any changes can be made." +msgstr "" + +#: website/static/js/filepage/index.js:184 +msgid "Delete file?" +msgstr "" + +#: website/static/js/filepage/index.js:186 +msgid "Are you sure you want to delete %1$s?" +msgstr "" + +#: website/static/js/filepage/index.js:204 +msgid "Could not delete file." +msgstr "" + +#: website/static/js/filepage/index.js:220 +msgid "Confirm file check out?" +msgstr "" + +#: website/static/js/filepage/index.js:223 +msgid "as long as it is checked out. You can check it back in at anytime." +msgstr "" + +#: website/static/js/filepage/index.js:243 +msgid "Unable to check out file" +msgstr "" + +#: website/static/js/filepage/index.js:270 +msgid "Unable to check in file" +msgstr "" + +#: website/static/js/filepage/index.js:275 +msgid "Force check in file?" +msgstr "" + +#: website/static/js/filepage/index.js:276 +msgid "" +"This will check in the file for all users, allowing it to be edited. Are " +"you sure?" +msgstr "" + +#: website/static/js/filepage/index.js:279 +#: website/static/js/filepage/index.js:502 +msgid "Force check in" +msgstr "" + +#: website/static/js/filepage/index.js:302 +msgid "Unable to force check in file. Make sure you have admin privileges." +msgstr "" + +#: website/static/js/filepage/index.js:343 +msgid "Live editing mode " +msgstr "" + +#: website/static/js/filepage/index.js:344 +msgid "Attempting to connect " +msgstr "" + +#: website/static/js/filepage/index.js:345 +msgid "Unsupported browser " +msgstr "" + +#: website/static/js/filepage/index.js:346 +msgid "Saving... " +msgstr "" + +#: website/static/js/filepage/index.js:347 +msgid "Unavailable: Live editing " +msgstr "" + +#: website/static/js/filepage/index.js:470 +msgid "View this file on " +msgstr "" + +#: website/static/js/filepage/index.js:505 +msgid "Check out" +msgstr "" + +#: website/static/js/filepage/index.js:508 +msgid "Check in" +msgstr "" + +#: website/static/js/filepage/index.js:514 +msgid "Request Trusted Timestamp" +msgstr "" + +#: website/static/js/filepage/index.js:531 +msgid "Toggle view: " +msgstr "" + +#: website/static/js/filepage/index.js:570 +#: website/static/js/filepage/revisions.js:173 +msgid "Revisions" +msgstr "" + +#: website/static/js/filepage/revisions.js:72 +#: website/static/js/filepage/revisions.js:73 +msgid "Unable to fetch versions" +msgstr "" + +#: website/static/js/filepage/revisions.js:108 +msgid "Version ID" +msgstr "" + +#: website/static/js/filepage/revisions.js:110 +msgid "User" +msgstr "" + +#: website/static/js/filepage/revisions.js:113 +msgid "" +".fa.fa-question-circle[data-content=\"MD5 is an algorithm used to verify " +"data integrity.\"][rel=\"popover\"]" +msgstr "" + +#: website/static/js/filepage/revisions.js:116 +msgid "" +".fa.fa-question-circle[data-content=\"SHA-2 is a cryptographic hash " +"function designed by the NSA used to verify data " +"integrity.\"][rel=\"popover\"]" +msgstr "" + +#: website/static/js/filepage/revisions.js:133 +msgid "Anonymous Contributor" +msgstr "" + +#: website/static/js/filepage/util.js:36 +msgid " Loading... " +msgstr "" + +#: website/static/js/home-page/scheduledBannerPlugin.js:25 +msgid "Error in request to %1$s" +msgstr "" + +#: website/static/js/pages/base-page.js:130 +msgid "Merge account" +msgstr "" + +#: website/static/js/pages/base-page.js:131 +msgid "Would you like to merge %1$s into your account? " +msgstr "" + +#: website/static/js/pages/base-page.js:133 +msgid "%1$s has been merged into your account." +msgstr "" + +#: website/static/js/pages/base-page.js:134 +msgid "You have chosen to not merge %1$s into your account. " +msgstr "" + +#: website/static/js/pages/base-page.js:135 +#: website/static/js/pages/base-page.js:142 +msgid "" +"If you change your mind, visit the user " +"settings page." +msgstr "" + +#: website/static/js/pages/base-page.js:138 +#: website/static/js/pages/base-page.js:188 +msgid "Add email" +msgstr "" + +#: website/static/js/pages/base-page.js:139 +msgid "Would you like to add %1$s to your account?" +msgstr "" + +#: website/static/js/pages/base-page.js:140 +msgid "%1$s has been added into your account." +msgstr "" + +#: website/static/js/pages/base-page.js:141 +msgid "You have chosen not to add %1$s to your account. " +msgstr "" + +#: website/static/js/pages/base-page.js:145 +msgid "There was a problem adding " +msgstr "" + +#: website/static/js/pages/base-page.js:146 +#: website/static/js/pages/base-page.js:149 +msgid ". Please contact %1$s if the problem persists." +msgstr "" + +#: website/static/js/pages/base-page.js:148 +msgid "There was a problem removing " +msgstr "" + +#: website/static/js/pages/base-page.js:160 +msgid "Do not add email" +msgstr "" + +#: website/static/js/pages/base-page.js:173 +msgid "Could not remove email" +msgstr "" + +#: website/static/js/pages/base-page.js:198 +msgid "Could not add email" +msgstr "" + +#: website/static/js/pages/base-page.js:291 +msgid " and " +msgstr "" + +#: website/static/js/pages/dashboard-page.js:35 +msgid "Could not set user timezone or locale" +msgstr "" + +#: website/static/js/pages/dashboard-page.js:53 +msgid "" +"This is taking longer than normal.
      Try reloading the page. If the " +"problem persist, please contact us at %1$s" +msgstr "" + +#: website/static/js/pages/file-page.js:21 +msgid "Add a file tag to enhance discoverability" +msgstr "" + +#: website/static/js/pages/file-page.js:23 +#: website/static/js/pages/file-page.js:58 +#: website/static/js/pages/file-page.js:60 +#: website/static/js/pages/project-dashboard-page.js:632 +#: website/static/js/pages/project-dashboard-page.js:716 +#: website/static/js/pages/project-dashboard-page.js:749 +msgid "Removing tag" +msgstr "" + +#: website/static/js/pages/file-page.js:24 +#: website/static/js/pages/project-dashboard-page.js:633 +msgid "Add a tag" +msgstr "" + +#: website/static/js/pages/file-page.js:28 +msgid "Could not add tag." +msgstr "" + +#: website/static/js/pages/file-page.js:29 +#: website/static/js/pages/project-dashboard-page.js:656 +msgid "Failed to add tag" +msgstr "" + +#: website/static/js/pages/file-page.js:43 +msgid "Could not remove tag." +msgstr "" + +#: website/static/js/pages/file-page.js:44 +#: website/static/js/pages/project-dashboard-page.js:692 +msgid "Failed to remove tag" +msgstr "" + +#: website/static/js/pages/file-page.js:90 +msgid "The file title cannot be empty." +msgstr "" + +#: website/static/js/pages/file-page.js:92 +msgid "The file title cannot be more than 100 characters." +msgstr "" + +#: website/static/js/pages/file-page.js:103 +msgid "" +"Your file was successfully renamed. To view the new filename in the file " +"tree below, refresh the page." +msgstr "" + +#: website/static/js/pages/institution-page.js:30 +msgid "All Projects" +msgstr "" + +#: website/static/js/pages/institution-page.js:43 +msgid "" +"This is taking longer than normal.
      Try reloading the page. If the " +"problem persist, please contact us at %1$s." +msgstr "" + +#: website/static/js/pages/notifications-config-page.js:21 +#: website/static/js/pages/project-settings-page.js:33 +msgid "Could not retrieve notification settings." +msgstr "" + +#: website/static/js/pages/profile-settings-addons-page.js:66 +#: website/static/js/pages/project-addons-page.js:15 +msgid "" +"Sorry, we had trouble saving your settings. If this persists please " +"contact " +msgstr "" + +#: website/static/js/pages/profile-settings-addons-page.js:68 +msgid "Request failed" +msgstr "" + +#: website/static/js/pages/profile-settings-addons-page.js:86 +msgid "Are you sure you want to remove the add-ons you have deselected? " +msgstr "" + +#: website/static/js/pages/profile-settings-addons-page.js:129 +msgid "The changes on addon setting are not submitted!" +msgstr "" + +#: website/static/js/pages/project-addons-page.js:10 +msgid "Your add-on settings have been successfully changed." +msgstr "" + +#: website/static/js/pages/project-addons-page.js:26 +msgid "Disable Add-on?" +msgstr "" + +#: website/static/js/pages/project-addons-page.js:27 +msgid "Are you sure you want to disable this add-on?" +msgstr "" + +#: website/static/js/pages/project-addons-page.js:37 +msgid "Disable" +msgstr "" + +#: website/static/js/pages/project-dashboard-page.js:117 +msgid "Filter by users" +msgstr "" + +#: website/static/js/pages/project-dashboard-page.js:118 +msgid "Select from current contributors" +msgstr "" + +#: website/static/js/pages/project-dashboard-page.js:119 +msgid "Select including past contributors" +msgstr "" + +#: website/static/js/pages/project-dashboard-page.js:120 +msgid "Include past project contributors in your search" +msgstr "" + +#: website/static/js/pages/project-dashboard-page.js:121 +msgid "Use dropdown menu" +msgstr "" + +#: website/static/js/pages/project-dashboard-page.js:417 +msgid "Add Component" +msgstr "" + +#: website/static/js/pages/project-dashboard-page.js:419 +msgid "Create new component" +msgstr "" + +#: website/static/js/pages/project-dashboard-page.js:613 +msgid "Error retrieving filebrowser" +msgstr "" + +#: website/static/js/pages/project-dashboard-page.js:630 +msgid "Add a project tag to enhance discoverability" +msgstr "" + +#: website/static/js/pages/project-dashboard-page.js:691 +msgid "Could not remove tag" +msgstr "" + +#: website/static/js/pages/project-settings-page.js:34 +msgid "Could not GET notification settings." +msgstr "" + +#: website/static/js/pages/project-settings-page.js:54 +msgid "Could not retrieve wiki settings." +msgstr "" + +#: website/static/js/pages/project-settings-page.js:55 +msgid "Could not GET wiki settings." +msgstr "" + +#: website/static/js/pages/project-settings-page.js:104 +msgid "Successfully updated settings." +msgstr "" + +#: website/static/js/pages/project-settings-page.js:115 +msgid "Could not set commenting configuration. Please try again." +msgstr "" + +#: website/static/js/pages/project-settings-page.js:151 +msgid "Unable to update settings" +msgstr "" + +#: website/static/js/pages/project-settings-page.js:152 +msgid "Could not update settings." +msgstr "" + +#: website/static/js/pages/rdm-profile-settings-addons-page.js:31 +msgid "Import Account from Admin" +msgstr "" + +#: website/static/js/pages/rdm-profile-settings-addons-page.js:52 +#: website/static/js/pages/rdm-profile-settings-addons-page.js:54 +msgid "Successfully imported the account." +msgstr "" + +#: website/static/js/pages/rdm-profile-settings-addons-page.js:59 +#: website/static/js/pages/rdm-profile-settings-addons-page.js:61 +msgid "Failed to import the account." +msgstr "" + +#: website/static/js/pages/timestamp-common.js:172 +msgid "A verify request is being processed!" +msgstr "" + +#: website/static/js/pages/timestamp-common.js:175 +msgid "Something went wrong with the Verify request." +msgstr "" + +#: website/static/js/pages/timestamp-common.js:191 +msgid "Using the checkbox, please select the files to request timestamp." +msgstr "" + +#: website/static/js/pages/timestamp-common.js:214 +msgid "Timestamp is being added to the selected files!" +msgstr "" + +#: website/static/js/pages/timestamp-common.js:217 +msgid "Something went wrong with the Request Trusted Timestamp request." +msgstr "" + +#: website/static/js/pages/timestamp-common.js:222 +msgid "The task has been cancelled." +msgstr "" + +#: website/static/js/pages/timestamp-common.js:231 +msgid "The task already finished." +msgstr "" + +#: website/static/js/pages/timestamp-common.js:234 +msgid "Something went wrong in the cancel request." +msgstr "" + +#: website/static/js/pages/timestamp-common.js:288 +msgid "Using the checkbox, please select the files to download." +msgstr "" + +#: website/static/js/pages/timestamp-common.js:323 +msgid "Failed to log \"downloaded errors\" into Recent Activity" +msgstr "" + +#: website/static/js/pages/wiki-edit-page.js:64 +msgid "The wiki page name cannot be empty." +msgstr "" + +#: website/static/js/pages/wiki-edit-page.js:66 +msgid "The wiki page name cannot be more than 100 characters." +msgstr "" + +#: website/static/js/pages/wiki-edit-page.js:81 +msgid "Error in renaming wiki" +msgstr "" + +#: website/static/js/pages/wiki-edit-page.js:88 +msgid "An unexpected error occurred. Please try again." +msgstr "" + +#: website/static/js/pages/wiki-edit-page.js:108 +msgid "

      Could not retrieve wiki pages. If this issue persists, " +msgstr "" + +#: website/static/js/pages/wiki-edit-page.js:109 +msgid "please report it to %1$s" +msgstr "" + +#: website/static/js/pages/wiki-edit-page.js:110 +msgid "Could not GET wiki menu pages" +msgstr "" + +#~ msgid "${user}updated file ${path} in Dropbox in ${node}" +#~ msgstr "" + +#~ msgid "${user}updated file ${path} in Dropbox Business in ${node}" +#~ msgstr "" + +#: addons/myscreen/static/widget-cfg.js:22 +msgid "My Screen Param1 Label" +msgstr "" diff --git a/ScreenExpansion/osf.io/website/translations/en/LC_MESSAGES/messages.po b/ScreenExpansion/osf.io/website/translations/en/LC_MESSAGES/messages.po new file mode 100644 index 0000000..6bce498 --- /dev/null +++ b/ScreenExpansion/osf.io/website/translations/en/LC_MESSAGES/messages.po @@ -0,0 +1,3778 @@ +# English translations for . +# Copyright (C) 2020 ORGANIZATION +# This file is distributed under the same license as the project. +# FIRST AUTHOR , 2020. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: 0.6.0\n" +"Report-Msgid-Bugs-To: rocs-office@nii.ac.jp\n" +"POT-Creation-Date: 2020-07-02 20:20+0900\n" +"PO-Revision-Date: 2020-07-02 20:20+0900\n" +"Last-Translator: Takuya Ishibashi\n" +"Language: en\n" +"Language-Team: RCOS \n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.7.0\n" + +#: addons/azureblobstorage/templates/azureblobstorage_credentials_modal.mako:6 +msgid "Connect an Azure Blob Storage Account" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_credentials_modal.mako:17 +msgid "Account Name" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_credentials_modal.mako:21 +msgid "Account Key" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_credentials_modal.mako:36 +#: addons/azureblobstorage/templates/azureblobstorage_node_settings.mako:77 +#: addons/dataverse/templates/dataverse_credentials_modal.mako:75 +#: addons/gitlab/templates/gitlab_credentials_modal.mako:55 +#: addons/jupyterhub/templates/jupyterhub_node_settings.mako:99 +#: addons/nextcloud/templates/nextcloud_credentials_modal.mako:71 +#: addons/nextcloud/templates/nextcloud_node_settings.mako:72 +#: addons/owncloud/templates/owncloud_credentials_modal.mako:71 +#: addons/owncloud/templates/owncloud_node_settings.mako:72 +#: addons/s3/templates/s3_credentials_modal.mako:36 +#: addons/s3/templates/s3_node_settings.mako:77 +#: addons/s3compat/templates/s3compat_credentials_modal.mako:40 +#: addons/s3compat/templates/s3compat_node_settings.mako:77 +#: addons/swift/templates/swift_credentials_modal.mako:56 +#: addons/swift/templates/swift_node_settings.mako:77 +#: addons/weko/templates/weko_credentials_modal.mako:57 +#: addons/wiki/templates/add_wiki_page.mako:17 +#: addons/wiki/templates/delete_wiki_page.mako:13 +#: addons/zotero/templates/zotero_node_settings.mako:83 +#: addons/zotero/templates/zotero_node_settings.mako:127 +#: website/templates/include/comment_pane_template.mako:32 +#: website/templates/include/comment_template.mako:91 +#: website/templates/include/comment_template.mako:141 +#: website/templates/include/comment_template.mako:148 +#: website/templates/include/comment_template.mako:170 +#: website/templates/profile/oauth_app_detail.mako:84 +#: website/templates/profile/personal_tokens_detail.mako:49 +#: website/templates/project/addon/node_settings_default.mako:72 +#: website/templates/project/modal_add_contributor.mako:340 +#: website/templates/project/modal_generate_private_link.mako:86 +#: website/templates/project/modal_remove_contributor.mako:95 +#: website/templates/project/modal_remove_contributor.mako:104 +#: website/templates/project/modal_remove_contributor.mako:113 +#: website/templates/project/modal_remove_contributor.mako:122 +#: website/templates/project/nodes_delete.mako:89 +#: website/templates/project/nodes_privacy.mako:104 +#: website/templates/project/project.mako:568 +#: website/templates/project/settings.mako:131 +#: website/templates/project/timestamp.mako:71 +#: website/templates/util/render_addon_widget.mako:98 +msgid "Cancel" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_credentials_modal.mako:39 +#: addons/azureblobstorage/templates/azureblobstorage_node_settings.mako:79 +#: addons/dataverse/templates/dataverse_credentials_modal.mako:78 +#: addons/dataverse/templates/dataverse_node_settings.mako:118 +#: addons/forward/templates/forward_node_settings.mako:36 +#: addons/github/templates/github_node_settings.mako:54 +#: addons/gitlab/templates/gitlab_credentials_modal.mako:57 +#: addons/gitlab/templates/gitlab_node_settings.mako:64 +#: addons/jupyterhub/templates/jupyterhub_node_settings.mako:18 +#: addons/nextcloud/templates/nextcloud_credentials_modal.mako:74 +#: addons/nextcloud/templates/nextcloud_node_settings.mako:74 +#: addons/owncloud/templates/owncloud_credentials_modal.mako:74 +#: addons/owncloud/templates/owncloud_node_settings.mako:74 +#: addons/s3/templates/s3_credentials_modal.mako:39 +#: addons/s3/templates/s3_node_settings.mako:79 +#: addons/s3compat/templates/s3compat_credentials_modal.mako:43 +#: addons/s3compat/templates/s3compat_node_settings.mako:79 +#: addons/swift/templates/swift_credentials_modal.mako:59 +#: addons/swift/templates/swift_node_settings.mako:79 +#: addons/weko/templates/weko_node_settings.mako:83 +#: addons/wiki/templates/edit.mako:189 +#: addons/zotero/templates/zotero_node_settings.mako:85 +#: addons/zotero/templates/zotero_node_settings.mako:129 +#: website/templates/claim_account.mako:112 +#: website/templates/include/comment_template.mako:93 +#: website/templates/include/profile/jobs.mako:117 +#: website/templates/include/profile/jobs.mako:120 +#: website/templates/include/profile/names.mako:76 +#: website/templates/include/profile/names.mako:79 +#: website/templates/include/profile/schools.mako:117 +#: website/templates/include/profile/schools.mako:120 +#: website/templates/include/profile/social.mako:143 +#: website/templates/include/profile/social.mako:146 +#: website/templates/profile/oauth_app_detail.mako:88 +#: website/templates/profile/personal_tokens_detail.mako:55 +#: website/templates/project/addon/node_settings_default.mako:74 +#: website/templates/project/addon/user_settings.mako:13 +#: website/templates/project/project.mako:570 +#: website/templates/project/settings.mako:338 +msgid "Save" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_node_settings.mako:14 +#: addons/azureblobstorage/templates/azureblobstorage_user_settings.mako:18 +#: addons/bitbucket/templates/bitbucket_node_settings.mako:15 +#: addons/dataverse/templates/dataverse_node_settings.mako:15 +#: addons/dataverse/templates/dataverse_user_settings.mako:18 +#: addons/github/templates/github_node_settings.mako:15 +#: addons/gitlab/templates/gitlab_node_settings.mako:18 +#: addons/gitlab/templates/gitlab_user_settings.mako:18 +#: addons/nextcloud/templates/nextcloud_node_settings.mako:15 +#: addons/nextcloud/templates/nextcloud_user_settings.mako:18 +#: addons/owncloud/templates/owncloud_node_settings.mako:15 +#: addons/owncloud/templates/owncloud_user_settings.mako:18 +#: addons/s3/templates/s3_node_settings.mako:14 +#: addons/s3/templates/s3_user_settings.mako:18 +#: addons/s3compat/templates/s3compat_node_settings.mako:14 +#: addons/s3compat/templates/s3compat_user_settings.mako:18 +#: addons/swift/templates/swift_node_settings.mako:14 +#: addons/swift/templates/swift_user_settings.mako:18 +#: addons/weko/templates/weko_node_settings.mako:15 +#: addons/weko/templates/weko_user_settings.mako:18 +#: addons/zotero/templates/zotero_node_settings.mako:10 +#: website/templates/profile/user_settings_default.mako:14 +#: website/templates/project/addon/node_settings_default.mako:10 +msgid "Disconnect Account" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_node_settings.mako:21 +#: addons/bitbucket/templates/bitbucket_node_settings.mako:21 +#: addons/dataverse/templates/dataverse_node_settings.mako:22 +#: addons/github/templates/github_node_settings.mako:21 +#: addons/gitlab/templates/gitlab_node_settings.mako:24 +#: addons/nextcloud/templates/nextcloud_node_settings.mako:22 +#: addons/owncloud/templates/owncloud_node_settings.mako:22 +#: addons/s3/templates/s3_node_settings.mako:21 +#: addons/s3compat/templates/s3compat_node_settings.mako:21 +#: addons/swift/templates/swift_node_settings.mako:21 +#: addons/weko/templates/weko_node_settings.mako:22 +#: addons/zotero/templates/zotero_node_settings.mako:17 +#: website/templates/project/addon/node_settings_default.mako:17 +msgid "Import Account from Profile" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_node_settings.mako:28 +#: addons/s3/templates/s3_node_settings.mako:28 +#: addons/s3compat/templates/s3compat_node_settings.mako:28 +#: addons/swift/templates/swift_node_settings.mako:28 +#: addons/zotero/templates/zotero_node_settings.mako:24 +#: website/templates/project/addon/node_settings_default.mako:24 +msgid "Loading ..." +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_node_settings.mako:35 +#: addons/dataverse/templates/dataverse_node_settings.mako:29 +#: addons/nextcloud/templates/nextcloud_node_settings.mako:29 +#: addons/owncloud/templates/owncloud_node_settings.mako:29 +#: addons/s3/templates/s3_node_settings.mako:35 +#: addons/s3compat/templates/s3compat_node_settings.mako:35 +#: addons/swift/templates/swift_node_settings.mako:35 +#: addons/weko/templates/weko_node_settings.mako:29 +msgid "Connect Account" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_node_settings.mako:50 +#: addons/bitbucket/templates/bitbucket_node_settings.mako:65 +#: addons/github/templates/github_node_settings.mako:62 +#: addons/gitlab/templates/gitlab_node_settings.mako:71 +#: addons/owncloud/templates/owncloud_node_settings.mako:47 +#: addons/s3/templates/s3_node_settings.mako:50 +#: addons/s3compat/templates/s3compat_node_settings.mako:50 +#: addons/swift/templates/swift_node_settings.mako:50 +#: addons/weko/templates/weko_node_settings.mako:49 +#: addons/zotero/templates/zotero_node_settings.mako:46 +#: addons/zotero/templates/zotero_node_settings.mako:101 +#: website/templates/project/addon/node_settings_default.mako:46 +#: website/templates/project/project.mako:202 +msgid "None" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_node_settings.mako:58 +#: addons/swift/templates/swift_node_settings.mako:58 +msgid "Create container" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_node_settings.mako:63 +#: addons/swift/templates/swift_node_settings.mako:63 +msgid "Loading containers..." +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_node_settings.mako:72 +#: addons/nextcloud/templates/nextcloud_node_settings.mako:67 +#: addons/owncloud/templates/owncloud_node_settings.mako:67 +#: addons/s3/templates/s3_node_settings.mako:72 +#: addons/s3compat/templates/s3compat_node_settings.mako:72 +#: addons/swift/templates/swift_node_settings.mako:72 +#: addons/zotero/templates/zotero_node_settings.mako:122 +#: website/templates/project/addon/node_settings_default.mako:67 +#, python-format +msgid "Connect %(folderName)s?" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_user_settings.mako:12 +#: addons/dataverse/templates/dataverse_user_settings.mako:12 +#: addons/gitlab/templates/gitlab_user_settings.mako:12 +#: addons/nextcloud/templates/nextcloud_user_settings.mako:12 +#: addons/owncloud/templates/owncloud_user_settings.mako:12 +#: addons/s3/templates/s3_user_settings.mako:12 +#: addons/s3compat/templates/s3compat_user_settings.mako:12 +#: addons/swift/templates/swift_user_settings.mako:12 +#: addons/weko/templates/weko_user_settings.mako:12 +#: website/templates/profile/user_settings_default.mako:9 +msgid "Connect or Reauthorize Account" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_user_settings.mako:24 +#, python-format +msgid "Authorized by %(userName)s" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_user_settings.mako:32 +#: addons/dataverse/templates/dataverse_user_settings.mako:31 +#: addons/gitlab/templates/gitlab_user_settings.mako:31 +#: addons/nextcloud/templates/nextcloud_user_settings.mako:31 +#: addons/owncloud/templates/owncloud_user_settings.mako:31 +#: addons/s3/templates/s3_user_settings.mako:32 +#: addons/s3compat/templates/s3compat_user_settings.mako:32 +#: addons/swift/templates/swift_user_settings.mako:32 +#: addons/weko/templates/weko_user_settings.mako:31 +#: website/templates/profile/user_settings_default.mako:28 +msgid "Private project" +msgstr "" + +#: addons/azureblobstorage/templates/azureblobstorage_user_settings.mako:36 +#: addons/s3/templates/s3_user_settings.mako:36 +#: addons/s3compat/templates/s3compat_user_settings.mako:36 +#: addons/swift/templates/swift_user_settings.mako:36 +#: addons/weko/templates/weko_user_settings.mako:35 +#: website/templates/profile/user_settings_default.mako:32 +msgid "disconnect Project" +msgstr "" + +#: addons/base/models.py:461 +msgid "" +"Because you have not configured the {addon} add-on, your authentication " +"will not be transferred to the forked {category}. You may authorize and " +"configure the {addon} add-on in the new fork on the settings page." +msgstr "" + +#: addons/base/models.py:469 +msgid "" +"Because you have authorized the {addon} add-on for this {category}, " +"forking it will also transfer your authentication to the forked " +"{category}." +msgstr "" + +#: addons/base/models.py:476 +msgid "" +"Because the {addon} add-on has been authorized by a different user, " +"forking it will not transfer authentication to the forked {category}. You" +" may authorize and configure the {addon} add-on in the new fork on the " +"settings page." +msgstr "" + +#: addons/bitbucket/templates/bitbucket_node_settings.mako:25 +#: addons/github/templates/github_node_settings.mako:25 +#: addons/gitlab/templates/gitlab_node_settings.mako:28 +#: addons/zotero/templates/zotero_node_settings.mako:31 +#: website/templates/project/addon/node_settings_default.mako:31 +msgid "Connect Account" +msgstr "" + +#: addons/bitbucket/templates/bitbucket_node_settings.mako:74 +#: addons/github/templates/github_node_settings.mako:71 +#, python-format +msgid "" +"Could not retrieve %(addonName)s settings at this time. The %(addonName)s" +" addon credentials may no longer be valid. Try " +"deauthorizing and reauthorizing %(addonName)s on your account settings page." +msgstr "" + +#: addons/bitbucket/templates/bitbucket_node_settings.mako:78 +#: addons/github/templates/github_node_settings.mako:75 +#, python-format +msgid "" +"Could not retrieve %(addonName)s settings at this time. The %(addonName)s" +" addon credentials may no longer be valid. Contact " +"%(authOsfName)s to verify." +msgstr "" + +#: addons/dataverse/templates/dataverse_credentials_modal.mako:6 +msgid "Connect a Dataverse Account" +msgstr "" + +#: addons/dataverse/templates/dataverse_credentials_modal.mako:18 +msgid "Dataverse Repository" +msgstr "" + +#: addons/dataverse/templates/dataverse_credentials_modal.mako:22 +msgid "Select a Dataverse repository" +msgstr "" + +#: addons/dataverse/templates/dataverse_credentials_modal.mako:35 +msgid "Only Dataverse repositories v4.0 or higher are supported." +msgstr "" + +#: addons/dataverse/templates/dataverse_credentials_modal.mako:46 +msgid "API Token" +msgstr "" + +#: addons/dataverse/templates/dataverse_credentials_modal.mako:50 +#, python-format +msgid "(Get from Dataverse %(dataverseLink)s)" +msgstr "" + +#: addons/dataverse/templates/dataverse_node_settings.mako:43 +msgid "Dataverse Repository:" +msgstr "" + +#: addons/dataverse/templates/dataverse_node_settings.mako:49 +msgid "Current Dataset:" +msgstr "" + +#: addons/dataverse/templates/dataverse_node_settings.mako:65 +msgid "The current dataset was not found on Dataverse." +msgstr "" + +#: addons/dataverse/templates/dataverse_node_settings.mako:74 +msgid "Dataverse:" +msgstr "" + +#: addons/dataverse/templates/dataverse_node_settings.mako:86 +msgid "Dataset:" +msgstr "" + +#: addons/dataverse/templates/dataverse_node_settings.mako:97 +msgid "No datasets available." +msgstr "" + +#: addons/dataverse/templates/dataverse_node_settings.mako:103 +msgid "Retrieving datasets..." +msgstr "" + +#: addons/dataverse/templates/dataverse_node_settings.mako:110 +msgid "" +"There are no dataverses, datasets, or files associated with the connected" +" account." +msgstr "" + +#: addons/dataverse/templates/dataverse_user_settings.mako:23 +#: addons/gitlab/templates/gitlab_user_settings.mako:23 +#, python-format +msgid "Authorized on %(addonHost)s" +msgstr "" + +#: addons/forward/templates/forward_node_settings.mako:14 +msgid "Send people who visit your GakuNin RDM project page to this link instead" +msgstr "" + +#: addons/forward/templates/forward_node_settings.mako:19 +msgid "Label" +msgstr "" + +#: addons/forward/templates/forward_node_settings.mako:24 +#: website/templates/profile/oauth_app_detail.mako:67 +#: website/templates/project/settings.mako:108 +msgid "Optional" +msgstr "" + +#: addons/github/templates/github_node_settings.mako:38 +#: addons/gitlab/templates/gitlab_node_settings.mako:42 +msgid "Current Repo: " +msgstr "" + +#: addons/github/templates/github_node_settings.mako:56 +msgid "Create Repo" +msgstr "" + +#: addons/gitlab/templates/gitlab_credentials_modal.mako:4 +msgid "Connect a GitLab Account" +msgstr "" + +#: addons/gitlab/templates/gitlab_credentials_modal.mako:11 +msgid "GitLab Repository" +msgstr "" + +#: addons/gitlab/templates/gitlab_credentials_modal.mako:14 +msgid "Select a GitLab repository" +msgstr "" + +#: addons/gitlab/templates/gitlab_credentials_modal.mako:27 +msgid "Only GitLab repositories v4.0 or higher are supported." +msgstr "" + +#: addons/gitlab/templates/gitlab_credentials_modal.mako:37 +msgid "Personal Access Token" +msgstr "" + +#: addons/gitlab/templates/gitlab_credentials_modal.mako:41 +#, python-format +msgid "(Get from GitLab %(externalLinkIcon)s)" +msgstr "" + +#: addons/gitlab/templates/gitlab_node_settings.mako:9 +msgid "GitLab" +msgstr "" + +#: addons/gitlab/templates/gitlab_node_settings.mako:12 +msgid "authorized by" +msgstr "" + +#: addons/gitlab/templates/gitlab_node_settings.mako:80 +#, python-format +msgid "" +"Could not retrieve %(addonName)s settings at this time. The %(addonName)s" +" addon credentials may no longer be valid. Try " +"deauthorizing and reauthorizing %(addonName)s on your " +"account settings page." +msgstr "" + +#: addons/gitlab/templates/gitlab_node_settings.mako:84 +#, python-format +msgid "" +"Could not retrieve %(addonName)s settings at this time. The %(addonName)s" +" addon credentials may no longer be valid. Contact " +"%(authOsfName)s to verify." +msgstr "" + +#: addons/jupyterhub/templates/jupyterhub_node_settings.mako:13 +#: addons/wiki/templates/edit.mako:34 +msgid "New" +msgstr "" + +#: addons/jupyterhub/templates/jupyterhub_node_settings.mako:31 +#: addons/jupyterhub/templates/jupyterhub_node_settings.mako:80 +msgid "Service Name" +msgstr "" + +#: addons/jupyterhub/templates/jupyterhub_node_settings.mako:32 +msgid "Base URL" +msgstr "" + +#: addons/jupyterhub/templates/jupyterhub_node_settings.mako:56 +msgid "No JupyterHubs" +msgstr "" + +#: addons/jupyterhub/templates/jupyterhub_node_settings.mako:69 +msgid "Link JupyterHub" +msgstr "" + +#: addons/jupyterhub/templates/jupyterhub_node_settings.mako:84 +msgid "Service Base URL" +msgstr "" + +#: addons/jupyterhub/templates/jupyterhub_node_settings.mako:102 +msgid "OK" +msgstr "" + +#: addons/nextcloud/templates/nextcloud_credentials_modal.mako:6 +msgid "Connect an Nextcloud Account" +msgstr "" + +#: addons/nextcloud/templates/nextcloud_credentials_modal.mako:17 +msgid "Nextcloud Instance" +msgstr "" + +#: addons/nextcloud/templates/nextcloud_credentials_modal.mako:21 +msgid "Select an Nextcloud Instance" +msgstr "" + +#: addons/nextcloud/templates/nextcloud_credentials_modal.mako:30 +#: addons/owncloud/templates/owncloud_credentials_modal.mako:30 +msgid "Host URL" +msgstr "" + +#: addons/nextcloud/templates/nextcloud_credentials_modal.mako:36 +#, python-format +msgid "" +"Only Nextcloud instances supporting WebDAV and OCS v1.7 are " +"supported." +msgstr "" + +#: addons/nextcloud/templates/nextcloud_credentials_modal.mako:46 +#: addons/owncloud/templates/owncloud_credentials_modal.mako:46 +#: addons/swift/templates/swift_credentials_modal.mako:33 +msgid "Username" +msgstr "" + +#: addons/nextcloud/templates/nextcloud_credentials_modal.mako:48 +#: addons/owncloud/templates/owncloud_credentials_modal.mako:48 +#: website/templates/include/profile/social.mako:66 +msgid "username" +msgstr "" + +#: addons/nextcloud/templates/nextcloud_credentials_modal.mako:50 +#: addons/owncloud/templates/owncloud_credentials_modal.mako:50 +#: addons/swift/templates/swift_credentials_modal.mako:41 +msgid "Password" +msgstr "" + +#: addons/nextcloud/templates/nextcloud_credentials_modal.mako:55 +#, python-format +msgid "" +"These credentials will be encrypted. However, we strongly " +"encourage using a Device (or App) " +"Password." +msgstr "" + +#: addons/nextcloud/templates/nextcloud_node_settings.mako:53 +#: addons/owncloud/templates/owncloud_node_settings.mako:53 +msgid "Change" +msgstr "" + +#: addons/nextcloud/templates/nextcloud_node_settings.mako:58 +#: addons/owncloud/templates/owncloud_node_settings.mako:58 +#: addons/zotero/templates/zotero_node_settings.mako:113 +#: website/templates/project/addon/node_settings_default.mako:58 +msgid "Loading folders..." +msgstr "" + +#: addons/nextcloud/templates/nextcloud_user_settings.mako:23 +#: addons/owncloud/templates/owncloud_user_settings.mako:23 +#, python-format +msgid "Authorized by %(userName)s on %(profilePage)s" +msgstr "" + +#: addons/owncloud/templates/owncloud_credentials_modal.mako:6 +msgid "Connect an ownCloud Account" +msgstr "" + +#: addons/owncloud/templates/owncloud_credentials_modal.mako:17 +msgid "ownCloud Instance" +msgstr "" + +#: addons/owncloud/templates/owncloud_credentials_modal.mako:21 +msgid "Select an ownCloud Instance" +msgstr "" + +#: addons/owncloud/templates/owncloud_credentials_modal.mako:36 +#, python-format +msgid "" +"Only ownCloud instances supporting WebDAV and OCS v1.7 are " +"supported." +msgstr "" + +#: addons/owncloud/templates/owncloud_credentials_modal.mako:55 +#, python-format +msgid "" +" These credentials will be encrypted. However, we strongly " +"encourage using a Device (or App) " +"Password." +msgstr "" + +#: addons/owncloud/templates/owncloud_node_settings.mako:42 +#: website/templates/project/addon/node_settings_default.mako:41 +msgid "Current Folder:" +msgstr "" + +#: addons/s3/templates/s3_credentials_modal.mako:6 +msgid "Connect an Amazon S3 Account" +msgstr "" + +#: addons/s3/templates/s3_credentials_modal.mako:17 +#: addons/s3compat/templates/s3compat_credentials_modal.mako:21 +msgid "Access Key" +msgstr "" + +#: addons/s3/templates/s3_credentials_modal.mako:21 +#: addons/s3compat/templates/s3compat_credentials_modal.mako:25 +msgid "Secret Key" +msgstr "" + +#: addons/s3/templates/s3_node_settings.mako:58 +#: addons/s3compat/templates/s3compat_node_settings.mako:58 +msgid "Create bucket" +msgstr "" + +#: addons/s3/templates/s3_node_settings.mako:63 +msgid "Loading buckets..." +msgstr "" + +#: addons/s3/templates/s3_user_settings.mako:24 +#: addons/s3compat/templates/s3compat_user_settings.mako:24 +#: addons/swift/templates/swift_user_settings.mako:24 +#: addons/weko/templates/weko_user_settings.mako:23 +#: website/templates/profile/user_settings_default.mako:20 +msgid "Authorized by " +msgstr "" + +#: addons/s3compat/templates/s3compat_credentials_modal.mako:6 +msgid "Connect an S3 Compatible Storage Account" +msgstr "" + +#: addons/s3compat/templates/s3compat_credentials_modal.mako:17 +msgid "S3 Compatible Service" +msgstr "" + +#: addons/s3compat/templates/s3compat_node_settings.mako:45 +msgid "Current Bucket:" +msgstr "" + +#: addons/swift/templates/swift_credentials_modal.mako:6 +msgid "Connect an OpenStack Swift Account" +msgstr "" + +#: addons/swift/templates/swift_credentials_modal.mako:17 +msgid "Authentication(Keystone) Version" +msgstr "" + +#: addons/swift/templates/swift_credentials_modal.mako:21 +msgid "Authentication URL" +msgstr "" + +#: addons/swift/templates/swift_credentials_modal.mako:25 +msgid "Tenant name" +msgstr "" + +#: addons/swift/templates/swift_credentials_modal.mako:29 +msgid "Project Domain name" +msgstr "" + +#: addons/swift/templates/swift_credentials_modal.mako:37 +msgid "User Domain name" +msgstr "" + +#: addons/swift/templates/swift_node_settings.mako:45 +msgid "Current Container:" +msgstr "" + +#: addons/twofactor/templates/twofactor_user_settings.mako:3 +msgid "Two-factor Authentication" +msgstr "" + +#: addons/twofactor/templates/twofactor_user_settings.mako:7 +msgid "Disable Two-Factor Authentication" +msgstr "" + +#: addons/twofactor/templates/twofactor_user_settings.mako:12 +msgid "Enable Two-Factor Authentication" +msgstr "" + +#: addons/twofactor/templates/twofactor_user_settings.mako:19 +msgid "" +"By using two-factor authentication, you'll protect your GakuNin RDM " +"account with both your password and your mobile phone." +msgstr "" + +#: addons/twofactor/templates/twofactor_user_settings.mako:22 +msgid "Important: " +msgstr "" + +#: addons/twofactor/templates/twofactor_user_settings.mako:22 +msgid "" +" If you lose access to your mobile device, you will not be able to log in" +" to your GakuNin RDM account." +msgstr "" + +#: addons/twofactor/templates/twofactor_user_settings.mako:24 +#, python-format +msgid "" +"To use, you must install an appropriate application on your mobile " +"device. Google Authenticator is a popular choice and is available for " +"both Android and iOS." +msgstr "" + +#: addons/twofactor/templates/twofactor_user_settings.mako:26 +msgid "" +"Once verified, your device will display a six-digit code that must be " +"entered during the login process. This code changes every few seconds, " +"which means that unauthorized users will not be able to log in to you " +"account, even if they know your password." +msgstr "" + +#: addons/twofactor/templates/twofactor_user_settings.mako:28 +#, python-format +msgid "" +"Scan the image below, or enter the secret key %(secretKey)s into " +"your authentication device." +msgstr "" + +#: addons/twofactor/templates/twofactor_user_settings.mako:34 +msgid "Enter your verification code:" +msgstr "" + +#: addons/weko/templates/weko_credentials_modal.mako:6 +msgid "Connect a WEKO Account" +msgstr "" + +#: addons/weko/templates/weko_credentials_modal.mako:18 +msgid "WEKO Repository" +msgstr "" + +#: addons/weko/templates/weko_credentials_modal.mako:22 +msgid "Select a WEKO repository" +msgstr "" + +#: addons/weko/templates/weko_credentials_modal.mako:33 +msgid "WEKO SWORD URL" +msgstr "" + +#: addons/weko/templates/weko_credentials_modal.mako:37 +msgid "WEKO Username" +msgstr "" + +#: addons/weko/templates/weko_credentials_modal.mako:41 +msgid "WEKO Password" +msgstr "" + +#: addons/weko/templates/weko_credentials_modal.mako:60 +msgid "Connect" +msgstr "" + +#: addons/weko/templates/weko_node_settings.mako:43 +msgid "Current Index:" +msgstr "" + +#: addons/weko/templates/weko_node_settings.mako:63 +msgid "Index:" +msgstr "" + +#: addons/weko/templates/weko_node_settings.mako:75 +msgid "There are no indices associated with the connected account." +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:8 +msgid "Add new wiki page" +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:12 +msgid "New Wiki Name" +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:18 +#: addons/wiki/templates/add_wiki_page.mako:44 +#: addons/wiki/templates/add_wiki_page.mako:49 +#: addons/wiki/templates/add_wiki_page.mako:55 +#: addons/wiki/templates/add_wiki_page.mako:94 +#: website/templates/project/contributors.mako:57 +#: website/templates/project/contributors.mako:164 +#: website/templates/project/contributors.mako:337 +#: website/templates/project/contributors.mako:385 +#: website/templates/project/modal_add_contributor.mako:346 +#: website/templates/project/modal_add_contributor.mako:350 +#: website/templates/project/modal_add_contributor.mako:356 +#: website/templates/project/settings.mako:209 +#: website/templates/project/settings.mako:522 +msgid "Add" +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:38 +msgid "Creating new wiki page" +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:41 +msgid "The new wiki page name cannot be empty" +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:46 +msgid "The new wiki page name cannot be more than 100 characters." +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:52 +msgid "The new wiki page name cannot contain forward slashes." +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:70 +msgid "A wiki page with that name already exists." +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:73 +msgid "You do not have permission to perform this action." +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:74 +msgid "Unauthorized user can view wiki add button" +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:83 +msgid "Could not validate wiki page. Please try again." +msgstr "" + +#: addons/wiki/templates/add_wiki_page.mako:84 +msgid "Error occurred while validating page" +msgstr "" + +#: addons/wiki/templates/delete_wiki_page.mako:7 +msgid "Delete wiki page" +msgstr "" + +#: addons/wiki/templates/delete_wiki_page.mako:10 +msgid "Are you sure you want to delete this wiki page?" +msgstr "" + +#: addons/wiki/templates/delete_wiki_page.mako:14 +#: addons/wiki/templates/edit.mako:38 +#: website/templates/include/comment_template.mako:149 +#: website/templates/profile/personal_tokens_detail.mako:53 +#: website/templates/project/nodes_delete.mako:91 +#: website/templates/util/render_node.mako:74 +msgid "Delete" +msgstr "" + +#: addons/wiki/templates/edit.mako:2 +#: website/templates/include/comment_pane_template.mako:19 +#: website/templates/project/settings.mako:36 +#: website/templates/project/settings.mako:257 +#: website/templates/search.mako:278 website/templates/search.mako:370 +#: website/templates/search_grdm.mako:405 +#: website/templates/search_grdm.mako:581 +msgid "Wiki" +msgstr "" + +#: addons/wiki/templates/edit.mako:42 +msgid "Menu" +msgstr "" + +#: addons/wiki/templates/edit.mako:53 +msgid "Loading wiki pages..." +msgstr "" + +#: addons/wiki/templates/edit.mako:75 addons/wiki/templates/edit.mako:82 +msgid "View" +msgstr "" + +#: addons/wiki/templates/edit.mako:88 +msgid "Wiki Version:" +msgstr "" + +#: addons/wiki/templates/edit.mako:92 +msgid "Preview" +msgstr "" + +#: addons/wiki/templates/edit.mako:95 addons/wiki/templates/edit.mako:218 +msgid "(Current)" +msgstr "" + +#: addons/wiki/templates/edit.mako:97 addons/wiki/templates/edit.mako:220 +msgid "Current" +msgstr "" + +#: addons/wiki/templates/edit.mako:117 +#: website/templates/util/render_addon_widget.mako:24 +msgid "Add important information, links, or images here to describe your project." +msgstr "" + +#: addons/wiki/templates/edit.mako:126 addons/wiki/templates/edit.mako:134 +#: website/templates/include/profile/schools.mako:180 +#: website/templates/include/profile/social.mako:184 +#: website/templates/project/project.mako:539 +msgid "Edit" +msgstr "" + +#: addons/wiki/templates/edit.mako:174 +msgid "Loading. . ." +msgstr "" + +#: addons/wiki/templates/edit.mako:186 +msgid "Revert" +msgstr "" + +#: addons/wiki/templates/edit.mako:205 addons/wiki/templates/edit.mako:212 +msgid "Compare" +msgstr "" + +#: addons/wiki/templates/edit.mako:215 +msgid " to" +msgstr "" + +#: addons/wiki/templates/edit.mako:257 +msgid "Page permissions have changed" +msgstr "" + +#: addons/wiki/templates/edit.mako:260 +msgid "Your browser should refresh shortly" +msgstr "" + +#: addons/wiki/templates/edit.mako:273 +msgid "Renaming wiki..." +msgstr "" + +#: addons/wiki/templates/edit.mako:283 +msgid "Wiki page deleted" +msgstr "" + +#: addons/wiki/templates/edit.mako:286 +msgid "Press Confirm to return to the project wiki home page." +msgstr "" + +#: addons/wiki/templates/edit.mako:289 +msgid "Confirm" +msgstr "" + +#: addons/wiki/templates/edit.mako:300 +msgid "Connected to the collaborative wiki" +msgstr "" + +#: addons/wiki/templates/edit.mako:304 +msgid "" +"This page is currently connected to the collaborative wiki. All edits " +"made will be visible to contributors with write permission in " +"real time. Changes will be stored but not published until you " +"click the \"Save\" button." +msgstr "" + +#: addons/wiki/templates/edit.mako:310 +#: addons/wiki/templates/wiki-bar-modal-help.mako:14 +#: website/templates/profile/modal_change_avatar.mako:20 +#: website/templates/project/view_file.mako:117 +#: website/templates/project/view_file.mako:137 +#: website/templates/project/view_file.mako:157 +#: website/templates/project/view_file.mako:177 +#: website/templates/search_bar_help_modal.mako:18 +msgid "Close" +msgstr "" + +#: addons/wiki/templates/edit.mako:321 +msgid "Connecting to the collaborative wiki" +msgstr "" + +#: addons/wiki/templates/edit.mako:325 +msgid "" +"This page is currently attempting to connect to the collaborative wiki. " +"You may continue to make edits." +msgstr "" + +#: addons/wiki/templates/edit.mako:326 addons/wiki/templates/edit.mako:343 +#: addons/wiki/templates/edit.mako:360 +#: website/templates/project/view_file.mako:133 +#: website/templates/project/view_file.mako:153 +#: website/templates/project/view_file.mako:173 +msgid "Changes will not be saved until you press the \"Save\" button." +msgstr "" + +#: addons/wiki/templates/edit.mako:338 +msgid "Collaborative wiki is unavailable" +msgstr "" + +#: addons/wiki/templates/edit.mako:342 +msgid "" +"The collaborative wiki is currently unavailable. You may continue to make" +" edits." +msgstr "" + +#: addons/wiki/templates/edit.mako:355 +#: website/templates/project/view_file.mako:168 +msgid "Browser unsupported" +msgstr "" + +#: addons/wiki/templates/edit.mako:359 +#: website/templates/project/view_file.mako:172 +msgid "" +"Your browser does not support collaborative editing. You may continue to " +"make edits." +msgstr "" + +#: addons/wiki/templates/status.mako:7 +msgid "Note: Home page cannot be renamed." +msgstr "" + +#: addons/wiki/templates/status.mako:9 +msgid "Home" +msgstr "" + +#: addons/wiki/templates/wiki-bar-modal-help.mako:6 +msgid "Wiki syntax help" +msgstr "" + +#: addons/wiki/templates/wiki-bar-modal-help.mako:10 +#, python-format +msgid "" +"The wiki uses the Markdown syntax. For more " +"information and examples, go to our Guides." +msgstr "" + +#: addons/zotero/templates/zotero_node_settings.mako:41 +msgid "Current Library:" +msgstr "" + +#: addons/zotero/templates/zotero_node_settings.mako:59 +msgid "Loading libraries..." +msgstr "" + +#: addons/zotero/templates/zotero_node_settings.mako:66 +msgid "Libraries" +msgstr "" + +#: addons/zotero/templates/zotero_node_settings.mako:69 +msgid "Select" +msgstr "" + +#: website/templates/base.mako:110 +msgid "Title" +msgstr "" + +#: website/templates/base.mako:111 +msgid "Date Merged" +msgstr "" + +#: website/templates/base.mako:134 +msgid "WARNING: This site is running in development mode." +msgstr "" + +#: website/templates/base.mako:145 +msgid "" +"OSF does not support the use of Internet Explorer. For optimal " +"performance, please switch to another browser." +msgstr "" + +#: website/templates/base.mako:148 website/templates/base.mako:161 +msgid "Accept" +msgstr "" + +#: website/templates/base.mako:154 +#, python-format +msgid "" +"The National Institute of Informatics (NII) uses cookies to operate the " +"NII Research Data Cloud service and to improve your user experience." +" If you intend to use the GakuNin RDM, please read our " +"Privacy Policy and information on NII use of cookies. By clicking " +"Accept or continuing to use our website, you consent to the cookies use " +"on this site. If you do not agree with the cookies use, " +"please change your browser settings to disable cookies or stop using our " +"website. Please be aware that you may not be able to use" +" some functions on our website when you have cookies disabled." +msgstr "" + +#: website/templates/base.mako:172 +msgid "Start managing your projects on the GakuNin RDM today." +msgstr "" + +#: website/templates/base.mako:173 +msgid "" +"Free and easy to use, the GakuNin RDM supports the entire research " +"lifecycle: planning, execution, reporting, archiving, and discovery." +msgstr "" + +#: website/templates/base.mako:175 +msgid "Create an Account" +msgstr "" + +#: website/templates/base.mako:177 +msgid "Learn More" +msgstr "" + +#: website/templates/base.mako:178 +msgid "Hide this message" +msgstr "" + +#: website/templates/claim_account.mako:2 +msgid "Claim Account" +msgstr "" + +#: website/templates/claim_account.mako:4 +msgid "Set Password" +msgstr "" + +#: website/templates/claim_account.mako:9 +#, python-format +msgid "Hello %(firstname)s! Please set a password to claim your account." +msgstr "" + +#: website/templates/claim_account.mako:10 +#, python-format +msgid "E-mail: %(email)s" +msgstr "" + +#: website/templates/claim_account.mako:93 +#, python-format +msgid "" +"I have read and agree to the Terms of Use " +"and Privacy Policy." +msgstr "" + +#: website/templates/claim_account.mako:105 +#, python-format +msgid "" +"If you are not %(fullname)s, or if you were erroneously added as a " +"contributor to the project described in the email invitation, please " +"email %(osfContactEmail)s" +msgstr "" + +#: website/templates/claim_account_eppn.mako:2 +#: website/templates/claim_account_eppn.mako:4 +#: website/templates/claim_account_registered.mako:2 +#: website/templates/claim_account_registered.mako:4 +msgid "Claim Contributor" +msgstr "" + +#: website/templates/claim_account_eppn.mako:9 +msgid "Please confirm to continue." +msgstr "" + +#: website/templates/claim_account_eppn.mako:12 +msgid "Full name (can be changed later):" +msgstr "" + +#: website/templates/claim_account_eppn.mako:16 +msgid "Primary Email (Username) (can be changed later):" +msgstr "" + +#: website/templates/claim_account_eppn.mako:21 +msgid "Alternate Email (can be changed later):" +msgstr "" + +#: website/templates/claim_account_eppn.mako:27 +#, python-format +msgid "I am not %(username)s." +msgstr "" + +#: website/templates/claim_account_eppn.mako:29 +#: website/templates/claim_account_registered.mako:25 +#: website/templates/prereg_landing_page.mako:24 +#: website/templates/project/modal_remove_contributor.mako:97 +msgid "Continue" +msgstr "" + +#: website/templates/claim_account_registered.mako:9 +msgid "Please enter your credentials to continue." +msgstr "" + +#: website/templates/claim_account_registered.mako:23 +#, python-format +msgid "I am not %(userFullname)s." +msgstr "" + +#: website/templates/copyright.mako:7 website/templates/copyright.mako:12 +#: website/templates/footer.mako:11 +msgid "National Institute of Informatics" +msgstr "" + +#: website/templates/copyright.mako:8 +msgid "Terms of Use" +msgstr "" + +#: website/templates/copyright.mako:9 +msgid "Privacy Policy" +msgstr "" + +#: website/templates/footer.mako:17 +msgid "Terms of Use" +msgstr "" + +#: website/templates/footer.mako:23 +msgid "Privacy Policy" +msgstr "" + +#: website/templates/footer.mako:30 +msgid "Status" +msgstr "" + +#: website/templates/footer.mako:44 +msgid "TOP Guidelines" +msgstr "" + +#: website/templates/footer.mako:52 +msgid "Reproducibility Project: Psychology" +msgstr "" + +#: website/templates/footer.mako:60 +msgid "Reproducibility Project: Cancer Biology" +msgstr "" + +#: website/templates/institution.mako:8 +#: website/templates/project/project_header.mako:200 +msgid "" +"NOTICE: Forks, registrations, and uploads will be " +"temporarily disabled while the GakuNin RDM undergoes a hardware upgrade. " +"These features will return shortly. Thank you for your patience." +msgstr "" + +#: website/templates/messages.mako:1 +msgid "Duplicate template" +msgstr "" + +#: website/templates/messages.mako:2 +msgid "Fork this Project" +msgstr "" + +#: website/templates/messages.mako:3 +msgid "Citations" +msgstr "" + +#: website/templates/messages.mako:4 +msgid "Storage" +msgstr "" + +#: website/templates/messages.mako:5 +msgid "Other" +msgstr "" + +#: website/templates/messages.mako:6 +msgid "No license" +msgstr "" + +#: website/templates/messages.mako:7 +msgid "Analysis" +msgstr "" + +#: website/templates/messages.mako:8 +msgid "Communication" +msgstr "" + +#: website/templates/messages.mako:9 +msgid "Data" +msgstr "" + +#: website/templates/messages.mako:10 +msgid "Hypothesis" +msgstr "" + +#: website/templates/messages.mako:11 +msgid "Instrumentation" +msgstr "" + +#: website/templates/messages.mako:12 +msgid "Methods and Measures" +msgstr "" + +#: website/templates/messages.mako:13 +msgid "Procedure" +msgstr "" + +#: website/templates/messages.mako:14 +msgid "Software" +msgstr "" + +#: website/templates/messages.mako:15 +msgid "Component has been successfully deleted." +msgstr "" + +#: website/templates/messages.mako:16 +msgid "Project has been successfully deleted." +msgstr "" + +#: website/templates/messages.mako:17 +msgid "" +"View all information associated with this account, including for private " +"projects." +msgstr "" + +#: website/templates/messages.mako:18 +msgid "" +"View and edit all information associated with this account, including for" +" private projects." +msgstr "" + +#: website/templates/messages.mako:19 +msgid "Read your profile data." +msgstr "" + +#: website/templates/messages.mako:20 +msgid "Read your primary email address." +msgstr "" + +#: website/templates/messages.mako:22 +msgid "" +"\n" +"

      \n" +"
      \n" +"

      We've updated our Terms" +" of Use and Privacy" +" Policy. Please read them carefully.

      " +msgstr "" + +#: website/templates/messages.mako:26 +msgid "" +"
      I " +"have read and agree to these terms.
      \n" +"
      " +msgstr "" + +#: website/templates/messages.mako:28 +msgid "" +"\n" +"
      " +msgstr "" + +#: website/templates/my_projects.mako:2 website/templates/nav.mako:51 +msgid "My Projects" +msgstr "" + +#: website/templates/my_projects.mako:8 +msgid "" +"NOTICE: Forks, registrations, and uploads will be " +"temporarily disabled while the GakuNin RDM undergoes a hardware upgrade. " +"These features will return shortly. Thank you for your patience.
    " +msgstr "" + +#: website/templates/nav.mako:23 +msgid "HOME" +msgstr "" + +#: website/templates/nav.mako:24 +msgid "PREPRINTS" +msgstr "" + +#: website/templates/nav.mako:25 +msgid "REGISTRIES" +msgstr "" + +#: website/templates/nav.mako:26 +msgid "MEETINGS" +msgstr "" + +#: website/templates/nav.mako:28 +msgid "INSTITUTIONS" +msgstr "" + +#: website/templates/nav.mako:34 +msgid "Toggle navigation" +msgstr "" + +#: website/templates/nav.mako:49 +msgid "My Quick Files" +msgstr "" + +#: website/templates/nav.mako:54 +#: website/templates/project/modal_add_contributor.mako:22 +#: website/templates/search.mako:2 website/templates/search_grdm.mako:2 +msgid "Search" +msgstr "" + +#: website/templates/nav.mako:59 +msgid "Support" +msgstr "" + +#: website/templates/nav.mako:63 +msgid "Donate" +msgstr "" + +#: website/templates/nav.mako:78 +msgid "My Profile" +msgstr "" + +#: website/templates/nav.mako:79 website/templates/profile/account.mako:8 +#: website/templates/profile/add_email.mako:14 +#: website/templates/profile/addons.mako:19 +#: website/templates/profile/notifications.mako:6 +#: website/templates/profile/oauth_app_list.mako:4 +#: website/templates/profile/personal_tokens_detail.mako:5 +#: website/templates/profile/personal_tokens_list.mako:4 +#: website/templates/profile/settings.mako:2 +#: website/templates/profile/settings.mako:9 +#: website/templates/project/project_header.mako:80 +#: website/templates/project/settings.mako:2 +#: website/templates/project/settings.mako:5 +#: website/templates/util/render_node.mako:67 +msgid "Settings" +msgstr "" + +#: website/templates/nav.mako:81 +msgid "RDM Support" +msgstr "" + +#: website/templates/nav.mako:83 +msgid "Log out" +msgstr "" + +#: website/templates/nav.mako:92 +msgid "Sign in" +msgstr "" + +#: website/templates/nav.mako:102 +msgid "Sign Up" +msgstr "" + +#: website/templates/nav.mako:104 +msgid "Sign In" +msgstr "" + +#: website/templates/nav.mako:140 +msgid "Notice:" +msgstr "" + +#: website/templates/nav.mako:144 +msgid "" +"The site will undergo maintenance between ." +msgstr "" + +#: website/templates/nav.mako:145 +msgid "Thank you for your patience." +msgstr "" + +#: website/templates/prereg_landing_page.mako:5 +msgid "GakuNin RDM Preregistration" +msgstr "" + +#: website/templates/prereg_landing_page.mako:7 +msgid "GakuNin RDM Prereg Challenge" +msgstr "" + +#: website/templates/prereg_landing_page.mako:22 +msgid "Please provide a title for your project:" +msgstr "" + +#: website/templates/prereg_landing_page.mako:30 +msgid "Go to an existing preregistration:" +msgstr "" + +#: website/templates/prereg_landing_page.mako:32 +#: website/templates/prereg_landing_page.mako:41 +#: website/templates/prereg_landing_page.mako:71 +#: website/templates/prereg_landing_page.mako:115 +msgid "Preregister" +msgstr "" + +#: website/templates/prereg_landing_page.mako:39 +msgid "Preregister an existing project:" +msgstr "" + +#: website/templates/prereg_landing_page.mako:55 +#, python-format +msgid "" +"

    Improve your research with preregistration. By" +" writing out specific details such as data collection methods, analysis " +"plans, and rules for data exclusion, you can make important decisions " +"early on and have a clear record of these choices. This can help reduce " +"biases that occur once the data are in front of you.

    " +msgstr "" + +#: website/templates/prereg_landing_page.mako:56 +#, python-format +msgid "" +"

    Use OSF Registries to discover previously " +"registered work.

    " +msgstr "" + +#: website/templates/prereg_landing_page.mako:58 +#, python-format +msgid "" +"

    Articles must be published by an approved journal by December 31, 2018, to be " +"eligible for a prize. Please use this this helpful workflow to " +"preregister, even if you are not seeking a prize.

    " +msgstr "" + +#: website/templates/prereg_landing_page.mako:59 +#, python-format +msgid "" +"

    Improve your research with preregistration. The process of creating a" +" preregistration is beneficial to both the " +"scientific field and to you, the scientist. By writing out detailed data " +"collection methods, analysis plans, and rules for excluding or missing " +"data, you can make important decisions that affect your workflow earlier," +" without the biases that occur once the data are in front of you.

    " +msgstr "" + +#: website/templates/prereg_landing_page.mako:64 +#: website/templates/prereg_landing_page.mako:110 +msgid "Start a new preregistration" +msgstr "" + +#: website/templates/prereg_landing_page.mako:76 +#: website/templates/prereg_landing_page.mako:121 +msgid "Continue working on an existing draft preregistration" +msgstr "" + +#: website/templates/prereg_landing_page.mako:84 +#: website/templates/prereg_landing_page.mako:126 +msgid "Preregister a project you already have on the GakuNin RDM" +msgstr "" + +#: website/templates/profile.mako:23 +#, python-format +msgid "" +"This account has been merged with %(profileAbsoluteUrl)s" +msgstr "" + +#: website/templates/profile.mako:43 +msgid "Edit your profile" +msgstr "" + +#: website/templates/profile.mako:57 +msgid "Member Since" +msgstr "" + +#: website/templates/profile.mako:63 +msgid "Public Profile" +msgstr "" + +#: website/templates/profile.mako:69 +msgid "No" +msgstr "" + +#: website/templates/profile.mako:69 +msgid "activity point" +msgid_plural "activity points" +msgstr[0] "" +msgstr[1] "" + +#: website/templates/profile.mako:70 +msgid "project" +msgstr "" + +#: website/templates/profile.mako:70 +msgid " " +msgid_plural "s" +msgstr[0] "" +msgstr[1] "" + +#: website/templates/profile.mako:73 +msgid "Usage of storage" +msgstr "" + +#: website/templates/profile.mako:82 website/templates/profile/settings.mako:39 +msgid "Employment" +msgstr "" + +#: website/templates/profile.mako:83 website/templates/profile/settings.mako:40 +msgid "Education" +msgstr "" + +#: website/templates/profile.mako:84 website/templates/profile/settings.mako:41 +msgid "Social" +msgstr "" + +#: website/templates/profile.mako:115 +msgid "Public projects" +msgstr "" + +#: website/templates/profile.mako:135 +msgid "Public components" +msgstr "" + +#: website/templates/profile.mako:152 +msgid "Quick files" +msgstr "" + +#: website/templates/request_access.mako:2 +msgid "Request Access" +msgstr "" + +#: website/templates/request_access.mako:11 +msgid "You Need Permission" +msgstr "" + +#: website/templates/request_access.mako:13 +msgid "Ask for access, or switch to an account with permission." +msgstr "" + +#: website/templates/request_access.mako:14 +msgid "" +"Your request for access has been sent. You will receive an email if and " +"when your request is approved." +msgstr "" + +#: website/templates/request_access.mako:23 +msgid "Switch account" +msgstr "" + +#: website/templates/search.mako:36 website/templates/search_grdm.mako:37 +msgid "Improve your search" +msgstr "" + +#: website/templates/search.mako:69 website/templates/search_grdm.mako:70 +msgid "Filter by license" +msgstr "" + +#: website/templates/search.mako:93 website/templates/search_grdm.mako:95 +msgid "No results found." +msgstr "" + +#: website/templates/search.mako:96 website/templates/search_grdm.mako:98 +msgid "Type your search terms in the box above." +msgstr "" + +#: website/templates/search.mako:104 website/templates/search_nav_grdm.mako:4 +msgid "Previous Page" +msgstr "" + +#: website/templates/search.mako:110 website/templates/search_nav_grdm.mako:61 +msgid "Next Page" +msgstr "" + +#: website/templates/search.mako:123 website/templates/search.mako:341 +#: website/templates/search.mako:344 website/templates/search_grdm.mako:552 +#: website/templates/search_grdm.mako:555 +msgid "Withdrawn " +msgstr "" + +#: website/templates/search.mako:123 +msgid "Registration " +msgstr "" + +#: website/templates/search.mako:123 +msgid "File" +msgstr "" + +#: website/templates/search.mako:126 +msgid "(Preprint File)" +msgstr "" + +#: website/templates/search.mako:130 +#, python-format +msgid "From: " +msgstr "" + +#: website/templates/search.mako:131 +#, python-format +msgid "" +"From: / " +msgstr "" + +#: website/templates/search.mako:240 website/templates/search_grdm.mako:367 +msgid " Contributors" +msgstr "" + +#: website/templates/search.mako:262 website/templates/search_grdm.mako:389 +#: website/templates/search_grdm.mako:461 +msgid "Affiliated institutions" +msgstr "" + +#: website/templates/search.mako:276 website/templates/search.mako:368 +#: website/templates/search_grdm.mako:403 +#: website/templates/search_grdm.mako:579 +msgid "

    Jump to:" +msgstr "" + +#: website/templates/search.mako:280 website/templates/search.mako:372 +#: website/templates/search_grdm.mako:407 +#: website/templates/search_grdm.mako:583 +msgid "Files" +msgstr "" + +#: website/templates/search.mako:291 website/templates/search_grdm.mako:502 +msgid "(Preprint)" +msgstr "" + +#: website/templates/search.mako:292 website/templates/search.mako:348 +#: website/templates/search_grdm.mako:440 +#: website/templates/search_grdm.mako:503 +#: website/templates/search_grdm.mako:559 +msgid "Description" +msgstr "" + +#: website/templates/project/contributors.mako:2 +#: website/templates/project/contributors.mako:8 +#: website/templates/project/contributors.mako:54 +#: website/templates/project/project.mako:163 +#: website/templates/project/project_header.mako:72 +#: website/templates/search.mako:295 website/templates/search.mako:352 +#: website/templates/search_grdm.mako:446 +#: website/templates/search_grdm.mako:506 +#: website/templates/search_grdm.mako:563 +msgid "Contributors" +msgstr "" + +#: website/templates/search.mako:314 website/templates/search_grdm.mako:525 +msgid "Managers" +msgstr "" + +#: website/templates/search.mako:327 website/templates/search_grdm.mako:538 +msgid "Members" +msgstr "" + +#: website/templates/search.mako:341 website/templates/search.mako:344 +#: website/templates/search_grdm.mako:552 +#: website/templates/search_grdm.mako:555 +msgid "Registration" +msgstr "" + +#: website/templates/project/project.mako:587 +#: website/templates/project/view_file.mako:76 +#: website/templates/search.mako:377 website/templates/search_grdm.mako:475 +#: website/templates/search_grdm.mako:588 +msgid "Tags" +msgstr "" + +#: website/templates/search_bar.mako:7 website/templates/search_bar.mako:8 +#: website/templates/search_bar_grdm.mako:7 +#: website/templates/search_bar_grdm.mako:8 +msgid "GakuNin RDM Search" +msgstr "" + +#: website/templates/search_bar_grdm.mako:20 +msgid "sort by" +msgstr "" + +#: website/templates/search_bar_grdm.mako:22 +msgid "per page" +msgstr "" + +#: website/templates/search_bar_help_modal.mako:6 +msgid "Search help" +msgstr "" + +#: website/templates/search_bar_help_modal.mako:9 +msgid "Queries" +msgstr "" + +#: website/templates/search_bar_help_modal.mako:10 +#, python-format +msgid "" +"

    Search uses the Lucene search " +"syntax.This gives you many options, but can be very simple as well. " +"Examples of valid searches include:

    " +msgstr "" + +#: website/templates/project/project_header.mako:16 +#: website/templates/search_grdm.mako:143 +#: website/templates/search_grdm.mako:317 +msgid "Project" +msgstr "" + +#: website/templates/search_grdm.mako:150 +msgid "Folder" +msgstr "" + +#: website/templates/search_grdm.mako:160 +#: website/templates/search_grdm.mako:339 +#: website/templates/search_grdm.mako:492 +msgid "Comment" +msgstr "" + +#: website/templates/search_grdm.mako:196 +msgid "Employment@search" +msgstr "Employment" + +#: website/templates/search_grdm.mako:206 +msgid "Education@search" +msgstr "Education" + +#: website/templates/search_grdm.mako:327 +msgid "Body of Wiki" +msgstr "" + +#: website/templates/search_grdm.mako:602 +msgid "Modified by" +msgstr "" + +#: website/templates/search_grdm.mako:605 +msgid "Created by" +msgstr "" + +#: website/templates/search_nav_grdm.mako:65 +msgid "Page" +msgstr "" + +#: website/templates/include/comment_pane_template.mako:3 +#: website/templates/project/project_header.mako:86 +msgid "Comments" +msgstr "" + +#: website/templates/include/comment_pane_template.mako:18 +#: website/templates/project/files.mako:2 +#: website/templates/project/files.mako:5 +#: website/templates/project/project.mako:441 +#: website/templates/project/project_header.mako:40 +msgid "Files" +msgstr "" + +#: website/templates/include/comment_pane_template.mako:18 +#: website/templates/include/comment_pane_template.mako:19 +#: website/templates/include/comment_pane_template.mako:20 +msgid "Discussion" +msgstr "" + +#: website/templates/include/comment_pane_template.mako:26 +#: website/templates/include/comment_template.mako:165 +msgid "Add a comment" +msgstr "" + +#: website/templates/include/comment_template.mako:13 +msgid "Comment confirmed as spam." +msgstr "" + +#: website/templates/include/comment_template.mako:23 +msgid "Comment deleted." +msgstr "" + +#: website/templates/include/comment_template.mako:30 +msgid "Restore" +msgstr "" + +#: website/templates/include/comment_template.mako:37 +msgid "Comment reported." +msgstr "" + +#: website/templates/include/comment_template.mako:44 +msgid "Not abuse" +msgstr "" + +#: website/templates/include/comment_template.mako:86 +msgid "Edit comment" +msgstr "" + +#: website/templates/include/comment_template.mako:138 +msgid "Describe abuse" +msgstr "" + +#: website/templates/include/comment_template.mako:142 +msgid "Report" +msgstr "" + +#: website/templates/include/comment_template.mako:186 +msgid "More replies" +msgstr "" + +#: website/templates/include/profile/jobs.mako:19 +#: website/templates/include/profile/schools.mako:19 +msgid "Position" +msgstr "" + +#: website/templates/include/profile/jobs.mako:26 +#: website/templates/include/profile/schools.mako:26 +#: website/templates/project/contributors.mako:332 +#: website/templates/project/contributors.mako:387 +#: website/templates/project/modal_remove_contributor.mako:96 +#: website/templates/project/modal_remove_contributor.mako:105 +#: website/templates/project/modal_remove_contributor.mako:114 +#: website/templates/project/project.mako:569 +#: website/templates/project/settings.mako:498 +#: website/templates/project/settings.mako:501 +msgid "Remove" +msgstr "" + +#: website/templates/include/profile/jobs.mako:31 +#: website/templates/include/profile/schools.mako:31 +msgid "Read IdP Profile" +msgstr "" + +#: website/templates/include/profile/jobs.mako:35 +msgid "Institution / Employer" +msgstr "" + +#: website/templates/include/profile/jobs.mako:37 +#: website/templates/include/profile/schools.mako:37 +#: website/templates/profile/oauth_app_detail.mako:55 +#: website/templates/profile/oauth_app_detail.mako:61 +#: website/templates/profile/oauth_app_detail.mako:73 +#: website/templates/profile/personal_tokens_detail.mako:26 +msgid "Required" +msgstr "" + +#: website/templates/include/profile/jobs.mako:44 +msgid "Department / Institute" +msgstr "" + +#: website/templates/include/profile/jobs.mako:49 +msgid "Job title" +msgstr "" + +#: website/templates/include/profile/jobs.mako:54 +#: website/templates/include/profile/schools.mako:54 +#: website/templates/project/project.mako:610 +msgid "Start date" +msgstr "" + +#: website/templates/include/profile/jobs.mako:58 +#: website/templates/include/profile/jobs.mako:73 +#: website/templates/include/profile/schools.mako:58 +#: website/templates/include/profile/schools.mako:73 +msgid "-- Month --" +msgstr "" + +#: website/templates/include/profile/jobs.mako:63 +#: website/templates/include/profile/jobs.mako:78 +#: website/templates/include/profile/schools.mako:63 +#: website/templates/include/profile/schools.mako:78 +msgid "Year" +msgstr "" + +#: website/templates/include/profile/jobs.mako:69 +#: website/templates/include/profile/schools.mako:69 +#: website/templates/project/project.mako:613 +msgid "End date" +msgstr "" + +#: website/templates/include/profile/jobs.mako:85 +#: website/templates/include/profile/schools.mako:85 +msgid "Ongoing" +msgstr "" + +#: website/templates/include/profile/jobs.mako:104 +msgid "Add another Employment" +msgstr "" + +#: website/templates/include/profile/jobs.mako:114 +#: website/templates/include/profile/names.mako:73 +#: website/templates/include/profile/schools.mako:114 +#: website/templates/include/profile/social.mako:140 +msgid "Discard changes" +msgstr "" + +#: website/templates/include/profile/jobs.mako:117 +#: website/templates/include/profile/names.mako:76 +#: website/templates/include/profile/schools.mako:117 +#: website/templates/include/profile/social.mako:143 +msgid "Saving" +msgstr "" + +#: website/templates/include/profile/jobs.mako:136 +#: website/templates/include/profile/schools.mako:136 +#: website/templates/include/profile/social.mako:180 +msgid "Not provided" +msgstr "" + +#: website/templates/include/profile/jobs.mako:149 +#: website/templates/include/profile/jobs.mako:159 +#: website/templates/include/profile/schools.mako:148 +#: website/templates/include/profile/schools.mako:158 +msgid "" +" " +msgstr "" + +#: website/templates/include/profile/jobs.mako:156 +msgid "Department / Institute:" +msgstr "" + +#: website/templates/include/profile/jobs.mako:157 +#: website/templates/project/settings.mako:101 +msgid "Title:" +msgstr "" + +#: website/templates/include/profile/jobs.mako:158 +#: website/templates/include/profile/schools.mako:157 +msgid "Dates:" +msgstr "" + +#: website/templates/include/profile/names.mako:6 +msgid "Full name (e.g. Rosalind Elsie Franklin)" +msgstr "" + +#: website/templates/include/profile/names.mako:15 +msgid "" +"Your full name, above, is the name that will be displayed in your " +"profile. To control the way your name will appear in " +"citations, you can use the \"Auto-fill\" button to " +"automatically infer your first name, last name, etc., or edit " +"the fields directly below." +msgstr "" + +#: website/templates/include/profile/names.mako:22 +msgid "Auto-fill" +msgstr "" + +#: website/templates/include/profile/names.mako:26 +msgid "Given name (e.g. Rosalind)" +msgstr "" + +#: website/templates/include/profile/names.mako:31 +msgid "Middle name(s) (e.g. Elsie)" +msgstr "" + +#: website/templates/include/profile/names.mako:36 +msgid "Family name (e.g. Franklin)" +msgstr "" + +#: website/templates/include/profile/names.mako:41 +msgid "Suffix" +msgstr "" + +#: website/templates/include/profile/names.mako:47 +msgid "Citation preview" +msgstr "" + +#: website/templates/include/profile/names.mako:51 +msgid "Style" +msgstr "" + +#: website/templates/include/profile/names.mako:52 +msgid "Citation format" +msgstr "" + +#: website/templates/include/profile/schools.mako:35 +msgid "Institution" +msgstr "" + +#: website/templates/include/profile/schools.mako:44 +msgid "Department" +msgstr "" + +#: website/templates/include/profile/schools.mako:49 +msgid "Degree" +msgstr "" + +#: website/templates/include/profile/schools.mako:104 +msgid "Add another Education" +msgstr "" + +#: website/templates/include/profile/schools.mako:155 +msgid "Department:" +msgstr "" + +#: website/templates/include/profile/schools.mako:156 +msgid "Degree:" +msgstr "" + +#: website/templates/include/profile/settings_navpanel.mako:6 +msgid "Profile information" +msgstr "" + +#: website/templates/include/profile/settings_navpanel.mako:9 +msgid "Account settings" +msgstr "" + +#: website/templates/include/profile/settings_navpanel.mako:12 +msgid "Configure add-on accounts" +msgstr "" + +#: website/templates/include/profile/settings_navpanel.mako:15 +#: website/templates/profile/notifications.mako:2 +msgid "Notifications" +msgstr "" + +#: website/templates/include/profile/settings_navpanel.mako:18 +msgid "Developer apps" +msgstr "" + +#: website/templates/include/profile/settings_navpanel.mako:21 +msgid "Personal access tokens" +msgstr "" + +#: website/templates/include/profile/social.mako:10 +msgid "Your websites" +msgstr "" + +#: website/templates/include/profile/social.mako:31 +msgid "Please enter a valid website" +msgstr "" + +#: website/templates/include/profile/social.mako:34 +msgid "Add website" +msgstr "" + +#: website/templates/include/profile/social.mako:88 +#: website/templates/include/profile/social.mako:96 +#: website/templates/include/profile/social.mako:104 +#: website/templates/include/profile/social.mako:114 +#: website/templates/include/profile/social.mako:122 +#: website/templates/include/profile/social.mako:130 +msgid "profileID" +msgstr "" + +#: website/templates/include/profile/social.mako:112 +msgid "institution" +msgstr "" + +#: website/templates/profile/account.mako:4 +#: website/templates/profile/add_email.mako:4 +msgid "Account Settings" +msgstr "" + +#: website/templates/profile/account.mako:15 +#: website/templates/profile/add_email.mako:21 +msgid "Connected Emails" +msgstr "" + +#: website/templates/profile/account.mako:20 +#: website/templates/profile/add_email.mako:27 +msgid "Primary Email" +msgstr "" + +#: website/templates/profile/account.mako:34 +#: website/templates/profile/add_email.mako:57 +msgid "Alternate Emails" +msgstr "" + +#: website/templates/profile/account.mako:40 +#: website/templates/profile/add_email.mako:63 +msgid "make primary" +msgstr "" + +#: website/templates/profile/account.mako:48 +#: website/templates/profile/add_email.mako:72 +msgid "Unconfirmed Emails" +msgstr "" + +#: website/templates/profile/account.mako:55 +#: website/templates/profile/add_email.mako:79 +msgid "resend confirmation" +msgstr "" + +#: website/templates/profile/account.mako:64 +#: website/templates/profile/add_email.mako:88 +msgid "" +"To merge an existing account with this one or to log in with multiple " +"email addresses, add an alternate email address below." +msgstr "" + +#: website/templates/profile/account.mako:65 +#: website/templates/profile/add_email.mako:89 +msgid "" +"Merging accounts will move all projects and components associated with " +"two emails into one account. All projects and components will be " +"displayed under the email address listed as primary." +msgstr "" + +#: website/templates/profile/account.mako:68 +msgid "" +"To log in with multiple email addresses, add an alternate email address " +"below." +msgstr "" + +#: website/templates/profile/account.mako:73 +#: website/templates/profile/add_email.mako:98 +msgid "Email address" +msgstr "" + +#: website/templates/profile/account.mako:75 +#: website/templates/profile/add_email.mako:100 +msgid "Add email" +msgstr "" + +#: website/templates/profile/account.mako:90 +msgid "Default Storage Location" +msgstr "" + +#: website/templates/profile/account.mako:98 +msgid "" +"This location will be applied to new projects and components. It will not" +" affect existing projects and components." +msgstr "" + +#: website/templates/profile/account.mako:103 +msgid "Update location" +msgstr "" + +#: website/templates/profile/account.mako:109 +#: website/templates/profile/add_email.mako:117 +msgid "Connected Identities" +msgstr "" + +#: website/templates/profile/account.mako:111 +#: website/templates/profile/add_email.mako:119 +msgid "" +"Connected identities allow you to log in to the GakuNin RDM via a third-" +"party service." +msgstr "" + +#: website/templates/profile/account.mako:112 +#: website/templates/profile/add_email.mako:120 +msgid "You can revoke these authorizations here." +msgstr "" + +#: website/templates/profile/account.mako:115 +#: website/templates/profile/add_email.mako:123 +msgid "" +"You have not authorized any external services to log in to the GakuNin " +"RDM." +msgstr "" + +#: website/templates/profile/account.mako:125 +#: website/templates/profile/add_email.mako:133 +msgid "Verified" +msgstr "" + +#: website/templates/profile/account.mako:127 +#: website/templates/profile/add_email.mako:135 +msgid "Pending" +msgstr "" + +#: website/templates/profile/account.mako:145 +#: website/templates/profile/add_email.mako:155 +msgid "Change Password" +msgstr "" + +#: website/templates/profile/account.mako:149 +#: website/templates/profile/add_email.mako:159 +msgid "Old password" +msgstr "" + +#: website/templates/profile/account.mako:154 +#: website/templates/profile/add_email.mako:164 +msgid "Old Password" +msgstr "" + +#: website/templates/profile/account.mako:166 +#: website/templates/profile/add_email.mako:176 +msgid "New password" +msgstr "" + +#: website/templates/profile/account.mako:171 +#: website/templates/profile/add_email.mako:181 +msgid "New Password" +msgstr "" + +#: website/templates/profile/account.mako:201 +#: website/templates/profile/add_email.mako:211 +msgid "Confirm new password" +msgstr "" + +#: website/templates/profile/account.mako:206 +#: website/templates/profile/add_email.mako:216 +msgid "Verify Password" +msgstr "" + +#: website/templates/profile/account.mako:217 +#: website/templates/profile/add_email.mako:227 +msgid "Update password" +msgstr "" + +#: website/templates/profile/account.mako:223 +#: website/templates/profile/add_email.mako:232 +msgid "Security Settings" +msgstr "" + +#: website/templates/profile/account.mako:235 +#: website/templates/profile/add_email.mako:245 +msgid "Export Account Data" +msgstr "" + +#: website/templates/profile/account.mako:237 +#: website/templates/profile/add_email.mako:247 +msgid "" +"Exporting your account data allows you to keep a permanent copy of the " +"current state of your account. Keeping a copy of your account data can " +"provide peace of mind or assist in transferring your information to " +"another provider." +msgstr "" + +#: website/templates/profile/account.mako:238 +#: website/templates/profile/add_email.mako:248 +msgid "Request export" +msgstr "" + +#: website/templates/profile/account.mako:242 +#: website/templates/profile/add_email.mako:254 +msgid "Deactivate Account" +msgstr "" + +#: website/templates/profile/account.mako:244 +msgid "" +"Warning: Once your deactivation has been approved the " +"effects are irreversible." +msgstr "" + +#: website/templates/profile/account.mako:245 +#: website/templates/profile/add_email.mako:259 +msgid "" +"Deactivating your account will remove you from all public projects to " +"which you are a contributor. Your account will no longer be associated " +"with GakuNin RDM projects, and your work on the GakuNin RDM will be " +"inaccessible." +msgstr "" + +#: website/templates/profile/account.mako:246 +#: website/templates/profile/add_email.mako:263 +msgid "Your account is currently pending deactivation." +msgstr "" + +#: website/templates/profile/account.mako:247 +#: website/templates/profile/add_email.mako:261 +msgid "Request deactivation" +msgstr "" + +#: website/templates/profile/account.mako:248 +msgid "Cancel deactivation request" +msgstr "" + +#: website/templates/profile/add_email.mako:42 +msgid "eduPersonPrincipalName (ePPN)" +msgstr "" + +#: website/templates/profile/add_email.mako:92 +msgid "Add an email address below." +msgstr "" + +#: website/templates/profile/add_email.mako:257 +msgid "Warning: This action is irreversible." +msgstr "" + +#: website/templates/profile/addon_permissions.mako:4 +#, python-format +msgid "Authorized by %(name)s" +msgstr "" + +#: website/templates/profile/addons.mako:2 +#: website/templates/profile/addons.mako:29 +msgid "Configure Add-on Accounts" +msgstr "" + +#: website/templates/profile/modal_change_avatar.mako:6 +msgid "Change Avatar" +msgstr "" + +#: website/templates/profile/modal_change_avatar.mako:9 +msgid "" +"Avatars on the GakuNin RDM use gravatar.org, a free" +" service that allows users to easily control their " +"identity and profile on multiple service across the " +"Internet." +msgstr "" + +#: website/templates/profile/modal_change_avatar.mako:14 +msgid "" +"To change your avatar image, please login or register at" +" gravatar.org, and" +" add the email address you use on the GakuNin RDM to " +"your Gravatar account." +msgstr "" + +#: website/templates/profile/notifications.mako:16 +msgid "Configure Email Preferences" +msgstr "" + +#: website/templates/profile/notifications.mako:26 +msgid "Receive general notifications about the GakuNin RDM every 2-3 weeks." +msgstr "" + +#: website/templates/profile/notifications.mako:35 +msgid "" +"Receive helpful tips on how to make the most of the GakuNin RDM, up to " +"once per week." +msgstr "" + +#: website/templates/profile/notifications.mako:53 +msgid "Configure Notification Preferences" +msgstr "" + +#: website/templates/profile/notifications.mako:56 +msgid "" +"NOTE: Regardless of your selected preferences, GakuNin RDM will continue " +"to provide transactional and administrative service emails." +msgstr "" + +#: website/templates/profile/notifications.mako:64 +#: website/templates/project/settings.mako:371 +msgid "Loading notification settings..." +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:2 +#: website/templates/profile/oauth_app_detail.mako:5 +msgid "Application Detail" +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:16 +msgid "Return to list of registered applications" +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:25 +msgid "The unique identifier for the application. May be seen publicly by others." +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:32 +msgid "" +"The client secret is known only to you and the GakuNin RDM. Do not " +"display or expose this information." +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:39 +msgid "Hide" +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:40 +msgid "Show" +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:42 +msgid "Reset Secret" +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:44 +msgid "" +"Resetting the client secret will render your application unusable until " +"it is updated with the new client secret, and all users must reauthorize " +"access. Previously issued access tokens will no longer work." +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:48 +msgid "Deactivate application" +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:54 +msgid "Application name" +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:60 +msgid "Project homepage URL" +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:66 +msgid "Application description" +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:72 +msgid "Authorization callback URL" +msgstr "" + +#: website/templates/profile/oauth_app_detail.mako:86 +msgid "Register" +msgstr "" + +#: website/templates/profile/oauth_app_list.mako:2 +#: website/templates/profile/oauth_app_list.mako:15 +msgid "Developer Applications" +msgstr "" + +#: website/templates/profile/oauth_app_list.mako:17 +msgid "New application" +msgstr "" + +#: website/templates/profile/oauth_app_list.mako:22 +msgid "" +"The GakuNin RDM allows third-party web applications to connect to the " +"GakuNin RDM on behalf of other users via the OAuth 2.0 web application " +"flow." +msgstr "" + +#: website/templates/profile/oauth_app_list.mako:24 +msgid "" +"You have not registered any applications that can connect to the GakuNin " +"RDM on behalf of other users." +msgstr "" + +#: website/templates/profile/oauth_app_list.mako:26 +msgid "" +"You have registered the following applications that can connect to the " +"GakuNin RDM on behalf of other users:" +msgstr "" + +#: website/templates/profile/oauth_app_list.mako:31 +msgid "Application" +msgstr "" + +#: website/templates/profile/oauth_app_list.mako:34 +#: website/templates/profile/personal_tokens_list.mako:34 +msgid "Deactivate" +msgstr "" + +#: website/templates/profile/oauth_app_list.mako:43 +msgid "Client ID:" +msgstr "" + +#: website/templates/profile/personal_tokens_detail.mako:2 +msgid "Personal Token Detail" +msgstr "" + +#: website/templates/profile/personal_tokens_detail.mako:16 +msgid "Return to list of registered tokens" +msgstr "" + +#: website/templates/profile/personal_tokens_detail.mako:25 +msgid "Token name:" +msgstr "" + +#: website/templates/profile/personal_tokens_detail.mako:25 +msgid "What this token is for." +msgstr "" + +#: website/templates/profile/personal_tokens_detail.mako:31 +msgid "Scopes:" +msgstr "" + +#: website/templates/profile/personal_tokens_detail.mako:32 +msgid "Scopes limit access for personal access tokens." +msgstr "" + +#: website/templates/profile/personal_tokens_detail.mako:51 +msgid "Create" +msgstr "" + +#: website/templates/profile/personal_tokens_detail.mako:65 +msgid "This is the only time your token will be displayed." +msgstr "" + +#: website/templates/profile/personal_tokens_detail.mako:66 +msgid "Token ID" +msgstr "" + +#: website/templates/profile/personal_tokens_detail.mako:67 +msgid "ID used to authenticate with this token. This will be shown only once." +msgstr "" + +#: website/templates/profile/personal_tokens_detail.mako:70 +msgid "Copy to clipboard" +msgstr "" + +#: website/templates/profile/personal_tokens_list.mako:2 +#: website/templates/profile/personal_tokens_list.mako:15 +#: website/templates/profile/personal_tokens_list.mako:31 +msgid "Personal Access Tokens" +msgstr "" + +#: website/templates/profile/personal_tokens_list.mako:17 +msgid "New token" +msgstr "" + +#: website/templates/profile/personal_tokens_list.mako:22 +msgid "" +"Personal access tokens function like ordinary OAuth access tokens. They " +"can be used to authenticate to the API." +msgstr "" + +#: website/templates/profile/personal_tokens_list.mako:24 +msgid "" +"You have not created any access tokens that can connect to the GakuNin " +"RDM." +msgstr "" + +#: website/templates/profile/personal_tokens_list.mako:26 +msgid "You have generated the following personal access tokens:" +msgstr "" + +#: website/templates/profile/settings.mako:11 +msgid "View your profile" +msgstr "" + +#: website/templates/profile/settings.mako:38 +#: website/templates/project/contributors.mako:182 +#: website/templates/project/contributors.mako:229 +#: website/templates/project/modal_add_contributor.mako:216 +msgid "Name" +msgstr "" + +#: website/templates/project/addons.mako:14 +#: website/templates/project/addons.mako:33 +msgid "Select Add-ons" +msgstr "" + +#: website/templates/project/addons.mako:15 +#: website/templates/project/addons.mako:111 +msgid "Configure Add-ons" +msgstr "" + +#: website/templates/project/addons.mako:38 +msgid "" +"Sync your projects with external services to help stay connected and " +"organized. Select a category and browse the options." +msgstr "" + +#: website/templates/project/addons.mako:44 +msgid "Categories" +msgstr "" + +#: website/templates/project/addons.mako:47 +msgid "Search..." +msgstr "" + +#: website/templates/project/addons.mako:56 +msgid "All" +msgstr "" + +#: website/templates/project/addons.mako:82 +msgid "(This is a default addon)" +msgstr "" + +#: website/templates/project/addons.mako:84 +msgid "Disable" +msgstr "" + +#: website/templates/project/addons.mako:86 +msgid "Enable" +msgstr "" + +#: website/templates/project/addons.mako:128 +msgid "Don't see your GitHub organization repositories?" +msgstr "" + +#: website/templates/project/addons.mako:130 +msgid "You may need to reauthorize your GitHub access token." +msgstr "" + +#: website/templates/project/addons.mako:131 +#, python-format +msgid "" +"Follow the steps in the help guide to resolve the " +"issue." +msgstr "" + +#: website/templates/project/addons.mako:135 +#, python-format +msgid "" +"Please contact rdm_support@nii.ac.jp if you " +"have questions." +msgstr "" + +#: website/templates/project/contributors.mako:13 +msgid "Filter by name" +msgstr "" + +#: website/templates/project/contributors.mako:14 +#: website/templates/project/contributors.mako:186 +#: website/templates/project/contributors.mako:232 +#: website/templates/project/modal_add_contributor.mako:227 +msgid "Permissions" +msgstr "" + +#: website/templates/project/contributors.mako:17 +#: website/templates/project/contributors.mako:189 +#: website/templates/project/contributors.mako:235 +#: website/templates/project/modal_add_contributor.mako:230 +msgid "Permission Information" +msgstr "" + +#: website/templates/project/contributors.mako:24 +#: website/templates/project/contributors.mako:75 +msgid "Administrator" +msgstr "" + +#: website/templates/project/contributors.mako:27 +#: website/templates/project/contributors.mako:76 +msgid "Read + Write" +msgstr "" + +#: website/templates/project/contributors.mako:30 +#: website/templates/project/contributors.mako:77 +msgid "Read" +msgstr "" + +#: website/templates/project/contributors.mako:33 +#: website/templates/project/contributors.mako:196 +#: website/templates/project/contributors.mako:242 +#: website/templates/project/modal_add_contributor.mako:218 +msgid "Bibliographic Contributor" +msgstr "" + +#: website/templates/project/contributors.mako:36 +#: website/templates/project/contributors.mako:199 +#: website/templates/project/contributors.mako:245 +#: website/templates/project/modal_add_contributor.mako:221 +msgid "Bibliographic Contributor Information" +msgstr "" + +#: website/templates/project/contributors.mako:43 +msgid "Bibliographic" +msgstr "" + +#: website/templates/project/contributors.mako:46 +msgid "Non-Bibliographic" +msgstr "" + +#: website/templates/project/contributors.mako:63 +msgid "Drag and drop contributors to change listing order." +msgstr "" + +#: website/templates/project/contributors.mako:106 +msgid "No contributors found" +msgstr "" + +#: website/templates/project/contributors.mako:111 +msgid "Admins on Parent Projects" +msgstr "" + +#: website/templates/project/contributors.mako:135 +msgid "No administrators from parent project found." +msgstr "" + +#: website/templates/project/contributors.mako:143 +msgid "Requests for Access" +msgstr "" + +#: website/templates/project/contributors.mako:144 +msgid "The following users have requested access to this project." +msgstr "" + +#: website/templates/project/contributors.mako:162 +#: website/templates/project/settings.mako:29 +#: website/templates/project/settings.mako:202 +msgid "View-only Links" +msgstr "" + +#: website/templates/project/contributors.mako:167 +#: website/templates/project/settings.mako:206 +msgid "" +"Create a link to share this project so those who have the link can " +"view—but not edit—the project." +msgstr "" + +#: website/templates/project/contributors.mako:396 +msgid "Discard Changes" +msgstr "" + +#: website/templates/project/contributors.mako:397 +msgid "Save Changes" +msgstr "" + +#: website/templates/project/files.mako:8 +#: website/templates/project/project.mako:449 +msgid "Click on a storage provider or drag and drop to upload" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:20 +msgid "Search by name or user profile information" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:25 +msgid "Invite new contributor by e-mail" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:46 +msgid "Results" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:47 +msgid "Add all" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:63 +msgid "Add contributor" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:66 +msgid "Already added" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:164 +#: website/templates/project/modal_add_contributor.mako:254 +msgid "(unregistered)" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:181 +#, python-format +msgid "" +"Add as an " +"unregistered contributor." +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:186 +msgid "Searching contributors..." +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:190 +msgid "No results found. Try a more specific search." +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:193 +msgid "No results found. Try a more specific search" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:195 +msgid "or" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:196 +#, python-format +msgid "" +"add as an " +"unregistered contributor." +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:200 +msgid "" +"It looks like you are trying to search by email address. Please try your " +"search again using your collaborator's name. You will be able to add " +"users without GakuNin RDM accounts as unregistered contributors." +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:207 +msgid "Adding" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:208 +msgid "Remove all" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:241 +msgid "Remove contributor" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:281 +msgid "Adding contributor(s)" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:289 +msgid "" +"You can also add the contributor(s) to any components on which you are an" +" admin." +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:294 +#: website/templates/project/modal_generate_private_link.mako:71 +msgid "Select all" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:296 +msgid "Select none" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:309 +msgid "Loading projects and components..." +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:320 +msgid "Full Name" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:322 +msgid "Full name" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:325 +#: website/templates/project/modal_add_contributor.mako:327 +msgid "Email" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:330 +msgid "We will notify the user that they have been added to your project." +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:343 +#: website/templates/project/modal_add_contributor.mako:355 +#: website/templates/project/modal_remove_contributor.mako:112 +#: website/templates/project/nodes_delete.mako:87 +msgid "Back" +msgstr "" + +#: website/templates/project/modal_add_contributor.mako:351 +msgid "Next" +msgstr "" + +#: website/templates/project/modal_add_pointer.mako:8 +msgid "Link other GakuNin RDM projects" +msgstr "" + +#: website/templates/project/modal_add_pointer.mako:15 +msgid "Search projects" +msgstr "" + +#: website/templates/project/modal_add_pointer.mako:43 +msgid "Projects" +msgstr "" + +#: website/templates/project/modal_add_pointer.mako:55 +msgid "Results: All Projects" +msgstr "" + +#: website/templates/project/modal_add_pointer.mako:56 +msgid "Results: My Projects" +msgstr "" + +#: website/templates/project/modal_add_pointer.mako:96 +msgid "Done" +msgstr "" + +#: website/templates/project/modal_generate_private_link.mako:5 +msgid "Create a new link to share your project" +msgstr "" + +#: website/templates/project/modal_generate_private_link.mako:13 +msgid "Link name" +msgstr "" + +#: website/templates/project/modal_generate_private_link.mako:18 +msgid "Optional link name (e.g., For peer review, Sharing data, Share project)" +msgstr "" + +#: website/templates/project/modal_generate_private_link.mako:30 +msgid "" +"Anonymize contributor list for this link (e.g., for " +"blind peer review)." +msgstr "" + +#: website/templates/project/modal_generate_private_link.mako:32 +msgid "" +"Ensure the wiki pages, files, registration forms and add-ons do not " +"contain identifying information." +msgstr "" + +#: website/templates/project/modal_generate_private_link.mako:39 +msgid "" +"Which components would you like to associate with this " +"link?" +msgstr "" + +#: website/templates/project/modal_generate_private_link.mako:40 +msgid "" +"Anyone with the private link can view—but not edit—the" +" components associated with the link." +msgstr "" + +#: website/templates/project/modal_generate_private_link.mako:51 +#, python-format +msgid "(current component, public)" +msgstr "" + +#: website/templates/project/modal_generate_private_link.mako:59 +msgid "Parent needs to be checked" +msgstr "" + +#: website/templates/project/modal_generate_private_link.mako:62 +msgid "(public)" +msgstr "" + +#: website/templates/project/modal_generate_private_link.mako:74 +msgid "De-select all" +msgstr "" + +#: website/templates/project/modal_remove_contributor.mako:15 +#, python-format +msgid "" +"Do you want to remove from" +" , or from and every component in it?" +msgstr "" + +#: website/templates/project/modal_remove_contributor.mako:21 +#, python-format +msgid "" +"Remove from" +" ." +msgstr "" + +#: website/templates/project/modal_remove_contributor.mako:28 +#, python-format +msgid "" +"Remove from" +" and every" +" component in it." +msgstr "" + +#: website/templates/project/modal_remove_contributor.mako:37 +#, python-format +msgid "Remove from ?" +msgstr "" + +#: website/templates/project/modal_remove_contributor.mako:48 +#, python-format +msgid "" +" " +"will be removed from the following projects and/or components." +msgstr "" + +#: website/templates/project/modal_remove_contributor.mako:65 +#, python-format +msgid "" +" " +"cannot be removed from the following projects and/or components." +msgstr "" + +#: website/templates/project/modal_remove_contributor.mako:81 +#, python-format +msgid "" +" cannot be removed " +"as a contributor. You need at least one administrator, bibliographic " +"contributor, and registered user." +msgstr "" + +#: website/templates/project/modal_remove_contributor.mako:82 +msgid "" +"data-bind=\"text:removeSelf() ? 'You' : " +"contributorToRemove()['fullname']\"" +msgstr "" + +#: website/templates/project/modal_remove_contributor.mako:85 +msgid "" +"Please save or discard your existing changes before removing a " +"contributor." +msgstr "" + +#: website/templates/project/nodes_delete.mako:66 +#: website/templates/project/nodes_delete.mako:77 +msgid "Type the following to continue:" +msgstr "" + +#: website/templates/project/project.mako:22 +msgid "Private Project" +msgstr "" + +#: website/templates/project/project.mako:45 +msgid "Private" +msgstr "" + +#: website/templates/project/project.mako:49 +msgid "Make Public" +msgstr "" + +#: website/templates/project/project.mako:58 +msgid "Make Private" +msgstr "" + +#: website/templates/project/project.mako:60 +msgid "Public" +msgstr "" + +#: website/templates/project/project.mako:65 +msgid "Log in or create an account to duplicate this project" +msgstr "" + +#: website/templates/project/project.mako:100 +#, python-format +msgid "View Forks (%(forkCount)s)" +msgstr "" + +#: website/templates/project/project.mako:115 +msgid "Bookmark" +msgstr "" + +#: website/templates/project/project.mako:118 +msgid "Remove from bookmarks" +msgstr "" + +#: website/templates/project/project.mako:127 +msgid "Create view-only link" +msgstr "" + +#: website/templates/project/project.mako:137 +msgid "Share" +msgstr "" + +#: website/templates/project/project.mako:150 +msgid "Log in to request access" +msgstr "" + +#: website/templates/project/project.mako:165 +msgid "Contributors:" +msgstr "" + +#: website/templates/project/project.mako:169 +msgid "Anonymous Contributors" +msgstr "" + +#: website/templates/project/project.mako:192 +#: website/templates/project/settings.mako:488 +msgid "Affiliated Institutions:" +msgstr "" + +#: website/templates/project/project.mako:218 +#, python-format +msgid "" +"Forked from %(forkedFromDisplayAbsoluteUrl)s on" +" " +msgstr "" + +#: website/templates/project/project.mako:225 +msgid "Date registered:" +msgstr "" + +#: website/templates/project/project.mako:230 +msgid "Date created:" +msgstr "" + +#: website/templates/project/project.mako:233 +msgid "| Last Updated:" +msgstr "" + +#: website/templates/project/project.mako:248 +msgid "Creating DOI. Please wait..." +msgstr "" + +#: website/templates/project/project.mako:254 +msgid "Create DOI" +msgstr "" + +#: website/templates/project/project.mako:259 +#: website/templates/project/settings.mako:81 +msgid "Category:" +msgstr "" + +#: website/templates/project/project.mako:260 +msgid "category" +msgstr "" + +#: website/templates/project/project.mako:265 +#: website/templates/project/settings.mako:107 +msgid "Description:" +msgstr "" + +#: website/templates/project/project.mako:282 +msgid "License:" +msgstr "" + +#: website/templates/project/project.mako:283 +msgid "license" +msgstr "" + +#: website/templates/project/project.mako:291 +msgid "View Registration Form" +msgstr "" + +#: website/templates/project/project.mako:296 +msgid "View Registration Forms" +msgstr "" + +#: website/templates/project/project.mako:341 +msgid "Type:" +msgstr "" + +#: website/templates/project/project.mako:345 +#: website/templates/project/project.mako:396 +msgid "Status:" +msgstr "" + +#: website/templates/project/project.mako:349 +msgid "Volume:" +msgstr "" + +#: website/templates/project/project.mako:353 +msgid "Issue:" +msgstr "" + +#: website/templates/project/project.mako:357 +msgid "Program Area:" +msgstr "" + +#: website/templates/project/project.mako:363 +msgid "Subjects:" +msgstr "" + +#: website/templates/project/project.mako:399 +msgid "Withdrawn" +msgstr "" + +#: website/templates/project/project.mako:408 +msgid "" +"This {preprint_word} is publicly available and searchable but is subject " +"to removal by a moderator." +msgstr "" + +#: website/templates/project/project.mako:411 +msgid "" +"This {preprint_word} is not publicly available or searchable until " +"approved by a moderator." +msgstr "" + +#: website/templates/project/project.mako:415 +msgid "This {preprint_word} is publicly available and searchable." +msgstr "" + +#: website/templates/project/project.mako:417 +msgid "This {preprint_word} is not publicly available or searchable." +msgstr "" + +#: website/templates/project/project.mako:461 +#: website/templates/project/view_file.mako:57 +msgid "Loading files..." +msgstr "" + +#: website/templates/project/project.mako:502 +#: website/templates/util/render_addon_widget.mako:70 +msgid "Citation" +msgstr "" + +#: website/templates/project/addon/citations_widget.mako:16 +#: website/templates/project/project.mako:514 +#: website/templates/util/render_addon_widget.mako:136 +msgid "Loading citations..." +msgstr "" + +#: website/templates/project/project.mako:519 +msgid "Customize" +msgstr "" + +#: website/templates/project/project.mako:527 +msgid "Chicago" +msgstr "" + +#: website/templates/project/project.mako:531 +msgid "Get more citations" +msgstr "" + +#: website/templates/project/project.mako:549 +#, python-format +msgid "" +"
    Cite as:
    " +"" +msgstr "" + +#: website/templates/project/project.mako:560 +msgid "Enter custom citation" +msgstr "" + +#: website/templates/project/project.mako:601 +msgid "Recent Activity" +msgstr "" + +#: website/templates/project/project.mako:602 +msgid "Clear Filters" +msgstr "" + +#: website/templates/project/project.mako:603 +msgid "Refresh" +msgstr "" + +#: website/templates/project/project.mako:635 +msgid "Loading logs..." +msgstr "" + +#: website/templates/project/project.mako:641 +msgid "Download as file" +msgstr "" + +#: website/templates/project/project.mako:642 +#: website/templates/project/timestamp.mako:206 +msgid "Download" +msgstr "" + +#: website/templates/project/project.mako:655 +msgid "Components" +msgstr "" + +#: website/templates/project/project.mako:659 +msgid "Add Component" +msgstr "" + +#: website/templates/project/project.mako:661 +msgid "Link Projects" +msgstr "" + +#: website/templates/project/project.mako:671 +msgid "Add components to organize your project." +msgstr "" + +#: website/templates/project/project_header.mako:16 +msgid "Component" +msgstr "" + +#: website/templates/project/project_header.mako:16 +msgid "Navigation" +msgstr "" + +#: website/templates/project/project_header.mako:61 +msgid "Analytics" +msgstr "" + +#: website/templates/project/project_header.mako:67 +msgid "Registrations" +msgstr "" + +#: website/templates/project/project_header.mako:76 +msgid "Add-ons" +msgstr "" + +#: website/templates/project/project_header.mako:96 +#: website/templates/project/timestamp.mako:2 +msgid "Timestamp" +msgstr "" + +#: website/templates/project/project_header.mako:128 +msgid "" +"This file is part of a registration and is being shown in its archived " +"version (and cannot be altered)." +msgstr "" + +#: website/templates/project/project_header.mako:129 +#, python-format +msgid "" +"The active file is viewable from within the live %(nodeType)s." +msgstr "" + +#: website/templates/project/project_header.mako:131 +#, python-format +msgid "" +"This registration is a frozen, non-editable version of this %(nodeType)s" +msgstr "" + +#: website/templates/project/project_header.mako:135 +#, python-format +msgid "" +"This is a pending registration of this " +"%(nodeType)s, awaiting approval from project administrators. This " +"registration will be final when all project administrators approve the " +"registration or 48 hours pass, whichever comes first." +msgstr "" + +#: website/templates/project/project_header.mako:141 +#: website/templates/project/project_header.mako:173 +msgid "Cancel registration" +msgstr "" + +#: website/templates/project/project_header.mako:159 +#, python-format +msgid "This %(nodeType)s is currently pending withdrawal." +msgstr "" + +#: website/templates/project/project_header.mako:163 +#, python-format +msgid "" +"This %(nodeType)s is a withdrawn registration of this %(nodeType)s; the content of the " +"%(nodeType)s has been taken down for the reason(s) stated below." +msgstr "" + +#: website/templates/project/project_header.mako:168 +#, python-format +msgid "" +"This %(nodeType)s is currently pending registration, awaiting approval " +"from project administrators. This registration will be final and enter " +"the embargo period when all project administrators approve the " +"registration or 48 hours pass, whichever comes first. The embargo will " +"keep the registration private until the embargo period ends." +msgstr "" + +#: website/templates/project/project_header.mako:182 +#, python-format +msgid "" +"This registration is currently embargoed. It will remain private until " +"its embargo end date, %(embargoEndDate)s." +msgstr "" + +#: website/templates/project/project_header.mako:188 +#, python-format +msgid "" +"This %(nodeType)s contains supplemental materials for a preprint, but has" +" been made Private. Make your supplemental materials discoverable by " +"making this %(nodeType)s Public." +msgstr "" + +#: website/templates/project/project_header.mako:192 +#, python-format +msgid "" +"This %(nodeType)s is being viewed through an anonymized, view-only link. " +"If you want to view it as a contributor, click here." +msgstr "" + +#: website/templates/project/project_header.mako:196 +#, python-format +msgid "" +"This %(nodeType)s is being viewed through a private, view-only link. " +"Anyone with the link can view this project. Keep the link safe." +msgstr "" + +#: website/templates/project/settings.mako:17 +#: website/templates/project/settings.mako:76 +#: website/templates/project/settings.mako:150 +#: website/templates/project/settings.mako:163 +#: website/templates/util/render_node.mako:18 +msgid "node_type" +msgstr "" + +#: website/templates/project/settings.mako:21 +#: website/templates/project/settings.mako:178 +msgid "Storage Location" +msgstr "" + +#: website/templates/project/settings.mako:33 +#: website/templates/project/settings.mako:225 +msgid "Access Requests" +msgstr "" + +#: website/templates/project/settings.mako:39 +#: website/templates/project/settings.mako:318 +msgid "Commenting" +msgstr "" + +#: website/templates/project/settings.mako:42 +#: website/templates/project/settings.mako:359 +msgid "Email Notifications" +msgstr "" + +#: website/templates/project/settings.mako:44 +#: website/templates/project/settings.mako:391 +msgid "Redirect Link" +msgstr "" + +#: website/templates/project/settings.mako:51 +msgid "Withdraw Public Registration" +msgstr "" + +#: website/templates/project/settings.mako:57 +#: website/templates/project/settings.mako:469 +msgid "Project Affiliation / Branding" +msgstr "" + +#: website/templates/project/settings.mako:82 +msgid "(For descriptive purposes)" +msgstr "" + +#: website/templates/project/settings.mako:87 +msgid "Uncategorized" +msgstr "" + +#: website/templates/project/settings.mako:114 +msgid "Select Timestamp Function:" +msgstr "" + +#: website/templates/project/settings.mako:117 +#: website/templates/project/settings.mako:122 +msgid "Timestamp only" +msgstr "" + +#: website/templates/project/settings.mako:133 +msgid "Save changes" +msgstr "" + +#: website/templates/project/settings.mako:141 +msgid "" +"A project cannot be deleted if it has any components within it." +" To delete a parent project, you must " +"first delete all child components by " +"visiting their settings pages." +msgstr "" + +#: website/templates/project/settings.mako:150 +#: website/templates/project/settings.mako:163 +#, python-format +msgid "Delete %(nodeType)s" +msgstr "" + +#: website/templates/project/settings.mako:156 +#, python-format +msgid "" +"A project which is related to a external group (%(group)s) cannot be " +"deleted." +msgstr "" + +#: website/templates/project/settings.mako:185 +msgid "Storage location cannot be changed after project is created." +msgstr "" + +#: website/templates/project/settings.mako:237 +msgid "Allow users to request access to this project." +msgstr "" + +#: website/templates/project/settings.mako:270 +#, python-format +msgid "Enable the wiki in %(title)s." +msgstr "" + +#: website/templates/project/settings.mako:283 +msgid "Configure" +msgstr "" + +#: website/templates/project/settings.mako:286 +#, python-format +msgid "Control who can edit the wiki of %(title)s" +msgstr "" + +#: website/templates/project/settings.mako:288 +#, python-format +msgid "" +"Control who can edit your wiki. To allow all GakuNin RDM users to edit " +"the wiki, %(title)s must be public." +msgstr "" + +#: website/templates/project/settings.mako:298 +msgid "Loading wiki settings..." +msgstr "" + +#: website/templates/project/settings.mako:328 +msgid "Only contributors can post comments" +msgstr "" + +#: website/templates/project/settings.mako:334 +#, python-format +msgid "When the %(nodeType)s is public, any GakuNin RDM user can post comments" +msgstr "" + +#: website/templates/project/settings.mako:363 +msgid "" +"These notification settings only apply to you. They do NOT affect any " +"other contributor on this project." +msgstr "" + +#: website/templates/project/settings.mako:402 +msgid "Redirect visitors from your project page to an external webpage" +msgstr "" + +#: website/templates/project/settings.mako:427 +#: website/templates/project/settings.mako:449 +msgid "Withdraw Registration" +msgstr "" + +#: website/templates/project/settings.mako:435 +#, python-format +msgid "" +"Withdrawing children components of a registration is not allowed. Should " +"you wish to withdraw this component, " +"please withdraw its parent registration here." +msgstr "" + +#: website/templates/project/settings.mako:442 +msgid "" +"Withdrawing a registration will remove its content from the GakuNin RDM, " +"but leave basic metadata behind. The " +"title of a withdrawn registration and its contributor list will remain, " +"as will justification or explanation " +"of the withdrawal, should you wish to provide it. Withdrawn" +" registrations will be marked with a " +"withdrawn tag." +msgstr "" + +#: website/templates/project/settings.mako:451 +msgid "This registration is already pending withdrawal." +msgstr "" + +#: website/templates/project/settings.mako:474 +msgid "" +"Contributors with read-only permissions to this project cannot add or " +"remove institutional affiliations." +msgstr "" + +#: website/templates/project/settings.mako:477 +msgid "" +"Projects can be affiliated with institutions that have created GakuNin " +"RDM for Institutions accounts." +msgstr "" + +#: website/templates/project/settings.mako:478 +msgid "This allows:" +msgstr "" + +#: website/templates/project/settings.mako:480 +msgid "institutional logos to be displayed on public projects" +msgstr "" + +#: website/templates/project/settings.mako:481 +msgid "public projects to be discoverable on specific institutional landing pages" +msgstr "" + +#: website/templates/project/settings.mako:482 +msgid "single sign-on to the GakuNin RDM with institutional credentials" +msgstr "" + +#: website/templates/project/settings.mako:483 +msgid "FAQ" +msgstr "" + +#: website/templates/project/settings.mako:511 +msgid "Available Institutions:" +msgstr "" + +#: website/templates/project/timestamp.mako:10 +msgid "Timestamp Control" +msgstr "" + +#: website/templates/project/timestamp.mako:27 +msgid "Timestamp Error" +msgstr "" + +#: website/templates/project/timestamp.mako:41 +msgid "Start Date" +msgstr "" + +#: website/templates/project/timestamp.mako:47 +msgid "End Date" +msgstr "" + +#: website/templates/project/timestamp.mako:53 +msgid "User" +msgstr "" + +#: website/templates/project/timestamp.mako:60 +msgid "Apply" +msgstr "" + +#: website/templates/project/timestamp.mako:69 +msgid "Verify" +msgstr "" + +#: website/templates/project/timestamp.mako:70 +msgid "Request Trusted Timestamp" +msgstr "" + +#: website/templates/project/timestamp.mako:81 +msgid "Processing, please wait..." +msgstr "" + +#: website/templates/project/timestamp.mako:99 +msgid "per page:" +msgstr "" + +#: website/templates/project/timestamp.mako:122 +msgid "Provider" +msgstr "" + +#: website/templates/project/timestamp.mako:129 +msgid "File Path" +msgstr "" + +#: website/templates/project/timestamp.mako:136 +msgid "Timestamp by" +msgstr "" + +#: website/templates/project/timestamp.mako:143 +msgid "Updated at" +msgstr "" + +#: website/templates/project/timestamp.mako:150 +msgid "Timestamp Verification" +msgstr "" + +#: website/templates/project/view_file.mako:19 +msgid "Version:" +msgstr "" + +#: website/templates/project/view_file.mako:34 +#: website/templates/project/view_file.mako:36 +msgid "Timestamp verification:" +msgstr "" + +#: website/templates/project/view_file.mako:52 +msgid "No files" +msgstr "" + +#: website/templates/project/view_file.mako:107 +msgid "Connected to collaborative file editing" +msgstr "" + +#: website/templates/project/view_file.mako:111 +msgid "" +"This page is currently connected to collaborative file editing. All edits" +" made will be visible to contributors with write permission in " +"real time. Changes will be stored but not published until you " +"click the \"Save\" button." +msgstr "" + +#: website/templates/project/view_file.mako:128 +msgid "Connecting to collaborative file editing" +msgstr "" + +#: website/templates/project/view_file.mako:132 +msgid "" +"This page is currently attempting to connect to collaborative file " +"editing. You may continue to make edits." +msgstr "" + +#: website/templates/project/view_file.mako:148 +msgid "Collaborative file editing is unavailable" +msgstr "" + +#: website/templates/project/view_file.mako:152 +msgid "" +"Collaborative file editing is currently unavailable. You may continue to " +"make edits." +msgstr "" + +#: website/templates/project/addon/node_settings.mako:15 +msgid "Submit" +msgstr "" + +#: website/templates/project/addon/node_settings_default.mako:7 +#, python-format +msgid "authorized by %(ownerName)s" +msgstr "" + +#: website/templates/project/addon/page.mako:4 +msgid "Add-on" +msgstr "" + +#: website/templates/project/addon/page.mako:21 +#: website/templates/project/addon/widget.mako:17 +#, python-format +msgid "%(fullname)s add-on is not configured properly." +msgstr "" + +#: website/templates/project/addon/page.mako:23 +#: website/templates/project/addon/widget.mako:19 +#: website/templates/util/render_addon_widget.mako:240 +#, python-format +msgid "Configure this add-on on the add-ons page." +msgstr "" + +#: website/templates/util/contributor_list.mako:18 +#, python-format +msgid "%(othersCount)s more" +msgstr "" + +#: website/templates/util/oauth_complete.mako:9 +msgid "OAuth Complete" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:30 +msgid "Read More" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:61 +msgid "Dataset" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:64 +msgid "Global ID" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:67 +#: website/templates/util/render_addon_widget.mako:68 +msgid "Dataverse" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:93 +#, python-format +msgid "" +"This project contains a forward to ." +msgstr "" + +#: website/templates/util/render_addon_widget.mako:99 +#: website/templates/util/render_addon_widget.mako:112 +msgid "Redirect" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:107 +#, python-format +msgid "" +"This project contains a forward to ." +msgstr "" + +#: website/templates/util/render_addon_widget.mako:144 +#: website/templates/util/render_addon_widget.mako:175 +msgid "Loading" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:147 +#: website/templates/util/render_addon_widget.mako:178 +msgid "Error occurred" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:151 +msgid "Linked JupyterHubs" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:158 +msgid "Launch" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:166 +msgid "No Linked JupyterHubs" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:182 +msgid "Management Project" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:184 +msgid "Flowable Task Service" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:192 +#: website/templates/util/render_addon_widget.mako:219 +msgid "Deposit Manuscript & Data" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:200 +#: website/templates/util/render_addon_widget.mako:225 +msgid "Image Scan only" +msgstr "" + +#: website/templates/util/render_node.mako:5 +msgid "component" +msgstr "" + +#: website/templates/util/render_node.mako:18 +#, python-format +msgid "Linked %(nodeType)s" +msgstr "" + +#: website/templates/util/render_node.mako:22 +msgid "This project is private" +msgstr "" + +#: website/templates/util/render_node.mako:57 +msgid "Remove link" +msgstr "" + +#: website/templates/util/render_node.mako:58 +#, python-format +msgid "Create a fork of %(summaryTitle)s" +msgstr "" + +#: website/templates/util/render_node.mako:66 +msgid "Manage Contributors" +msgstr "" + +#: website/templates/util/render_addon_widget.mako:245 +msgid "My Screen Test" +msgstr "" diff --git a/ScreenExpansion/osf.io/website/translations/ja/LC_MESSAGES/js_messages.po b/ScreenExpansion/osf.io/website/translations/ja/LC_MESSAGES/js_messages.po new file mode 100644 index 0000000..78f5fdf --- /dev/null +++ b/ScreenExpansion/osf.io/website/translations/ja/LC_MESSAGES/js_messages.po @@ -0,0 +1,7796 @@ +# Japanese translations for . +# Copyright (C) 2020 ORGANIZATION +# This file is distributed under the same license as the project. +# FIRST AUTHOR , 2020. +# +msgid "" +msgstr "" +"Project-Id-Version: 0.6.0\n" +"Report-Msgid-Bugs-To: rocs-office@nii.ac.jp\n" +"POT-Creation-Date: 2020-09-03 12:45+0900\n" +"PO-Revision-Date: 2020-09-03 12:45+0900\n" +"Last-Translator: Shunta Nishikawa\n" +"Language: ja\n" +"Language-Team: RCOS \n" +"Plural-Forms: nplurals=1; plural=0\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.7.0\n" + +#: addons/twofactor/static/twoFactorUserConfig.js:148 +#: addons/twofactor/static/twoFactorUserConfig.js:190 +#: admin/static/js/rdm_addons/rdm-addons-page.js:71 +#: website/static/js/accountSettings.js:286 +#: website/static/js/accountSettings.js:351 +#: website/static/js/accountSettings.js:477 +#: website/static/js/accountSettings.js:549 +#: website/static/js/addProjectPlugin.js:347 +#: website/static/js/addonPermissions.js:55 +#: website/static/js/addonSettings.js:71 website/static/js/addonSettings.js:134 +#: website/static/js/apiApplication.js:249 +#: website/static/js/apiApplication.js:420 +#: website/static/js/apiApplication.js:487 +#: website/static/js/apiPersonalToken.js:228 +#: website/static/js/apiPersonalToken.js:399 +#: website/static/js/apiPersonalToken.js:426 +#: website/static/js/citationsNodeConfig.js:169 +#: website/static/js/citationsNodeConfig.js:187 +#: website/static/js/contribManager.js:433 website/static/js/fangorn.js:537 +#: website/static/js/fangorn.js:542 website/static/js/fangorn.js:1212 +#: website/static/js/fangorn.js:1235 website/static/js/fangorn.js:1288 +#: website/static/js/fangorn.js:1307 website/static/js/fangorn.js:2006 +#: website/static/js/filepage/index.js:213 +#: website/static/js/folderPickerNodeConfig.js:510 +#: website/static/js/folderPickerNodeConfig.js:566 +#: website/static/js/institutionProjectSettings.js:102 +#: website/static/js/licensePicker.js:243 website/static/js/myProjects.js:1560 +#: website/static/js/myProjects.js:1608 website/static/js/myProjects.js:1632 +#: website/static/js/nodeControl.js:227 +#: website/static/js/oauthAddonNodeConfig.js:156 +#: website/static/js/oauthAddonNodeConfig.js:174 +#: website/static/js/osfHelpers.js:796 website/static/js/osfHelpers.js:897 +#: website/static/js/pages/profile-settings-addons-page.js:35 +#: website/static/js/pages/profile-settings-addons-page.js:101 +#: website/static/js/pages/project-addons-page.js:41 +#: website/static/js/pages/project-addons-page.js:66 +#: website/static/js/privateLinkTable.js:119 website/static/js/profile.js:373 +#: website/static/js/profile.js:743 website/static/js/profile.js:975 +#: website/static/js/project.js:39 website/static/js/project.js:143 +#: website/static/js/project.js:253 +#: website/static/js/wikiSettingsTreebeard.js:31 +msgid "Cancel" +msgstr "キャンセル" + +#: addons/twofactor/static/twoFactorUserConfig.js:178 +msgid "Enable Two-factor Authentication" +msgstr "2要素認証を有効にする" + +#: addons/twofactor/static/twoFactorUserConfig.js:179 +msgid "" +"Enabling two-factor authentication will not immediately activate this " +"feature for your account. You will need to follow the steps that appear " +"below to complete the activation of two-factor authentication for your " +"account." +msgstr "" +"2要素認証を有効にしても、アカウントのこの機能はすぐには有効になりません。 " +"アカウントの2要素認証のアクティベーションを完了するには、以下に表示される手順に従う必要があります。" + +#: addons/twofactor/static/twoFactorUserConfig.js:187 +msgid "Enable" +msgstr "有効にする" + +#: addons/wiki/static/WikiEditor.js:86 +msgid "Live editing mode" +msgstr "ライブ編集モード" + +#: addons/wiki/static/WikiEditor.js:88 +msgid "Attempting to connect" +msgstr "接続試行中" + +#: addons/wiki/static/WikiEditor.js:90 +msgid "Unsupported browser" +msgstr "サポートされていないブラウザ" + +#: addons/wiki/static/WikiEditor.js:92 +msgid "Unavailable: Live editing" +msgstr "利用不可:ライブ編集" + +#: addons/wiki/static/WikiEditor.js:153 +msgid "The wiki content could not be loaded." +msgstr "Wikiコンテンツをロードできませんでした。" + +#: addons/wiki/static/WikiEditor.js:155 +msgid "Could not GET wiki contents." +msgstr "Wikiコンテンツを取得できませんでした。" + +#: addons/wiki/static/WikiEditor.js:176 +msgid "There are unsaved changes to your wiki. If you exit " +msgstr "wikiに未保存の変更があります。" + +#: addons/wiki/static/WikiEditor.js:177 +msgid "the page now, those changes may be lost." +msgstr "ここでページを終了すると、これらの変更が失われる可能性があります。" + +#: addons/wiki/static/wikiPage.js:94 +#: website/static/js/pages/project-dashboard-page.js:733 +msgid "" +"*Add important information, links, or images here to describe your " +"project.*" +msgstr "*重要な情報、リンク、または画像をここに追加して、プロジェクトを説明してください。*" + +#: addons/wiki/static/wikiPage.js:96 +#: website/static/js/pages/project-dashboard-page.js:735 +msgid "*No wiki content.*" +msgstr "* Wikiコンテンツはありません。*" + +#: addons/wiki/static/wikiPage.js:220 +msgid "Live preview" +msgstr "ライブプレビュー" + +#: addons/wiki/static/wikiPage.js:222 +msgid "Current version" +msgstr "現在のバージョン" + +#: addons/wiki/static/wikiPage.js:224 +msgid "Previous version" +msgstr "前のバージョン" + +#: addons/wiki/static/wikiPage.js:226 +msgid "Version " +msgstr "バージョン" + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:48 +msgid "Strong " +msgstr "強調構文 " + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:51 +msgid "Emphasis " +msgstr "強調構文 " + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:54 +msgid "Spellcheck: Toggle spellcheck on and off" +msgstr "スペルチェック:スペルチェックのオンとオフを切り替えます" + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:56 +msgid "Hyperlink " +msgstr "ハイパーリンク " + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:60 +msgid "Blockquote
    " +msgstr "引用構文
    " + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:63 +msgid "Code Sample
    "
    +msgstr "コードサンプル 
    "
    +
    +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:66
    +msgid "Image "
    +msgstr "画像 "
    +
    +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:70
    +msgid "Numbered List 
      " +msgstr "段落番号
        " + +#: addons/wiki/static/pagedown-ace/Markdown.Editor.js:71 +msgid "Bulleted List