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