Re: [CODE4LIB] Sending html via ajax -vs- building html in js (was: jQuery Ajax request to update a PHP variable)
I've been following this thread very closely, and find myself torn. Doing all the HTML generation server-side seems like the easiest way to have a single set of template code that's shared between JS and non-JS paths, reducing complexity of the overall app, and making graceful degradation easier. On the other hand, doing client-side HTML generation (or direct DOM updating) seems like it offers better performance, greatly reduced bandwidth, and a better fit if you want to create a reusable API. I think there is a third way: using the same template code for both client-side and server side rendering. The basic HTML version would retrieve pages rendered server-side, and the enhanced JS version would retrieve JSON and render the UI with the same templates (presumably with modular templates so the JS version would only have to update the areas with updated content, and not the entire page). The only template systems I know of that have both client and server support are XSLT and Mustache. Are there others? Has anybody set up a system like this? -Esme -- Esme Cowles escow...@ucsd.edu The wages of sin is death but so is the salary of virtue, and at least the evil get to go home early on Fridays. -- Terry Pratchett, Witches Abroad On 12/7/2011, at 9:38 PM, Jonathan Rochkind wrote: Also, I've thought of a good reason myself: performance. If I'm adding an item to a list, it's a better user experience to update the display immediately rather than waiting for the server to send back a 200 OK, and handle the error or timeout case specially. While in general I tend toward the other the other thing you said, Does it make sense to replicate the server-side functionality on the client? -- I think what you propose above is legit. MOST people don't write interfaces like that, even in js. That is, an interface that will update the user interface even before/without receiving _anything_ back from the server. (But, in the best cases, produce and error message and/or 'undo' the user interface action iff the server does later get back with an error/failure message). So if you're going to do that, then--- it kind of doesn't matter if the server sends back HTML or JSON or anything else, the user interface is updating before/without getting _anything_ from the server. But to the extent the server's response then serves pretty much only as a notification-of-failure or whatever, yeah, JSON is the way to go. So, yeah, if you're going to go all the way there, that's a pretty cool thing (if you can make sure the failure conditions are handled acceptably), sure, go for it.
Re: [CODE4LIB] Models of MARC in RDF
Owen- Another strategy for capturing MARC data in RDF is to convert it to MODS (we do this using the LoC MARC to MODS stylesheet: http://www.loc.gov/standards/marcxml/xslt/MARC21slim2MODS.xsl). From there, it's pretty easy to incorporate into RDF. There are some issues to be aware of, such as how to map the MODS XML names to predicates and how to handle elements that can appear in multiple places in the hierarchy. -Esme -- Esme Cowles escow...@ucsd.edu Necessity is the plea for every infringement of human freedom. It is the argument of tyrants; it is the creed of slaves. -- William Pitt, 1783 On 11/28/2011, at 8:25 AM, Owen Stephens wrote: It would be great to start collecting transforms together - just a quick brain dump of some I'm aware of MARC21 transformations Cambridge University Library - http://data.lib.cam.ac.uk - transformation made available (in code) from same site Open University - http://data.open.ac.uk - specific transform for materials related to teaching, code available at http://code.google.com/p/luceroproject/source/browse/trunk%20luceroproject/OULinkedData/src/uk/ac/open/kmi/lucero/rdfextractor/RDFExtractor.java (MARC transform is in libraryRDFExtraction method) COPAC - small set of records from the COPAC Union catalogue - data and transform not yet published Podes Projekt - LinkedAuthors - documentation at http://bibpode.no/linkedauthors/doc/Pode-LinkedAuthors-Documentation.pdf - 2 stage transformation firstly from MARC to FRBRized version of data, then from FRBRized data to RDF. These linked from documentation Podes Project - LinkedNonFiction - documentation at http://bibpode.no/linkednonfiction/doc/Pode-LinkedNonFiction-Documentation.pdf - MARC data transformed using xslt https://github.com/pode/LinkedNonFiction/blob/master/marcslim2n3.xsl British Library British National Bibliography - http://www.bl.uk/bibliographic/datafree.html - data model documented, but no code available Libris.se - some notes in various presentations/blogposts (e.g. http://dc2008.de/wp-content/uploads/2008/09/malmsten.pdf) but can't find explicit transformation Hungarian National library - http://thedatahub.org/dataset/hungarian-national-library-catalog and http://nektar.oszk.hu/wiki/Semantic_web#Implementation - some information on ontologies used but no code or explicit transformation (not 100% sure this is from MARC) Talis - implemented in several live catalogues including http://catalogue.library.manchester.ac.uk/ - no documentation or code afaik although some notes in MAB transformation HBZ - some of the transformation documented at https://wiki1.hbz-nrw.de/display/SEM/Converting+the+Open+Data+from+the+hbz+to+BIBO, don't think any code published? Would be really helpful if more projects published their transformations (or someone told me where to look!) Owen Owen Stephens Owen Stephens Consulting Web: http://www.ostephens.com Email: o...@ostephens.com Telephone: 0121 288 6936 On 26 Nov 2011, at 15:58, Karen Coyle wrote: A few of the code4lib talk proposals mention projects that have or will transform MARC records into RDF. If any of you have documentation and/or examples of this, I would be very interested to see them, even if they are under construction. Thanks, kc -- Karen Coyle kco...@kcoyle.net http://kcoyle.net ph: 1-510-540-7596 m: 1-510-435-8234 skype: kcoylenet
Re: [CODE4LIB] Models of MARC in RDF
Owen- We assign ARKs[1] to our objects (and predicates for that matter). The issue of reconciling against other sources hasn't come as much, since we have mostly focused on our unique objects. But we have worked on that issue some. For example, several years ago, I worked on the UCAI project, where we mapped several slide collections to a common schema[2] and did quite a bit of work trying to build work records for the collections that didn't have them, and match work records across collections. That project didn't produce a copy-cataloging service like we'd hoped, though the Getty is now working on a registry[3] of works of art, which would the task of matching records a lot simpler. 1. https://wiki.ucop.edu/display/Curation/ARK 2. http://www.loc.gov/standards/vracore/ 3. http://www.getty.edu/research/tools/vocabularies/cona/index.html -Esme -- Esme Cowles escow...@ucsd.edu In the old days, an operating system was designed to optimize the utilization of the computer's resources. In the future, its main goal will be to optimize the user's time. -- Jakob Nielsen On 12/2/2011, at 1:37 PM, Owen Stephens wrote: Oh - and perhaps just/more importantly - how do you create URIs for you data and how do you reconcile against other sources? Owen On 2 Dec 2011, at 16:07, Esme Cowles escow...@ucsd.edu wrote: Owen- Another strategy for capturing MARC data in RDF is to convert it to MODS (we do this using the LoC MARC to MODS stylesheet: http://www.loc.gov/standards/marcxml/xslt/MARC21slim2MODS.xsl). From there, it's pretty easy to incorporate into RDF. There are some issues to be aware of, such as how to map the MODS XML names to predicates and how to handle elements that can appear in multiple places in the hierarchy. -Esme -- Esme Cowles escow...@ucsd.edu Necessity is the plea for every infringement of human freedom. It is the argument of tyrants; it is the creed of slaves. -- William Pitt, 1783 On 11/28/2011, at 8:25 AM, Owen Stephens wrote: It would be great to start collecting transforms together - just a quick brain dump of some I'm aware of MARC21 transformations Cambridge University Library - http://data.lib.cam.ac.uk - transformation made available (in code) from same site Open University - http://data.open.ac.uk - specific transform for materials related to teaching, code available at http://code.google.com/p/luceroproject/source/browse/trunk%20luceroproject/OULinkedData/src/uk/ac/open/kmi/lucero/rdfextractor/RDFExtractor.java (MARC transform is in libraryRDFExtraction method) COPAC - small set of records from the COPAC Union catalogue - data and transform not yet published Podes Projekt - LinkedAuthors - documentation at http://bibpode.no/linkedauthors/doc/Pode-LinkedAuthors-Documentation.pdf - 2 stage transformation firstly from MARC to FRBRized version of data, then from FRBRized data to RDF. These linked from documentation Podes Project - LinkedNonFiction - documentation at http://bibpode.no/linkednonfiction/doc/Pode-LinkedNonFiction-Documentation.pdf - MARC data transformed using xslt https://github.com/pode/LinkedNonFiction/blob/master/marcslim2n3.xsl British Library British National Bibliography - http://www.bl.uk/bibliographic/datafree.html - data model documented, but no code available Libris.se - some notes in various presentations/blogposts (e.g. http://dc2008.de/wp-content/uploads/2008/09/malmsten.pdf) but can't find explicit transformation Hungarian National library - http://thedatahub.org/dataset/hungarian-national-library-catalog and http://nektar.oszk.hu/wiki/Semantic_web#Implementation - some information on ontologies used but no code or explicit transformation (not 100% sure this is from MARC) Talis - implemented in several live catalogues including http://catalogue.library.manchester.ac.uk/ - no documentation or code afaik although some notes in MAB transformation HBZ - some of the transformation documented at https://wiki1.hbz-nrw.de/display/SEM/Converting+the+Open+Data+from+the+hbz+to+BIBO, don't think any code published? Would be really helpful if more projects published their transformations (or someone told me where to look!) Owen Owen Stephens Owen Stephens Consulting Web: http://www.ostephens.com Email: o...@ostephens.com Telephone: 0121 288 6936 On 26 Nov 2011, at 15:58, Karen Coyle wrote: A few of the code4lib talk proposals mention projects that have or will transform MARC records into RDF. If any of you have documentation and/or examples of this, I would be very interested to see them, even if they are under construction. Thanks, kc -- Karen Coyle kco...@kcoyle.net http://kcoyle.net ph: 1-510-540-7596 m: 1-510-435-8234 skype: kcoylenet
Re: [CODE4LIB] Code4Lib 2011 Proposals
After seeing some of the cool things people can do with other ILS's and how negative developers are about III, there's always the chance they might decide to open up a bit more and engage with code4lib types (we can always dream). And if that doesn't work, maybe the Ian Walls' talk (Becoming Truly Innovative: Migrating from Millennium to Koha) will motivate them... -Esme -- Esme Cowles escow...@ucsd.edu They extend copyrights perpetually. They don't get how that in itself is a form of theft. -- Lawrence Lessig, Free Culture On Mar 4, 2010, at 5:08 PM, Jill Ellern wrote: We tried to get some of the ILS's interested...with little success. But how knows...I did some heavy promotion to III this year...(despite the many --s, she promised to talk to headquarters) so perhaps they might help some next year... Jill -Original Message- From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of Paul Joseph Sent: Wednesday, March 03, 2010 9:56 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Code4Lib 2011 Proposals No need to be concerned about the vendors: they're the same suspects who sponsored C4L10. Paul On Wed, Mar 3, 2010 at 2:37 PM, Ya'aqov Ziso z...@rowan.edu wrote: also, I can assure you that to help keep registration fees low we'll be leaning on our vendors ... = Who would be these vendors? Seems CODE4LIB (bringing in creative, leading edge, OpenSource ideas where ILS have monolithically reigned) are the bad dream of ILS vendors. WorldCat DeveNet/Research may make an exception, but will it be $ufficient? Ya¹aqov
Re: [CODE4LIB] Code4Lib 2011 Proposals
ithaca_in_april++ -Esme -- Esme Cowles escow...@ucsd.edu A person, who is nice to you, but rude to the waiter, is not a nice person. (This is very important. Pay attention. It never fails.) -- Dave Barry On Mar 3, 2010, at 9:36 AM, Ross Singer wrote: The date is not etched in stone. -Ross. On Wed, Mar 3, 2010 at 9:35 AM, Ethan Gruber ewg4x...@gmail.com wrote: Ithaca in February sounds kind of depressing, honestly. On Wed, Mar 3, 2010 at 9:27 AM, Ma, Hong h...@miami.edu wrote: Agree with Carol. Austin is good. Thanks, Hong Hong Ma Information Systems Librarian Otto G. Richter Library University of Miami 1300 Memorial Dr., Rm.301-A Coral Gables, FL 33124 h...@miami.edu (305) 284-8844 -Original Message- From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of Carol Bean Sent: Wednesday, March 03, 2010 9:06 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Code4Lib 2011 Proposals Snowy northern climes-- Carol (still hoping for a bid from Austin) From: Kevin S. Clarke kscla...@gmail.com To: CODE4LIB@LISTSERV.ND.EDU Date: 03/03/2010 09:00 AM Subject: Re: [CODE4LIB] Code4Lib 2011 Proposals Sent by: Code for Libraries CODE4LIB@LISTSERV.ND.EDU On Wed, Mar 3, 2010 at 6:35 AM, John Fereira ja...@cornell.edu wrote: I've got a bit of conference planning burnout after being on the planning commitee for the Jasig conference for the sixth time in a row but I'm inclined to throw out Ithaca, NY as a possible location for 2011. ooh, +1 ... I was born in Ithaca, but haven't been back since; I'd love an excuse to visit and explore! From what I hear, it would make a nice venue for c4l11. Kevin
Re: [CODE4LIB] Code4Lib 2011 Proposals
I've never been to Vancouver, so I don't know what the housing options are. But I wonder if there isn't some way to keep the nightly rate down. Maybe this could be addressed by having an official hostel/cheaper hotel? Perhaps UBC or some other institution has an inexpensive housing option (I've seen this at other universities). -Esme -- Esme Cowles escow...@ucsd.edu A person, who is nice to you, but rude to the waiter, is not a nice person. (This is very important. Pay attention. It never fails.) -- Dave Barry On Mar 2, 2010, at 7:49 PM, Dan Chudnov wrote: (c) in early years we emphasized keeping code4libcon cheap and have continued to succeed at that by using sponsorships to keep the registration fee low. It's good to be able to draw in students and people who are interested but not directly supported or who might choose to go on their own dime. These past two years the conf hotel rate has crept up some, with a good block rate but still well over $100/night. Vancouver's a more expensive town than any we've been in before, so I'd worry we'd be shutting some people out. I think there's been some kind of lower cost hotel or hostel option in every town, and surely there would be in Vancouver, but in a bigger town that means people are spread out more and then my concern (b) gets amplified, too.