EPrints - softver za digitalne repozitorije
EPrints - softver za digitalne repozitorije: Revision 6
Dodavanje polja i tipova dokumenataDodavanje novog Item type-a1. edit /opt/eprints3/archives/ARCHIVE_ID/cfg/lang/en/phrases/local.xml ... <!-- Item Type: PRESSCUT --> <epp:phrase id="eprint_typename_presscut">Presscut</epp:phrase> <epp:phrase id="eprint_optdetails_type_presscut">Media about RBI</epp:phrase> <!-- Item Type: PRESSCUT END --> ...
2. Edit /opt/eprints3/archives/ARCHIVE_ID/cfg/namedsets/eprint 3. apache restart # /etc/init.d/apache2 restart Dodavanje novog polja1. edit /opt/eprints3/archives/ARCHIVE_ID/cfg/cfg.d/eprint_fields.pl ... { 'name' => 'article_type', 'type' => 'set', 'options' => [ 'original_scientific_paper', 'review_paper', 'short_communication', 'preliminatory_note', 'letter', 'professional_paper', 'letter_to_the_editor', 'review', 'editorial', 'conference_paper', 'meeting_abstract', 'correction', 'news', 'bibliography', 'biography', 'comment', 'essay', 'in_memoriam', ], 'input_style' => 'medium', }, ... 2. edit /opt/eprints3/archives/ARCHIVE_ID/cfg/lang/en/phrases/local.xml ... <!-- ARTICLE TYPE --> <epp:phrase id="eprint_fieldname_article_type">Article Type</epp:phrase> <epp:phrase id="eprint_fieldhelp_article_type_article">Type od article</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_original_scientific_paper">Original scientific paper</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_review_paper">Review paper</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_short_communication">Short communication</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_preliminatory_note">Preliminatory note</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_letter">Letter</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_professional_paper">Professional paper</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_letter_to_the_editor">Letter to the editor</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_review">Review</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_editorial">Editorial</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_conference_paper">Conference paper</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_meeting_abstract">Meeting abstract</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_correction">Correction</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_news">News</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_bibliography">Bibliography</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_biography">Biography</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_comment">Comment</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_essay">Essay</epp:phrase> <epp:phrase id="eprint_fieldopt_article_type_in_memoriam">In memoriam</epp:phrase> <!-- ARTICLE TYPE END --> ... 3. /opt/eprints3/archives/ARCHIVE_ID/cfg/workflows/eprint/default.xml ... <epc:if test="type = 'article'"> <field ref="article_type"/> </epc:if> ... 4. update baze # ./bin/epadmin update_database_structure ARCHIVEID 5. apache restart # /etc/init.d/apache2 restart |