LP#1673870: process ebook variable in misc_util.tt2
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / misc_util.tt2
index b1ca125..97cbd1e 100644 (file)
         END;
         args.bibid = args.bibid.0; 
 
+        IF args.ebook_test_id;
+            args.ebook.ebook_id = args.ebook_test_id;
+            args.ebook.vendor = 'ebook_test';
+        ELSIF args.oneclickdigital_id;
+            args.ebook.ebook_id = args.oneclickdigital_id;
+            args.ebook.vendor = 'oneclickdigital';
+        ELSIF args.overdrive_id;
+            args.ebook.ebook_id = args.overdrive_id;
+            args.ebook.vendor = 'overdrive';
+        END;
+
     END;
 
     # Get the library or location group