Develop and Download Open Source Software

Browse CVS Repository

Annotation of /xoonips-library/xnparticle/iteminfo.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download) (as text)
Tue Jun 10 05:25:44 2014 UTC (9 years, 10 months ago) by ken_ko
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +193 -1 lines
File MIME type: application/x-httpd-php
*** empty log message ***

1 ken_ko 1.1 <?php
2 ken_ko 1.2 // $Revision: 1.1 $
3 ken_ko 1.1 // ------------------------------------------------------------------------- //
4     // XooNIps Library Module Xoops modules for XooNIps Platforms //
5     // Copyright (C) 2006-2009 Keio University and RIKEN, Japan. //
6     // All rights reserved. //
7     // http://sourceforge.jp/projects/xoonips-library/ //
8     // ------------------------------------------------------------------------- //
9     // This program is free software; you can redistribute it and/or modify //
10     // it under the terms of the GNU General Public License as published by //
11     // the Free Software Foundation; either version 2 of the License, or //
12     // (at your option) any later version. //
13     // //
14     // You may not change or alter any portion of this comment or credits //
15     // of supporting developers from this source code or any supporting //
16     // source code which is considered copyrighted (c) material of the //
17     // original comment or credit authors. //
18     // //
19     // This program is distributed in the hope that it will be useful, //
20     // but WITHOUT ANY WARRANTY; without even the implied warranty of //
21     // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
22     // GNU General Public License for more details. //
23     // //
24     // You should have received a copy of the GNU General Public License //
25     // along with this program; if not, write to the Free Software //
26     // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
27     // ------------------------------------------------------------------------- //
28     if ( ! defined( 'XOONIPS_PATH' ) ) {
29     exit();
30     }
31    
32     // load xmlrpc resources
33     $langman =& xoonips_getutility( 'languagemanager' );
34     $langman->read( 'xmlrpc.php', basename( dirname( __FILE__ ) ) );
35    
36     // load common part of iteminfo.php
37     include XOONIPS_PATH.'/include/iteminfo.inc.php';
38    
39     // general information
40     $iteminfo['description'] = 'XooNIps Article Item Type';
41     $iteminfo['files']['main'] = 'article_attachment';
42     $iteminfo['files']['preview'] = 'preview';
43     $iteminfo['files']['others'] = array();
44    
45     // define compo
46     $iteminfo['ormcompo']['module'] = 'xnparticle';
47     $iteminfo['ormcompo']['name'] = 'item';
48     $iteminfo['ormcompo']['primary_orm'] = 'basic';
49     $iteminfo['ormcompo']['primary_key'] = 'item_id';
50    
51     // define orm of compo
52     $iteminfo['orm'][] = array(
53     'module' => 'xnparticle',
54     'name' => 'item_detail',
55     'field' => 'detail',
56     'foreign_key' => 'article_id',
57     'multiple' => false,
58     'required' => true,
59     );
60     $child_sub_title_order_criteria = new Criteria( 1, 1 );
61     $child_sub_title_order_criteria->setSort( 'sub_title_order' );
62     $iteminfo['orm'][] = array(
63     'module' => 'xnparticle',
64     'name' => 'item_detail_child_sub_title',
65     'field' => 'child_sub_title',
66     'foreign_key' => 'article_id',
67     'multiple' => true,
68     'criteria' => $child_sub_title_order_criteria,
69     );
70     $child_author_order_criteria = new Criteria( 1, 1 );
71     $child_author_order_criteria->setSort( 'author_order' );
72     $iteminfo['orm'][] = array(
73     'module' => 'xnparticle',
74     'name' => 'item_detail_child_author',
75     'field' => 'child_author',
76     'foreign_key' => 'article_id',
77     'multiple' => true,
78     'criteria' => $child_author_order_criteria,
79     );
80     $child_keywords_order_criteria = new Criteria( 1, 1 );
81     $child_keywords_order_criteria->setSort( 'keywords_order' );
82     $iteminfo['orm'][] = array(
83     'module' => 'xnparticle',
84     'name' => 'item_detail_child_keywords',
85     'field' => 'child_keywords',
86     'foreign_key' => 'article_id',
87     'multiple' => true,
88     'criteria' => $child_keywords_order_criteria,
89     );
90     $child_ndc_classifications_order_criteria = new Criteria( 1, 1 );
91     $child_ndc_classifications_order_criteria->setSort( 'ndc_classifications_order' );
92     $iteminfo['orm'][] = array(
93     'module' => 'xnparticle',
94     'name' => 'item_detail_child_ndc_classifications',
95     'field' => 'child_ndc_classifications',
96     'foreign_key' => 'article_id',
97     'multiple' => true,
98     'criteria' => $child_ndc_classifications_order_criteria,
99     );
100     $child_physical_descriptions_order_criteria = new Criteria( 1, 1 );
101     $child_physical_descriptions_order_criteria->setSort( 'physical_descriptions_order' );
102     $iteminfo['orm'][] = array(
103     'module' => 'xnparticle',
104     'name' => 'item_detail_child_physical_descriptions',
105     'field' => 'child_physical_descriptions',
106     'foreign_key' => 'article_id',
107     'multiple' => true,
108     'criteria' => $child_physical_descriptions_order_criteria,
109     );
110     $child_langs_order_criteria = new Criteria( 1, 1 );
111     $child_langs_order_criteria->setSort( 'langs_order' );
112     $iteminfo['orm'][] = array(
113     'module' => 'xnparticle',
114     'name' => 'item_detail_child_langs',
115     'field' => 'child_langs',
116     'foreign_key' => 'article_id',
117     'multiple' => true,
118     'criteria' => $child_langs_order_criteria,
119     );
120     $child_id_issns_order_criteria = new Criteria( 1, 1 );
121     $child_id_issns_order_criteria->setSort( 'id_issns_order' );
122     $iteminfo['orm'][] = array(
123     'module' => 'xnparticle',
124     'name' => 'item_detail_child_id_issns',
125     'field' => 'child_id_issns',
126     'foreign_key' => 'article_id',
127     'multiple' => true,
128     'criteria' => $child_id_issns_order_criteria,
129     );
130     $child_id_isbns_order_criteria = new Criteria( 1, 1 );
131     $child_id_isbns_order_criteria->setSort( 'id_isbns_order' );
132     $iteminfo['orm'][] = array(
133     'module' => 'xnparticle',
134     'name' => 'item_detail_child_id_isbns',
135     'field' => 'child_id_isbns',
136     'foreign_key' => 'article_id',
137     'multiple' => true,
138     'criteria' => $child_id_isbns_order_criteria,
139     );
140     $child_id_dois_order_criteria = new Criteria( 1, 1 );
141     $child_id_dois_order_criteria->setSort( 'id_dois_order' );
142     $iteminfo['orm'][] = array(
143     'module' => 'xnparticle',
144     'name' => 'item_detail_child_id_dois',
145     'field' => 'child_id_dois',
146     'foreign_key' => 'article_id',
147     'multiple' => true,
148     'criteria' => $child_id_dois_order_criteria,
149     );
150     $child_id_uris_order_criteria = new Criteria( 1, 1 );
151     $child_id_uris_order_criteria->setSort( 'id_uris_order' );
152     $iteminfo['orm'][] = array(
153     'module' => 'xnparticle',
154     'name' => 'item_detail_child_id_uris',
155     'field' => 'child_id_uris',
156     'foreign_key' => 'article_id',
157     'multiple' => true,
158     'criteria' => $child_id_uris_order_criteria,
159     );
160     $child_id_locals_order_criteria = new Criteria( 1, 1 );
161     $child_id_locals_order_criteria->setSort( 'id_locals_order' );
162     $iteminfo['orm'][] = array(
163     'module' => 'xnparticle',
164     'name' => 'item_detail_child_id_locals',
165     'field' => 'child_id_locals',
166     'foreign_key' => 'article_id',
167     'multiple' => true,
168     'criteria' => $child_id_locals_order_criteria,
169     );
170     $child_uris_order_criteria = new Criteria( 1, 1 );
171     $child_uris_order_criteria->setSort( 'uris_order' );
172     $iteminfo['orm'][] = array(
173     'module' => 'xnparticle',
174     'name' => 'item_detail_child_uris',
175     'field' => 'child_uris',
176     'foreign_key' => 'article_id',
177     'multiple' => true,
178     'criteria' => $child_uris_order_criteria,
179     );
180     $iteminfo['orm'][] = array(
181     'module' => 'xoonips',
182     'name' => 'file',
183     'field' => 'article_attachment',
184     'foreign_key' => 'item_id',
185     'multiple' => true,
186     'criteria' => iteminfo_file_criteria( 'article_attachment' ),
187     );
188     $iteminfo['orm'][] = array(
189     'module' => 'xoonips',
190     'name' => 'file',
191     'field' => 'preview',
192     'foreign_key' => 'item_id',
193     'multiple' => true,
194     'criteria' => iteminfo_file_criteria( 'preview' ),
195     );
196    
197     // define database table information
198     $iteminfo['ormfield']['detail'] = array(
199     array(
200     'name' => 'article_id',
201     'type' => 'int',
202     'required' => false,
203     ),
204     array(
205     'name' => 'title',
206     'type' => 'string',
207     'required' => true,
208     ),
209     array(
210     'name' => 'title_kana',
211     'type' => 'string',
212     'required' => false,
213     ),
214     array(
215     'name' => 'title_romaji',
216     'type' => 'string',
217     'required' => false,
218     ),
219     array(
220     'name' => 'edition',
221     'type' => 'string',
222     'required' => false,
223     ),
224     array(
225     'name' => 'publish_place',
226     'type' => 'string',
227     'required' => false,
228     ),
229     array(
230     'name' => 'publisher',
231     'type' => 'string',
232     'required' => false,
233     ),
234     array(
235     'name' => 'publisher_kana',
236     'type' => 'string',
237     'required' => false,
238     ),
239     array(
240     'name' => 'publisher_romaji',
241     'type' => 'string',
242     'required' => false,
243     ),
244     array(
245     'name' => 'year_f',
246     'type' => 'string',
247     'required' => false,
248     ),
249     array(
250     'name' => 'year_t',
251     'type' => 'string',
252     'required' => false,
253     ),
254     array(
255     'name' => 'date_create',
256     'type' => 'string',
257     'required' => false,
258     ),
259     array(
260     'name' => 'date_update',
261     'type' => 'string',
262     'required' => false,
263     ),
264     array(
265     'name' => 'date_record',
266     'type' => 'string',
267     'required' => false,
268     ),
269     array(
270     'name' => 'jtitle',
271     'type' => 'string',
272     'required' => false,
273     ),
274     array(
275     'name' => 'jtitle_translation',
276     'type' => 'string',
277     'required' => false,
278     ),
279     array(
280     'name' => 'jtitle_volume',
281     'type' => 'string',
282     'required' => false,
283     ),
284     array(
285     'name' => 'jtitle_issue',
286     'type' => 'string',
287     'required' => false,
288     ),
289     array(
290     'name' => 'jtitle_year',
291     'type' => 'string',
292     'required' => false,
293     ),
294     array(
295     'name' => 'jtitle_month',
296     'type' => 'string',
297     'required' => false,
298     ),
299     array(
300     'name' => 'jtitle_spage',
301     'type' => 'string',
302     'required' => false,
303     ),
304     array(
305     'name' => 'jtitle_epage',
306     'type' => 'string',
307     'required' => false,
308     ),
309     array(
310 ken_ko 1.2 'name' => 'self_doi',
311     'type' => 'string',
312     'required' => false,
313     ),
314     array(
315     'name' => 'naid',
316     'type' => 'string',
317     'required' => false,
318     ),
319     array(
320     'name' => 'ichushi',
321     'type' => 'string',
322     'required' => false,
323     ),
324     array(
325     'name' => 'grant_id',
326     'type' => 'string',
327     'required' => false,
328     ),
329     array(
330     'name' => 'date_of_granted',
331     'type' => 'string',
332     'required' => false,
333     ),
334     array(
335     'name' => 'degree_name',
336     'type' => 'string',
337     'required' => false,
338     ),
339     array(
340     'name' => 'grantor',
341     'type' => 'string',
342     'required' => false,
343     ),
344     array(
345 ken_ko 1.1 'name' => 'abstract',
346     'type' => 'string',
347     'required' => false,
348     ),
349     array(
350     'name' => 'table_of_contents',
351     'type' => 'string',
352     'required' => false,
353     ),
354     array(
355     'name' => 'type_of_resource',
356     'type' => 'string',
357     'required' => false,
358     ),
359     array(
360     'name' => 'genre',
361     'type' => 'string',
362     'required' => false,
363     ),
364     array(
365 ken_ko 1.2 'name' => 'textversion',
366     'type' => 'string',
367     'required' => false,
368     ),
369     array(
370 ken_ko 1.1 'name' => 'access_condition',
371     'type' => 'string',
372     'required' => false,
373     ),
374     array(
375     'name' => 'link',
376     'type' => 'string',
377     'required' => false,
378     ),
379     );
380     $iteminfo['ormfield']['child_sub_title'] = array(
381     array(
382     'name' => 'sub_title_name',
383     'type' => 'string',
384     'required' => false,
385     ),
386     array(
387     'name' => 'sub_title_kana',
388     'type' => 'string',
389     'required' => false,
390     ),
391     array(
392     'name' => 'sub_title_romaji',
393     'type' => 'string',
394     'required' => false,
395     ),
396     array(
397     'name' => 'sub_title_order',
398     'type' => 'int',
399     'required' => true,
400     ),
401     );
402     $iteminfo['ormfield']['child_author'] = array(
403     array(
404     'name' => 'author_id',
405     'type' => 'string',
406     'required' => false,
407     ),
408     array(
409     'name' => 'author_name',
410     'type' => 'string',
411     'required' => false,
412     ),
413     array(
414     'name' => 'author_kana',
415     'type' => 'string',
416     'required' => false,
417     ),
418     array(
419     'name' => 'author_romaji',
420     'type' => 'string',
421     'required' => false,
422     ),
423     array(
424     'name' => 'author_affiliation',
425     'type' => 'string',
426     'required' => false,
427     ),
428     array(
429     'name' => 'author_affiliation_translation',
430     'type' => 'string',
431     'required' => false,
432     ),
433     array(
434     'name' => 'author_role',
435     'type' => 'string',
436     'required' => false,
437     ),
438     array(
439     'name' => 'author_link',
440     'type' => 'string',
441     'required' => false,
442     ),
443     array(
444     'name' => 'author_order',
445     'type' => 'int',
446     'required' => true,
447     ),
448     );
449     $iteminfo['ormfield']['child_keywords'] = array(
450     array(
451     'name' => 'keywords',
452     'type' => 'string',
453     'required' => false,
454     ),
455     array(
456     'name' => 'keywords_order',
457     'type' => 'int',
458     'required' => true,
459     ),
460     );
461     $iteminfo['ormfield']['child_ndc_classifications'] = array(
462     array(
463     'name' => 'ndc_classifications',
464     'type' => 'string',
465     'required' => false,
466     ),
467     array(
468     'name' => 'ndc_classifications_order',
469     'type' => 'int',
470     'required' => true,
471     ),
472     );
473     $iteminfo['ormfield']['child_physical_descriptions'] = array(
474     array(
475     'name' => 'physical_descriptions',
476     'type' => 'string',
477     'required' => false,
478     ),
479     array(
480     'name' => 'physical_descriptions_order',
481     'type' => 'int',
482     'required' => true,
483     ),
484     );
485     $iteminfo['ormfield']['child_langs'] = array(
486     array(
487     'name' => 'langs',
488     'type' => 'string',
489     'required' => false,
490     ),
491     array(
492     'name' => 'langs_order',
493     'type' => 'int',
494     'required' => true,
495     ),
496     );
497     $iteminfo['ormfield']['detail_child_id_issns'] = array(
498     array(
499     'name' => 'id_issns',
500     'type' => 'string',
501     'required' => false,
502     ),
503     array(
504     'name' => 'id_issns_order',
505     'type' => 'int',
506     'required' => true,
507     ),
508     );
509     $iteminfo['ormfield']['child_id_isbns'] = array(
510     array(
511     'name' => 'id_isbns',
512     'type' => 'string',
513     'required' => false,
514     ),
515     array(
516     'name' => 'id_isbns_order',
517     'type' => 'int',
518     'required' => true,
519     ),
520     );
521     $iteminfo['ormfield']['child_id_dois'] = array(
522     array(
523     'name' => 'id_dois',
524     'type' => 'string',
525     'required' => false,
526     ),
527     array(
528     'name' => 'id_dois_order',
529     'type' => 'int',
530     'required' => true,
531     ),
532     );
533     $iteminfo['ormfield']['child_id_uris'] = array(
534     array(
535     'name' => 'id_uris',
536     'type' => 'string',
537     'required' => false,
538     ),
539     array(
540     'name' => 'id_uris_order',
541     'type' => 'int',
542     'required' => true,
543     ),
544     );
545     $iteminfo['ormfield']['child_id_locals'] = array(
546     array(
547     'name' => 'id_locals',
548     'type' => 'string',
549     'required' => false,
550     ),
551     array(
552     'name' => 'id_locals_order',
553     'type' => 'int',
554     'required' => true,
555     ),
556     );
557     $iteminfo['ormfield']['child_uris'] = array(
558     array(
559     'name' => 'uris',
560     'type' => 'string',
561     'required' => false,
562     ),
563     array(
564     'name' => 'uris_order',
565     'type' => 'int',
566     'required' => true,
567     ),
568     );
569    
570     // basic information (override conditions)
571     foreach ( $iteminfo['io']['xmlrpc']['item'] as $key => $val ) {
572     switch ( $val['xmlrpc']['field'][0] ) {
573     case 'comment':
574     $iteminfo['io']['xmlrpc']['item'][$key]['xmlrpc']['display_name'] = '_XR_XNPARTICLE_DISPLAY_NAME_NOTES';
575     break;
576     }
577     }
578    
579     // detail information (modify below for each item types)
580     $iteminfo['io']['xmlrpc']['item'][] = array(
581     'orm' => array(
582     'field' => array(
583     array(
584     'orm' => 'detail',
585     'field' => 'article_id',
586     ),
587     ),
588     ),
589     'xmlrpc' => array(
590     'field' => array(
591     'detail_field',
592     'article_id',
593     ),
594     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_ARTICLE_ID',
595     'type' => 'string',
596     'multiple' => false,
597     'readonly' => true,
598     ),
599     );
600     $iteminfo['io']['xmlrpc']['item'][] = array(
601     'orm' => array(
602     'field' => array(
603     array(
604     'orm' => 'detail',
605     'field' => 'title',
606     ),
607     ),
608     ),
609     'xmlrpc' => array(
610     'field' => array(
611     'detail_field',
612     'title',
613     ),
614     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_TITLE',
615     'type' => 'string',
616     'multiple' => false,
617     'required' => true,
618     ),
619     );
620     $iteminfo['io']['xmlrpc']['item'][] = array(
621     'orm' => array(
622     'field' => array(
623     array(
624     'orm' => 'detail',
625     'field' => 'title_kana',
626     ),
627     ),
628     ),
629     'xmlrpc' => array(
630     'field' => array(
631     'detail_field',
632     'title_kana',
633     ),
634     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_TITLE_KANA',
635     'type' => 'string',
636     'multiple' => false,
637     ),
638     );
639     $iteminfo['io']['xmlrpc']['item'][] = array(
640     'orm' => array(
641     'field' => array(
642     array(
643     'orm' => 'detail',
644     'field' => 'title_romaji',
645     ),
646     ),
647     ),
648     'xmlrpc' => array(
649     'field' => array(
650     'detail_field',
651     'title_romaji',
652     ),
653     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_TITLE_ROMAJI',
654     'type' => 'string',
655     'multiple' => false,
656     ),
657     );
658     $iteminfo['io']['xmlrpc']['item'][] = array(
659     'orm' => array(
660     'field' => array(
661     array(
662     'orm' => 'child_sub_title',
663     'field' => 'sub_title_name',
664     ),
665     array(
666     'orm' => 'child_sub_title',
667     'field' => 'sub_title_kana',
668     ),
669     array(
670     'orm' => 'child_sub_title',
671     'field' => 'sub_title_romaji',
672     ),
673     ),
674     ),
675     'xmlrpc' => array(
676     'field' => array(
677     'detail_field',
678     'sub_title',
679     ),
680     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_SUB_TITLE',
681     'type' => 'string',
682     'multiple' => true,
683     ),
684     );
685     $iteminfo['io']['xmlrpc']['item'][] = array(
686     'orm' => array(
687     'field' => array(
688     array(
689     'orm' => 'child_author',
690     'field' => 'author_id',
691     ),
692     array(
693     'orm' => 'child_author',
694     'field' => 'author_name',
695     ),
696     array(
697     'orm' => 'child_author',
698     'field' => 'author_kana',
699     ),
700     array(
701     'orm' => 'child_author',
702     'field' => 'author_romaji',
703     ),
704     array(
705     'orm' => 'child_author',
706     'field' => 'author_affiliation',
707     ),
708     array(
709     'orm' => 'child_author',
710     'field' => 'author_affiliation_translation',
711     ),
712     ),
713     ),
714     'xmlrpc' => array(
715     'field' => array(
716     'detail_field',
717     'author',
718     ),
719     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_AUTHOR',
720     'type' => 'string',
721     'multiple' => true,
722     ),
723     );
724     $iteminfo['io']['xmlrpc']['item'][] = array(
725     'orm' => array(
726     'field' => array(
727     array(
728     'orm' => 'detail',
729     'field' => 'edition',
730     ),
731     ),
732     ),
733     'xmlrpc' => array(
734     'field' => array(
735     'detail_field',
736     'edition',
737     ),
738     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_EDITION',
739     'type' => 'string',
740     'multiple' => false,
741     ),
742     );
743     $iteminfo['io']['xmlrpc']['item'][] = array(
744     'orm' => array(
745     'field' => array(
746     array(
747     'orm' => 'detail',
748     'field' => 'publish_place',
749     ),
750     ),
751     ),
752     'xmlrpc' => array(
753     'field' => array(
754     'detail_field',
755     'publish_place',
756     ),
757     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_PUBLISH_PLACE',
758     'type' => 'string',
759     'multiple' => false,
760     ),
761     );
762     $iteminfo['io']['xmlrpc']['item'][] = array(
763     'orm' => array(
764     'field' => array(
765     array(
766     'orm' => 'detail',
767     'field' => 'publisher',
768     ),
769     ),
770     ),
771     'xmlrpc' => array(
772     'field' => array(
773     'detail_field',
774     'publisher',
775     ),
776     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_PUBLISHER',
777     'type' => 'string',
778     'multiple' => false,
779     ),
780     );
781     $iteminfo['io']['xmlrpc']['item'][] = array(
782     'orm' => array(
783     'field' => array(
784     array(
785     'orm' => 'detail',
786     'field' => 'publisher_kana',
787     ),
788     ),
789     ),
790     'xmlrpc' => array(
791     'field' => array(
792     'detail_field',
793     'publisher_kana',
794     ),
795     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_PUBLISHER_KANA',
796     'type' => 'string',
797     'multiple' => false,
798     ),
799     );
800     $iteminfo['io']['xmlrpc']['item'][] = array(
801     'orm' => array(
802     'field' => array(
803     array(
804     'orm' => 'detail',
805     'field' => 'year_f',
806     ),
807     ),
808     ),
809     'xmlrpc' => array(
810     'field' => array(
811     'detail_field',
812     'year_f',
813     ),
814     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DATE_PUBLICATION_YEAR_F',
815     'type' => 'string',
816     'multiple' => false,
817     ),
818     );
819     $iteminfo['io']['xmlrpc']['item'][] = array(
820     'orm' => array(
821     'field' => array(
822     array(
823     'orm' => 'detail',
824     'field' => 'year_t',
825     ),
826     ),
827     ),
828     'xmlrpc' => array(
829     'field' => array(
830     'detail_field',
831     'year_t',
832     ),
833     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_PUBLICATION_YEAR_T',
834     'type' => 'string',
835     'multiple' => false,
836     ),
837     );
838     $iteminfo['io']['xmlrpc']['item'][] = array(
839     'orm' => array(
840     'field' => array(
841     array(
842     'orm' => 'detail',
843     'field' => 'date_create',
844     ),
845     ),
846     ),
847     'xmlrpc' => array(
848     'field' => array(
849     'detail_field',
850     'date_create',
851     ),
852     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DATE_CREATE',
853     'type' => 'string',
854     'multiple' => false,
855     ),
856     );
857     $iteminfo['io']['xmlrpc']['item'][] = array(
858     'orm' => array(
859     'field' => array(
860     array(
861     'orm' => 'detail',
862     'field' => 'date_update',
863     ),
864     ),
865     ),
866     'xmlrpc' => array(
867     'field' => array(
868     'detail_field',
869     'date_update',
870     ),
871     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DATE_UPDATE',
872     'type' => 'string',
873     'multiple' => false,
874     ),
875     );
876     $iteminfo['io']['xmlrpc']['item'][] = array(
877     'orm' => array(
878     'field' => array(
879     array(
880     'orm' => 'detail',
881     'field' => 'date_record',
882     ),
883     ),
884     ),
885     'xmlrpc' => array(
886     'field' => array(
887     'detail_field',
888     'date_record',
889     ),
890     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DATE_RECORD',
891     'type' => 'string',
892     'multiple' => false,
893     ),
894     );
895     $iteminfo['io']['xmlrpc']['item'][] = array(
896     'orm' => array(
897     'field' => array(
898     array(
899     'orm' => 'child_physical_descriptions',
900     'field' => 'physical_descriptions',
901     ),
902     ),
903     ),
904     'xmlrpc' => array(
905     'field' => array(
906     'detail_field',
907     'physical_descriptions',
908     ),
909     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_PHYSICAL_DESCRIPTIONS',
910     'type' => 'string',
911     'multiple' => false,
912     ),
913     );
914     $iteminfo['io']['xmlrpc']['item'][] = array(
915     'orm' => array(
916     'field' => array(
917     array(
918     'orm' => 'detail',
919     'field' => 'jtitle',
920     ),
921     ),
922     ),
923     'xmlrpc' => array(
924     'field' => array(
925     'detail_field',
926     'jtitle',
927     ),
928     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE',
929     'type' => 'string',
930     'multiple' => false,
931     ),
932     );
933     $iteminfo['io']['xmlrpc']['item'][] = array(
934     'orm' => array(
935     'field' => array(
936     array(
937     'orm' => 'etail',
938     'field' => 'jtitle_translation',
939     ),
940     ),
941     ),
942     'xmlrpc' => array(
943     'field' => array(
944     'detail_field',
945     'jtitle_translation',
946     ),
947     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_TRANSLATION',
948     'type' => 'string',
949     'multiple' => false,
950     ),
951     );
952     $iteminfo['io']['xmlrpc']['item'][] = array(
953     'orm' => array(
954     'field' => array(
955     array(
956     'orm' => 'detail',
957     'field' => 'jtitle_volume',
958     ),
959     ),
960     ),
961     'xmlrpc' => array(
962     'field' => array(
963     'detail_field',
964     'jtitle_volume',
965     ),
966     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_VOLUME',
967     'type' => 'string',
968     'multiple' => false,
969     ),
970     );
971     $iteminfo['io']['xmlrpc']['item'][] = array(
972     'orm' => array(
973     'field' => array(
974     array(
975     'orm' => 'detail',
976     'field' => 'jtitle_issue',
977     ),
978     ),
979     ),
980     'xmlrpc' => array(
981     'field' => array(
982     'detail_field',
983     'jtitle_issue',
984     ),
985     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_ISSUE',
986     'type' => 'string',
987     'multiple' => false,
988     ),
989     );
990     $iteminfo['io']['xmlrpc']['item'][] = array(
991     'orm' => array(
992     'field' => array(
993     array(
994     'orm' => 'detail',
995     'field' => 'jtitle_year',
996     ),
997     ),
998     ),
999     'xmlrpc' => array(
1000     'field' => array(
1001     'detail_field',
1002     'jtitle_year',
1003     ),
1004     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_YEAR',
1005     'type' => 'string',
1006     'multiple' => false,
1007     ),
1008     );
1009     $iteminfo['io']['xmlrpc']['item'][] = array(
1010     'orm' => array(
1011     'field' => array(
1012     array(
1013     'orm' => 'detail',
1014     'field' => 'jtitle_month',
1015     ),
1016     ),
1017     ),
1018     'xmlrpc' => array(
1019     'field' => array(
1020     'detail_field',
1021     'jtitle_month',
1022     ),
1023     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_MONTH',
1024     'type' => 'string',
1025     'multiple' => false,
1026     ),
1027     );
1028     $iteminfo['io']['xmlrpc']['item'][] = array(
1029     'orm' => array(
1030     'field' => array(
1031     array(
1032     'orm' => 'detail',
1033     'field' => 'jtitle_spage',
1034     ),
1035     ),
1036     ),
1037     'xmlrpc' => array(
1038     'field' => array(
1039     'detail_field',
1040     'jtitle_spage',
1041     ),
1042     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_SPAGE',
1043     'type' => 'string',
1044     'multiple' => false,
1045     ),
1046     );
1047     $iteminfo['io']['xmlrpc']['item'][] = array(
1048     'orm' => array(
1049     'field' => array(
1050     array(
1051     'orm' => 'detail',
1052     'field' => 'jtitle_epage',
1053     ),
1054     ),
1055     ),
1056     'xmlrpc' => array(
1057     'field' => array(
1058     'detail_field',
1059     'jtitle_epage',
1060     ),
1061     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_EPAGE',
1062     'type' => 'string',
1063     'multiple' => false,
1064     ),
1065     );
1066     $iteminfo['io']['xmlrpc']['item'][] = array(
1067     'orm' => array(
1068     'field' => array(
1069     array(
1070     'orm' => 'child_id_issns',
1071     'field' => 'id_issns',
1072     ),
1073     ),
1074     ),
1075     'xmlrpc' => array(
1076     'field' => array(
1077     'detail_field',
1078     'id_issns',
1079     ),
1080     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_ISSN',
1081     'type' => 'string',
1082     'multiple' => true,
1083     ),
1084     );
1085     $iteminfo['io']['xmlrpc']['item'][] = array(
1086     'orm' => array(
1087     'field' => array(
1088     array(
1089     'orm' => 'child_id_isbns',
1090     'field' => 'id_isbns',
1091     ),
1092     ),
1093     ),
1094     'xmlrpc' => array(
1095     'field' => array(
1096     'detail_field',
1097     'id_isbns',
1098     ),
1099     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_ISBN',
1100     'type' => 'string',
1101     'multiple' => true,
1102     ),
1103     );
1104     $iteminfo['io']['xmlrpc']['item'][] = array(
1105     'orm' => array(
1106     'field' => array(
1107     array(
1108     'orm' => 'child_id_dois',
1109     'field' => 'id_dois',
1110     ),
1111     ),
1112     ),
1113     'xmlrpc' => array(
1114     'field' => array(
1115     'detail_field',
1116     'id_dois',
1117     ),
1118     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_DOI',
1119     'type' => 'string',
1120     'multiple' => true,
1121     ),
1122     );
1123     $iteminfo['io']['xmlrpc']['item'][] = array(
1124     'orm' => array(
1125     'field' => array(
1126     array(
1127     'orm' => 'child_id_uris',
1128     'field' => 'id_uris',
1129     ),
1130     ),
1131     ),
1132     'xmlrpc' => array(
1133     'field' => array(
1134     'detail_field',
1135     'id_uris',
1136     ),
1137     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_URI',
1138     'type' => 'string',
1139     'multiple' => true,
1140     ),
1141     );
1142     $iteminfo['io']['xmlrpc']['item'][] = array(
1143     'orm' => array(
1144     'field' => array(
1145     array(
1146 ken_ko 1.2 'orm' => 'detail',
1147     'field' => 'self_doi',
1148     ),
1149     ),
1150     ),
1151     'xmlrpc' => array(
1152     'field' => array(
1153     'detail_field',
1154     'self_doi',
1155     ),
1156     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_SELF_DOI',
1157     'type' => 'string',
1158     'multiple' => false,
1159     ),
1160     );
1161     $iteminfo['io']['xmlrpc']['item'][] = array(
1162     'orm' => array(
1163     'field' => array(
1164     array(
1165     'orm' => 'detail',
1166     'field' => 'naid',
1167     ),
1168     ),
1169     ),
1170     'xmlrpc' => array(
1171     'field' => array(
1172     'detail_field',
1173     'naid',
1174     ),
1175     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_NAID',
1176     'type' => 'string',
1177     'multiple' => false,
1178     ),
1179     );
1180     $iteminfo['io']['xmlrpc']['item'][] = array(
1181     'orm' => array(
1182     'field' => array(
1183     array(
1184     'orm' => 'detail',
1185     'field' => 'ichushi',
1186     ),
1187     ),
1188     ),
1189     'xmlrpc' => array(
1190     'field' => array(
1191     'detail_field',
1192     'ichushi',
1193     ),
1194     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_ICHUSHI',
1195     'type' => 'string',
1196     'multiple' => false,
1197     ),
1198     );
1199     $iteminfo['io']['xmlrpc']['item'][] = array(
1200     'orm' => array(
1201     'field' => array(
1202     array(
1203 ken_ko 1.1 'orm' => 'child_id_locals',
1204     'field' => 'id_locals',
1205     ),
1206     ),
1207     ),
1208     'xmlrpc' => array(
1209     'field' => array(
1210     'detail_field',
1211     'id_locals',
1212     ),
1213     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_OTHER',
1214     'type' => 'string',
1215     'multiple' => true,
1216     ),
1217     );
1218     $iteminfo['io']['xmlrpc']['item'][] = array(
1219     'orm' => array(
1220     'field' => array(
1221     array(
1222     'orm' => 'detail',
1223 ken_ko 1.2 'field' => 'grant_id',
1224     ),
1225     ),
1226     ),
1227     'xmlrpc' => array(
1228     'field' => array(
1229     'detail_field',
1230     'grant_id',
1231     ),
1232     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DOCTORS_DEGREE_GRANT_ID',
1233     'type' => 'string',
1234     'multiple' => false,
1235     ),
1236     );
1237     $iteminfo['io']['xmlrpc']['item'][] = array(
1238     'orm' => array(
1239     'field' => array(
1240     array(
1241     'orm' => 'detail',
1242     'field' => 'date_of_granted',
1243     ),
1244     ),
1245     ),
1246     'xmlrpc' => array(
1247     'field' => array(
1248     'detail_field',
1249     'date_of_granted',
1250     ),
1251     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DOCTORS_DEGREE_DATE_OF_GRANTED',
1252     'type' => 'string',
1253     'multiple' => false,
1254     ),
1255     );
1256     $iteminfo['io']['xmlrpc']['item'][] = array(
1257     'orm' => array(
1258     'field' => array(
1259     array(
1260     'orm' => 'detail',
1261     'field' => 'degree_name',
1262     ),
1263     ),
1264     ),
1265     'xmlrpc' => array(
1266     'field' => array(
1267     'detail_field',
1268     'degree_name',
1269     ),
1270     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DOCTORS_DEGREE_DEGREE_NAME',
1271     'type' => 'string',
1272     'multiple' => false,
1273     ),
1274     );
1275     $iteminfo['io']['xmlrpc']['item'][] = array(
1276     'orm' => array(
1277     'field' => array(
1278     array(
1279     'orm' => 'detail',
1280     'field' => 'grantor',
1281     ),
1282     ),
1283     ),
1284     'xmlrpc' => array(
1285     'field' => array(
1286     'detail_field',
1287     'grantor',
1288     ),
1289     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DOCTORS_DEGREE_GRANTOR',
1290     'type' => 'string',
1291     'multiple' => false,
1292     ),
1293     );
1294     $iteminfo['io']['xmlrpc']['item'][] = array(
1295     'orm' => array(
1296     'field' => array(
1297     array(
1298     'orm' => 'detail',
1299 ken_ko 1.1 'field' => 'abstract',
1300     ),
1301     ),
1302     ),
1303     'xmlrpc' => array(
1304     'field' => array(
1305     'detail_field',
1306     'abstract',
1307     ),
1308     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_ABSTRACT',
1309     'type' => 'string',
1310     'multiple' => false,
1311     ),
1312     );
1313     $iteminfo['io']['xmlrpc']['item'][] = array(
1314     'orm' => array(
1315     'field' => array(
1316     array(
1317     'orm' => 'detail',
1318     'field' => 'table_of_contents',
1319     ),
1320     ),
1321     ),
1322     'xmlrpc' => array(
1323     'field' => array(
1324     'detail_field',
1325     'table_of_contents',
1326     ),
1327     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_TABLE_OF_CONTENTS',
1328     'type' => 'string',
1329     'multiple' => false,
1330     ),
1331     );
1332     $iteminfo['io']['xmlrpc']['item'][] = array(
1333     'orm' => array(
1334     'field' => array(
1335     array(
1336     'orm' => 'child_keywords',
1337     'field' => 'keywords',
1338     ),
1339     ),
1340     ),
1341     'xmlrpc' => array(
1342     'field' => array(
1343     'detail_field',
1344     'keywords',
1345     ),
1346     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_KEYWORDS',
1347     'type' => 'string',
1348     'multiple' => true,
1349     ),
1350     );
1351     $iteminfo['io']['xmlrpc']['item'][] = array(
1352     'orm' => array(
1353     'field' => array(
1354     array(
1355     'orm' => 'ndc_classifications',
1356     'field' => 'child_ndc_classifications',
1357     ),
1358     ),
1359     ),
1360     'xmlrpc' => array(
1361     'field' => array(
1362     'detail_field',
1363     'ndc_classifications',
1364     ),
1365     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_NDC_CLASSIFICATIONS',
1366     'type' => 'string',
1367     'multiple' => true,
1368     ),
1369     );
1370     $iteminfo['io']['xmlrpc']['item'][] = array(
1371     'orm' => array(
1372     'field' => array(
1373     array(
1374     'orm' => 'child_langs',
1375     'field' => 'langs',
1376     ),
1377     ),
1378     ),
1379     'xmlrpc' => array(
1380     'field' => array(
1381     'detail_field',
1382     'langs',
1383     ),
1384     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_LANGS',
1385     'type' => 'string',
1386     'multiple' => true,
1387     ),
1388     );
1389     $iteminfo['io']['xmlrpc']['item'][] = array(
1390     'orm' => array(
1391     'field' => array(
1392     array(
1393     'orm' => 'detail',
1394     'field' => 'type_of_resource',
1395     ),
1396     ),
1397     ),
1398     'xmlrpc' => array(
1399     'field' => array(
1400     'detail_field',
1401     'type_of_resource',
1402     ),
1403     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_TYPE_OF_RESOURCE',
1404     'type' => 'string',
1405     'multiple' => false,
1406     ),
1407     );
1408     $iteminfo['io']['xmlrpc']['item'][] = array(
1409     'orm' => array(
1410     'field' => array(
1411     array(
1412     'orm' => 'detail',
1413     'field' => 'genre',
1414     ),
1415     ),
1416     ),
1417     'xmlrpc' => array(
1418     'field' => array(
1419     'detail_field',
1420     'genre',
1421     ),
1422     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_GENRE',
1423     'type' => 'string',
1424     'multiple' => false,
1425     ),
1426     );
1427     $iteminfo['io']['xmlrpc']['item'][] = array(
1428     'orm' => array(
1429     'field' => array(
1430     array(
1431 ken_ko 1.2 'orm' => 'detail',
1432     'field' => 'textversion',
1433     ),
1434     ),
1435     ),
1436     'xmlrpc' => array(
1437     'field' => array(
1438     'detail_field',
1439     'textversion',
1440     ),
1441     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_TEXTVERSION',
1442     'type' => 'string',
1443     'multiple' => false,
1444     ),
1445     );
1446     $iteminfo['io']['xmlrpc']['item'][] = array(
1447     'orm' => array(
1448     'field' => array(
1449     array(
1450 ken_ko 1.1 'orm' => 'preview',
1451     'field' => 'file_id',
1452     ),
1453     ),
1454     ),
1455     'xmlrpc' => array(
1456     'field' => array(
1457     'detail_field',
1458     'preview',
1459     ),
1460     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_ITEM_IMAGES',
1461     'type' => 'string',
1462     'multiple' => true,
1463     ),
1464     );
1465     $iteminfo['io']['xmlrpc']['item'][] = array(
1466     'orm' => array(
1467     'field' => array(
1468     array(
1469     'orm' => 'article_attachment',
1470     'field' => 'file_id',
1471     ),
1472     ),
1473     ),
1474     'xmlrpc' => array(
1475     'field' => array(
1476     'detail_field',
1477     'article_attachment',
1478     ),
1479     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_THIS_ITEM_DOCUMENT',
1480     'type' => 'string',
1481     'multiple' => true,
1482     ),
1483     );
1484     $iteminfo['io']['xmlrpc']['item'][] = array(
1485     'orm' => array(
1486     'field' => array(
1487     array(
1488     'orm' => 'child_uris',
1489     'field' => 'uris',
1490     ),
1491     ),
1492     ),
1493     'xmlrpc' => array(
1494     'field' => array(
1495     'detail_field',
1496     'uris',
1497     ),
1498     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_URI',
1499     'type' => 'string',
1500     'multiple' => true,
1501     ),
1502     );
1503     $iteminfo['io']['xmlrpc']['item'][] = array(
1504     'orm' => array(
1505     'field' => array(
1506     array(
1507     'orm' => 'detail',
1508     'field' => 'access_condition',
1509     ),
1510     ),
1511     ),
1512     'xmlrpc' => array(
1513     'field' => array(
1514     'detail_field',
1515     'access_condition',
1516     ),
1517     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_ACCESS_CONDITION',
1518     'type' => 'string',
1519     'multiple' => false,
1520     ),
1521     );
1522    
1523     // simple item
1524     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1525     'orm' => array(
1526     'field' => array(
1527     array(
1528     'orm' => 'basic',
1529     'field' => 'item_id',
1530     ),
1531     ),
1532     ),
1533     'xmlrpc' => array(
1534     'field' => array(
1535     'item_id',
1536     ),
1537     'type' => 'int',
1538     'multiple' => false,
1539     ),
1540     );
1541     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1542     'orm' => array(
1543     'field' => array(
1544     array(
1545     'orm' => 'basic',
1546     'field' => 'item_type_id',
1547     ),
1548     ),
1549     ),
1550     'xmlrpc' => array(
1551     'field' => array(
1552     'itemtypeid',
1553     ),
1554     'type' => 'int',
1555     'multiple' => false,
1556     ),
1557     );
1558     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1559     'orm' => array(
1560     'field' => array(
1561     array(
1562     'orm' => 'basic',
1563     'field' => 'uid',
1564     ),
1565     ),
1566     ),
1567     'xmlrpc' => array(
1568     'field' => array(
1569     'username',
1570     ),
1571     'type' => 'string',
1572     'multiple' => false,
1573     ),
1574     'eval' => array(
1575     'orm2xmlrpc' => '$u_handler=&xoops_gethandler("user"); $user=&$u_handler->get($in_var[0]); $out_var[0]=$user->getVar("uname");',
1576     'xmlrpc2orm' => ';',
1577     ),
1578     );
1579     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1580     'orm' => array(
1581     'field' => array(
1582     array(
1583     'orm' => 'titles',
1584     'field' => 'title',
1585     ),
1586     ),
1587     ),
1588     'xmlrpc' => array(
1589     'field' => array(
1590     'titles',
1591     ),
1592     'type' => 'string',
1593     'multiple' => true,
1594     ),
1595     );
1596     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1597     'orm' => array(
1598     'field' => array(
1599     array(
1600     'orm' => 'basic',
1601     'field' => 'last_update_date',
1602     ),
1603     ),
1604     ),
1605     'xmlrpc' => array(
1606     'field' => array(
1607     'last_modified_date',
1608     ),
1609     'type' => 'dateTime.iso8601',
1610     'multiple' => false,
1611     ),
1612     );
1613     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1614     'orm' => array(
1615     'field' => array(
1616     array(
1617     'orm' => 'basic',
1618     'field' => 'creation_date',
1619     ),
1620     ),
1621     ),
1622     'xmlrpc' => array(
1623     'field' => array(
1624     'registration_date',
1625     ),
1626     'type' => 'dateTime.iso8601',
1627     'multiple' => false,
1628     ),
1629     );
1630     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1631     'orm' => array(
1632     'field' => array(
1633     array(
1634     'orm' => 'detail',
1635     'field' => 'title',
1636     ),
1637     array(
1638     'orm' => 'child_author',
1639     'field' => 'author_name',
1640     ),
1641     array(
1642     'orm' => 'detail',
1643     'field' => 'jtitle',
1644     ),
1645     array(
1646     'orm' => 'detail',
1647     'field' => 'jtitle_volume',
1648     ),
1649     array(
1650     'orm' => 'detail',
1651     'field' => 'jtitle_issue',
1652     ),
1653     array(
1654     'orm' => 'detail',
1655     'field' => 'jtitle_year',
1656     ),
1657     array(
1658     'orm' => 'detail',
1659     'field' => 'jtitle_month',
1660     ),
1661     array(
1662     'orm' => 'detail',
1663     'field' => 'jtitle_spage',
1664     ),
1665     array(
1666     'orm' => 'detail',
1667     'field' => 'jtitle_epage',
1668     ),
1669     ),
1670     ),
1671     'xmlrpc' => array(
1672     'field' => array(
1673     'text',
1674     ),
1675     'type' => 'string',
1676     ),
1677     'eval' => array(
1678     'orm2xmlrpc' => '
1679     /* title */
1680     $in_var[0] .= ";"
1681     /* author */
1682     $in_var[1] = implode( ".", $in_var[1] );
1683     /* jtitle */
1684     $in_var[2] = empty( $in_var[2] ) ? "" : $in_var[2].".";
1685     /* jtitle_volume */
1686     $in_var[3] = empty( $in_var[3] ) ? "" : $in_var[3].",";
1687     /* jtitle_issue - no touch */
1688     /* jtitle_year, jtitle_month */
1689     if ( empty( $in_var[5] ) ) {
1690     $in_var[6] = "";
1691     } else if ( empty( $in_var[6] ) ) {
1692     $in_var[5] = "(".$in_var[5].")";
1693     } else {
1694     $in_var[5] = "(".$in_var[5].".";
1695     $in_var[6] .= ")";
1696     }
1697     /* jtitle_spage, jtitle_epage */
1698     if ( ! empty( $in_var[7] ) || ! empty( $in_var[8] ) ) {
1699     if ( ! empty( $in_var[7] ) ) {
1700     $in_var[7] = ",p.".$in_var[7]."-";
1701     } else {
1702     $in_var[7] = ",p.";
1703     }
1704     }
1705     $out_var[0] = $in_var[0].$in_var[1].$in_var[2].$in_var[3].$in_var[4].$in_var[5].$in_var[6].$in_var[7].$in_var[8];',
1706     'xmlrpc2orm' => ';',
1707     ),
1708     );
1709    
1710     ?>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26