Browse Source

Small adaptation

prieto 7 years ago
parent
commit
1fb73c1e7f
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      lodel/plugins/webui/templates/listing/issue.html

+ 8
- 8
lodel/plugins/webui/templates/listing/issue.html View File

4
 {% set objects = my_classes.Issue.get(('%s = %s') % (uidfield, lodel_id)) %}
4
 {% set objects = my_classes.Issue.get(('%s = %s') % (uidfield, lodel_id)) %}
5
 {% set person_class = leapi.name2class('Person') %}
5
 {% set person_class = leapi.name2class('Person') %}
6
 {% set obj = objects.pop() %}
6
 {% set obj = objects.pop() %}
7
-{% block content %} 
7
+{% block content %}
8
 <ol class="breadcrumb">
8
 <ol class="breadcrumb">
9
   <li><a href="/{{ root_url }}/">Home</a></li>
9
   <li><a href="/{{ root_url }}/">Home</a></li>
10
   <li><a href="/{{ root_url }}/collection">Collections</a></li>
10
   <li><a href="/{{ root_url }}/collection">Collections</a></li>
13
 <h1 class="h1_lodel">Issue {{ obj.data('title') }} </h1>
13
 <h1 class="h1_lodel">Issue {{ obj.data('title') }} </h1>
14
 <h2>{{ obj.data('subtitle') }}</h2>
14
 <h2>{{ obj.data('subtitle') }}</h2>
15
 {% set directors=person_class.get(("%s in (%s)") % (person_class.uid_fieldname()[0], obj.data('linked_directors')|join(','))) %}
15
 {% set directors=person_class.get(("%s in (%s)") % (person_class.uid_fieldname()[0], obj.data('linked_directors')|join(','))) %}
16
-<p><strong>Directors : </strong>{% for director in directors %} <a href="/{{ root_url }}/show_object?classname=Person&lodel_id={{ director.uid() }} " target="_blank" >{{ director.data('firstname')}} {{ director.data('lastname')}}</a> ; {% endfor %}</p>
16
+<p><strong>Directors : </strong>{% for director in directors %} <a href="/{{ root_url }}/show_object?classname=Person&lodel_id={{ director.uid() }} " >{{ director.data('firstname')}} {{ director.data('lastname')}}</a> ; {% endfor %}</p>
17
 {% set texts=my_classes.Text.get(("%s in (%s)") % (my_classes.Text.uid_fieldname()[0], obj.data('linked_texts')|join(','))) %}
17
 {% set texts=my_classes.Text.get(("%s in (%s)") % (my_classes.Text.uid_fieldname()[0], obj.data('linked_texts')|join(','))) %}
18
 {% set parts=my_classes.Part.get(("%s in (%s)") % (my_classes.Part.uid_fieldname()[0], obj.data('linked_parts')|join(','))) %}
18
 {% set parts=my_classes.Part.get(("%s in (%s)") % (my_classes.Part.uid_fieldname()[0], obj.data('linked_parts')|join(','))) %}
19
 {% if texts is not none: %}
19
 {% if texts is not none: %}
20
     <ul>
20
     <ul>
21
      {% for text in texts %}
21
      {% for text in texts %}
22
           <li>
22
           <li>
23
-              <h3><a href="/{{ root_url }}/show_object?classname={{ text.data('classname') }}&lodel_id={{ text.uid() }}" target="_blank" > {{ text.data('title') }}</a></h3>
23
+              <h3><a href="/{{ root_url }}/show_object?classname={{ text.data('classname') }}&lodel_id={{ text.uid() }}" > {{ text.data('title') }}</a></h3>
24
               <h4>{{ text.data('subtitle') }}</h4>
24
               <h4>{{ text.data('subtitle') }}</h4>
25
               {% set authors = my_classes.Person.get(("%s in (%s)") % (person_class.uid_fieldname()[0], text.data('linked_persons')|join(','))) %}
25
               {% set authors = my_classes.Person.get(("%s in (%s)") % (person_class.uid_fieldname()[0], text.data('linked_persons')|join(','))) %}
26
               <p>Authors : {% for author in authors %} {{ author.data('firstname')}} {{ author.data('lastname')}} ; {% endfor %} </p>
26
               <p>Authors : {% for author in authors %} {{ author.data('firstname')}} {{ author.data('lastname')}} ; {% endfor %} </p>
34
 <ul>
34
 <ul>
35
      {% for part in parts %}
35
      {% for part in parts %}
36
           <li>
36
           <li>
37
-              <h3><a href="/{{ root_url }}/show_object?classname={{ part.data('classname') }}&lodel_id={{ part.uid() }}" target="_blank"> {{ part.data('title') }}</a></h3>
37
+              <h3><a href="/{{ root_url }}/show_object?classname={{ part.data('classname') }}&lodel_id={{ part.uid() }}"> {{ part.data('title') }}</a></h3>
38
               <h4>{{ part.data('subtitle') }}</h4>
38
               <h4>{{ part.data('subtitle') }}</h4>
39
               {% set directors = my_classes.Person.get(("%s in (%s)") % (person_class.uid_fieldname()[0], part.data('linked_directors')|join(','))) %}
39
               {% set directors = my_classes.Person.get(("%s in (%s)") % (person_class.uid_fieldname()[0], part.data('linked_directors')|join(','))) %}
40
               <p>Directors : {% for director in directors %} {{ director.data('firstname')}} {{ director.data('lastname')}} ; {% endfor %} </p>
40
               <p>Directors : {% for director in directors %} {{ director.data('firstname')}} {{ director.data('lastname')}} ; {% endfor %} </p>
43
               <ul style="margin-left:20px">
43
               <ul style="margin-left:20px">
44
                  {% for text in p_texts %}
44
                  {% for text in p_texts %}
45
                       <li>
45
                       <li>
46
-                          <h3><a href="/{{ root_url }}/show_object?classname={{ text.data('classname') }}&lodel_id={{ text.uid() }}"  target="_blank"> {{ text.data('title') }}</a></h3>
46
+                          <h3><a href="/{{ root_url }}/show_object?classname={{ text.data('classname') }}&lodel_id={{ text.uid() }}" > {{ text.data('title') }}</a></h3>
47
                           <h4>{{ text.data('subtitle') }}</h4>
47
                           <h4>{{ text.data('subtitle') }}</h4>
48
                           {% set authors = my_classes.Person.get(("%s in (%s)") % (person_class.uid_fieldname()[0], text.data('linked_persons')|join(','))) %}
48
                           {% set authors = my_classes.Person.get(("%s in (%s)") % (person_class.uid_fieldname()[0], text.data('linked_persons')|join(','))) %}
49
                           <p>Authors : {% for author in authors %} {{ author.data('firstname')}} {{ author.data('lastname')}} ; {% endfor %} </p>
49
                           <p>Authors : {% for author in authors %} {{ author.data('firstname')}} {{ author.data('lastname')}} ; {% endfor %} </p>
57
                 <ul>
57
                 <ul>
58
                      {% for part in ss_parts %}
58
                      {% for part in ss_parts %}
59
                           <li>
59
                           <li>
60
-                              <h3><a href="/{{ root_url }}/show_object?classname={{ part.data('classname') }}&lodel_id={{ part.uid() }}" target="_blank"> {{ part.data('title') }}</a></h3>
60
+                              <h3><a href="/{{ root_url }}/show_object?classname={{ part.data('classname') }}&lodel_id={{ part.uid() }}" > {{ part.data('title') }}</a></h3>
61
                               <h4>{{ part.data('subtitle') }}</h4>
61
                               <h4>{{ part.data('subtitle') }}</h4>
62
                               {% set directors = my_classes.Person.get(("%s in (%s)") % (person_class.uid_fieldname()[0], part.data('linked_directors')|join(','))) %}
62
                               {% set directors = my_classes.Person.get(("%s in (%s)") % (person_class.uid_fieldname()[0], part.data('linked_directors')|join(','))) %}
63
                               <p>Directors : {% for director in directors %} {{ director.data('firstname')}} {{ director.data('lastname')}} ; {% endfor %} </p>
63
                               <p>Directors : {% for director in directors %} {{ director.data('firstname')}} {{ director.data('lastname')}} ; {% endfor %} </p>
66
                               <ul style="margin-left:20px">
66
                               <ul style="margin-left:20px">
67
                                  {% for text in sp_texts %}
67
                                  {% for text in sp_texts %}
68
                                       <li>
68
                                       <li>
69
-                                          <h3><a href="/{{ root_url }}/show_object?classname={{ text.data('classname') }}&lodel_id={{ text.uid() }}"  target="_blank"> {{ text.data('title') }}</a></h3>
69
+                                          <h3><a href="/{{ root_url }}/show_object?classname={{ text.data('classname') }}&lodel_id={{ text.uid() }}" > {{ text.data('title') }}</a></h3>
70
                                           <h4>{{ text.data('subtitle') }}</h4>
70
                                           <h4>{{ text.data('subtitle') }}</h4>
71
                                           {% set authors = my_classes.Person.get(("%s in (%s)") % (person_class.uid_fieldname()[0], text.data('linked_persons')|join(','))) %}
71
                                           {% set authors = my_classes.Person.get(("%s in (%s)") % (person_class.uid_fieldname()[0], text.data('linked_persons')|join(','))) %}
72
                                           <p>Authors : {% for author in authors %} {{ author.data('firstname')}} {{ author.data('lastname')}} ; {% endfor %} </p>
72
                                           <p>Authors : {% for author in authors %} {{ author.data('firstname')}} {{ author.data('lastname')}} ; {% endfor %} </p>
84
 {% endif %}
84
 {% endif %}
85
 </div>
85
 </div>
86
 
86
 
87
-{% endblock %} 
87
+{% endblock %}

Loading…
Cancel
Save