2012-09-13 15:27:34 +00:00
< %inherit file="base.html" />
FIX: undefined on filter box on startup, IMP: Added Meta-Tagging options on a series / issue basis on comic details screen, IMP: Issue Information is now available per issue and is extracted currently from the cbz file to display (if no cbz is present, the option isn't available), IMP: Failed Download handling is implemented and available in GUI - required to replace existing autoProcessComics.py and ComicRN.py scripts, IMP: Added ability to specify post-processing script instead of ComicRN.py, IMP: Added abilty to edit the issue date for a given issue by simply clicking on it - this will help to avoid dates that have incorrect or 0000-00-00, IMP: Story Arc searching is working (not adding yet), IMP: Added Archived/Ignored options to Upcoming/Wanted tab, IMP: Fixed some alignment and display issues on the Upcoming section, IMP: Added better directory handling for Updating Comic Location when it needs to get changed for all existing series (locmove in config.ini), IMP: Added better handling for unicode characters in series titles when searching / filechecking, IMP: When adding a new series with no data, Mylar would error out (now will add and just retain 0 issues), FIX: When year was fuzzied, search would still attempt to do a date-check comparison and say everything failed, IMP: Better handling of nzb names when retaining for post-processing comparisons, IMP: Future Upcoming now will use actual shipping date of issue if available in order to see if issue is available, FIX: If annuals were enabled, refreshing a series would put some issues into an Archived status because the actual counts would be off, IMP: When file checking, Alternate Naming would be searched last which resulted in matching incorrectly to the series title or other alternate naming for the given series, now will check the Alternate Naming first for a match, then drop back down to the series name itself otherwise, IMP: Improved Annual detection when integrated with a given series, IMP: Improved the checking of the future Upcoming list for issues marked as Wanted but not available yet and then auto-adding, IMP: Improved upon story arc checking for missing issues / searching for wanted, IMP: Enabling Annuals support now within Configuration GUI, bunch of other things....
2014-07-28 19:28:09 +00:00
< %!
import mylar
from mylar.helpers import checked
%>
2012-09-13 15:27:34 +00:00
2014-06-02 19:02:28 +00:00
< %def name="headerIncludes()">
< div id = "subhead_container" >
< div id = "subhead_menu" >
2014-06-04 18:53:33 +00:00
%if explicit == 'loose':
2015-06-23 13:49:52 +00:00
< a id = "menu_link_retry" title = "This will search for ALL of the terms given : ${name}" href = "searchit?name=${name |u}&explicit=loose" > Search ALL terms< / a >
< a id = "menu_link_retry" title = "This will search EXPLICITLY for only the terms given : ${name}" href = "searchit?name=${name |u}&explicit=explicit" > Explicit Search< / a >
2014-06-04 18:53:33 +00:00
%elif explicit == 'explicit':
2015-06-23 13:49:52 +00:00
< a id = "menu_link_retry" title = "Warning: This will search for ANY of the terms given : ${name} (this could take awhile)" href = "searchit?name=${name |u}&explicit=loose" > Loose Search< / a >
< a id = "menu_link_retry" title = "This will search for ALL of the terms given : ${name}" href = "searchit?name=${name |u}&explicit=all" > Search ALL terms< / a >
2014-06-04 18:53:33 +00:00
%elif explicit == 'all':
2015-06-23 13:49:52 +00:00
< a id = "menu_link_retry" title = "This will search EXPLICITLY for only the terms given : ${name}" href = "searchit?name=${name |u}&explicit=explicit" > Explicit Search< / a >
< a id = "menu_link_retry" title = "Warning: This will search for ANY of the terms given : ${name} (this could take awhile)" href = "searchit?name=${name |u}&explicit=loose" > Loose Search< / a >
2014-06-02 19:02:28 +00:00
%endif
< / div >
< / div >
< /%def>
2012-09-13 15:27:34 +00:00
< %def name="body()">
< div id = "paddingheader" >
2014-06-02 19:02:28 +00:00
< %
2014-11-21 17:16:28 +00:00
if type == 'story_arc':
typesel = " Story Arc"
else:
typesel = ""
2014-06-04 18:53:33 +00:00
if explicit == 'loose':
searchtext = "Loose Search results for: < / br > < center > " + name + "< / center > "
elif explicit == 'explicit':
2014-11-21 17:16:28 +00:00
searchtext = "Explicit " + typesel.rstrip() + " Search results for: < / br > < center > " + name + "< / center > "
2014-06-02 19:02:28 +00:00
else:
searchtext = "Search results for : < / br > < center > " + name + "< / center > "
%>
< h1 class = "clearfix" > < img src = "interfaces/default/images/icon_search.png" alt = "Search results" / > ${searchtext}< / h1 >
2016-07-20 19:49:41 +00:00
<!--
FIX: undefined on filter box on startup, IMP: Added Meta-Tagging options on a series / issue basis on comic details screen, IMP: Issue Information is now available per issue and is extracted currently from the cbz file to display (if no cbz is present, the option isn't available), IMP: Failed Download handling is implemented and available in GUI - required to replace existing autoProcessComics.py and ComicRN.py scripts, IMP: Added ability to specify post-processing script instead of ComicRN.py, IMP: Added abilty to edit the issue date for a given issue by simply clicking on it - this will help to avoid dates that have incorrect or 0000-00-00, IMP: Story Arc searching is working (not adding yet), IMP: Added Archived/Ignored options to Upcoming/Wanted tab, IMP: Fixed some alignment and display issues on the Upcoming section, IMP: Added better directory handling for Updating Comic Location when it needs to get changed for all existing series (locmove in config.ini), IMP: Added better handling for unicode characters in series titles when searching / filechecking, IMP: When adding a new series with no data, Mylar would error out (now will add and just retain 0 issues), FIX: When year was fuzzied, search would still attempt to do a date-check comparison and say everything failed, IMP: Better handling of nzb names when retaining for post-processing comparisons, IMP: Future Upcoming now will use actual shipping date of issue if available in order to see if issue is available, FIX: If annuals were enabled, refreshing a series would put some issues into an Archived status because the actual counts would be off, IMP: When file checking, Alternate Naming would be searched last which resulted in matching incorrectly to the series title or other alternate naming for the given series, now will check the Alternate Naming first for a match, then drop back down to the series name itself otherwise, IMP: Improved Annual detection when integrated with a given series, IMP: Improved the checking of the future Upcoming list for issues marked as Wanted but not available yet and then auto-adding, IMP: Improved upon story arc checking for missing issues / searching for wanted, IMP: Enabling Annuals support now within Configuration GUI, bunch of other things....
2014-07-28 19:28:09 +00:00
< div >
< form action = "CreateFolders" method = "GET" id = "CreatetheFolders" >
< fieldset >
< div class = "row" >
< input type = "checkbox" name = "createfolders" id = "createfolders" value = 1 $ { checked ( mylar . CREATE_FOLDERS ) } / > < label > Automatic Folder Creation< / label >
< / div >
< input type = "submit" style = "display:none" / >
< / fieldset >
< / form >
< / div >
2016-07-20 19:49:41 +00:00
-->
2014-06-02 19:02:28 +00:00
< / div >
< div class = "table_wrapper" >
2012-09-13 15:27:34 +00:00
< table class = "display" id = "searchresults_table" >
< thead >
< tr >
< th id = "blank" > < / th >
< th id = "name" > Comic Name< / th >
2014-06-02 19:02:28 +00:00
< th id = "publisher" > Publisher< / th >
< th id = "comicyear" > Year< / th >
2012-09-13 15:27:34 +00:00
< th id = "issues" > Issues< / th >
< th id = "add" > < / th >
< / tr >
< / thead >
< tbody >
%if searchresults:
%for result in searchresults:
< %
2016-02-02 17:05:54 +00:00
if result['comicyear'] == '2016':
2012-09-13 15:27:34 +00:00
grade = 'A'
else:
grade = 'Z'
2014-10-08 18:17:44 +00:00
if result['haveit'] != "No":
2014-10-08 06:45:51 +00:00
grade = 'H';
2016-07-20 19:49:41 +00:00
if result['type'] == 'Digital':
rtype = '[Digital]'
else:
rtype = None
2012-09-13 15:27:34 +00:00
%>
< tr class = "grade${grade}" >
2012-12-12 22:15:06 +00:00
< td class = "blank" > < / td >
IMP: When scanning a folder using the Import a Directory option, upon completion a button to the Import Results Management page will be displayed to allow for easier access / acknowledgement of completion of scan, FIX: Fixed some issues with the search results page displaying too much information, IMP: Improved the ability to see alternate covers within issues when viewing selected issue details via the 'i' icon on the issue details page, IMP: Fixed the problem with issues that had 2015 dates and wouldn't scan in via manual post-processing, IMP: Added duplicate issue detection (beta) - enabled, when post-processing (manually or otherwise), will retain the issue that is bigger in filesize and won't post-process if it's smaller in size, instead of hammering the oldest copy, FIX: bunch of small fixes, and getting groundwork done for other things.
2014-12-18 18:30:57 +00:00
%if result['deck'] == 'None' or result['deck'] is None:
2016-07-20 19:49:41 +00:00
%if rtype is None:
< td class = "name" > < a href = "${result['url']}" target = "_blank" > ${result['name']}< / a > < / td >
%else:
< td class = "name" > < a href = "${result['url']}" target = "_blank" > ${result['name']} ${rtype}< / a > < / td >
%endif
2014-11-21 17:16:28 +00:00
%else:
2016-07-20 19:49:41 +00:00
%if rtype is None:
< td class = "name" > < a href = "${result['url']}" title = "${result['deck']}" target = "_blank" > ${result['name']}< / a > < / td >
%else:
< td class = "name" > < a href = "${result['url']}" title = "${result['deck']}" target = "_blank" > ${result['name']} ${rtype}< / a > < / td >
%endif
2014-11-21 17:16:28 +00:00
%endif
2013-01-23 09:43:21 +00:00
< td class = "publisher" > ${result['publisher']}< / a > < / td >
< td class = "comicyear" > ${result['comicyear']}< / a > < / td >
2012-12-12 22:15:06 +00:00
< td class = "issues" > ${result['issues']}< / td >
2013-01-14 05:42:03 +00:00
2014-10-08 06:45:51 +00:00
%if result['haveit'] == "No":
2014-11-21 17:16:28 +00:00
%if type == 'story_arc':
2015-05-27 05:40:38 +00:00
< td class = "add" nowrap = "nowrap" > < a href = "addStoryArc?arcid=${result['comicid']}&cvarcid=${result['cvarcid']}&storyarcname=${result['name'] |u}&storyarcyear=${result['comicyear']}&storyarcpublisher=${result['publisher'] |u}&storyarcissues=${result['issues']}&arclist=${result['arclist']}&desc=${result['description']}&image=${result['comicimage']}" > < span class = "ui-icon ui-icon-plus" > < / span > Add this Story Arc< / a > < / td >
2014-11-21 17:16:28 +00:00
%else:
2014-10-08 06:45:51 +00:00
< td class = "add" nowrap = "nowrap" > < a href = "addComic?comicid=${result['comicid']}&comicname=${result['name'] |u}&comicyear=${result['comicyear']}&comicpublisher=${result['publisher'] |u}&comicimage=${result['comicimage']}&comicissues=${result['issues']}&imported=${imported}&ogcname=${ogcname}&serinfo=${serinfo}" > < span class = "ui-icon ui-icon-plus" > < / span > Add this Comic< / a > < / td >
2014-11-21 17:16:28 +00:00
%endif
2014-10-08 06:45:51 +00:00
%else:
2014-10-08 18:17:44 +00:00
< td class = "add" nowrap = "nowrap" > < a href = "comicDetails?ComicID=${result['haveit']}" > < span class = "ui-icon ui-icon-arrowreturnthick-1-n" > < / span > Already in library< / a > < / td >
2014-10-08 06:45:51 +00:00
%endif
2012-09-13 15:27:34 +00:00
< / tr >
%endfor
%endif
< / tbody >
< / table >
< / div >
< /%def>
< %def name="headIncludes()">
< link rel = "stylesheet" href = "interfaces/default/css/data_table.css" >
< /%def>
< %def name="javascriptIncludes()">
FIX: undefined on filter box on startup, IMP: Added Meta-Tagging options on a series / issue basis on comic details screen, IMP: Issue Information is now available per issue and is extracted currently from the cbz file to display (if no cbz is present, the option isn't available), IMP: Failed Download handling is implemented and available in GUI - required to replace existing autoProcessComics.py and ComicRN.py scripts, IMP: Added ability to specify post-processing script instead of ComicRN.py, IMP: Added abilty to edit the issue date for a given issue by simply clicking on it - this will help to avoid dates that have incorrect or 0000-00-00, IMP: Story Arc searching is working (not adding yet), IMP: Added Archived/Ignored options to Upcoming/Wanted tab, IMP: Fixed some alignment and display issues on the Upcoming section, IMP: Added better directory handling for Updating Comic Location when it needs to get changed for all existing series (locmove in config.ini), IMP: Added better handling for unicode characters in series titles when searching / filechecking, IMP: When adding a new series with no data, Mylar would error out (now will add and just retain 0 issues), FIX: When year was fuzzied, search would still attempt to do a date-check comparison and say everything failed, IMP: Better handling of nzb names when retaining for post-processing comparisons, IMP: Future Upcoming now will use actual shipping date of issue if available in order to see if issue is available, FIX: If annuals were enabled, refreshing a series would put some issues into an Archived status because the actual counts would be off, IMP: When file checking, Alternate Naming would be searched last which resulted in matching incorrectly to the series title or other alternate naming for the given series, now will check the Alternate Naming first for a match, then drop back down to the series name itself otherwise, IMP: Improved Annual detection when integrated with a given series, IMP: Improved the checking of the future Upcoming list for issues marked as Wanted but not available yet and then auto-adding, IMP: Improved upon story arc checking for missing issues / searching for wanted, IMP: Enabling Annuals support now within Configuration GUI, bunch of other things....
2014-07-28 19:28:09 +00:00
< script type = "text/javascript" >
$("#createfolders").click(function() {
$('#CreatetheFolders').submit();
return true;
});
< / script >
2012-09-13 15:27:34 +00:00
< script src = "js/libs/jquery.dataTables.min.js" > < / script >
2015-06-23 13:49:52 +00:00
2012-09-13 15:27:34 +00:00
< script >
2014-06-02 19:02:28 +00:00
function initThisPage(){
initActions();
2012-09-13 15:27:34 +00:00
$('#searchresults_table').dataTable(
{
2014-06-02 19:02:28 +00:00
"bDestroy": true,
"aoColumnDefs": [
2016-05-01 03:34:25 +00:00
{ 'bSortable': false, 'aTargets': [ 0 ] }
2015-06-23 13:49:52 +00:00
],
2014-06-02 19:02:28 +00:00
"oLanguage": {
"sLengthMenu":"Show _MENU_ results per page",
"sEmptyTable": "No results",
"sInfo":"Showing _START_ to _END_ of _TOTAL_ results",
"sInfoEmpty":"Showing 0 to 0 of 0 results",
"sInfoFiltered":"(filtered from _MAX_ total results)",
"sSearch" : ""},
"iDisplayLength": 25,
"sPaginationType": "full_numbers",
"aaSorting": []
});
resetFilters("result");
setTimeout(function(){
initFancybox();
},1500);
}
$(document).ready(function() {
initThisPage();
});
2012-09-13 15:27:34 +00:00
< / script >
< /%def>