JBAS-1466 Host patron card images locally; juggle images
authorBill Erickson <berickxx@gmail.com>
Tue, 14 Jun 2016 19:11:51 +0000 (15:11 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Remove some cards, add some new ones.  Host them all on the EG servers
under web/images/patron_cards/*.png

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/openils/var/templates_kcls/opac/register.tt2
Open-ILS/web/images/patron_cards/2016_12_Card_Blue.png [new file with mode: 0644]
Open-ILS/web/images/patron_cards/2016_Dog_Card.png [new file with mode: 0644]
Open-ILS/web/images/patron_cards/2016_Sasquatch_Card.png [new file with mode: 0644]
Open-ILS/web/images/patron_cards/Card_Pride.png [new file with mode: 0644]
Open-ILS/web/images/patron_cards/Card_blank.png [new file with mode: 0644]
Open-ILS/web/images/patron_cards/Card_mirror.png [new file with mode: 0644]
Open-ILS/web/images/patron_cards/Keychain_red.png [new file with mode: 0644]

index 532d38d..0208bbf 100644 (file)
@@ -12,8 +12,13 @@ ctx.refresh = refresh_time _ '; ' _ 'https://www.kcls.org';
 ctx_org = ctx.physical_loc || ctx.search_ou || ctx.aou_tree.id;
 
 # TODO put these on the EG server?
-card_url = 'https://kcls.bibliocms.com/wp-content/uploads/sites/20/2016/02/';
-wallet_cards = ['Card_Pride', 'Card_12', 'Card_blank', 'Card_mirror'];
+card_url = '/images/patron_cards/';
+wallet_cards = [
+  'Card_blank', 
+  '2016_12_Card_Blue', 
+  '2016_Dog_Card',
+  '2016_Sasquatch_Card'
+];
 keychain_cards = ['Keychain_red'];
 
 MACRO input_field(fclass, fname, label, type, css_class, value) BLOCK;
@@ -130,10 +135,12 @@ END; # input_field()
 #main-content-register .wide-input {
     width: 90%;
 }
+/* images are pre-sized
 #main-content-register .card-img {
   width: 195px;
   height:123px;
 }
+*/
 .mailing-address-hidden {
   display:none;
 }
@@ -217,7 +224,7 @@ END; # input_field()
           <div class="grid">
             [% FOR ctype IN wallet_cards %]
             <div class="grid-cell">
-              <div><img class="card-img" src="[% card_url _ ctype _ '.jpg' %]"/></div>
+              <div><img class="card-img" src="[% card_url _ ctype _ '.png' %]"/></div>
               <div class="card-style-option">
                 <input [% IF loop.first %]id='first-wallet-card'[% END %]
                   type="radio" name="stgsc.10" value="[% ctype %]"/>
@@ -232,7 +239,7 @@ END; # input_field()
           <div class="grid">
             [% FOR ctype IN keychain_cards %]
             <div class="grid-cell">
-              <div><img class="card-img" src="[% card_url _ ctype _ '.jpg' %]"/></div>
+              <div><img class="card-img" src="[% card_url _ ctype _ '.png' %]"/></div>
               <div class="card-style-option">
                 <input [% IF loop.first %]id='first-keychain-card'[% END %]
                   type="radio" name="stgsc.10" value="[% ctype %]"/>
diff --git a/Open-ILS/web/images/patron_cards/2016_12_Card_Blue.png b/Open-ILS/web/images/patron_cards/2016_12_Card_Blue.png
new file mode 100644 (file)
index 0000000..89f3f55
Binary files /dev/null and b/Open-ILS/web/images/patron_cards/2016_12_Card_Blue.png differ
diff --git a/Open-ILS/web/images/patron_cards/2016_Dog_Card.png b/Open-ILS/web/images/patron_cards/2016_Dog_Card.png
new file mode 100644 (file)
index 0000000..a27feec
Binary files /dev/null and b/Open-ILS/web/images/patron_cards/2016_Dog_Card.png differ
diff --git a/Open-ILS/web/images/patron_cards/2016_Sasquatch_Card.png b/Open-ILS/web/images/patron_cards/2016_Sasquatch_Card.png
new file mode 100644 (file)
index 0000000..946361c
Binary files /dev/null and b/Open-ILS/web/images/patron_cards/2016_Sasquatch_Card.png differ
diff --git a/Open-ILS/web/images/patron_cards/Card_Pride.png b/Open-ILS/web/images/patron_cards/Card_Pride.png
new file mode 100644 (file)
index 0000000..44fbad7
Binary files /dev/null and b/Open-ILS/web/images/patron_cards/Card_Pride.png differ
diff --git a/Open-ILS/web/images/patron_cards/Card_blank.png b/Open-ILS/web/images/patron_cards/Card_blank.png
new file mode 100644 (file)
index 0000000..1da0ae4
Binary files /dev/null and b/Open-ILS/web/images/patron_cards/Card_blank.png differ
diff --git a/Open-ILS/web/images/patron_cards/Card_mirror.png b/Open-ILS/web/images/patron_cards/Card_mirror.png
new file mode 100644 (file)
index 0000000..4742117
Binary files /dev/null and b/Open-ILS/web/images/patron_cards/Card_mirror.png differ
diff --git a/Open-ILS/web/images/patron_cards/Keychain_red.png b/Open-ILS/web/images/patron_cards/Keychain_red.png
new file mode 100644 (file)
index 0000000..f4c3c8e
Binary files /dev/null and b/Open-ILS/web/images/patron_cards/Keychain_red.png differ