1<?php 2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 3// 4// All Rights Reserved. See copyright.txt for details and a complete list of authors. 5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 6// $Id$ 7 8function prefs_zotero_list() 9{ 10 return [ 11 'zotero_enabled' => [ 12 'name' => tra('Zotero bibliography'), 13 'help' => 'Zotero', 14 'description' => tra('Connect Tiki to the <a href="https://www.zotero.org">Zotero</a> online bibliography management system.'), 15 'type' => 'flag', 16 'hint' => tr('You must supply the following items: Zotero Client Key, Zotero Client Secret, Zotero Group, and Zotero Reference Style.'), 17 'default' => 'n', 18 ], 19 'zotero_client_key' => [ 20 'name' => tra('Zotero client key'), 21 'description' => tra('Required identification key. Registration required.'), 22 'type' => 'text', 23 'size' => 20, 24 'default' => '', 25 ], 26 'zotero_client_secret' => [ 27 'name' => tra('Zotero client secret'), 28 'description' => tra('Required identification key. Registration required.'), 29 'type' => 'text', 30 'size' => 20, 31 'default' => '', 32 ], 33 'zotero_group_id' => [ 34 'name' => tra('Zotero group ID'), 35 'description' => tra('Numeric ID of the group, can be found in the URL.'), 36 'type' => 'text', 37 'filter' => 'digits', 38 'size' => 7, 39 'default' => '', 40 ], 41 'zotero_style' => [ 42 'name' => tra('Zotero reference style'), 43 'description' => tra('Use an alternate Zotero reference style when formatting the references. The reference formats must be installed on the Zotero server.'), 44 'type' => 'text', 45 'filter' => 'text', 46 'size' => 20, 47 'default' => '', 48 ], 49 ]; 50} 51