From rochkind at jhu.edu Mon Mar 4 20:54:28 2013 From: rochkind at jhu.edu (Jonathan Rochkind) Date: Mon, 04 Mar 2013 15:54:28 -0500 Subject: [Umlaut-general] new umlaut service: link out to Google Scholar Message-ID: <51350A04.8010405@jhu.edu> There is a new service adapter/plugin in the Umlaut repo, for generating a link out to search Google Scholar for an identified article. It activates only for article-level OpenURL requests, and is generally expected to be configured to display only when no Umlaut-identified fulltext is available. This isn?t in an Umlaut release yet, but if you want it right away you can easily copy the service plugin sourcecode into your local app. (You may want to copy a bit of CSS too). More info on my blog: http://bibwild.wordpress.com/2013/03/04/new-umlaut-plug-in-link-out-to-google-scholar-search/ From rochkind at jhu.edu Mon Mar 11 21:00:35 2013 From: rochkind at jhu.edu (Jonathan Rochkind) Date: Mon, 11 Mar 2013 17:00:35 -0400 Subject: [Umlaut-general] umlaut: Out of ./lib Message-ID: <513E45F3.2090100@jhu.edu> So the Umlaut source code has a bunch of stuff in ./lib. The decision to put things there was made a while ago, when I understood Rails conventions less well, but also when Rails conventions were less established and when Rails worked differently. It's become clear that most of that stuff should be in ./app instead. Especially since Rails now adds all subdirectories of ./app to the load path, you can make your own, like ./app/service_adapters, and they'll just work. I'm shortly going to try to move most of that stuff out of ./lib and into ./app. Just warning folks that use the source. Anyone have an opinion on what we should really call those service adapter things? service_adapters? service_plugins? Just plain 'services', I guess, but the way I think about it, the SERVICE is, say, Amazon itself, our code for contacting Amazon is an adapter or plugin or something. From std5 at nyu.edu Tue Mar 12 16:31:13 2013 From: std5 at nyu.edu (Scot Dalton) Date: Tue, 12 Mar 2013 12:31:13 -0400 Subject: [Umlaut-general] umlaut: Out of ./lib In-Reply-To: <513E45F3.2090100@jhu.edu> References: <513E45F3.2090100@jhu.edu> Message-ID: /app/service_adapters makes sense to me. Thanks, Scot On Mar 11, 2013, at Mar 11, 5:00 PM, Jonathan Rochkind wrote: > So the Umlaut source code has a bunch of stuff in ./lib. > > The decision to put things there was made a while ago, when I understood Rails conventions less well, but also when Rails conventions were less established and when Rails worked differently. > > It's become clear that most of that stuff should be in ./app instead. Especially since Rails now adds all subdirectories of ./app to the load path, you can make your own, like ./app/service_adapters, and they'll just work. > > I'm shortly going to try to move most of that stuff out of ./lib and into ./app. > > Just warning folks that use the source. > > Anyone have an opinion on what we should really call those service adapter things? service_adapters? service_plugins? Just plain 'services', I guess, but the way I think about it, the SERVICE is, say, Amazon itself, our code for contacting Amazon is an adapter or plugin or something. > _______________________________________________ > Umlaut-general mailing list > Umlaut-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/umlaut-general -- Scot Dalton Phone: (212) 998-2674 Web Services Division of Libraries New York University