ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilRis.php
Go to the documentation of this file.
1 <?php
2 
25 class ilRis implements ilBiblTypeInterface
26 {
30  public function getId(): int
31  {
33  }
34 
35 
39  public function getStringRepresentation(): string
40  {
41  return "ris";
42  }
43 
44 
48  public function getStandardFieldIdentifiers(): array
49  {
50  return self::$standard_fields;
51  }
52 
53 
57  protected static array $standard_fields
58  = array(
59  'A1',
60  // First Author
61  'A2',
62  // Secondary Author (each author on its own line preceded by the tag)
63  'A3',
64  // Tertiary Author (each author on its own line preceded by the tag)
65  'A4',
66  // Subsidiary Author (each author on its own line preceded by the tag)
67  'AB',
68  // Abstract
69  'AD',
70  // Author Address
71  'AN',
72  // Accession Number
73  'AU',
74  // Author (each author on its own line preceded by the tag)
75  'AV',
76  // Location in Archives
77  'BT',
78  // This field can contain alphanumeric characters; There is no practical limit to the length of this field.
79  'C1',
80  // Custom 1
81  'C2',
82  // Custom 2
83  'C3',
84  // Custom 3
85  'C4',
86  // Custom 4
87  'C5',
88  // Custom 5
89  'C6',
90  // Custom 6
91  'C7',
92  // Custom 7
93  'C8',
94  // Custom 8
95  'CA',
96  // Caption
97  'CN',
98  // Call Number
99  'CP',
100  // This field can contain alphanumeric characters; There is no practical limit to the length of this field.
101  'CT',
102  // Title of unpublished reference
103  'CY',
104  // Place Published
105  'DA',
106  // Date
107  'DB',
108  // Name of Database
109  'DO',
110  // DOI
111  'DP',
112  // Database Provider
113  'ED',
114  // Editor
115  'EP',
116  // End Page
117  'ET',
118  // Edition
119  'ID',
120  // Reference ID
121  'IS',
122  // Issue number
123  'J1',
124  // Periodical name: user abbreviation 1. This is an alphanumeric field of up to 255 characters.
125  'J2',
126  // Alternate Title (this field is used for the abbreviated title of a book or journal name, the latter mapped to T2)
127  'JA',
128  // 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.
129  'JF',
130  // Journal/Periodical name: full format. This is an alphanumeric field of up to 255 characters.
131  'JO',
132  // Journal/Periodical name: full format. This is an alphanumeric field of up to 255 characters.
133  'KW',
134  // Keywords (keywords should be entered each on its own line preceded by the tag)
135  'L1',
136  // 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.
137  'L2',
138  // 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.
139  'L3',
140  // Related Records. There is no practical limit to the length of this field.
141  'L4',
142  // Image(s). There is no practical limit to the length of this field.
143  'LA',
144  // Language
145  'LB',
146  // Label
147  'LK',
148  // Website Link
149  'M1',
150  // Number
151  'M2',
152  // Miscellaneous 2. This is an alphanumeric field and there is no practical limit to the length of this field.
153  'M3',
154  // Type of Work
155  'N1',
156  // Notes
157  'N2',
158  // Abstract. This is a free text field and can contain alphanumeric characters; there is no practical length limit to this field.
159  'NV',
160  // Number of Volumes
161  'OP',
162  // Original Publication
163  'PB',
164  // Publisher
165  'PP',
166  // Publishing Place
167  'PY',
168  // Publication year (YYYY/MM/DD)
169  'RI',
170  // Reviewed Item
171  'RN',
172  // Research Notes
173  'RP',
174  // Reprint Edition
175  'SE',
176  // Section
177  'SN',
178  // ISBN/ISSN
179  'SP',
180  // Start Page
181  'ST',
182  // Short Title
183  'T1',
184  // Primary Title
185  'T2',
186  // Secondary Title (journal title, if applicable)
187  'T3',
188  // Tertiary Title
189  'TA',
190  // Translated Author
191  'TI',
192  // Title
193  'TT',
194  // Translated Title
195  'U1',
196  // User definable 1. This is an alphanumeric field and there is no practical limit to the length of this field.
197  'U2',
198  // User definable 2. This is an alphanumeric field and there is no practical limit to the length of this field.
199  'U3',
200  // User definable 3. This is an alphanumeric field and there is no practical limit to the length of this field.
201  'U4',
202  // User definable 4. This is an alphanumeric field and there is no practical limit to the length of this field.
203  'U5',
204  // User definable 5. This is an alphanumeric field and there is no practical limit to the length of this field.
205  'UR',
206  // URL
207  'VL',
208  // Volume number
209  'VO',
210  // Published Standard number
211  'Y1',
212  // Primary Date
213  'Y2',
214  // Access Date
215  );
216  protected static array $entry_types
217  = array(
218  'ABST',
219  'ADVS',
220  'ART',
221  'BILL',
222  'BOOK',
223  'CASE',
224  'CHAP',
225  'COMP',
226  'CONF',
227  'CTLG',
228  'DATA',
229  'ELEC',
230  'GEN',
231  'HEAR',
232  'ICOMM',
233  'INPR',
234  'JFULL',
235  'JOUR',
236  'MAP',
237  'MGZN',
238  'MPCT',
239  'MUSIC',
240  'NEWS',
241  'PAMP',
242  'PAT',
243  'PCOMM',
244  'RPRT',
245  'SER',
246  'SLIDE',
247  'SOUND',
248  'STAT',
249  'THES',
250  'UNBILl',
251  'UNPB',
252  'VIDEO',
253  );
254 
255 
256  public function isStandardField(string $field_name): bool
257  {
258  return in_array(strtoupper($field_name), self::$standard_fields);
259  }
260 
261 
262  public function isEntryType(string $entry_ype): bool
263  {
264  return in_array(strtoupper($entry_ype), self::$entry_types);
265  }
266 }
static array $entry_types
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: class.ilRis.php:25
isEntryType(string $entry_ype)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static array $standard_fields
https://en.wikipedia.org/wiki/RIS_(file_format)
Definition: class.ilRis.php:58
isStandardField(string $field_name)
getStandardFieldIdentifiers()
Definition: class.ilRis.php:48
getStringRepresentation()
Definition: class.ilRis.php:39