umlaut 3.0.0alpha5 → 3.0.0alpha6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/app/assets/javascripts/umlaut/update_html.js +21 -0
  2. data/app/assets/javascripts/umlaut_ui.js +15 -0
  3. data/app/helpers/resolve_helper.rb +14 -4
  4. data/app/views/resolve/api.xml.builder +10 -14
  5. data/lib/#Untitled-1# +14 -0
  6. data/lib/umlaut/routes.rb +14 -1
  7. data/lib/umlaut/version.rb +1 -1
  8. data/lib/umlaut.rb +12 -9
  9. data/test/dummy/tmp/cache/assets/C5F/340/sprockets%2F99692920160b7a279b86a80415b79db7 +0 -0
  10. data/test/dummy/tmp/cache/assets/C70/4D0/sprockets%2F034ad2036e623081bd352800786dfe80 +0 -0
  11. data/test/dummy/tmp/cache/assets/CBB/9C0/sprockets%2F706f28923fb754cad04b9107c89986a1 +31 -0
  12. data/test/dummy/tmp/cache/assets/CBF/B60/sprockets%2F08ca89671549936265dcb673bf02e36f +0 -0
  13. data/test/dummy/tmp/cache/assets/CC9/9F0/sprockets%2F306166316e2cafd13c15e62b51a2339d +0 -0
  14. data/test/dummy/tmp/cache/assets/CF7/2B0/sprockets%2F25a7c73655bd3598173b39d9f98bcd46 +880 -0
  15. data/test/dummy/tmp/cache/assets/CFE/080/sprockets%2F37fe9f4255baddbd549a659914929398 +0 -0
  16. data/test/dummy/tmp/cache/assets/D0B/E10/sprockets%2F1444763abc4444a8e129efdb9a43235f +378 -0
  17. data/test/dummy/tmp/cache/assets/D1F/830/sprockets%2Fe6a7a907a8e9b43780a80fe69a92913d +11773 -0
  18. data/test/dummy/tmp/cache/assets/D22/060/sprockets%2F9aec77b768e91a802d284271c58e2f7e +21361 -0
  19. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  20. data/test/dummy/tmp/cache/assets/D33/6D0/sprockets%2F500129c57f1146e556ec3aacd6cd38c1 +158 -0
  21. data/test/dummy/tmp/cache/assets/D50/7B0/sprockets%2F6df95fb9a4189df351c1c88546c84a1d +394 -0
  22. data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +877 -0
  23. data/test/dummy/tmp/cache/assets/D69/820/sprockets%2F55a4f1a7c4918d71c0d4fb5b7dd4c055 +9272 -0
  24. data/test/dummy/tmp/cache/assets/D71/6B0/sprockets%2Fde558b71b494cf09b1bf055c8dff0353 +53 -0
  25. data/test/dummy/tmp/cache/assets/D72/610/sprockets%2Fa8c708eeb30ef93de34d755d4f45d023 +864 -0
  26. data/test/dummy/tmp/cache/assets/D76/AD0/sprockets%2Fe2158cde93188cf5ab6457bc6d6602ec +41 -0
  27. data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +21744 -0
  28. data/test/dummy/tmp/cache/assets/D9B/770/sprockets%2F8aacf02eb7dbb0949704b28f27b87e0b +39 -0
  29. data/test/dummy/tmp/cache/assets/DD0/140/sprockets%2F1656d1d8f4c13fe42aff6553c6cdcda7 +11789 -0
  30. data/test/dummy/tmp/cache/assets/DE8/790/sprockets%2Fd1333bde2b9aafcc712d11dd09ab35d8 +0 -0
  31. data/test/dummy/tmp/cache/assets/DF1/AA0/sprockets%2Fedd37b0fdb6157fccb2297a8a10acc90 +9288 -0
  32. data/test/dummy/tmp/cache/assets/E03/570/sprockets%2F493bdc0ac14cd4f57fdfe4253f992bde +14 -0
  33. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  34. data/test/dummy/tmp/cache/assets/E5F/960/sprockets%2Fdc007b6cad5c7ef08e33ec28cfff0ef6 +0 -0
  35. metadata +200 -98
  36. data/test/dummy/config/database-jhu.yml +0 -44
  37. data/test/dummy/config/database.yml +0 -53
@@ -0,0 +1,53 @@
1
+ o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1325695618.0081952: @value{ I" length:EFiWI" digest;
2
+ F"%022e38f7ffb496be7940d46219f63883I" source;
3
+ FI"W/* search_autocomplete.js. Add autocomplete to Umlaut journal title search. */
4
+
5
+ jQuery(document).ready(function($) {
6
+
7
+ $("form.OpenURL").live("submit", function() {
8
+ var form = $(this);
9
+ if ( form.find(".rft_title").val() != $(this).val()) {
10
+ form.find(".rft_object_id").val("");
11
+ form.find(".rft_title").val("");
12
+ }
13
+ });
14
+
15
+ $("input.title_search").autocomplete({
16
+ minLength: 3,
17
+ source: function(request, response) {
18
+ var form = $(this.element).closest("form");
19
+ $.ajax({
20
+ url: form.attr("action").replace("journal_search", "auto_complete_for_journal_title"),
21
+ dataType: "json",
22
+ data: form.serialize(),
23
+ success: function(data) {
24
+ response($.map(data, function(item) {
25
+ return {
26
+ label: item.title,
27
+ id: item.object_id
28
+ }
29
+ }));
30
+ }
31
+ });
32
+ },
33
+ select: function(event, ui) {
34
+ var form = $(event.target).closest("form");
35
+
36
+ form.find("input.rft_object_id").val(ui.item.id);
37
+ form.find("input.rft_title").val( ui.item.label );
38
+ form.find("select.sfx_title_search").val("exact");
39
+ }
40
+ });
41
+
42
+ });
43
+
44
+
45
+ /* select: function(event, ui) {
46
+ log(ui.item ? ("Selected: " + ui.item.value + ", geonameId: " + ui.item.id) : "Nothing selected, input was " + this.value);
47
+ }
48
+ });
49
+ */
50
+ ;
51
+ ;
52
+ FI"
53
+ F"%8c731724fb8f7c06e798e2452dfe331b