Advertisement
chrissharp123

Untitled

Nov 28th, 2022
1,423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.76 KB | None | 0 0
  1. csharp@pines-dev-focal:~/pines/Open-ILS/src/templates/staff/circ/patron$ diff -Naur ~/Evergreen/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 t_summary.tt2
  2. --- /home/csharp/Evergreen/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2   2022-11-16 09:23:43.065515000 -0500
  3. +++ t_summary.tt2   2022-11-28 12:44:34.028567417 -0500
  4. @@ -7,22 +7,62 @@
  5.        <div
  6.          class="col-md-9 patron-summary-alert"
  7.          title="{{penalty.standing_penalty().name()}} (id {{penalty.id()}}): {{penalty.usr_message().message()}}">
  8. -        {{penalty.usr_message().title() || penalty.standing_penalty().label() | limitTo: 40}}
  9. +       <!-- PINES: Make alerts into links but keep them red -->
  10. +       <a href="./circ/patron/{{patron().id()}}/messages" style="color:red;">
  11. +            {{penalty.usr_message().title() || penalty.standing_penalty().label() | limitTo: 40}}
  12. +       </a>
  13.        </div>
  14.        <div class="col-md-3">
  15.          {{penalty.set_date() | date:$root.egDateFormat}}
  16.        </div>
  17.      </div>
  18. -    <div class="row" ng-class="{'patron-summary-alert' : doesPatronExpireSoon()}">
  19. +    <div class="row patron-summary-divider">
  20. +      <div
  21. +        class="col-md-9 patron-summary-alert"
  22. +        title="[% l('Patron Alert Message') %]"
  23. +        ng-if="patron().alert_message()">
  24. +        {{patron().alert_message()}}
  25. +      </div>
  26. +    </div>
  27. +
  28. +    <!-- PINES Temp fix for patron expires soon alert -->
  29. +    <div class="row"
  30. +      ng-class="{'patron-summary-alert' : doesPatronExpireSoon()}">
  31.        <div ng-if="doesPatronExpireSoon()" class="col-md-12">[% l('Patron account will expire soon.  Please renew.') %]</div>
  32.      </div>
  33. +  
  34.      <div ng-if="patron().photo_url()" class="row">
  35.           <div class="col-md-8 patron_photo_wrap"><img class="img-responsive img-rounded" src="{{patron().photo_url()}}" alt=""></div>
  36.      </div>
  37. +
  38. +   <!-- PINES - move legal name up higher in summary -->
  39. +   <div class="row">
  40. +      <div class="col-md-5"><i>[% l('Legal Name') %]</i></div>
  41. +      <div class="col-md-7"><i>
  42. +        [% l('[_1] [_2], [_3] [_4] [_5]',
  43. +                '{{patron().prefix()}}',
  44. +                '{{patron().family_name()}}',
  45. +                '{{patron().first_given_name()}}',
  46. +                '{{patron().second_given_name()}}',
  47. +                '{{patron().suffix()}}') %]</i>
  48. +      </div>
  49. +    </div>
  50. +
  51.      <div class="row"
  52.        ng-class="{'patron-summary-divider' : alert_penalties().length}">
  53.        <div class="col-md-5">[% l('Profile') %]</div>
  54. -      <div class="col-md-7">{{patron().profile().name()}}</div>
  55. +      <div class="col-md-7">
  56. +            <!-- PINES Customization -->
  57. +            <div ng-if="patron().profile().id() == '61'">
  58. +                <span style='font-weight:bold; color:red;'>
  59. +                {{patron().profile().name()}}</span>
  60. +                <eg-help-popover help-text="[% l('PLAY Card accounts should not be edited by the library. Students may log in to the OPAC to change their passwords, hold preferences, and email address, but other updates should be referred to the school.') %]">
  61. +            </div>
  62. +            <div ng-if="patron().profile().id() != '61'">
  63. +                {{patron().profile().name()}}
  64. +            </div>
  65. +            <!-- End Customization -->
  66. +      </div>
  67.      </div>
  68.      <div class="row" ng-if="show_name()">
  69.        <div class="col-md-5">[% l('ID') %]</div>
  70. @@ -39,7 +79,7 @@
  71.      </div>
  72.      <div class="row">
  73.        <div class="col-md-5">[% l('Home Library') %]</div>
  74. -      <div class="col-md-7" title="{{patron().home_ou().name()}}">{{patron().home_ou().shortname()}}</div>
  75. +      <div class="col-md-7"><a href="[% ctx.base_path %]/opac/library/{{patron().home_ou().shortname()}}" target="_blank">{{patron().home_ou().shortname()}}</a></div>
  76.      </div>
  77.      <div class="row">
  78.        <div class="col-md-5">[% l('Net Access') %]</div>
  79. @@ -153,18 +193,6 @@
  80.        <div class="col-md-5">[% l('Pref Language') %]&nbsp;<span ng-if="hasLocaleName" class="locale"></span></div>
  81.        <div class="col-md-7">{{patron().locale().name()}}</div>
  82.      </div>
  83. -    <div class="row">
  84. -      <div class="col-md-5">[% l('Legal Name') %]</div>
  85. -      <div class="col-md-7">
  86. -        [% l('[_1] [_2], [_3] [_4] [_5]',
  87. -                '{{patron().prefix()}}',
  88. -                '{{patron().family_name()}}',
  89. -                '{{patron().first_given_name()}}',
  90. -                '{{patron().second_given_name()}}',
  91. -                '{{patron().suffix()}}') %]
  92. -      </div>
  93. -    </div>
  94. -    <div class="row">
  95.        <div class="col-md-5">[% l('Email') %]</div>
  96.       <!-- Bound href="mailto: patron().email()" to an anchor tag to allow the patron's email address to be clicked directly from the summary. -->
  97.        <div class="col-md-7"><a ng-href="mailto:{{patron().email()}}">{{patron().email()}}</a></div>
  98.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement