Matt -- the most mature CSL code is the javascript implementation by Frank Bennett.
I don't believe, though Frank can correct me if I'm wrong, that citeproc-js can import MODS files. So I am guessing you'd probably want to get someone to write an XSLT transformation to generate the JSON input data format from the MODS. I'm not aware of any such code, but it may already exist. Also worth noting that conceptually such code would be pretty similar to an XSLT that could convert MODS to any other similar text format: RIS, Endnote, etc. So if you could find such openly licensed XSLT, it should be fairly easy to adapt to a CSL workflow. But there's another option, I suppose: I wrote the first implementation of CSL using MODS in an exist-based workflow. So that code would probably work, with the downside that it would be based on an old version of the CSL spec. But you might not care about that. http://sourceforge.net/p/xbiblio/code/HEAD/tree/attic/citeproc-xsl/ Bruce On Mon, Dec 1, 2014 at 2:37 PM, Matthew Roth <matthew.g.r...@yale.edu> wrote: > Hi List, [NOTE that this is a cross post from the MODS listserv[0]--this > maybe a better place to post] After careful consideration over the past > several months our web application has decided to store our citations in > MODs as opposed to our propriety and often problematic relational structure. > Great news for sure. We are now able to generate EndNote files, RIS files, > BibTex files, DC, and MARCXML. With the latter two being less desired by our > end users. Ideally our board of directors and (more importantly) our end > users would like to generate formatted HTML citations in various formats. > For example, the way Google scholar will give the user the choice of MLA, > ALA, and Chicago. The problem looks to be that while there are several > leads, no available resource exists for a proper HTML transformation. The > most promising one is the citeproc project and the Citation Style > Language[1]. They have projects in various stages in multiple languages. > However, of the list I am only able to function in java, python, and > JavaScript. The problem to me is that most expect a JSON format that is not > too well documented--as best as I can tell, some of the discussions I've > come across on this format our several years old at this point. Only one > purports to work with MODs. citeproc-hs[2] a haskell library seems to have > once expected MODs, but 1. I am not familiar with haskell and two it appears > to not have been kept to date. I have not ruled it out completely, but need > to consult a primer on haskell first. The python library, citeproc-py[3] > claims to work with bibtex. However, they are still having issues with > UTF-8[4]. Additionally, either the mapping is off in their BibTex parser or > bibutils[5] is producing poor BibTex files from the inputted MODs files. > Finally, the library according to the README.rst[6] is still not ready for > production. Ideally, there would be an Xquery/XSL transformation that we > could call from our web application which is built upon exist-db[7]. I > suppose our next step may be writing our own transformation, however, it > seems like coming to this as a programmer and not a librarian I may not be > searching in all the right places. Do I need to write my own transformation, > or has the wheel already been created? Best, > Matt > > PS I apologize if I have misrepresented anything about CSL and the various > citeproc projects. I am still only a couple weeks old to this project. > [0]http://listserv.loc.gov/cgi-bin/wa?A1=ind1412&L=mods > [1]http://citationstyles.org/ > [2]https://hackage.haskell.org/package/citeproc-hs > [3]https://github.com/brechtm/citeproc-py > [4]https://github.com/brechtm/citeproc-py/issues/25 > [5]https://sourceforge.net/projects/bibutils/ > [6]https://github.com/brechtm/citeproc-py/blob/master/README.rst#citeproc-py > [7]http://exist-db.org/exist/apps/homepage/index.html > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > xbiblio-devel mailing list > xbiblio-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xbiblio-devel > ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ xbiblio-devel mailing list xbiblio-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xbiblio-devel