[Umlaut-general] Customized Citation Linker

Jonathan Rochkind rochkind at jhu.edu
Wed Sep 23 14:51:20 EDT 2009


PPS: However, if you think what you've done is of general use and is a 
better default for everyone, you want to maybe just commit it to trunk 
as the default search page?  The search page is not very carefully 
thought out, if you're improved it and want to just share your 
improvements as the default, we might want to do that?

But I'll say the reason I didn't include 'article author' on the page is 
because 95% of the time it doesn't help SFX find the article AT ALL, so 
it was just asking someone to spend their time entering something that 
was pretty much useless, I felt like it implied a 'false promise' that 
we could actually do something with the title they entered.

Jonathan

Jonathan Rochkind wrote:
> There wasn't, but I just added a really basic one for you. 
>
> Update to trunk and then:
> 1) Put your custom view in app/views/local with whatever name you want, 
> say, "nyu_jsearch.erb.html".
> 2) In your config/umlaut_config/initializers/umlaut/umlaut_properties.rb 
> file (or really any other initializer) add:
>     AppConfig::Base.search_view = "local/nyu_jsearch"
>
> Now it'll use your custom view for the journal search page. (Some day we 
> should switch Umlaut to be a Rails Engine which would do this kind of 
> thing more elegantly with less code).
>
> If you see any actual complicated logic that you're needing to 
> cut-paste/duplicate from the default search page to yours, we should 
> pull those out into their own partials or helper methods so you can just 
> include them instead of "repeating" with cut-and-paste-coding. If you 
> see any such you want to do that with, feel free to do so and test and 
> commit.
>
>
> PS: I am so pleased that 1) You sent this to the public list, and 2) You 
> are thinking in terms of avoiding changing distro files. :)
>
>
>
>
> Scot Dalton wrote:
>   
>> Hi all,
>>
>> Is there a mechanism for defining a customized journals search page in  
>> Umlaut without updating the search/journals.rhtml file?
>>
>> We'd like to add a few more OpenURL search terms and change the text a  
>> bit.  I've implemented this in our development environment by updating  
>> the journals file but would prefer not to have to change the  
>> distribution code.
>>
>> http://web-apache.library.nyu.edu:8000/
>>
>> Thanks,
>> Scot Dalton
>> Phone:  (212) 998-2674
>> Web Development
>> Division of Libraries
>> New York University
>>
>> _______________________________________________
>> Umlaut-general mailing list
>> Umlaut-general at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/umlaut-general
>>   
>>     
> _______________________________________________
> Umlaut-general mailing list
> Umlaut-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/umlaut-general
>   


More information about the Umlaut-general mailing list