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.1 - (hide annotations) (download) (as text)
Fri Feb 27 01:42:06 2009 UTC (15 years, 1 month ago) by ken_ko
Branch: MAIN
File MIME type: application/x-httpd-php
add files for version 1.4

1 ken_ko 1.1 <?php
2     // $Revision:$
3     // ------------------------------------------------------------------------- //
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     'name' => 'abstract',
311     'type' => 'string',
312     'required' => false,
313     ),
314     array(
315     'name' => 'table_of_contents',
316     'type' => 'string',
317     'required' => false,
318     ),
319     array(
320     'name' => 'type_of_resource',
321     'type' => 'string',
322     'required' => false,
323     ),
324     array(
325     'name' => 'genre',
326     'type' => 'string',
327     'required' => false,
328     ),
329     array(
330     'name' => 'access_condition',
331     'type' => 'string',
332     'required' => false,
333     ),
334     array(
335     'name' => 'link',
336     'type' => 'string',
337     'required' => false,
338     ),
339     );
340     $iteminfo['ormfield']['child_sub_title'] = array(
341     array(
342     'name' => 'sub_title_name',
343     'type' => 'string',
344     'required' => false,
345     ),
346     array(
347     'name' => 'sub_title_kana',
348     'type' => 'string',
349     'required' => false,
350     ),
351     array(
352     'name' => 'sub_title_romaji',
353     'type' => 'string',
354     'required' => false,
355     ),
356     array(
357     'name' => 'sub_title_order',
358     'type' => 'int',
359     'required' => true,
360     ),
361     );
362     $iteminfo['ormfield']['child_author'] = array(
363     array(
364     'name' => 'author_id',
365     'type' => 'string',
366     'required' => false,
367     ),
368     array(
369     'name' => 'author_name',
370     'type' => 'string',
371     'required' => false,
372     ),
373     array(
374     'name' => 'author_kana',
375     'type' => 'string',
376     'required' => false,
377     ),
378     array(
379     'name' => 'author_romaji',
380     'type' => 'string',
381     'required' => false,
382     ),
383     array(
384     'name' => 'author_affiliation',
385     'type' => 'string',
386     'required' => false,
387     ),
388     array(
389     'name' => 'author_affiliation_translation',
390     'type' => 'string',
391     'required' => false,
392     ),
393     array(
394     'name' => 'author_role',
395     'type' => 'string',
396     'required' => false,
397     ),
398     array(
399     'name' => 'author_link',
400     'type' => 'string',
401     'required' => false,
402     ),
403     array(
404     'name' => 'author_order',
405     'type' => 'int',
406     'required' => true,
407     ),
408     );
409     $iteminfo['ormfield']['child_keywords'] = array(
410     array(
411     'name' => 'keywords',
412     'type' => 'string',
413     'required' => false,
414     ),
415     array(
416     'name' => 'keywords_order',
417     'type' => 'int',
418     'required' => true,
419     ),
420     );
421     $iteminfo['ormfield']['child_ndc_classifications'] = array(
422     array(
423     'name' => 'ndc_classifications',
424     'type' => 'string',
425     'required' => false,
426     ),
427     array(
428     'name' => 'ndc_classifications_order',
429     'type' => 'int',
430     'required' => true,
431     ),
432     );
433     $iteminfo['ormfield']['child_physical_descriptions'] = array(
434     array(
435     'name' => 'physical_descriptions',
436     'type' => 'string',
437     'required' => false,
438     ),
439     array(
440     'name' => 'physical_descriptions_order',
441     'type' => 'int',
442     'required' => true,
443     ),
444     );
445     $iteminfo['ormfield']['child_langs'] = array(
446     array(
447     'name' => 'langs',
448     'type' => 'string',
449     'required' => false,
450     ),
451     array(
452     'name' => 'langs_order',
453     'type' => 'int',
454     'required' => true,
455     ),
456     );
457     $iteminfo['ormfield']['detail_child_id_issns'] = array(
458     array(
459     'name' => 'id_issns',
460     'type' => 'string',
461     'required' => false,
462     ),
463     array(
464     'name' => 'id_issns_order',
465     'type' => 'int',
466     'required' => true,
467     ),
468     );
469     $iteminfo['ormfield']['child_id_isbns'] = array(
470     array(
471     'name' => 'id_isbns',
472     'type' => 'string',
473     'required' => false,
474     ),
475     array(
476     'name' => 'id_isbns_order',
477     'type' => 'int',
478     'required' => true,
479     ),
480     );
481     $iteminfo['ormfield']['child_id_dois'] = array(
482     array(
483     'name' => 'id_dois',
484     'type' => 'string',
485     'required' => false,
486     ),
487     array(
488     'name' => 'id_dois_order',
489     'type' => 'int',
490     'required' => true,
491     ),
492     );
493     $iteminfo['ormfield']['child_id_uris'] = array(
494     array(
495     'name' => 'id_uris',
496     'type' => 'string',
497     'required' => false,
498     ),
499     array(
500     'name' => 'id_uris_order',
501     'type' => 'int',
502     'required' => true,
503     ),
504     );
505     $iteminfo['ormfield']['child_id_locals'] = array(
506     array(
507     'name' => 'id_locals',
508     'type' => 'string',
509     'required' => false,
510     ),
511     array(
512     'name' => 'id_locals_order',
513     'type' => 'int',
514     'required' => true,
515     ),
516     );
517     $iteminfo['ormfield']['child_uris'] = array(
518     array(
519     'name' => 'uris',
520     'type' => 'string',
521     'required' => false,
522     ),
523     array(
524     'name' => 'uris_order',
525     'type' => 'int',
526     'required' => true,
527     ),
528     );
529    
530     // basic information (override conditions)
531     foreach ( $iteminfo['io']['xmlrpc']['item'] as $key => $val ) {
532     switch ( $val['xmlrpc']['field'][0] ) {
533     case 'comment':
534     $iteminfo['io']['xmlrpc']['item'][$key]['xmlrpc']['display_name'] = '_XR_XNPARTICLE_DISPLAY_NAME_NOTES';
535     break;
536     }
537     }
538    
539     // detail information (modify below for each item types)
540     $iteminfo['io']['xmlrpc']['item'][] = array(
541     'orm' => array(
542     'field' => array(
543     array(
544     'orm' => 'detail',
545     'field' => 'article_id',
546     ),
547     ),
548     ),
549     'xmlrpc' => array(
550     'field' => array(
551     'detail_field',
552     'article_id',
553     ),
554     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_ARTICLE_ID',
555     'type' => 'string',
556     'multiple' => false,
557     'readonly' => true,
558     ),
559     );
560     $iteminfo['io']['xmlrpc']['item'][] = array(
561     'orm' => array(
562     'field' => array(
563     array(
564     'orm' => 'detail',
565     'field' => 'title',
566     ),
567     ),
568     ),
569     'xmlrpc' => array(
570     'field' => array(
571     'detail_field',
572     'title',
573     ),
574     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_TITLE',
575     'type' => 'string',
576     'multiple' => false,
577     'required' => true,
578     ),
579     );
580     $iteminfo['io']['xmlrpc']['item'][] = array(
581     'orm' => array(
582     'field' => array(
583     array(
584     'orm' => 'detail',
585     'field' => 'title_kana',
586     ),
587     ),
588     ),
589     'xmlrpc' => array(
590     'field' => array(
591     'detail_field',
592     'title_kana',
593     ),
594     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_TITLE_KANA',
595     'type' => 'string',
596     'multiple' => false,
597     ),
598     );
599     $iteminfo['io']['xmlrpc']['item'][] = array(
600     'orm' => array(
601     'field' => array(
602     array(
603     'orm' => 'detail',
604     'field' => 'title_romaji',
605     ),
606     ),
607     ),
608     'xmlrpc' => array(
609     'field' => array(
610     'detail_field',
611     'title_romaji',
612     ),
613     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_TITLE_ROMAJI',
614     'type' => 'string',
615     'multiple' => false,
616     ),
617     );
618     $iteminfo['io']['xmlrpc']['item'][] = array(
619     'orm' => array(
620     'field' => array(
621     array(
622     'orm' => 'child_sub_title',
623     'field' => 'sub_title_name',
624     ),
625     array(
626     'orm' => 'child_sub_title',
627     'field' => 'sub_title_kana',
628     ),
629     array(
630     'orm' => 'child_sub_title',
631     'field' => 'sub_title_romaji',
632     ),
633     ),
634     ),
635     'xmlrpc' => array(
636     'field' => array(
637     'detail_field',
638     'sub_title',
639     ),
640     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_SUB_TITLE',
641     'type' => 'string',
642     'multiple' => true,
643     ),
644     );
645     $iteminfo['io']['xmlrpc']['item'][] = array(
646     'orm' => array(
647     'field' => array(
648     array(
649     'orm' => 'child_author',
650     'field' => 'author_id',
651     ),
652     array(
653     'orm' => 'child_author',
654     'field' => 'author_name',
655     ),
656     array(
657     'orm' => 'child_author',
658     'field' => 'author_kana',
659     ),
660     array(
661     'orm' => 'child_author',
662     'field' => 'author_romaji',
663     ),
664     array(
665     'orm' => 'child_author',
666     'field' => 'author_affiliation',
667     ),
668     array(
669     'orm' => 'child_author',
670     'field' => 'author_affiliation_translation',
671     ),
672     ),
673     ),
674     'xmlrpc' => array(
675     'field' => array(
676     'detail_field',
677     'author',
678     ),
679     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_AUTHOR',
680     'type' => 'string',
681     'multiple' => true,
682     ),
683     );
684     $iteminfo['io']['xmlrpc']['item'][] = array(
685     'orm' => array(
686     'field' => array(
687     array(
688     'orm' => 'detail',
689     'field' => 'edition',
690     ),
691     ),
692     ),
693     'xmlrpc' => array(
694     'field' => array(
695     'detail_field',
696     'edition',
697     ),
698     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_EDITION',
699     'type' => 'string',
700     'multiple' => false,
701     ),
702     );
703     $iteminfo['io']['xmlrpc']['item'][] = array(
704     'orm' => array(
705     'field' => array(
706     array(
707     'orm' => 'detail',
708     'field' => 'publish_place',
709     ),
710     ),
711     ),
712     'xmlrpc' => array(
713     'field' => array(
714     'detail_field',
715     'publish_place',
716     ),
717     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_PUBLISH_PLACE',
718     'type' => 'string',
719     'multiple' => false,
720     ),
721     );
722     $iteminfo['io']['xmlrpc']['item'][] = array(
723     'orm' => array(
724     'field' => array(
725     array(
726     'orm' => 'detail',
727     'field' => 'publisher',
728     ),
729     ),
730     ),
731     'xmlrpc' => array(
732     'field' => array(
733     'detail_field',
734     'publisher',
735     ),
736     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_PUBLISHER',
737     'type' => 'string',
738     'multiple' => false,
739     ),
740     );
741     $iteminfo['io']['xmlrpc']['item'][] = array(
742     'orm' => array(
743     'field' => array(
744     array(
745     'orm' => 'detail',
746     'field' => 'publisher_kana',
747     ),
748     ),
749     ),
750     'xmlrpc' => array(
751     'field' => array(
752     'detail_field',
753     'publisher_kana',
754     ),
755     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_PUBLISHER_KANA',
756     'type' => 'string',
757     'multiple' => false,
758     ),
759     );
760     $iteminfo['io']['xmlrpc']['item'][] = array(
761     'orm' => array(
762     'field' => array(
763     array(
764     'orm' => 'detail',
765     'field' => 'year_f',
766     ),
767     ),
768     ),
769     'xmlrpc' => array(
770     'field' => array(
771     'detail_field',
772     'year_f',
773     ),
774     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DATE_PUBLICATION_YEAR_F',
775     'type' => 'string',
776     'multiple' => false,
777     ),
778     );
779     $iteminfo['io']['xmlrpc']['item'][] = array(
780     'orm' => array(
781     'field' => array(
782     array(
783     'orm' => 'detail',
784     'field' => 'year_t',
785     ),
786     ),
787     ),
788     'xmlrpc' => array(
789     'field' => array(
790     'detail_field',
791     'year_t',
792     ),
793     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_PUBLICATION_YEAR_T',
794     'type' => 'string',
795     'multiple' => false,
796     ),
797     );
798     $iteminfo['io']['xmlrpc']['item'][] = array(
799     'orm' => array(
800     'field' => array(
801     array(
802     'orm' => 'detail',
803     'field' => 'date_create',
804     ),
805     ),
806     ),
807     'xmlrpc' => array(
808     'field' => array(
809     'detail_field',
810     'date_create',
811     ),
812     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DATE_CREATE',
813     'type' => 'string',
814     'multiple' => false,
815     ),
816     );
817     $iteminfo['io']['xmlrpc']['item'][] = array(
818     'orm' => array(
819     'field' => array(
820     array(
821     'orm' => 'detail',
822     'field' => 'date_update',
823     ),
824     ),
825     ),
826     'xmlrpc' => array(
827     'field' => array(
828     'detail_field',
829     'date_update',
830     ),
831     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DATE_UPDATE',
832     'type' => 'string',
833     'multiple' => false,
834     ),
835     );
836     $iteminfo['io']['xmlrpc']['item'][] = array(
837     'orm' => array(
838     'field' => array(
839     array(
840     'orm' => 'detail',
841     'field' => 'date_record',
842     ),
843     ),
844     ),
845     'xmlrpc' => array(
846     'field' => array(
847     'detail_field',
848     'date_record',
849     ),
850     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_DATE_RECORD',
851     'type' => 'string',
852     'multiple' => false,
853     ),
854     );
855     $iteminfo['io']['xmlrpc']['item'][] = array(
856     'orm' => array(
857     'field' => array(
858     array(
859     'orm' => 'child_physical_descriptions',
860     'field' => 'physical_descriptions',
861     ),
862     ),
863     ),
864     'xmlrpc' => array(
865     'field' => array(
866     'detail_field',
867     'physical_descriptions',
868     ),
869     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_PHYSICAL_DESCRIPTIONS',
870     'type' => 'string',
871     'multiple' => false,
872     ),
873     );
874     $iteminfo['io']['xmlrpc']['item'][] = array(
875     'orm' => array(
876     'field' => array(
877     array(
878     'orm' => 'detail',
879     'field' => 'jtitle',
880     ),
881     ),
882     ),
883     'xmlrpc' => array(
884     'field' => array(
885     'detail_field',
886     'jtitle',
887     ),
888     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE',
889     'type' => 'string',
890     'multiple' => false,
891     ),
892     );
893     $iteminfo['io']['xmlrpc']['item'][] = array(
894     'orm' => array(
895     'field' => array(
896     array(
897     'orm' => 'etail',
898     'field' => 'jtitle_translation',
899     ),
900     ),
901     ),
902     'xmlrpc' => array(
903     'field' => array(
904     'detail_field',
905     'jtitle_translation',
906     ),
907     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_TRANSLATION',
908     'type' => 'string',
909     'multiple' => false,
910     ),
911     );
912     $iteminfo['io']['xmlrpc']['item'][] = array(
913     'orm' => array(
914     'field' => array(
915     array(
916     'orm' => 'detail',
917     'field' => 'jtitle_volume',
918     ),
919     ),
920     ),
921     'xmlrpc' => array(
922     'field' => array(
923     'detail_field',
924     'jtitle_volume',
925     ),
926     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_VOLUME',
927     'type' => 'string',
928     'multiple' => false,
929     ),
930     );
931     $iteminfo['io']['xmlrpc']['item'][] = array(
932     'orm' => array(
933     'field' => array(
934     array(
935     'orm' => 'detail',
936     'field' => 'jtitle_issue',
937     ),
938     ),
939     ),
940     'xmlrpc' => array(
941     'field' => array(
942     'detail_field',
943     'jtitle_issue',
944     ),
945     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_ISSUE',
946     'type' => 'string',
947     'multiple' => false,
948     ),
949     );
950     $iteminfo['io']['xmlrpc']['item'][] = array(
951     'orm' => array(
952     'field' => array(
953     array(
954     'orm' => 'detail',
955     'field' => 'jtitle_year',
956     ),
957     ),
958     ),
959     'xmlrpc' => array(
960     'field' => array(
961     'detail_field',
962     'jtitle_year',
963     ),
964     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_YEAR',
965     'type' => 'string',
966     'multiple' => false,
967     ),
968     );
969     $iteminfo['io']['xmlrpc']['item'][] = array(
970     'orm' => array(
971     'field' => array(
972     array(
973     'orm' => 'detail',
974     'field' => 'jtitle_month',
975     ),
976     ),
977     ),
978     'xmlrpc' => array(
979     'field' => array(
980     'detail_field',
981     'jtitle_month',
982     ),
983     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_MONTH',
984     'type' => 'string',
985     'multiple' => false,
986     ),
987     );
988     $iteminfo['io']['xmlrpc']['item'][] = array(
989     'orm' => array(
990     'field' => array(
991     array(
992     'orm' => 'detail',
993     'field' => 'jtitle_spage',
994     ),
995     ),
996     ),
997     'xmlrpc' => array(
998     'field' => array(
999     'detail_field',
1000     'jtitle_spage',
1001     ),
1002     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_SPAGE',
1003     'type' => 'string',
1004     'multiple' => false,
1005     ),
1006     );
1007     $iteminfo['io']['xmlrpc']['item'][] = array(
1008     'orm' => array(
1009     'field' => array(
1010     array(
1011     'orm' => 'detail',
1012     'field' => 'jtitle_epage',
1013     ),
1014     ),
1015     ),
1016     'xmlrpc' => array(
1017     'field' => array(
1018     'detail_field',
1019     'jtitle_epage',
1020     ),
1021     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_JTITLE_EPAGE',
1022     'type' => 'string',
1023     'multiple' => false,
1024     ),
1025     );
1026     $iteminfo['io']['xmlrpc']['item'][] = array(
1027     'orm' => array(
1028     'field' => array(
1029     array(
1030     'orm' => 'child_id_issns',
1031     'field' => 'id_issns',
1032     ),
1033     ),
1034     ),
1035     'xmlrpc' => array(
1036     'field' => array(
1037     'detail_field',
1038     'id_issns',
1039     ),
1040     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_ISSN',
1041     'type' => 'string',
1042     'multiple' => true,
1043     ),
1044     );
1045     $iteminfo['io']['xmlrpc']['item'][] = array(
1046     'orm' => array(
1047     'field' => array(
1048     array(
1049     'orm' => 'child_id_isbns',
1050     'field' => 'id_isbns',
1051     ),
1052     ),
1053     ),
1054     'xmlrpc' => array(
1055     'field' => array(
1056     'detail_field',
1057     'id_isbns',
1058     ),
1059     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_ISBN',
1060     'type' => 'string',
1061     'multiple' => true,
1062     ),
1063     );
1064     $iteminfo['io']['xmlrpc']['item'][] = array(
1065     'orm' => array(
1066     'field' => array(
1067     array(
1068     'orm' => 'child_id_dois',
1069     'field' => 'id_dois',
1070     ),
1071     ),
1072     ),
1073     'xmlrpc' => array(
1074     'field' => array(
1075     'detail_field',
1076     'id_dois',
1077     ),
1078     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_DOI',
1079     'type' => 'string',
1080     'multiple' => true,
1081     ),
1082     );
1083     $iteminfo['io']['xmlrpc']['item'][] = array(
1084     'orm' => array(
1085     'field' => array(
1086     array(
1087     'orm' => 'child_id_uris',
1088     'field' => 'id_uris',
1089     ),
1090     ),
1091     ),
1092     'xmlrpc' => array(
1093     'field' => array(
1094     'detail_field',
1095     'id_uris',
1096     ),
1097     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_URI',
1098     'type' => 'string',
1099     'multiple' => true,
1100     ),
1101     );
1102     $iteminfo['io']['xmlrpc']['item'][] = array(
1103     'orm' => array(
1104     'field' => array(
1105     array(
1106     'orm' => 'child_id_locals',
1107     'field' => 'id_locals',
1108     ),
1109     ),
1110     ),
1111     'xmlrpc' => array(
1112     'field' => array(
1113     'detail_field',
1114     'id_locals',
1115     ),
1116     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_IDENTIFIER_OTHER',
1117     'type' => 'string',
1118     'multiple' => true,
1119     ),
1120     );
1121     $iteminfo['io']['xmlrpc']['item'][] = array(
1122     'orm' => array(
1123     'field' => array(
1124     array(
1125     'orm' => 'detail',
1126     'field' => 'abstract',
1127     ),
1128     ),
1129     ),
1130     'xmlrpc' => array(
1131     'field' => array(
1132     'detail_field',
1133     'abstract',
1134     ),
1135     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_ABSTRACT',
1136     'type' => 'string',
1137     'multiple' => false,
1138     ),
1139     );
1140     $iteminfo['io']['xmlrpc']['item'][] = array(
1141     'orm' => array(
1142     'field' => array(
1143     array(
1144     'orm' => 'detail',
1145     'field' => 'table_of_contents',
1146     ),
1147     ),
1148     ),
1149     'xmlrpc' => array(
1150     'field' => array(
1151     'detail_field',
1152     'table_of_contents',
1153     ),
1154     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_TABLE_OF_CONTENTS',
1155     'type' => 'string',
1156     'multiple' => false,
1157     ),
1158     );
1159     $iteminfo['io']['xmlrpc']['item'][] = array(
1160     'orm' => array(
1161     'field' => array(
1162     array(
1163     'orm' => 'child_keywords',
1164     'field' => 'keywords',
1165     ),
1166     ),
1167     ),
1168     'xmlrpc' => array(
1169     'field' => array(
1170     'detail_field',
1171     'keywords',
1172     ),
1173     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_KEYWORDS',
1174     'type' => 'string',
1175     'multiple' => true,
1176     ),
1177     );
1178     $iteminfo['io']['xmlrpc']['item'][] = array(
1179     'orm' => array(
1180     'field' => array(
1181     array(
1182     'orm' => 'ndc_classifications',
1183     'field' => 'child_ndc_classifications',
1184     ),
1185     ),
1186     ),
1187     'xmlrpc' => array(
1188     'field' => array(
1189     'detail_field',
1190     'ndc_classifications',
1191     ),
1192     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_NDC_CLASSIFICATIONS',
1193     'type' => 'string',
1194     'multiple' => true,
1195     ),
1196     );
1197     $iteminfo['io']['xmlrpc']['item'][] = array(
1198     'orm' => array(
1199     'field' => array(
1200     array(
1201     'orm' => 'child_langs',
1202     'field' => 'langs',
1203     ),
1204     ),
1205     ),
1206     'xmlrpc' => array(
1207     'field' => array(
1208     'detail_field',
1209     'langs',
1210     ),
1211     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_LANGS',
1212     'type' => 'string',
1213     'multiple' => true,
1214     ),
1215     );
1216     $iteminfo['io']['xmlrpc']['item'][] = array(
1217     'orm' => array(
1218     'field' => array(
1219     array(
1220     'orm' => 'detail',
1221     'field' => 'type_of_resource',
1222     ),
1223     ),
1224     ),
1225     'xmlrpc' => array(
1226     'field' => array(
1227     'detail_field',
1228     'type_of_resource',
1229     ),
1230     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_TYPE_OF_RESOURCE',
1231     'type' => 'string',
1232     'multiple' => false,
1233     ),
1234     );
1235     $iteminfo['io']['xmlrpc']['item'][] = array(
1236     'orm' => array(
1237     'field' => array(
1238     array(
1239     'orm' => 'detail',
1240     'field' => 'genre',
1241     ),
1242     ),
1243     ),
1244     'xmlrpc' => array(
1245     'field' => array(
1246     'detail_field',
1247     'genre',
1248     ),
1249     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_GENRE',
1250     'type' => 'string',
1251     'multiple' => false,
1252     ),
1253     );
1254     $iteminfo['io']['xmlrpc']['item'][] = array(
1255     'orm' => array(
1256     'field' => array(
1257     array(
1258     'orm' => 'preview',
1259     'field' => 'file_id',
1260     ),
1261     ),
1262     ),
1263     'xmlrpc' => array(
1264     'field' => array(
1265     'detail_field',
1266     'preview',
1267     ),
1268     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_ITEM_IMAGES',
1269     'type' => 'string',
1270     'multiple' => true,
1271     ),
1272     );
1273     $iteminfo['io']['xmlrpc']['item'][] = array(
1274     'orm' => array(
1275     'field' => array(
1276     array(
1277     'orm' => 'article_attachment',
1278     'field' => 'file_id',
1279     ),
1280     ),
1281     ),
1282     'xmlrpc' => array(
1283     'field' => array(
1284     'detail_field',
1285     'article_attachment',
1286     ),
1287     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_THIS_ITEM_DOCUMENT',
1288     'type' => 'string',
1289     'multiple' => true,
1290     ),
1291     );
1292     $iteminfo['io']['xmlrpc']['item'][] = array(
1293     'orm' => array(
1294     'field' => array(
1295     array(
1296     'orm' => 'child_uris',
1297     'field' => 'uris',
1298     ),
1299     ),
1300     ),
1301     'xmlrpc' => array(
1302     'field' => array(
1303     'detail_field',
1304     'uris',
1305     ),
1306     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_URI',
1307     'type' => 'string',
1308     'multiple' => true,
1309     ),
1310     );
1311     $iteminfo['io']['xmlrpc']['item'][] = array(
1312     'orm' => array(
1313     'field' => array(
1314     array(
1315     'orm' => 'detail',
1316     'field' => 'access_condition',
1317     ),
1318     ),
1319     ),
1320     'xmlrpc' => array(
1321     'field' => array(
1322     'detail_field',
1323     'access_condition',
1324     ),
1325     'display_name' => '_XR_XNPARTICLE_DISPLAY_NAME_ACCESS_CONDITION',
1326     'type' => 'string',
1327     'multiple' => false,
1328     ),
1329     );
1330    
1331     // simple item
1332     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1333     'orm' => array(
1334     'field' => array(
1335     array(
1336     'orm' => 'basic',
1337     'field' => 'item_id',
1338     ),
1339     ),
1340     ),
1341     'xmlrpc' => array(
1342     'field' => array(
1343     'item_id',
1344     ),
1345     'type' => 'int',
1346     'multiple' => false,
1347     ),
1348     );
1349     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1350     'orm' => array(
1351     'field' => array(
1352     array(
1353     'orm' => 'basic',
1354     'field' => 'item_type_id',
1355     ),
1356     ),
1357     ),
1358     'xmlrpc' => array(
1359     'field' => array(
1360     'itemtypeid',
1361     ),
1362     'type' => 'int',
1363     'multiple' => false,
1364     ),
1365     );
1366     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1367     'orm' => array(
1368     'field' => array(
1369     array(
1370     'orm' => 'basic',
1371     'field' => 'uid',
1372     ),
1373     ),
1374     ),
1375     'xmlrpc' => array(
1376     'field' => array(
1377     'username',
1378     ),
1379     'type' => 'string',
1380     'multiple' => false,
1381     ),
1382     'eval' => array(
1383     'orm2xmlrpc' => '$u_handler=&xoops_gethandler("user"); $user=&$u_handler->get($in_var[0]); $out_var[0]=$user->getVar("uname");',
1384     'xmlrpc2orm' => ';',
1385     ),
1386     );
1387     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1388     'orm' => array(
1389     'field' => array(
1390     array(
1391     'orm' => 'titles',
1392     'field' => 'title',
1393     ),
1394     ),
1395     ),
1396     'xmlrpc' => array(
1397     'field' => array(
1398     'titles',
1399     ),
1400     'type' => 'string',
1401     'multiple' => true,
1402     ),
1403     );
1404     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1405     'orm' => array(
1406     'field' => array(
1407     array(
1408     'orm' => 'basic',
1409     'field' => 'last_update_date',
1410     ),
1411     ),
1412     ),
1413     'xmlrpc' => array(
1414     'field' => array(
1415     'last_modified_date',
1416     ),
1417     'type' => 'dateTime.iso8601',
1418     'multiple' => false,
1419     ),
1420     );
1421     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1422     'orm' => array(
1423     'field' => array(
1424     array(
1425     'orm' => 'basic',
1426     'field' => 'creation_date',
1427     ),
1428     ),
1429     ),
1430     'xmlrpc' => array(
1431     'field' => array(
1432     'registration_date',
1433     ),
1434     'type' => 'dateTime.iso8601',
1435     'multiple' => false,
1436     ),
1437     );
1438     $iteminfo['io']['xmlrpc']['simpleitem'][] = array(
1439     'orm' => array(
1440     'field' => array(
1441     array(
1442     'orm' => 'detail',
1443     'field' => 'title',
1444     ),
1445     array(
1446     'orm' => 'child_author',
1447     'field' => 'author_name',
1448     ),
1449     array(
1450     'orm' => 'detail',
1451     'field' => 'jtitle',
1452     ),
1453     array(
1454     'orm' => 'detail',
1455     'field' => 'jtitle_volume',
1456     ),
1457     array(
1458     'orm' => 'detail',
1459     'field' => 'jtitle_issue',
1460     ),
1461     array(
1462     'orm' => 'detail',
1463     'field' => 'jtitle_year',
1464     ),
1465     array(
1466     'orm' => 'detail',
1467     'field' => 'jtitle_month',
1468     ),
1469     array(
1470     'orm' => 'detail',
1471     'field' => 'jtitle_spage',
1472     ),
1473     array(
1474     'orm' => 'detail',
1475     'field' => 'jtitle_epage',
1476     ),
1477     ),
1478     ),
1479     'xmlrpc' => array(
1480     'field' => array(
1481     'text',
1482     ),
1483     'type' => 'string',
1484     ),
1485     'eval' => array(
1486     'orm2xmlrpc' => '
1487     /* title */
1488     $in_var[0] .= ";"
1489     /* author */
1490     $in_var[1] = implode( ".", $in_var[1] );
1491     /* jtitle */
1492     $in_var[2] = empty( $in_var[2] ) ? "" : $in_var[2].".";
1493     /* jtitle_volume */
1494     $in_var[3] = empty( $in_var[3] ) ? "" : $in_var[3].",";
1495     /* jtitle_issue - no touch */
1496     /* jtitle_year, jtitle_month */
1497     if ( empty( $in_var[5] ) ) {
1498     $in_var[6] = "";
1499     } else if ( empty( $in_var[6] ) ) {
1500     $in_var[5] = "(".$in_var[5].")";
1501     } else {
1502     $in_var[5] = "(".$in_var[5].".";
1503     $in_var[6] .= ")";
1504     }
1505     /* jtitle_spage, jtitle_epage */
1506     if ( ! empty( $in_var[7] ) || ! empty( $in_var[8] ) ) {
1507     if ( ! empty( $in_var[7] ) ) {
1508     $in_var[7] = ",p.".$in_var[7]."-";
1509     } else {
1510     $in_var[7] = ",p.";
1511     }
1512     }
1513     $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];',
1514     'xmlrpc2orm' => ';',
1515     ),
1516     );
1517    
1518     ?>

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