Using JavaScript simpleCart to build finding aid "shopping cart"
Upcoming SlideShare
Loading in...5
×
 

Using JavaScript simpleCart to build finding aid "shopping cart"

on

  • 1,437 views

Allison Jai O'Dell spoke at Archivists Being Awesome about her work setting up a shopping cart for manuscript finding aids using JavaScript simpleCart

Allison Jai O'Dell spoke at Archivists Being Awesome about her work setting up a shopping cart for manuscript finding aids using JavaScript simpleCart

Statistics

Views

Total Views
1,437
Views on SlideShare
1,183
Embed Views
254

Actions

Likes
0
Downloads
5
Comments
0

1 Embed 254

http://archivistsbeingawesome.wordpress.com 254

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Using JavaScript simpleCart to build finding aid "shopping cart" Using JavaScript simpleCart to build finding aid "shopping cart" Presentation Transcript

  • Using simpleCart.js toBuild a Finding AidShopping CartAllison Jai ODellArchivists Being Awesome8 May 2013
  • simpleCart.jshttp://simplecartjs.org
  • Heres how it looks:Container List w/ “Request” ButtonSample from Library of Congress EAD documentation View slide
  • Request ListItems added from finding aidto the request listhttp://www.allisonjai.com/EAD.html View slide
  • EAD File TweaksEncase each < c02 > (or other level) with a < div >class="simpleCart_shelfItem"Each < did > gets class="item_name"Include the "item_add" command alongsideevery didAdd collection number to each box/foldernumber for identification
  • EAD File Tweaks<c02 level="file"><div class="simpleCart_shelfItem"><did class="item_name">MS-P29 /<container type="box-folder" label="Box ">1 : 4</container><unittitle>Classic, John Hancock Hall, Boston</unittitle>,<unitdate normal="1938">1938</unitdate></did>[<a href="javascript:;" class="item_add" onclick="displaymessage()"/>Request</a>] <br><br></div></c02>
  • Creating the E-mail FormIn the simpleCart.js file, change: me.checkoutTo = Email;Add form input validation to the e-mail checkout,using the guidelines at:https://github.com/wojodesign/simplecart-js/issues/242<?php$to = you@example.com;$subject = the subject;$jcitems = $_POST[jcitems];$headers = From: webmaster@example.com . "rn" .Reply-To: webmaster@example.com . "rn" .X-Mailer: PHP/ . phpversion();mail($to, $subject, $jcitems, $headers);Header(Location: thankyou.html);?>
  • Creating the E-mail Form(Other submission options exist! This is what I did...)Add these lines to simpleCart.js:var email = document.createElement("email");email = prompt("Please enter your e-mail address");form.appendChild(me.createHiddenElement("email", email));Add this line to the PHP file:$email = $_POST[email];And tweak:mail($to, $subject, $jcitems.$email, $headers);
  • Collecting Patron Information(What the prompt from the previous slide does...)
  • E-mail to the Archives
  • Possibilities* Automatically print call slips* Transfer request to a tracking database* Include scheduling in request, link withcalendar….Other ideas? Questions?http://www.allisonjai.com/EAD.htmlE-mail me: AJODELL@gmail.com