ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilRis.php
Go to the documentation of this file.
1 <?php
2 
9 class ilRis implements ilBiblTypeInterface
10 {
11 
15  public function getId() : int
16  {
18  }
19 
20 
24  public function getStringRepresentation() : string
25  {
26  return "ris";
27  }
28 
29 
33  public function getStandardFieldIdentifiers() : array
34  {
35  return self::$standard_fields;
36  }
37 
38 
44  protected static $standard_fields
45  = array(
46  'A1', // First Author
47  'A2', // Secondary Author (each author on its own line preceded by the tag)
48  'A3', // Tertiary Author (each author on its own line preceded by the tag)
49  'A4', // Subsidiary Author (each author on its own line preceded by the tag)
50  'AB', // Abstract
51  'AD', // Author Address
52  'AN', // Accession Number
53  'AU', // Author (each author on its own line preceded by the tag)
54  'AV', // Location in Archives
55  'BT', // This field can contain alphanumeric characters; There is no practical limit to the length of this field.
56  'C1', // Custom 1
57  'C2', // Custom 2
58  'C3', // Custom 3
59  'C4', // Custom 4
60  'C5', // Custom 5
61  'C6', // Custom 6
62  'C7', // Custom 7
63  'C8', // Custom 8
64  'CA', // Caption
65  'CN', // Call Number
66  'CP', // This field can contain alphanumeric characters; There is no practical limit to the length of this field.
67  'CT', // Title of unpublished reference
68  'CY', // Place Published
69  'DA', // Date
70  'DB', // Name of Database
71  'DO', // DOI
72  'DP', // Database Provider
73  'ED', // Editor
74  'EP', // End Page
75  'ET', // Edition
76  'ID', // Reference ID
77  'IS', // Issue number
78  'J1', // Periodical name: user abbreviation 1. This is an alphanumeric field of up to 255 characters.
79  'J2', // Alternate Title (this field is used for the abbreviated title of a book or journal name, the latter mapped to T2)
80  'JA', // Periodical name: standard abbreviation. This is the periodical in which the article was (or is to be, in the case of in-press references) published. This is an alphanumeric field of up to 255 characters.
81  'JF', // Journal/Periodical name: full format. This is an alphanumeric field of up to 255 characters.
82  'JO', // Journal/Periodical name: full format. This is an alphanumeric field of up to 255 characters.
83  'KW', // Keywords (keywords should be entered each on its own line preceded by the tag)
84  'L1', // Link to PDF. There is no practical limit to the length of this field. URL addresses can be entered individually, one per tag or multiple addresses can be entered on one line using a semi-colon as a separator.
85  'L2', // Link to Full-text. There is no practical limit to the length of this field. URL addresses can be entered individually, one per tag or multiple addresses can be entered on one line using a semi-colon as a separator.
86  'L3', // Related Records. There is no practical limit to the length of this field.
87  'L4', // Image(s). There is no practical limit to the length of this field.
88  'LA', // Language
89  'LB', // Label
90  'LK', // Website Link
91  'M1', // Number
92  'M2', // Miscellaneous 2. This is an alphanumeric field and there is no practical limit to the length of this field.
93  'M3', // Type of Work
94  'N1', // Notes
95  'N2', // Abstract. This is a free text field and can contain alphanumeric characters; there is no practical length limit to this field.
96  'NV', // Number of Volumes
97  'OP', // Original Publication
98  'PB', // Publisher
99  'PP', // Publishing Place
100  'PY', // Publication year (YYYY/MM/DD)
101  'RI', // Reviewed Item
102  'RN', // Research Notes
103  'RP', // Reprint Edition
104  'SE', // Section
105  'SN', // ISBN/ISSN
106  'SP', // Start Page
107  'ST', // Short Title
108  'T1', // Primary Title
109  'T2', // Secondary Title (journal title, if applicable)
110  'T3', // Tertiary Title
111  'TA', // Translated Author
112  'TI', // Title
113  'TT', // Translated Title
114  'U1', // User definable 1. This is an alphanumeric field and there is no practical limit to the length of this field.
115  'U2', // User definable 2. This is an alphanumeric field and there is no practical limit to the length of this field.
116  'U3', // User definable 3. This is an alphanumeric field and there is no practical limit to the length of this field.
117  'U4', // User definable 4. This is an alphanumeric field and there is no practical limit to the length of this field.
118  'U5', // User definable 5. This is an alphanumeric field and there is no practical limit to the length of this field.
119  'UR', // URL
120  'VL', // Volume number
121  'VO', // Published Standard number
122  'Y1', // Primary Date
123  'Y2',
124  // Access Date
125  );
129  protected static $entry_types
130  = array(
131  'ABST', 'ADVS', 'ART', 'BILL', 'BOOK', 'CASE', 'CHAP', 'COMP', 'CONF', 'CTLG', 'DATA', 'ELEC', 'GEN', 'HEAR', 'ICOMM', 'INPR', 'JFULL', 'JOUR', 'MAP', 'MGZN', 'MPCT', 'MUSIC', 'NEWS', 'PAMP', 'PAT', 'PCOMM', 'RPRT', 'SER', 'SLIDE', 'SOUND', 'STAT', 'THES', 'UNBILl', 'UNPB', 'VIDEO',
132  );
133 
134 
140  public function isStandardField(string $field_name) : bool
141  {
142  return in_array(strtoupper($field_name), self::$standard_fields);
143  }
144 
145 
151  public function isEntryType(string $entry_ype) : bool
152  {
153  return in_array(strtoupper($entry_ype), self::$entry_types);
154  }
155 }
static $entry_types
Class ilRisInterface.
Definition: class.ilRis.php:9
isEntryType(string $entry_ype)
Interface ilBiblTypeInterface.
isStandardField(string $field_name)
getStandardFieldIdentifiers()
Definition: class.ilRis.php:33
getStringRepresentation()
Definition: class.ilRis.php:24
static $standard_fields
Definition: class.ilRis.php:45