From: Demian K. <dem...@vi...> - 2018-01-08 13:53:52
|
Michael, The record displays are configuration-driven, and the configurations are set up in the RecordDataFormatterFactory. The main record display settings are built here: https://github.com/vufind-org/vufind/blob/master/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php#L184 As you say, you can start by editing the file directly to get a feel for it. Later, if you want to separate your customizations to a local module, you can do this by overriding the factory and manipulating the configuration array. The RecordDataFormatter\SpecBuilder class makes it fairly easy to insert, rearrange and remove fields from the configuration without having to rewrite the whole thing. The wiki page on the subject should help with at least some of the details. Apologies for the somewhat arcane system here -- we opted for greater complexity in order to reduce redundancy (the old code was much more straightforward to understand but a greater nuisance to customize and maintain over time). Please let me know if you still have any questions, or if you have any suggestions for making any of this more clear to others in future! thanks, Demian -----Original Message----- From: Michael Lackhoff [mailto:mi...@la...] Sent: Monday, January 08, 2018 7:09 AM To: vuf...@li... Subject: [VuFind-General] Add field to record display I know it is documented in principle but as hard as I tried I could still not make out where I can add a field to the standard record display. As I am using the newest Vufind-version I should do something within the RecordDataFormatter but I still have no idea what I will have to change in what file. And even a full text search through the code base didn't show a page where the standard record display fields (Main Author, Format, Language, Published, Series, Subjects and Tags, perhaps more depending on the record on display) are defined. Everything is still default in my configuration (Bootprint3 theme) What I would like to do: add MARC-field 090 (call number) and remove the "Tags" field (bonus if possible: switch off any end user write operations). For the time being I would be happy to edit the standard code, later I will try to get my head around the recommended procedure and create my own variant. I guess the code base is just a bit too complex for someone not familiar with it, so I hope to get a hint here. Thanks -Michael ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.link%2Fslashdot&data=02%7C01%7Cdemian.katz%40villanova.edu%7Cdafc4ccd380c410dc0ec08d5569256b2%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C636510109168338451&sdata=P5cGCw9ADFRWBUnZiA8Xex74ojgrO7BQscmFAqN6xSs%3D&reserved=0 _______________________________________________ VuFind-General mailing list VuF...@li... https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fvufind-general&data=02%7C01%7Cdemian.katz%40villanova.edu%7Cdafc4ccd380c410dc0ec08d5569256b2%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C636510109168338451&sdata=Go%2FJzm8jm67wBhEdqSYshF408CsS6OfnlsS%2BbYrhxTc%3D&reserved=0 |