Adding some comments to help know how to test
authorJeff Godin <jgodin@tadl.org>
Wed, 25 Apr 2012 19:43:21 +0000 (15:43 -0400)
committerJeff Godin <jgodin@tadl.org>
Sat, 28 Apr 2012 14:09:05 +0000 (10:09 -0400)
This code may not even work at this point still, but I'm getting
it out in a collab branch and will continue to hack on it.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm

index dad6faf..bc3a591 100644 (file)
@@ -92,7 +92,13 @@ sub handler {
     my $keyhash;
     my $cachekey;
 
+    # Intended URL formats
+    # /opac/extras/ac/jacket/medium/ISBN_VALUE      -- classic keyed-off-isbn
+    # /opac/extras/ac/jacket/medium/r/RECORD_ID     -- provide record id (bre.id)
+    # /opac/extras/ac/jacket/medium/m/RECORD_ID     -- future use for metarecord id
+
     if ($keypart1 =~ m/^(r|m)$/) {
+        # XXX: metarecord not yet supported
         $keytype = 'record';
     } else {
         $keytype = 'isbn';