Site lib/: Difference between revisions
Added site_lib/ page |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{dirs}} | {{dirs}} | ||
'''site_lib/''' does not exist by default but is a special directory which allows direct overriding of Perl modules under [[Perl_lib/|perl_lib/]] and | '''site_lib/''' does not exist by default but is a special directory which allows direct overriding of Perl modules under [[Perl_lib/|perl_lib/]]. E.g. If you wanted to change the code in perl_lib/EPrints/DataObj/EPrint.pm, you could copy it to site_lib/plugins/EPrints/DataObj/EPrint.pm and edit it there and the latter version would be loaded in place of the former. | ||
site_lib also allows adding of code and configuration using the same path structure as used in [[Lib/|lib/]]. E.g. If you already had a file at lib/cfg.d/my_config.pl, then if you created another file at site_lib/cfg.d/my_config.pl this latter file would load in place of the former. | |||
Latest revision as of 17:39, 9 October 2026
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
site_lib/ does not exist by default but is a special directory which allows direct overriding of Perl modules under perl_lib/. E.g. If you wanted to change the code in perl_lib/EPrints/DataObj/EPrint.pm, you could copy it to site_lib/plugins/EPrints/DataObj/EPrint.pm and edit it there and the latter version would be loaded in place of the former.
site_lib also allows adding of code and configuration using the same path structure as used in lib/. E.g. If you already had a file at lib/cfg.d/my_config.pl, then if you created another file at site_lib/cfg.d/my_config.pl this latter file would load in place of the former.